ui-process-h5 1.3.2 → 1.3.3

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),dt.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=mC({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),Tr(this.mainContainer),gC(u,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const AC={components:{checked:sC,dcSwitch:cC,dcLoading:hC},name:"departPerson",props:{visible:{type:Boolean,default:!1},isTitle:{type:Boolean,default:!0},source:{type:String,default:"0"},type:{type:String,default:"0"},request:{type:Function,default:()=>({get:()=>{},post:()=>{}})},businessId:{type:String,default:""},orgType:{type:Array,default:()=>[0]},codeType:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},deptCode:{type:String,default:""},itemCode:{type:String,default:""},subjectName:{type:String,default:""},checkedArray:{type:Array,default:()=>[]},maxMultiple:{type:Number,default:0},businessCallack:{type:Function,default:()=>new Promise((e,n)=>{e(!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(e,n){if(!e)return!1;U(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})}},isSon:{deep:!0,handler:function(e,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?e&&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(e,n){U(this.businessId)&&this.getCards()}}},computed:{queryImg(){return vC},entityJson(){const e=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=e.find(S=>S.uniqueId===u),f=!U(p),v=f?!1:e.findIndex(S=>S.id===n.id&&n.subjectId===S.subjectId)>-1,m=f?n.type==1||p.orgRecordsType==4:!1,C=U(e)?0:m?n.counts:e.filter(S=>S.type!=1&&S.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:Wy(n.phone),uid:n.uid,iconName:Nr(n.name,2),checked:f,ancestors:a,ancestorNames:o,deptName:zy(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(e=>e.type==1||e.type==5)},deptJson(){return this.entityJson.filter(e=>e.type==2)},userJson(){return this.entityJson.filter(e=>e.type==3||e.type==6)},checkedNumber(){const e=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 e>0&&u.push(e+"\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 e=this.breadcrumb.filter((n,a)=>n.value!=="-1");return U(e)?"":e[0].value},breadcrumb_level(){const e=this.breadcrumb.filter((n,a)=>n.value!=="-1");return{ancestors:e.map(n=>n.value).join(","),ancestorNames:e.map(n=>n.name).join("/")}},isDept(){return this.jsonData.findIndex(e=>e.type==2)>-1&&this.isShowDept},isShowSubject(){return this.codeType.findIndex(e=>e==1||e==5)>-1},isShowDept(){return this.codeType.findIndex(e=>e==2)>-1},isNotLevel(){return this.isShowSubject&&this.codeType.length===1},isShowQuery(){return this.codeType.findIndex(e=>e==3||e==6)>-1},getHight(){let e=194;return this.isShowQuery&&(e+=55),this.isDept&&(e+=45),this.orgType.length>1&&(e+=45),`calc(100% - ${e}px)`},getSearchHight(){let e=136;return this.orgType.length>1&&(e+=45),`calc(100% - ${e}px)`},getTitle(){return this.codeType.length==1&&this.codeType[0]==2?"\u9009\u62E9\u90E8\u95E8":this.codeType.length==1&&this.codeType[0]==3?"\u9009\u62E9\u4EBA\u5458":this.codeType.length==1&&this.codeType[0]==5?"\u9009\u62E9\u7FA4\u7EC4":"\u9009\u62E9\u7EC4\u7EC7"},isNoDelete(){return U(this.checkedArray)?[]:this.checkedArray.filter(e=>e.isDeleteNo)},isOrgType(){return!!(U(this.orgType)||this.orgType.findIndex(e=>e===0)>-1)},isOrgGroup(){return this.orgType.findIndex(e=>e===1)>-1},showType(){if(this.activeOrgType===0)return this.codeType.findIndex(e=>e==3)>-1?3:this.codeType.findIndex(e=>e==2)>-1?2:this.codeType.findIndex(e=>e==1)>-1?1:-1;if(this.activeOrgType===1)return this.codeType.findIndex(e=>e==6)>-1?6:this.codeType.findIndex(e=>e==5)>-1?5:-1}},mounted(){this.isTitle&&(document.title=this.getTitle),U(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})},methods:{handleSubmit(){if(this.isLoading)return!1;const e=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",e);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(e).then(a=>{a&&this.request.post("/auth/component/org/save",n).then(o=>{o.code===200&&this.$emit("callback",e)}).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(e){this.activeOrgType=e,this.keyword="",this.handleQuery(),this.defaultBreadcrumb()},handleAllCheckbox(e){(this.isShowDept?this.entityJson:this.entityJson.filter(n=>n.type!=2)).forEach(n=>this.handleCheckbox(e,n))},handleCheckbox(e,n){if(n.isDisabled||n.isNoDelete||(n.type==1||n.type==5)&&!this.isShowSubject||n.type==2&&!this.isShowDept)return!1;if(e.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)?(e.currentTarget.checked=!1,!1):this.maxMultiple!==0&&this.checkedJson.length>=this.maxMultiple&&this.multiple?(e.currentTarget.checked=!1,new xr().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(e,n){if(e.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:e.value,this.itemId="",this.subjectId=e.value==="-1"?"":this.breadcrumb_subjectId;break;case 1:this.itemId=U(this.itemCode)?e.value==="-1"?"":e.value:itemCode,this.deptId=0,this.subjectId="";break}this.keyword="",this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((a,o)=>o<n+1)})},handleLevel(e){if(e.isDisabled||e.isLevel)return!1;switch(e.type){case"1":this.deptId=0,this.subjectId=e.id,this.itemId="",this.getSearch(()=>{this.breadcrumb.push({name:e.name,value:e.id})});break;case"2":this.deptId=e.id,this.subjectId=this.breadcrumb_subjectId,this.itemId="",this.getSearch(()=>{this.breadcrumb.push({name:e.name,value:e.id})});break;case"5":this.deptId=0,this.subjectId="",this.itemId=e.id,this.getSearch(()=>{this.breadcrumb.push({name:e.name,value:e.id})});break}},getBoolChecked(e){if(e.type!=3)return!1;const n=e.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 xr().message({content:`\u5DF2\u9009\u7684\u7EC4\u7EC7\u3010${a.name}\u3011\u5B58\u5728${e.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),o=!0),a.type==4&&(new xr().message({content:`\u5DF2\u9009\u7684\u90E8\u95E8\u3010${a.name}\u3011\u5B58\u5728${e.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 e=this.activeOrgType===0?"\u7EC4\u7EC7":this.activeOrgType===1?"\u7FA4\u7EC4":"";this.breadcrumb=U(this.deptCode)&&U(this.itemCode)?[{name:e,value:"-1"}]:[]},defaultGet(){this.defaultData(),U(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})},getIsSon(){const e=this.entityJson.filter(a=>a.type==2),n=this.checkedJson.filter(a=>a.type==2);this.isSon=n.findIndex(a=>e.findIndex(o=>o.id===a.id&&a.orgRecordsType==4)>-1)>-1},getCheckedAll(){const e=this.entityJson.findIndex(n=>this.checkedJson.findIndex(a=>a.type===n.type&&a.id===n.id&&n.subjectId===a.subjectId)===-1);this.checkedAll=e===-1},getSearch(e=()=>{}){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=>{e(),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(e=()=>{}){if(U(this.businessId))return e(),!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:Nr(o.name,2),sex:o.sex,uid:U(o.uid)?"":o.uid,avatar:U(o.avatar)?"":o.avatar,isNoDelete:v}}),e()})},getCards(e=()=>{}){if(U(this.checkedArray))return e(),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:Nr(o.name,2),sex:o.sex,uid:U(o.uid)?"":o.uid,avatar:U(o.avatar)?"":o.avatar,isNoDelete:m}}),e()})},getByName(e=()=>{}){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,e())})}}};var yC=function(){var e=this,n=e.$createElement,a=e._self._c||n;return a("main",{staticClass:"departPerson-main"},[a("div",{staticClass:"deper-top"},[e.orgType.length>1?a("div",{staticClass:"deper-nav"},[e.isOrgType?a("div",{staticClass:"deper-n-item",class:{active:e.activeOrgType===0},on:{click:function(o){return e.handleOrgType(0)}}},[e._v("\u7EC4\u7EC7")]):e._e(),e.isOrgGroup?a("div",{staticClass:"deper-n-item",class:{active:e.activeOrgType===1},on:{click:function(o){return e.handleOrgType(1)}}},[e._v("\u7FA4\u7EC4")]):e._e()]):e._e(),a("div",{directives:[{name:"show",rawName:"v-show",value:e.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:e.keyword,expression:"keyword"}],staticClass:"input",attrs:{type:"search",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u3001\u624B\u673A\u53F7\u7801"},domProps:{value:e.keyword},on:{keyup:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"enter",13,o.key,"Enter")?null:e.handleQuery.apply(null,arguments)},input:function(o){o.target.composing||(e.keyword=o.target.value)}}}),e.keyword.length>0?a("i",{staticClass:"icon-error-fill iconfont close",on:{click:e.handleEmpty}}):e._e()])]),e.isQuery?a("div",{staticClass:"deper-breadcrumb"},e._l(e.breadcrumb,function(o,u){return a("div",{key:o.value,staticClass:"deper-b-item",class:{disable:o.disable},on:{click:function(p){return e.handleBreadcrumb(o,u)}}},[a("span",[e._v(e._s(o.name))]),a("i",{staticClass:"icon-jiantouyou iconfont"})])}),0):e._e(),e.isQuery?a("div",{staticClass:"deper-all"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.checkedAll,expression:"checkedAll"}],staticClass:"deper-checkbox",attrs:{type:"checkbox",name:"deper-all",id:"deper-all"},domProps:{checked:Array.isArray(e.checkedAll)?e._i(e.checkedAll,null)>-1:e.checkedAll},on:{change:[function(o){var u=e.checkedAll,p=o.target,f=!!p.checked;if(Array.isArray(u)){var v=null,m=e._i(u,v);p.checked?m<0&&(e.checkedAll=u.concat([v])):m>-1&&(e.checkedAll=u.slice(0,m).concat(u.slice(m+1)))}else e.checkedAll=f},e.handleAllCheckbox]}}),a("label",{staticClass:"label",attrs:{for:"deper-all"}},[e._v("\u5168\u9009")])]):e._e()]),e.isQuery?a("div",{staticClass:"deper-center",style:{height:e.getHight}},[e.companyJson.length>0?a("div",{staticClass:"deper-c-depart"},e._l(e.companyJson,function(o){return a("div",{key:o.uniqueId,staticClass:"depart-item"},[a("label",{staticClass:"depart-left",class:{width:e.isNotLevel,isNoDelete:o.isNoDelete}},[a("input",{directives:[{name:"show",rawName:"v-show",value:e.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)?e._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=e._i(p,m);f.checked?C<0&&e.$set(o,"checked",p.concat([m])):C>-1&&e.$set(o,"checked",p.slice(0,C).concat(p.slice(C+1)))}else e.$set(o,"checked",v)},function(u){return e.handleCheckbox(u,o)}]}}),a("div",{staticClass:"depart-name"},[a("div",{staticClass:"name"},[e._v(e._s(o.name))]),o.num>0?a("div",{staticClass:"number"},[e._v("("),a("label",{staticClass:"label"},[e._v(e._s(o.num)+"/"+e._s(o.counts))]),e._v(")")]):a("div",{staticClass:"number"},[e._v("("+e._s(o.counts)+")")])])]),!e.isNotLevel&&o.counts>0?a("div",{staticClass:"depart-right",class:{isdisabled:o.isLevel},on:{click:function(u){return e.handleLevel(o)}}},[a("i",{staticClass:"icon-pedigree iconfont"}),a("span",[e._v("\u4E0B\u7EA7")])]):e._e()])}),0):e._e(),e.deptJson.length>0?a("div",{staticClass:"deper-c-depart"},e._l(e.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:e.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)?e._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=e._i(p,m);f.checked?C<0&&e.$set(o,"checked",p.concat([m])):C>-1&&e.$set(o,"checked",p.slice(0,C).concat(p.slice(C+1)))}else e.$set(o,"checked",v)},function(u){return e.handleCheckbox(u,o)}]}}),a("div",{staticClass:"depart-name"},[a("div",{staticClass:"name"},[e._v(e._s(o.name))]),o.num>0?a("div",{staticClass:"number"},[e._v("("),a("label",{staticClass:"label"},[e._v(e._s(o.num)+"/"+e._s(o.counts))]),e._v(")")]):a("div",{staticClass:"number"},[e._v("("+e._s(o.counts)+")")])])]),o.counts>0?a("div",{staticClass:"depart-right",class:{isdisabled:o.isLevel},on:{click:function(u){return e.handleLevel(o)}}},[a("i",{staticClass:"icon-pedigree iconfont"}),a("span",[e._v("\u4E0B\u7EA7")])]):e._e()])}),0):e._e(),e.userJson.length>0?a("div",{staticClass:"deper-c-user"},e._l(e.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)?e._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=e._i(p,m);f.checked?C<0&&e.$set(o,"checked",p.concat([m])):C>-1&&e.$set(o,"checked",p.slice(0,C).concat(p.slice(C+1)))}else e.$set(o,"checked",v)},function(u){return e.handleCheckbox(u,o)}]}}),a("div",{staticClass:"user-icon"},[o.avatar.length<1?a("span",[e._v(e._s(o.iconName))]):a("img",{attrs:{src:o.avatar}})]),a("div",{staticClass:"user-name"},[a("div",{staticClass:"span"},[e._v(e._s(o.name))]),a("div",{staticClass:"phone"},[e._v(e._s(o.phone))])])])}),0):e._e()]):a("div",{staticClass:"deper-search",style:{height:e.getSearchHight}},[e._e(),a("div",{staticClass:"deper-search-section"},[e._e(),a("div",{staticClass:"search-user"},[a("div",{staticClass:"search-title"},[e._v("\u8054\u7CFB\u4EBA")]),e._l(e.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)?e._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=e._i(p,m);f.checked?C<0&&e.$set(o,"checked",p.concat([m])):C>-1&&e.$set(o,"checked",p.slice(0,C).concat(p.slice(C+1)))}else e.$set(o,"checked",v)},function(u){return e.handleCheckbox(u,o)}]}}),a("div",{staticClass:"user-icon"},[o.avatar.length<1?a("span",[e._v(e._s(o.iconName))]):a("img",{attrs:{src:o.avatar}})]),a("div",{staticClass:"user-name"},[a("div",{staticClass:"span"},[e._v(e._s(o.name))]),a("div",{staticClass:"phone"},[e._v(e._s(o.phone))]),a("div",{staticClass:"txt"},[e._v(e._s(o.ancestorNames))])])])})],2)])]),e.isDept?a("div",{staticClass:"deper-son"},[a("span",[e._v("\u5305\u542B\u5B50\u7EA7")]),a("dc-switch",{attrs:{modelValue:e.isSon,name:"isSone"},on:{"update:modelValue":function(o){e.isSon=o},"update:model-value":function(o){e.isSon=o}}})],1):e._e(),a("div",{staticClass:"deper-bottom"},[a("div",{staticClass:"deper-b-checked",on:{click:function(o){e.isShowChecked=!0}}},[a("span",[e._v(e._s(e.checkedNumber))]),e.checkedNumber.length>0?a("i",{staticClass:"icon-jiantouyou iconfont"}):e._e()]),a("div",{staticClass:"deper-b-btn",on:{click:e.handleSubmit}},[e._v("\u786E\u5B9A")])]),a("checked",{attrs:{visible:e.isShowChecked,checkedJson:e.checkedJson},on:{"update:visible":function(o){e.isShowChecked=o},"update:checkedJson":function(o){e.checkedJson=o},"update:checked-json":function(o){e.checkedJson=o}},scopedSlots:e._u([{key:"user",fn:function(o){var u=o.item;return[e._t("checkedUser",null,{item:u})]}}],null,!0)}),e.isLoading?a("dcLoading"):e._e()],1)},CC=[function(){var e=this,n=e.$createElement,a=e._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"},[e._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"},[e._v("("),a("label",[e._v("100/100")]),e._v(")")])])])])},function(){var e=this,n=e.$createElement,a=e._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"},[e._v("\u6280\u672F\u90E8")]),a("div",{staticClass:"number"},[e._v("(80)")])])])])},function(){var e=this,n=e.$createElement,a=e._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"},[e._v("\u5F00\u53D1\u90E8")]),a("div",{staticClass:"number"},[e._v("("),a("label",[e._v("100/100")]),e._v(")")])])])])}];const ep={};var bC=Cn(AC,yC,CC,!1,IC,null,null,null);function IC(e){for(let n in ep)this[n]=ep[n]}const kC=function(){return bC.exports}();s.departPerson=kC,Object.defineProperties(s,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(ce,ce.exports);const Av={name:"TopSubmitPopup",components:{TopPopup:qt,TopDownSelect:Wc,PreviewImage:Ta,departPerson:ce.exports.departPerson,TopTips:oe},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(t,i){this.show=t,this.$emit("update:visible",this.show),this.handleOption()},immediate:!0},businessType:{handler(t,i){this.businessTypeData=t},immediate:!0},id:{handler(t,i){this.idData=t},immediate:!0},processName:{handler(t,i){this.processNameData=t},immediate:!0},title:{handler(t,i){this.titleData=t},immediate:!0},todoParameter:{handler(t,i){this.todoParameterData=t},immediate:!0,deep:!0},selfList:{handler(t,i){t&&t.length&&(this.option=t,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option))},immediate:!0,deep:!0},resubmit:{handler(t,i){t&&this.getProcessInstance()}}},methods:{async handleOption(){this.selfList&&this.selfList.length||(this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId,processGroupName:this.processNameData}}).then(t=>{t.code==200&&(this.option=t.data,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl())}))},async getProcessInstance(){this.id&&await this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.id}}).then(t=>{t.code==200&&(this.processId=t.data.id)})},async handlefirstNode(t){t&&await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:t}}).then(i=>{i.code===200?(this.firstPerson=i.data,this.getAfferentParticipantNodeList()):(this.firstPerson=[],this.getAfferentParticipantNodeList())}).catch(i=>{this.firstPerson=[],this.getAfferentParticipantNodeList()})},async handleChange(t,i){this.handleTips("",!0,"loading"),console.log("\u5F53\u524D\u9009\u62E9::::",t,i),this.checkedItem=t,this.handlefirstNode(this.checkedItem.id),this.getProcessInstance(),this.getDiagramUrl(),this.$emit("change",t,i),this.$refs.topTips.handleClose()},async getAfferentParticipantNodeList(){await this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(t=>{t.code==200&&(this.firstPerson&&this.firstPerson.length&&(console.log("\u9009\u4E2D\u8282\u70B9L::",this.personList,this.firstPerson),this.personList=t.data.filter(i=>!this.firstPerson.some(s=>s.id==i.id))),this.$emit("change",this.checkedItem,this.option)),this.$refs.topTips.handleClose()})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(t=>{t.code==200&&(this.trackUrl=[t.data])})},handleOpenPerson(t){if(this.visiblePerson=!0,this.personObjId=t.id,this.humanPerformerName=t.humanPerformerName,t.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel"||t.loopCardinality>1,maxMultiple:(t.loopCardinality,t.loopCardinality),checkedArray:[]},console.log(this.multiNodeParticipant[t.id]),this.multiNodeParticipant[t.id]&&this.multiNodeParticipant[t.id].length?this.entity.checkedArray=this.personListCopy[t.id].map(i=>({uid:i.uid,type:i.type,deptId:this.handleLastStr(i.ancestors,i.subjectId)})):this.entity.checkedArray=[];else if(t.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let i;t.routeTxt.departmentIds.map((s,r)=>{i=s.rangeId}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],deptCode:i,multiple:t.type=="InclusiveGatewayModel"||t.loopCardinality>1,maxMultiple:(t.loopCardinality,t.loopCardinality)},this.multiNodeParticipant[t.id]&&this.multiNodeParticipant[t.id].length?this.entity.checkedArray=this.personListCopy[t.id].map(s=>({uid:s.uid,type:s.type,deptId:i})):this.entity.checkedArray=[]}else if(t.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let i;t.routeTxt.companyIds.map((s,r)=>{i=s.name}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel"||t.loopCardinality>1,maxMultiple:(t.loopCardinality,t.loopCardinality),subjectName:i},this.multiNodeParticipant[t.id]&&this.multiNodeParticipant[t.id].length?this.entity.checkedArray=this.personListCopy[t.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(t){console.log("\u53C2\u6570::::",t),this.personListCopy[this.personObjId]=t,this.entity.checkedArray=t.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]=[],t.map((i,s)=>{this.multiNodeParticipant[this.personObjId].push(i.uid),this.partNode[this.personObjId].push(i.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(t,i){return t.split(",")[t.split(",").length-1]!==i?t.split(",")[t.split(",").length-1]:""},async handleSumbit(){if(this.firstPerson&&this.firstPerson.length&&this.firstPerson[0].routeTxt.userNames&&this.firstPerson[0].humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&this.firstPerson[0].humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"&&!this.multiNodeParticipant[this.firstPerson[0].id]){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error");return}this.beforeFunction&&await this.beforeFunction(),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})},handleSongshen(){if(this.resubmit)this.handleTips("",!0,"loading"),this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(t=>{t.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.handleTips(t.msg,!0,"error")});else{this.handleTips("",!0,"loading");let t={title:this.titleData,processDefId:this.checkedItem.id,processBusinessKey:this.idData,showType:this.showType,businessType:this.businessTypeData,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameterData};if(this.checkedItem.id)return;this.request.post("/aws/pis/createAndStart",t).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(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips&&this.$refs.topTips.handleOpen()}}};var yv=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",[s("TopPopup",{ref:"TopPopup",attrs:{visible:t.show,titleText:"\u9001\u5BA1",isDrawer:"",isIndex:99,className:"sumbmitPopup-index sumbmitPopup-index-sumbit"},on:{"update:visible":function(r){return t.show=r,t.$emit("update:visible",r)}}},[s("TopDownSelect",{attrs:{option:t.option,defaultValue:t.selectDefaultValue},on:{change:t.handleChange}}),t.checkedItem.id?s("div",{staticClass:"viewTrack",on:{click:function(r){t.taskurlshow=!0}}},[t._v(" \u67E5\u770B\u6D41\u7A0B\u56FE ")]):t._e(),t.firstPerson&&t.firstPerson.length?s("div",{staticClass:"person-views"},t._l(t.firstPerson,function(r,c){return s("div",{staticClass:"views-items"},[s("div",{staticClass:"views-items-name"},[t._v(" "+t._s(r.name)+" "),s("span",{staticClass:"views-items-name--re"},[t._v("*")])]),s("div",{staticClass:"views-items-set"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",[t._l(t.partNode[r.id],function(l,d){return s("span",[t._v(" "+t._s(d>=3?"":d==0?l:`,${l}`)+" ")])}),t.partNode[r.id].length>3?s("span",[t._v("...\u7B49"+t._s(t.partNode[r.id].length)+"\u4EBA")]):t._e()],2):r.routeTxt&&r.routeTxt.userNames?s("div",[t._v(" "+t._s(r.routeTxt.userNames)+" ")]):t._e(),r.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||r.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?s("div"):s("div",{staticClass:"views-items-set-btn",on:{click:function(l){return t.handleOpenPerson(r)}}},[t._v(" \u8BBE\u7F6E ")])])])}),0):t._e(),t.personList&&t.personList.length?s("div",{staticClass:"person-views"},t._l(t.personList,function(r,c){return s("div",{staticClass:"views-items"},[s("div",{staticClass:"views-items-name"},[t._v(" "+t._s(r.name)+" ")]),s("div",{staticClass:"views-items-set"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",[t._l(t.partNode[r.id],function(l,d){return s("span",[t._v(" "+t._s(d>=3?"":d==0?l:`,${l}`)+" ")])}),t.partNode[r.id].length>3?s("span",[t._v("...\u7B49"+t._s(t.partNode[r.id].length)+"\u4EBA")]):t._e()],2):s("div"),s("div",{staticClass:"views-items-set-btn",on:{click:function(l){return t.handleOpenPerson(r)}}},[t._v(" \u8BBE\u7F6E ")])])])}),0):t._e(),!t.firstPerson&&!t.firstPerson.length&&!t.personList&&!t.personList.length?s("div",{staticClass:"person-views-white"},[t._v(" \u65E0\u9700\u8BBE\u7F6E ")]):t._e(),s("div",{staticClass:"person-btn"},[s("div",{staticClass:"top-button",staticStyle:{"background-color":"#3c9cff",color:"#fff"},on:{click:t.handleSumbit}},[t._v(" \u9001\u5BA1 ")])])],1),s("TopPopup",{ref:"TopPopup",attrs:{visible:t.visiblePerson,titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},on:{"update:visible":function(r){return t.visiblePerson=r}}},[s("departPerson",t._b({attrs:{isTitle:!1,visible:t.visiblePerson},on:{"update:visible":function(r){t.visiblePerson=r},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),s("PreviewImage",{attrs:{images:t.trackUrl,visible:t.taskurlshow,indexd:0,isOne:!0,isStyle:t.isStyle},on:{"update:visible":function(r){return t.taskurlshow=r}}}),s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}})],1)},Cv=[];const SC="",zc={};var bv=It(Av,yv,Cv,!1,Iv,"711c796f",null,null);function Iv(t){for(let i in zc)this[i]=zc[i]}const Zc=function(){return bv.exports}(),kv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXRVnGqq2o7PtvB1hl0fFun6ji+xhfgzCioq5WA2hFxptUOY23VqlNf06laW7VrVUfs8gEqgmBFRZ4hIRBIcu85e8/69j4HriEJAYLiY691181Ncs/Z+3/++/u+/b0U3T1mWM0AAlZhmaEirFUoZZlus+WlDM8ZJqKpsJZhCiYAxmgC5T8Pk+lYWG4Vy7UhBrSF15ViOYaNrZr5TVt4lxtUfuu1Z9iQAShWETNDme5ckuqWiwkIdxGyEsUMCg6QOTbXazMDAs1wYD9jGKk1gwJFX6UIUZQrS7W7v0AI5fJKAGqy0IQVrMAq6rE0WUsUW9YZwwqtWQq8FRve3VDGKi5TrQ6wGWRQGKYTu3ns5tg9gGRCD6NZ5Njinlz1HFtBK/thOUwZJmjNKGCcggoDthChYguRvIqetTFCJb8arf0rHaGGUEGgIBNiNcjKNwKLjOEdq3kdxUvkeKv+MiW/B2HyOBSTMbsD1O4BlK5AKA706UE/AyeguBrLGAVxbAksWGMwGmwuRAWyYI3KaLbeX36Xfi4YbFwEnnyOkt+1RlgDSmu0AhUoBO8AxWIst2h4sq6Z1R6k3d9uuwaQMOcG2U5+An1vtiNizWlYJivFMKUoExIIvwvGM6U1gqoSOHwIDKyAYb1gdDXIBYQZ+1TA0EqP+PuN8NFG3MqFSEvqYfkGWLkRXvgAGlogFzqQBVSHshDQWjZbeB/DPF3CL+uuUKu2smk6dleYtPMAPWQDFjlwosqbbVUGJhvNJA1fDRQ18libI0xTAdszCwf0Qx1QgxrTB0ZUoQSc0gxUlnjArDx+QbPNTIwFYZEIJwGksQW2FDxIyxqwi+vgjTXYN9Z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chViews",components:{TopTips:oe,PreviewImage:Ta,PreView:Qc,TopPopup:qt},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(t,i){t&&(this.filesArr=[].concat(t),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return kv},del(){return Fc},doc(){return Mc},file(){return Uc},image(){return Lc},pdf(){return Vc},xls(){return Jc},zip(){return jc}},mounted(){this.$nextTick(()=>{let t=document.createElement("input");t.type="file",t.className="upload-input",t.style="opacity: 0;position: absolute;width:100%;height:100%;visibility: hidden;",t.multiple=!0,t.id="fileUp",t.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(t)})},methods:{handleClick(){if(typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${props.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}document.getElementById("fileUp").click()},async handleSelect(t,i){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const s=Array.from(t.target.files);document.getElementById("fileUp").value="";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(t,i){if(this.deletFn){if(this.deletFn(i)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(t,1),this.emitView()}else this.filesArr.splice(t,1),this.emitView()},viewFile(t,i){this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1))?(this.visible=!0,this.indexd=this.lists.indexOf(t.url)):t.url&&(this.visibleS=!0,this.fileUrl=t.url)},viewImage(){this.lists=[];let t=[];this.filesArr.map((i,s)=>{this.imgIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))}),t=this.filesArr.filter(i=>this.imgIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))),t.forEach((i,s)=>{this.lists.push(i.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()}}};var wv=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"attch-upload"},[t.buttonLoading?s("div",{staticClass:"attch-upload-mask"}):t._e(),s("div",{staticClass:"attch-upload-body"},[s("div",{staticClass:"upload-header"},[s("div",{staticClass:"upload-header-title"},[t._v(" \u9644\u4EF6 "),t.requires?s("span",{staticClass:"upload-header-title--re"},[t._v("*")]):t._e()]),s("div",{staticClass:"upload-header-upload"},[t.onlyShow?t._e():s("div",{staticClass:"upload-header-upload--item",attrs:{id:"inputfile"},on:{click:t.handleClick}},[s("img",{attrs:{src:t.addFile}}),t._v("\u4E0A\u4F20\u9644\u4EF6 ")])])]),s("div",{staticClass:"upload-body"},[t.filesArr.length>0?s("div",{staticClass:"upload-list"},t._l(t.filesArr,function(r,c){return s("div",{key:r.uuid,staticClass:"list-items"},[s("div",{staticClass:"list-items-icon"},[t.xlsIcon.includes(r.name.substring(r.name.lastIndexOf(".")+1))?s("img",{staticClass:"icon-img",attrs:{src:t.xls}}):t.imgIcon.includes(r.name.substring(r.name.lastIndexOf(".")+1))?s("img",{staticClass:"icon-img",attrs:{src:t.image}}):r.name.substring(r.name.lastIndexOf(".")+1)=="pdf"?s("img",{staticClass:"icon-img",attrs:{src:t.pdf}}):t.docIcon.includes(r.name.substring(r.name.lastIndexOf(".")+1))?s("img",{staticClass:"icon-img",attrs:{src:t.doc}}):t.zipIcon.includes(r.name.substring(r.name.lastIndexOf(".")+1))?s("img",{staticClass:"icon-img",attrs:{src:t.zip}}):s("img",{staticClass:"icon-img",attrs:{src:t.file}})]),s("div",{staticClass:"list-items-info"},[s("div",{staticClass:"info-name"},[t._v(" "+t._s(r.originFileName)+" ")]),s("div",{staticClass:"info-attribute"},[s("span",{staticClass:"info-attribute-size"},[t._v(t._s(r.fileSize<1024?r.fileSize:r.fileSize/1024>1024?parseFloat((r.fileSize/1024/1024).toFixed(2)):parseFloat((r.fileSize/1024).toFixed(2)))+t._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 t.viewFile(r,c)}}},[t._v(" \u9884\u89C8 ")])])]),t.onlyShow?t._e():s("div",{staticClass:"list-items-operation"},[s("div",{staticClass:"list-items-operation-img",on:{click:function(l){return t.handleDel(c,r)}}},[s("img",{attrs:{src:t.del}})])])])}),0):t._e()])]),s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),s("PreviewImage",{attrs:{images:t.lists,visible:t.visible,indexd:t.indexd},on:{"update:visible":function(r){return t.visible=r}}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:t.visibleS,titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},on:{"update:visible":function(r){return t.visibleS=r}}},[s("PreView",{attrs:{file:t.fileUrl}})],1)],1)},Nv=[];const BC="",Xc={};var Tv=It(Ev,wv,Nv,!1,xv,"063c09b3",null,null);function xv(t){for(let i in Xc)this[i]=Xc[i]}const Pe=function(){return Tv.exports}();var Dv=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-popup-content"},[t._m(0),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.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:t.commentMsg},on:{input:function(r){r.target.composing||(t.commentMsg=r.target.value)}}})])]),t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&t.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"),t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return t.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[r.id],function(d,h){return s("span",[t._v(" "+t._s(h==0?d:`,${d}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(r){return[r.type!="endEvent"&&t.isOption(r.humanPerformerName)?[s("div",{staticClass:"process-pc-label"},[t._v(" "+t._s(r.name)+" "),s("br"),t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(c){return t.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[r.id],function(c,l){return s("span",[t._v(" "+t._s(l==0?c:`,${c}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t._e()]:t._e(),s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return t.visible=r}}},[s("departPerson",t._b({attrs:{isTitle:!1,visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(r){t.visible=r},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),t.labels=="5"?s("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},Ov=[function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-pc-label"},[t._v(" \u52A0\u7B7E\u7406\u7531\uFF1A"),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const _C="",Sv={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:oe,attchViews:Pe,TopPopup:qt,departPerson:ce.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(t,i){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel,t.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":t.outGatewayUserTaskModel.length&&(t.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):t.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||t.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(t){this.visible=!0,this.partObjId=t},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let t="";this.multiNodeParticipant[this.partObjId].map((i,s)=>{s==0?t=i:t=`${t} ${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:t,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 t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(t){this.attchLists=t},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 t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).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(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},$c={};var Bv=It(Sv,Dv,Ov,!1,_v,"213efd4b",null,null);function _v(t){for(let i in $c)this[i]=$c[i]}const Qv=function(){return Bv.exports}();var Pv=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-popup-content"},[t._m(0),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.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:t.commentMsg},on:{input:function(r){r.target.composing||(t.commentMsg=r.target.value)}}})])]),t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&t.isOption(r==null||(c=r.userTaskModelDTO)===null||c===void 0||(l=c.humanPerformer)===null||l===void 0?void 0:l.name)?[s("div",[t._v(" "+t._s(r.userTaskModelDTO.name)+" "),s("br"),t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return t.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[r.id],function(d,h){return s("span",[t._v(" "+t._s(h==0?d:`,${d}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(r){return[r.type!="endEvent"&&t.isOption(r.humanPerformerName)?[s("div",{staticClass:"process-pc-label"},[t._v(" "+t._s(r.name)+" "),s("br"),t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(c){return t.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[r.id],function(c,l){return s("span",[t._v(" "+t._s(l==0?c:`,${c}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t._e()]:t._e(),s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return t.visible=r}}},[s("departPerson",t._b({attrs:{isTitle:!1,visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(r){t.visible=r},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),t.labels=="1"?s("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},Fv=[function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-pc-label"},[t._v(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const QC="",Mv={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:oe,attchViews:Pe,TopPopup:qt,departPerson:ce.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(t,i){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel,t.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":t.outGatewayUserTaskModel.length&&(t.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):t.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||t.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(t){this.visible=!0,this.partObjId=t},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let t="";this.multiNodeParticipant[this.partObjId].map((i,s)=>{s==0?t=i:t=`${t} ${i}`}),this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/delegate",{delegateReason:this.commentMsg,taskInstId:this.param.taskInstId,targetUID:t}).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 t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(t){this.attchLists=t},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 t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).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(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},tl={};var Uv=It(Mv,Pv,Fv,!1,Lv,"5a15fa6f",null,null);function Lv(t){for(let i in tl)this[i]=tl[i]}const Vv=function(){return Uv.exports}(),Jv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEF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4i74BUYcEOOKVXciyf0BUIQGOQiW+zM0YgKhBAhzLqrqg9TiAqEACHAXLe7mrsQBZOyTAsbyiC3sYD5C1QgIchUu7jLsxAVkbJMBRppoTvIwLyFogAY6Esi7ncmxARocEOMpVcpKn8QEZFRLgSCrpsm7XAchokABH2SpO9LYeQEaBBDgSy7m863UB0jskwFG+gpM9rg+QXiEBjuRSznG/TkB6gwQ4cqq3gtf1AtILJMBRoYzztlg3IK0hAY68yq3kef2AtIIEOCqVcO42GoDUhgQ4cqu2oncdQGpBAhwVyzd/Ky1AsiEBjvyKrbyDHiBZkABH5dKts50mIKUhAY461dpgF11ASkECHA3Ktt6W2oAshQQ46lVqo50AJAoJcDQq2brbAshB7/3fJ5n7R3K+2MPmrm6q2K2FAgByrvr97p2ZvTez/V+WOv082tbunv7yFB8JBQDkUpr3HeW1mf1gZt9sa4+AIcHESZAAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6ikAIHo5J2KHAgDiEIulegoAiF7OidihAIA4xGKpngIAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC";var jv=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"top-msg"},t._l(t.listData,function(r){return s("div",[t._v(" "+t._s(r.opinionName)+" ")])}),0)},Gv=[];const Rv={name:"msgList",props:{visible:{type:Boolean,default:!1},request:{default:null},useInfo:{type:Object,default:()=>{}}},data(){return{listData:[]}},watch:{visible:{handler(t,i){t&&this.request.get("/auth/user/opinion/my").then(s=>{s.code===200&&(this.listData=s.data)})}}}},el={};var qv=It(Rv,jv,Gv,!1,Kv,null,null,null);function Kv(t){for(let i in el)this[i]=el[i]}const Hv=function(){return qv.exports}(),PC="";var Yv=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-popup-content"},[t.param.isDocument?s("div",{staticClass:"process-pc-label"},[t._v(" \u5FEB\u6377\u56DE\u590D ")]):t._e(),t.param.isDocument?s("div",{staticClass:"process-pc-value",staticStyle:{display:"flex"}},[s("div",{staticClass:"process-tag",on:{click:function(){return t.commentMsg="\u540C\u610F"}}},[t._v(" \u540C\u610F ")]),s("div",{staticClass:"process-tag",on:{click:function(){return t.commentMsg="\u5982\u62DF"}}},[t._v(" \u5982\u62DF ")]),s("div",{staticClass:"process-tag",on:{click:function(){return t.commentMsg="\u5DF2\u9605"}}},[t._v(" \u5DF2\u9605 ")])]):t._e(),t._m(0),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.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:t.commentMsg},on:{input:function(r){r.target.composing||(t.commentMsg=r.target.value)}}})])]),t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&t.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",[t._v(" "+t._s(r.userTaskModelDTO.name)+" "),s("br"),t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return t.handleOpenPopup(r)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},[s("span",[t._v(" "+t._s(t.partNode[r.id].join(","))+" ")])]):r.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"?s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])]):r.routeTxt&&r.routeTxt.userNames?s("div",{staticClass:"process-pc-value--data"},[t._v(" "+t._s(r.routeTxt.userNames)+" ")]):t._e()])])]:r.type!="endEvent"?[s("div",{staticClass:"process-pc-label"},[t._v(" "+t._s(r.userTaskModelDTO.name)+" "),t.personMakeList[r.id]?s("span",[t._v("\uFF1A"+t._s(t.personMakeList[r.id]))]):t._e()])]:t._e()]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(r){var c,l;return[t.outGatewayUserTaskModel.childNode&&t.outGatewayUserTaskModel.childNode.length?[r.type!="endEvent"&&t.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",[t._v(" "+t._s(r.userTaskModelDTO.name)+" "),s("br"),t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return t.handleOpenPopup(r)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},[s("span",[t._v(" "+t._s(t.partNode[r.id].join(","))+" ")])]):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:r.type!="endEvent"?[s("div",{staticClass:"process-pc-label"},[t._v(" "+t._s(r.userTaskModelDTO.name)+" ")])]:t._e()]:[s("div",{staticClass:"process-pc-label"},[t._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-radio"},t._l(r.childNode,function(d){return s("div",{staticClass:"process-radio-item",class:d.id==t.radioCheck?"process-radio-item--check":"",on:{click:function(h){return t.handleNode(d)}}},[s("span",[d.id==t.radioCheck?s("img",{staticClass:"process-radio-item-check",attrs:{src:t.check}}):t._e()]),t._v(" "+t._s(d.nodeName)+" ")])}),0)])]]}),t.radioCheck?[t.radioCheckChild&&t.radioCheckChild.length?t._l(t.radioCheckChild,function(r){return s("div",[s("div",{staticClass:"process-pc-label",on:{click:function(c){return t.handleSaveNode(r.id)}}},[s("div",{staticClass:"process-checkbox"},[t._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279:"),s("br"),s("div",{staticClass:"process-checkbox-item"},[t._v(" "+t._s(r.nodeName)+" "),s("span",[t.radioCheckNameList.includes(r.id)?s("img",{staticClass:"process-checkbox-item-check",attrs:{src:t.checkS}}):t._e()])])])]),s("div",{staticClass:"process-pc-value",on:{click:function(c){return t.handleOpenPopup(r)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},[s("span",[t._v(" "+t._s(t.partNode[r.id].join(","))+" ")])]):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])])}):[s("div",{staticClass:"process-pc-label"},[t._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 ")]),s("div",{staticClass:"process-pc-value"},[t._v(" "+t._s(t.radioCheckName)+" ")])]]:t._e()]:t._e()]:t._e(),s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return t.visible=r}}},[s("departPerson",t._b({attrs:{isTitle:!1,visible:t.visible},on:{"update:visible":function(r){t.visible=r},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),s("TopPopup",{ref:"TopPopup",attrs:{visible:t.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(r){return t.visibleListMsg=r}}},[s("MsgList",{attrs:{visible:t.visibleListMsg,request:t.param.request,useInfo:t.param.userInfo}})],1),s("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${t.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:t.handleTipsCancel,comfig:t.handleTipsComfig,visible:t.visibleMsgComfig},on:{"update:visible":function(r){return t.visibleMsgComfig=r}}}),t.labels=="1"?s("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},Wv=[function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-pc-label"},[t._v(" \u5BA1\u6279\u610F\u89C1 "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const FC="",zv={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:oe,attchViews:Pe,TopPopup:qt,departPerson:ce.exports.departPerson,MsgList:Hv},computed:{check(){return Kc},checkS(){return Jv}},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],partList:[],gateVars:{},personMake:[],personMakeList:{},visibleListMsg:!1,visibleMsgComfig:!1,msgCheck:"",msgCheckList:["\u540C\u610F","\u5982\u62DF","\u5DF2\u9605"]}},watch:{param:{handler(t,i){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel,console.log("param:::",t),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)}),s.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"&&this.personMake.push(s.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(s=>{s.code==200&&(this.personMakeList=s.data)})):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:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(t=>{t.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(t.msg,!0,"error"),this.visibleMsgComfig=!1}).catch(t=>{this.handleTips(t.msg,!0,"error"),this.visibleMsgComfig=!1})},handleSaveNode(t){this.radioCheckNameList.includes(t)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(t),1):this.radioCheckNameList.push(t)},handleNode(t){this.radioCheck=t.id,this.radioCheckName=t.nodeName,this.radioCheckChild=t.childNode&&t.childNode.length?t.childNode:[t],console.log("\u5F53\u524D\u9009\u4E2D",t),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[t.incomingConditionItemList[0].itemName]=t.incomingConditionItemList[0].compareValue):this.gateVars[t.incomingConditionItemList[0].itemName]=t.incomingConditionItemList[0].compareValue)},handleOpenPopup(t){if(this.visible=!0,this.partObjId=t.id,this.nextNodeData&&this.nextNodeData.length&&(t={...t,...t.userTaskModelDTO}),console.log("partNode",this.partObjId,t),t.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let i,s=[];t.routeTxt.companyIds.map((r,c)=>{i=r.name}),this.multiNodeParticipant[t.id]&&this.multiNodeParticipant[t.id].length&&this.multiNodeParticipant[t.id].map((r,c)=>{s.push({type:3,uid:r})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel"||t.loopCardinality>1,maxMultiple:(t.loopCardinality,t.loopCardinality),subjectName:i,checkedArray:s}}else if(t.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let i,s=[];t.routeTxt.departmentIds.map((r,c)=>{i=r.rangeId}),this.multiNodeParticipant[t.id]&&this.multiNodeParticipant[t.id].length&&this.multiNodeParticipant[t.id].map((r,c)=>{s.push({type:3,uid:r,deptId:i})}),console.log("multiNodeParticipant",this.multiNodeParticipant[t.id],s),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel"||t.loopCardinality>1,maxMultiple:(t.loopCardinality,t.loopCardinality),deptCode:i,checkedArray:s}}else{let i=[];this.multiNodeParticipant[t.id]&&this.multiNodeParticipant[t.id].length&&this.multiNodeParticipant[t.id].map((s,r)=>{i.push({type:3,uid:s})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel"||t.loopCardinality>1,maxMultiple:(t.loopCardinality,t.loopCardinality),checkedArray:i},console.log("\u4EFB\u610F\u9009\u4EBA\u8282\u70B9\u53C2\u6570",this.entity)}},handleOpenMsg(){this.visibleListMsg=!0},async confirm(){if(!this.commentMsg){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}let t={};if(this.radioCheckNameList&&this.radioCheckNameList.length){let i=0;if(this.radioCheckNameList.map((s,r)=>{(!this.multiNodeParticipant[s]||!this.multiNodeParticipant[s].length)&&(i+=1),t[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}t=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:t}).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 t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(t){this.attchLists=t},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 t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).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(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},sl={};var Zv=It(zv,Yv,Wv,!1,Xv,"68c0803e",null,null);function Xv(t){for(let i in sl)this[i]=sl[i]}const $v=function(){return Zv.exports}();var tm=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-popup-content"},[t._m(0),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.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:t.commentMsg},on:{input:function(r){r.target.composing||(t.commentMsg=r.target.value)}}})])]),t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&t.isOption(r==null||(c=r.userTaskModelDTO)===null||c===void 0||(l=c.humanPerformer)===null||l===void 0?void 0:l.name)?[s("div",[t._v(" "+t._s(r.userTaskModelDTO.name)+" "),s("br"),t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return t.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[r.id],function(d,h){return s("span",[t._v(" "+t._s(h==0?d:`,${d}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(r){return[r.type!="endEvent"&&t.isOption(r.humanPerformerName)?[s("div",{staticStyle:{"font-size":"15px"}},[t._v(" "+t._s(r.name)+" ")]),s("div",{staticClass:"process-pc-label"},[t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:t.handleOpenPopup}},[s("div",{staticClass:"process-pc-value--people"},[t._v(" "+t._s(234)+" ")])])]:t._e()]})]:t._e()]:t._e(),s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return t.visible=r}}},[s("departPerson",t._b({attrs:{isTitle:!1,visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(r){t.visible=r},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),t.labels=="\u62D2\u7EDD"?s("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},em=[function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-pc-label"},[t._v(" \u62D2\u7EDD\u7406\u7531\uFF1A "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const MC="",sm={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:oe,attchViews:Pe,TopPopup:qt,departPerson:ce.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(t){this.visible=!0,this.partObjId=t},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(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(t){this.attchLists=t},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 t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).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(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},il={};var im=It(sm,tm,em,!1,nm,"1a2514b0",null,null);function nm(t){for(let i in il)this[i]=il[i]}const am=function(){return im.exports}();var rm=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-popup-content"},[t._m(0),s("div",{staticClass:"process-pc-value",staticStyle:{display:"inline-block",width:"50%"}},[s("TopDownSelect",{attrs:{option:t.option,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},on:{change:t.handleChange}})],1),t._m(1),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.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:t.commentMsg},on:{input:function(r){r.target.composing||(t.commentMsg=r.target.value)}}})])]),s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),t.labels=="\u9000\u56DE"?s("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],1)},om=[function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-pc-label",staticStyle:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[t._v(" \u9000\u56DE\u8282\u70B9\uFF1A "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])])},function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-pc-label"},[t._v(" \u9000\u56DE\u7406\u7531\uFF1A "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const UC="",cm={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:oe,attchViews:Pe,TopPopup:qt,departPerson:ce.exports.departPerson,TopDownSelect:Wc},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(t,i){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{getReturnNode(){this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(t=>{t.code===200&&(this.option=t.data)})},handleChange(t){this.nodeId=t.id},handleOpenPopup(t){this.visible=!0,this.partObjId=t},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(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(t){this.attchLists=t},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 t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).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(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},nl={};var lm=It(cm,rm,om,!1,um,"78183b02",null,null);function um(t){for(let i in nl)this[i]=nl[i]}const pm=function(){return lm.exports}();var dm=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-popup-content"},[t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&t.isOption(r==null||(c=r.userTaskModelDTO)===null||c===void 0||(l=c.humanPerformer)===null||l===void 0?void 0:l.name)?[s("div",[t._v(" "+t._s(r.userTaskModelDTO.name)+" "),s("br"),t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return t.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[r.id],function(d,h){return s("span",[t._v(" "+t._s(h==0?d:`,${d}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(r){return[r.type!="endEvent"?[s("div",[t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(c){return t.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[r.id],function(c,l){return s("span",[t._v(" "+t._s(l==0?c:`,${c}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t._e()]:t._e(),s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return t.visible=r}}},[s("departPerson",t._b({attrs:{isTitle:!1,visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(r){t.visible=r},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),t.labels=="2"?s("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},fm=[];const LC="",hm={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:oe,attchViews:Pe,TopPopup:qt,departPerson:ce.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(t,i){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel,t.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":t.outGatewayUserTaskModel.length&&(t.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):t.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||t.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(t){this.visible=!0,this.partObjId=t},async confirm(){this.handleTips("",!0,"loading");let t="";this.multiNodeParticipant[this.partObjId].map((i,s)=>{s==0?t=i:t=`${t} ${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:t}).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 t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(t){this.attchLists=t},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 t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).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(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},al={};var vm=It(hm,dm,fm,!1,mm,"2e9d3849",null,null);function mm(t){for(let i in al)this[i]=al[i]}const gm=function(){return vm.exports}();var Am=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-popup-content"},[[s("div",{staticClass:"process-pc-label"},[s("div",[t._v(" "+t._s(t.getFirstProcessNode.name)+" "),s("br"),t._m(0)])]),s("div",{staticClass:"process-pc-value",on:{click:function(r){return t.handleOpenPopup(t.getFirstProcessNode.id)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[t.getFirstProcessNode.id]&&t.partNode[t.getFirstProcessNode.id].length?s("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[t.getFirstProcessNode.id],function(r,c){return s("span",[t._v(" "+t._s(c==0?r:`,${r}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])],s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),s("TopPopup",{attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return t.visible=r}}},[s("departPerson",t._b({attrs:{isTitle:!1,visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(r){t.visible=r},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1)],2)},ym=[function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",[t._v("\u5BA1\u6279\u4EBA"),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const VC="",Cm={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:oe,attchViews:Pe,TopPopup:qt,departPerson:ce.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(t,i){console.log("handler::::",t),this.getFirstProcessNode=t.getFirstProcessNode,t.getFirstProcessNode&&this.getFirstProcessNode&&(t.getFirstProcessNode.type=="userTask"||t.getFirstProcessNode.type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):t.getFirstProcessNode.type=="ExclusiveGatewayModel"||t.getFirstProcessNode.type=="InclusiveGatewayModel")},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param)},methods:{handleOpenPopup(t){this.visible=!0,this.partObjId=t},async confirm(){let t={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",t).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(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)}),console.log("callback_OK",t,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},isOption(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},rl={};var bm=It(Cm,Am,ym,!1,Im,"fcec156a",null,null);function Im(t){for(let i in rl)this[i]=rl[i]}const km=function(){return bm.exports}(),Em={name:"TopProcess",components:{TopTab:iv,TopPopup:qt,TopTips:oe,TopSumbitPopup:Zc},props:{tapList:{require:!1,default:()=>[],type:Array},selfTapList:{require:!1,default:()=>[],type:Array},processDefId:{require:!0,default:"",type:String},processInstId:{require:!0,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!1},restartData:{type:Object,default:{businessType:"",showType:"",processName:""}},selfList:{type:Array,default:()=>[]},selfBtn:{type:Array,default:()=>[]},uid:{type:String,default:""}},data(){return{processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskId:"",taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,ProcessInsObj:{},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[],user:{},canCheck:!0,approveNode:{},restartDataS:{},selfBtnList:[],topNum:144,bottomNum:70,userIdData:""}},watch:{processInstId:{async handler(t,i){this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,t&&(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(t,i){this.restartDataS=t},immediate:!0,deep:!0},selfBtn:{handler(t,i){t&&t.length&&(this.selfBtnList=t)},immediate:!0,deep:!0},uid:{handler(t,i){t&&(this.userIdData=t)},immediate:!0,deep:!0}},mounted(){this.$nextTick(()=>{let t=document.getElementById("process-header"),i=document.getElementById("process-footer");this.bottomNum=i?i.scrollHeight+10:70,this.topNum=t?t.scrollHeight+10:144,console.log(this.topNum,"diss::",this.bottomNum)})},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){var s,r;let t=[],i=this.taskNode&&this.taskNode[0]&&this.taskNode[0].taskState!=4;if(this.formData.currentState==="\u5DF2\u64A4\u9500"||this.formData.currentState==="\u5DF2\u9A73\u56DE"||this.processStatus.status==="\u5DF2\u64A4\u9500"||this.processStatus.status==="\u5DF2\u9A73\u56DE"||this.processStatus.bizStatusName==="\u5DF2\u64A4\u9500"||this.processStatus.bizStatusName==="\u5DF2\u9A73\u56DE"){let c={};c.name="\u91CD\u65B0\u63D0\u4EA4",c.btnProps={type:"default"},t.push(c),c.click=this.handleTest}if(i&&!this.isView&&this.taskObj.completeButtonLabel){let c={};c.name=this.taskObj.completeButtonLabel,c.btnProps={type:"primary"},t.push(c),c.click=l=>{this.handleActionClose(),this.showOperation($v,l,this.request,this.taskObj.completeButtonAnnex)}}if(i&&!this.isView&&this.processStatus.currUserName){let c={};c.name="\u62D2\u7EDD",c.btnProps={type:"danger"},t.push(c),c.click=l=>{this.handleActionClose(),this.showOperation(am,l,this.request,this.taskObj.otherButtonAnnexList)}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(c=>{let l={};l.name=c.name,l.btnProps={type:c.type},t.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"},t.push(l),l.click=d=>{this.handleActionClose(),this.showOperation(pm,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(gm,l,this.request,this.taskObj.ccTaskButtonAnnex)},t.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(Vv,l,this.request,this.taskObj.delegateTaskButtonAnnex)},t.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(Qv,l,this.request,this.taskObj.counterSignButtonAnnex)},t.push(c)}if(this.processIntId&&this.processStatus.createUid==this.userIdData&&((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"},t.push(c)}if(this.processIntId&&this.processStatus.createUid==this.userIdData&&((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"},t.push(c)}return t},processCardHeight(){let t=this.topNum+this.bottomNum-10;return!this.isAdditional&&(!(this.processStatus.status=="\u5DF2\u64A4\u9500"||this.processStatus.status=="\u5DF2\u9A73\u56DE"||this.processStatus.bizStatusName=="\u5DF2\u64A4\u9500"||this.processStatus.bizStatusName=="\u5DF2\u9A73\u56DE")&&this.ProcessInsObj.end||this.processStatus.createTopUserId!=this.user.userId&&this.operBtn.length<3)&&(t-=this.bottomNum),`calc(100vh - ${t}px)`},processBtn(){if(!this.isAdditional&&(!(this.processStatus.status=="\u5DF2\u64A4\u9500"||this.processStatus.status=="\u5DF2\u9A73\u56DE"||this.processStatus.bizStatusName=="\u5DF2\u64A4\u9500"||this.processStatus.bizStatusName=="\u5DF2\u9A73\u56DE")&&this.ProcessInsObj.end||this.processStatus.createTopUserId!=this.user.userId&&this.operBtn.length<3))return`-${this.bottomNum}px`}},methods:{handleTestS(){this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")},handleTest(){this.visibleSong=!0},async getUserInfo(){let t=await this.request.get("/app/user/info");t.code===200&&(this.user=t.data||{})},async handleGetSimulation(t){this.handleTips("",!0,"loading");let i={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:t,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(t,i){let s=await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:t,processNodeId:i}});if(s.code==200){if(s.data&&s.data.length){for(let r=0;r<s.data.length;r++){let c=s.data[r];if(c.type!="UserTaskModel"){let l=await this.getOutgoingProcessNode(t,c.id);l&&l.length&&(await l.map((d,h)=>{d.nodeName=d.incomingConditionItemList[0].compareValue}),c.childNode=l)}}return this.handleTips("",!1,"success"),s.data}return this.handleTips("",!1,"success"),[]}return[]},handleGet(t){this.taskNode=[].concat(t),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(t=>{t.code==200&&(this.processStatus=t.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(t=>{t.code==200&&(this.taskObj=t.data)})},async showOperation(t,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=t,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.userInfo=this.user,this.operationParam.nextNodeData=this.nextNodeData,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId,this.operationParam.endFunction=this.endFunction,this.operationParam.isDocument=this.isDocument,this.operationParam.canCheck=this.canCheck,this.taskObj.commentModels.some(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(t=>{t.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),this.endFunction()):this.handleTips(t.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(t=>{t.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),this.endFunction()):(this.textTips=t.msg,this.typeTips="error",this.handleTips(t.msg,!0,"error"))}))},handleTipsCancel(){},getColor(t){return t=="\u5BA1\u6838\u4E2D"?"#FFA52D":t=="\u5DF2\u9A73\u56DE"?"#F14B4C":t=="\u5DF2\u64A4\u9500"?"#CECECE":t=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(t){this.titleText=t,this.actionShow=!1},getBtnStyle(t){switch(t){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(t=>{this.processDefList=t.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(km,"\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(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()}}};var wm=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",[s("div",{staticClass:"process-warp"},[t.formData.currentState||t.processStatus.bizStatusName||t.processStatus.status?s("div",{staticClass:"process-main",attrs:{id:"process-header"}},[s("div",{staticClass:"process-ml-item border"},[s("div",{staticClass:"process-mli-name"},[t._v("\u6D41\u7A0B\u72B6\u6001")]),s("div",{staticClass:"process-mli-value"},[t.formData.currentState||t.processStatus.bizStatusName||t.processStatus.status?s("div",{staticClass:"process-mliv-dd",style:{background:t.getColor(t.formData.currentState||t.processStatus.bizStatusName||t.processStatus.status)}},[t._v(" "+t._s(t.formData.currentState||t.processStatus.bizStatusName||t.processStatus.status)+" ")]):t._e()])]),s("div",{staticClass:"process-ml-item border"},[s("div",{staticClass:"process-mli-name"},[t._v("\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4")]),s("div",{staticClass:"process-mli-value"},[s("span",[t._v(t._s(t.processStatus.createTime))])])]),t.processStatus.allUserNames&&t.processStatus.allUserNames.length?s("div",{staticClass:"process-ml-item"},[s("div",{staticClass:"process-mli-name"},[t._v("\u5BA1\u6279\u8282\u70B9")]),s("div",{staticClass:"process-mli-value"},[s("span",{staticClass:"process-mliv-jd"},[t._v(t._s(`${t.processStatus.taskState==4?t.processStatus.currUserName:t.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`))])])]):t._e()]):t._e(),s("div",{staticClass:"process-card",style:{height:t.processCardHeight}},[s("TopTab",{attrs:{tapList:t.tapList,selfTapList:t.selfTapList,processIntId:t.processIntId,track:t.trackUrl,taskComment:t.taskCommentList,trackList:t.trackList}},[t.selfTapList&&t.selfTapList.length?t._l(t.selfTapList,function(r,c){return s("div",{key:c,attrs:{slot:r.slot},slot:r.slot},[t._t(r.slot)],2)}):[s("div",{staticStyle:{},attrs:{slot:"default"},slot:"default"},[t._t("default")],2),t._l(t.tapList,function(r,c){return s("div",{key:c,staticStyle:{},attrs:{slot:r.slot},slot:r.slot},[t._t(r.slot)],2)})]],2)],1),s("div",{staticClass:"process-btn",style:{bottom:t.processBtn},attrs:{id:"process-footer"}},[t.isAdditional?s("div",{staticClass:"footBtnRow"},[t._t("btn",null,{data:t.processStatus})],2):[t.isDocument&&(t.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||t.formData.currentState=="\u76D6\u7AE0")?[s("div",{staticClass:"top-button",style:t.getBtnStyle("default")},[t._v(" \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ")])]:[t.formData.currentState!="\u5DF2\u5B8C\u6210"||t.processStatus.status!="\u5DF2\u5B8C\u6210"||t.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?[t._l(t.operBtn,function(r,c){return[c<3?s("div",{key:r.name,staticClass:"top-button",style:t.getBtnStyle(r.btnProps.type.toString()),on:{click:function(l){return r.click(r.name)}}},[t._v(" "+t._s(r.name)+" ")]):t._e()]})]:t._e(),t.operBtn.length>3&&t.actionBtn&&t.actionBtn.length?s("div",{staticClass:"elips",on:{click:t.handleActionOpen}},[s("div",{staticClass:"circle"}),s("div",{staticClass:"circle"}),s("div",{staticClass:"circle"})]):t._e()]]],2)]),s("TopPopup",{ref:"TopPopup1",attrs:{cancel:t.handleCancel,comfig:t.handleComfig,titleText:t.titleText}},[s(t.operationCom,{ref:"operationRef",tag:"component",attrs:{param:t.operationParam},on:{handleClosePopup1:t.handleClosePopup1}})],1),s("TopPopup",{ref:"TopPopup2",attrs:{titleText:t.titleText,isTips:!0,context:t.popupContext,cancel:t.handleTipsCancel,comfig:t.handleTipsComfig}}),s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),t.actionBtn&&t.actionBtn.length||t.taskNodeList&&t.taskNodeList.length?s("div",{staticClass:"top-elips",style:t.actionShow?"transform: translateY(0)":"transform: translateY(100%)"},[t.taskNodeShow?t._l(t.taskNodeList,function(r){return s("div",{key:r.taskId,staticClass:"top-elips-items",on:{click:function(c){return t.handleGet(r)}}},[t._v(" "+t._s(r.name)+" ")])}):t._l(t.actionBtn,function(r){return s("div",{key:r.name,staticClass:"top-elips-items",on:{click:function(c){return r.click(r.name)}}},[t._v(" "+t._s(r.name)+" ")])}),s("div",{staticClass:"top-elips-items top-elips-items--cancel",on:{click:t.handleActionClose}},[t._v(" \u53D6\u6D88 ")])],2):t._e(),s("div",{staticClass:"top-elips-mask",style:t.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;",on:{click:t.handleActionClose}}),s("TopSumbitPopup",t._b({ref:"actionPop",attrs:{visible:t.visibleSong,request:t.request,appId:t.processStatus.appId,id:t.formData.businessKey,resubmit:!0,selfList:t.selfList},on:{"update:visible":function(r){t.visibleSong=r},successFn:t.endFunction}},"TopSumbitPopup",t.restartDataS,!1))],1)},Nm=[];const JC="",ol={};var Tm=It(Em,wm,Nm,!1,xm,"e0a81fbc",null,null);function xm(t){for(let i in ol)this[i]=ol[i]}const Dm=function(){return Tm.exports}();fe.TopProcess=Dm,fe.TopSumbitPopup=Zc,fe.ViewAttchList=Rc,fe.attchViews=Pe,Object.defineProperties(fe,{__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=mC({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),Tr(this.mainContainer),gC(u,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const AC={components:{checked:sC,dcSwitch:cC,dcLoading:hC},name:"departPerson",props:{visible:{type:Boolean,default:!1},isTitle:{type:Boolean,default:!0},source:{type:String,default:"0"},type:{type:String,default:"0"},request:{type:Function,default:()=>({get:()=>{},post:()=>{}})},businessId:{type:String,default:""},orgType:{type:Array,default:()=>[0]},codeType:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},deptCode:{type:String,default:""},itemCode:{type:String,default:""},subjectName:{type:String,default:""},checkedArray:{type:Array,default:()=>[]},maxMultiple:{type:Number,default:0},businessCallack:{type:Function,default:()=>new Promise((e,n)=>{e(!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(e,n){if(!e)return!1;U(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})}},isSon:{deep:!0,handler:function(e,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?e&&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(e,n){U(this.businessId)&&this.getCards()}}},computed:{queryImg(){return vC},entityJson(){const e=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=e.find(S=>S.uniqueId===u),f=!U(p),v=f?!1:e.findIndex(S=>S.id===n.id&&n.subjectId===S.subjectId)>-1,m=f?n.type==1||p.orgRecordsType==4:!1,C=U(e)?0:m?n.counts:e.filter(S=>S.type!=1&&S.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:Wy(n.phone),uid:n.uid,iconName:Nr(n.name,2),checked:f,ancestors:a,ancestorNames:o,deptName:zy(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(e=>e.type==1||e.type==5)},deptJson(){return this.entityJson.filter(e=>e.type==2)},userJson(){return this.entityJson.filter(e=>e.type==3||e.type==6)},checkedNumber(){const e=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 e>0&&u.push(e+"\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 e=this.breadcrumb.filter((n,a)=>n.value!=="-1");return U(e)?"":e[0].value},breadcrumb_level(){const e=this.breadcrumb.filter((n,a)=>n.value!=="-1");return{ancestors:e.map(n=>n.value).join(","),ancestorNames:e.map(n=>n.name).join("/")}},isDept(){return this.jsonData.findIndex(e=>e.type==2)>-1&&this.isShowDept},isShowSubject(){return this.codeType.findIndex(e=>e==1||e==5)>-1},isShowDept(){return this.codeType.findIndex(e=>e==2)>-1},isNotLevel(){return this.isShowSubject&&this.codeType.length===1},isShowQuery(){return this.codeType.findIndex(e=>e==3||e==6)>-1},getHight(){let e=194;return this.isShowQuery&&(e+=55),this.isDept&&(e+=45),this.orgType.length>1&&(e+=45),`calc(100% - ${e}px)`},getSearchHight(){let e=136;return this.orgType.length>1&&(e+=45),`calc(100% - ${e}px)`},getTitle(){return this.codeType.length==1&&this.codeType[0]==2?"\u9009\u62E9\u90E8\u95E8":this.codeType.length==1&&this.codeType[0]==3?"\u9009\u62E9\u4EBA\u5458":this.codeType.length==1&&this.codeType[0]==5?"\u9009\u62E9\u7FA4\u7EC4":"\u9009\u62E9\u7EC4\u7EC7"},isNoDelete(){return U(this.checkedArray)?[]:this.checkedArray.filter(e=>e.isDeleteNo)},isOrgType(){return!!(U(this.orgType)||this.orgType.findIndex(e=>e===0)>-1)},isOrgGroup(){return this.orgType.findIndex(e=>e===1)>-1},showType(){if(this.activeOrgType===0)return this.codeType.findIndex(e=>e==3)>-1?3:this.codeType.findIndex(e=>e==2)>-1?2:this.codeType.findIndex(e=>e==1)>-1?1:-1;if(this.activeOrgType===1)return this.codeType.findIndex(e=>e==6)>-1?6:this.codeType.findIndex(e=>e==5)>-1?5:-1}},mounted(){this.isTitle&&(document.title=this.getTitle),U(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})},methods:{handleSubmit(){if(this.isLoading)return!1;const e=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",e);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(e).then(a=>{a&&this.request.post("/auth/component/org/save",n).then(o=>{o.code===200&&this.$emit("callback",e)}).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(e){this.activeOrgType=e,this.keyword="",this.handleQuery(),this.defaultBreadcrumb()},handleAllCheckbox(e){(this.isShowDept?this.entityJson:this.entityJson.filter(n=>n.type!=2)).forEach(n=>this.handleCheckbox(e,n))},handleCheckbox(e,n){if(n.isDisabled||n.isNoDelete||(n.type==1||n.type==5)&&!this.isShowSubject||n.type==2&&!this.isShowDept)return!1;if(e.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)?(e.currentTarget.checked=!1,!1):this.maxMultiple!==0&&this.checkedJson.length>=this.maxMultiple&&this.multiple?(e.currentTarget.checked=!1,new xr().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(e,n){if(e.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:e.value,this.itemId="",this.subjectId=e.value==="-1"?"":this.breadcrumb_subjectId;break;case 1:this.itemId=U(this.itemCode)?e.value==="-1"?"":e.value:itemCode,this.deptId=0,this.subjectId="";break}this.keyword="",this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((a,o)=>o<n+1)})},handleLevel(e){if(e.isDisabled||e.isLevel)return!1;switch(e.type){case"1":this.deptId=0,this.subjectId=e.id,this.itemId="",this.getSearch(()=>{this.breadcrumb.push({name:e.name,value:e.id})});break;case"2":this.deptId=e.id,this.subjectId=this.breadcrumb_subjectId,this.itemId="",this.getSearch(()=>{this.breadcrumb.push({name:e.name,value:e.id})});break;case"5":this.deptId=0,this.subjectId="",this.itemId=e.id,this.getSearch(()=>{this.breadcrumb.push({name:e.name,value:e.id})});break}},getBoolChecked(e){if(e.type!=3)return!1;const n=e.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 xr().message({content:`\u5DF2\u9009\u7684\u7EC4\u7EC7\u3010${a.name}\u3011\u5B58\u5728${e.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),o=!0),a.type==4&&(new xr().message({content:`\u5DF2\u9009\u7684\u90E8\u95E8\u3010${a.name}\u3011\u5B58\u5728${e.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 e=this.activeOrgType===0?"\u7EC4\u7EC7":this.activeOrgType===1?"\u7FA4\u7EC4":"";this.breadcrumb=U(this.deptCode)&&U(this.itemCode)?[{name:e,value:"-1"}]:[]},defaultGet(){this.defaultData(),U(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})},getIsSon(){const e=this.entityJson.filter(a=>a.type==2),n=this.checkedJson.filter(a=>a.type==2);this.isSon=n.findIndex(a=>e.findIndex(o=>o.id===a.id&&a.orgRecordsType==4)>-1)>-1},getCheckedAll(){const e=this.entityJson.findIndex(n=>this.checkedJson.findIndex(a=>a.type===n.type&&a.id===n.id&&n.subjectId===a.subjectId)===-1);this.checkedAll=e===-1},getSearch(e=()=>{}){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=>{e(),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(e=()=>{}){if(U(this.businessId))return e(),!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:Nr(o.name,2),sex:o.sex,uid:U(o.uid)?"":o.uid,avatar:U(o.avatar)?"":o.avatar,isNoDelete:v}}),e()})},getCards(e=()=>{}){if(U(this.checkedArray))return e(),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:Nr(o.name,2),sex:o.sex,uid:U(o.uid)?"":o.uid,avatar:U(o.avatar)?"":o.avatar,isNoDelete:m}}),e()})},getByName(e=()=>{}){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,e())})}}};var yC=function(){var e=this,n=e.$createElement,a=e._self._c||n;return a("main",{staticClass:"departPerson-main"},[a("div",{staticClass:"deper-top"},[e.orgType.length>1?a("div",{staticClass:"deper-nav"},[e.isOrgType?a("div",{staticClass:"deper-n-item",class:{active:e.activeOrgType===0},on:{click:function(o){return e.handleOrgType(0)}}},[e._v("\u7EC4\u7EC7")]):e._e(),e.isOrgGroup?a("div",{staticClass:"deper-n-item",class:{active:e.activeOrgType===1},on:{click:function(o){return e.handleOrgType(1)}}},[e._v("\u7FA4\u7EC4")]):e._e()]):e._e(),a("div",{directives:[{name:"show",rawName:"v-show",value:e.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:e.keyword,expression:"keyword"}],staticClass:"input",attrs:{type:"search",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u3001\u624B\u673A\u53F7\u7801"},domProps:{value:e.keyword},on:{keyup:function(o){return!o.type.indexOf("key")&&e._k(o.keyCode,"enter",13,o.key,"Enter")?null:e.handleQuery.apply(null,arguments)},input:function(o){o.target.composing||(e.keyword=o.target.value)}}}),e.keyword.length>0?a("i",{staticClass:"icon-error-fill iconfont close",on:{click:e.handleEmpty}}):e._e()])]),e.isQuery?a("div",{staticClass:"deper-breadcrumb"},e._l(e.breadcrumb,function(o,u){return a("div",{key:o.value,staticClass:"deper-b-item",class:{disable:o.disable},on:{click:function(p){return e.handleBreadcrumb(o,u)}}},[a("span",[e._v(e._s(o.name))]),a("i",{staticClass:"icon-jiantouyou iconfont"})])}),0):e._e(),e.isQuery?a("div",{staticClass:"deper-all"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.checkedAll,expression:"checkedAll"}],staticClass:"deper-checkbox",attrs:{type:"checkbox",name:"deper-all",id:"deper-all"},domProps:{checked:Array.isArray(e.checkedAll)?e._i(e.checkedAll,null)>-1:e.checkedAll},on:{change:[function(o){var u=e.checkedAll,p=o.target,f=!!p.checked;if(Array.isArray(u)){var v=null,m=e._i(u,v);p.checked?m<0&&(e.checkedAll=u.concat([v])):m>-1&&(e.checkedAll=u.slice(0,m).concat(u.slice(m+1)))}else e.checkedAll=f},e.handleAllCheckbox]}}),a("label",{staticClass:"label",attrs:{for:"deper-all"}},[e._v("\u5168\u9009")])]):e._e()]),e.isQuery?a("div",{staticClass:"deper-center",style:{height:e.getHight}},[e.companyJson.length>0?a("div",{staticClass:"deper-c-depart"},e._l(e.companyJson,function(o){return a("div",{key:o.uniqueId,staticClass:"depart-item"},[a("label",{staticClass:"depart-left",class:{width:e.isNotLevel,isNoDelete:o.isNoDelete}},[a("input",{directives:[{name:"show",rawName:"v-show",value:e.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)?e._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=e._i(p,m);f.checked?C<0&&e.$set(o,"checked",p.concat([m])):C>-1&&e.$set(o,"checked",p.slice(0,C).concat(p.slice(C+1)))}else e.$set(o,"checked",v)},function(u){return e.handleCheckbox(u,o)}]}}),a("div",{staticClass:"depart-name"},[a("div",{staticClass:"name"},[e._v(e._s(o.name))]),o.num>0?a("div",{staticClass:"number"},[e._v("("),a("label",{staticClass:"label"},[e._v(e._s(o.num)+"/"+e._s(o.counts))]),e._v(")")]):a("div",{staticClass:"number"},[e._v("("+e._s(o.counts)+")")])])]),!e.isNotLevel&&o.counts>0?a("div",{staticClass:"depart-right",class:{isdisabled:o.isLevel},on:{click:function(u){return e.handleLevel(o)}}},[a("i",{staticClass:"icon-pedigree iconfont"}),a("span",[e._v("\u4E0B\u7EA7")])]):e._e()])}),0):e._e(),e.deptJson.length>0?a("div",{staticClass:"deper-c-depart"},e._l(e.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:e.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)?e._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=e._i(p,m);f.checked?C<0&&e.$set(o,"checked",p.concat([m])):C>-1&&e.$set(o,"checked",p.slice(0,C).concat(p.slice(C+1)))}else e.$set(o,"checked",v)},function(u){return e.handleCheckbox(u,o)}]}}),a("div",{staticClass:"depart-name"},[a("div",{staticClass:"name"},[e._v(e._s(o.name))]),o.num>0?a("div",{staticClass:"number"},[e._v("("),a("label",{staticClass:"label"},[e._v(e._s(o.num)+"/"+e._s(o.counts))]),e._v(")")]):a("div",{staticClass:"number"},[e._v("("+e._s(o.counts)+")")])])]),o.counts>0?a("div",{staticClass:"depart-right",class:{isdisabled:o.isLevel},on:{click:function(u){return e.handleLevel(o)}}},[a("i",{staticClass:"icon-pedigree iconfont"}),a("span",[e._v("\u4E0B\u7EA7")])]):e._e()])}),0):e._e(),e.userJson.length>0?a("div",{staticClass:"deper-c-user"},e._l(e.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)?e._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=e._i(p,m);f.checked?C<0&&e.$set(o,"checked",p.concat([m])):C>-1&&e.$set(o,"checked",p.slice(0,C).concat(p.slice(C+1)))}else e.$set(o,"checked",v)},function(u){return e.handleCheckbox(u,o)}]}}),a("div",{staticClass:"user-icon"},[o.avatar.length<1?a("span",[e._v(e._s(o.iconName))]):a("img",{attrs:{src:o.avatar}})]),a("div",{staticClass:"user-name"},[a("div",{staticClass:"span"},[e._v(e._s(o.name))]),a("div",{staticClass:"phone"},[e._v(e._s(o.phone))])])])}),0):e._e()]):a("div",{staticClass:"deper-search",style:{height:e.getSearchHight}},[e._e(),a("div",{staticClass:"deper-search-section"},[e._e(),a("div",{staticClass:"search-user"},[a("div",{staticClass:"search-title"},[e._v("\u8054\u7CFB\u4EBA")]),e._l(e.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)?e._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=e._i(p,m);f.checked?C<0&&e.$set(o,"checked",p.concat([m])):C>-1&&e.$set(o,"checked",p.slice(0,C).concat(p.slice(C+1)))}else e.$set(o,"checked",v)},function(u){return e.handleCheckbox(u,o)}]}}),a("div",{staticClass:"user-icon"},[o.avatar.length<1?a("span",[e._v(e._s(o.iconName))]):a("img",{attrs:{src:o.avatar}})]),a("div",{staticClass:"user-name"},[a("div",{staticClass:"span"},[e._v(e._s(o.name))]),a("div",{staticClass:"phone"},[e._v(e._s(o.phone))]),a("div",{staticClass:"txt"},[e._v(e._s(o.ancestorNames))])])])})],2)])]),e.isDept?a("div",{staticClass:"deper-son"},[a("span",[e._v("\u5305\u542B\u5B50\u7EA7")]),a("dc-switch",{attrs:{modelValue:e.isSon,name:"isSone"},on:{"update:modelValue":function(o){e.isSon=o},"update:model-value":function(o){e.isSon=o}}})],1):e._e(),a("div",{staticClass:"deper-bottom"},[a("div",{staticClass:"deper-b-checked",on:{click:function(o){e.isShowChecked=!0}}},[a("span",[e._v(e._s(e.checkedNumber))]),e.checkedNumber.length>0?a("i",{staticClass:"icon-jiantouyou iconfont"}):e._e()]),a("div",{staticClass:"deper-b-btn",on:{click:e.handleSubmit}},[e._v("\u786E\u5B9A")])]),a("checked",{attrs:{visible:e.isShowChecked,checkedJson:e.checkedJson},on:{"update:visible":function(o){e.isShowChecked=o},"update:checkedJson":function(o){e.checkedJson=o},"update:checked-json":function(o){e.checkedJson=o}},scopedSlots:e._u([{key:"user",fn:function(o){var u=o.item;return[e._t("checkedUser",null,{item:u})]}}],null,!0)}),e.isLoading?a("dcLoading"):e._e()],1)},CC=[function(){var e=this,n=e.$createElement,a=e._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"},[e._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"},[e._v("("),a("label",[e._v("100/100")]),e._v(")")])])])])},function(){var e=this,n=e.$createElement,a=e._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"},[e._v("\u6280\u672F\u90E8")]),a("div",{staticClass:"number"},[e._v("(80)")])])])])},function(){var e=this,n=e.$createElement,a=e._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"},[e._v("\u5F00\u53D1\u90E8")]),a("div",{staticClass:"number"},[e._v("("),a("label",[e._v("100/100")]),e._v(")")])])])])}];const ep={};var bC=Cn(AC,yC,CC,!1,IC,null,null,null);function IC(e){for(let n in ep)this[n]=ep[n]}const kC=function(){return bC.exports}();s.departPerson=kC,Object.defineProperties(s,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(ce,ce.exports);const Av={name:"TopSubmitPopup",components:{TopPopup:qt,TopDownSelect:Wc,PreviewImage:Ta,departPerson:ce.exports.departPerson,TopTips:oe},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(t,i){this.show=t,this.$emit("update:visible",this.show),this.handleOption()},immediate:!0},businessType:{handler(t,i){this.businessTypeData=t},immediate:!0},id:{handler(t,i){this.idData=t},immediate:!0},processName:{handler(t,i){this.processNameData=t},immediate:!0},title:{handler(t,i){this.titleData=t},immediate:!0},todoParameter:{handler(t,i){this.todoParameterData=t},immediate:!0,deep:!0},selfList:{handler(t,i){t&&t.length&&(this.option=t,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option))},immediate:!0,deep:!0},resubmit:{handler(t,i){t&&this.getProcessInstance()}}},methods:{async handleOption(){this.selfList&&this.selfList.length||(this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId,processGroupName:this.processNameData}}).then(t=>{t.code==200&&(this.option=t.data,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl())}))},async getProcessInstance(){this.id&&await this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.id}}).then(t=>{t.code==200&&(this.processId=t.data.id)})},async handlefirstNode(t){t&&await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:t}}).then(i=>{i.code===200?(this.firstPerson=i.data,this.getAfferentParticipantNodeList()):(this.firstPerson=[],this.getAfferentParticipantNodeList())}).catch(i=>{this.firstPerson=[],this.getAfferentParticipantNodeList()})},async handleChange(t,i){this.handleTips("",!0,"loading"),console.log("\u5F53\u524D\u9009\u62E9::::",t,i),this.checkedItem=t,this.handlefirstNode(this.checkedItem.id),this.getProcessInstance(),this.getDiagramUrl(),this.$emit("change",t,i),this.$refs.topTips.handleClose()},async getAfferentParticipantNodeList(){await this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(t=>{t.code==200&&(this.firstPerson&&this.firstPerson.length&&(console.log("\u9009\u4E2D\u8282\u70B9L::",this.personList,this.firstPerson),this.personList=t.data.filter(i=>!this.firstPerson.some(s=>s.id==i.id))),this.$emit("change",this.checkedItem,this.option)),this.$refs.topTips.handleClose()})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(t=>{t.code==200&&(this.trackUrl=[t.data])})},handleOpenPerson(t){if(this.visiblePerson=!0,this.personObjId=t.id,this.humanPerformerName=t.humanPerformerName,t.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel"||t.loopCardinality>1,maxMultiple:(t.loopCardinality,t.loopCardinality),checkedArray:[]},console.log(this.multiNodeParticipant[t.id]),this.multiNodeParticipant[t.id]&&this.multiNodeParticipant[t.id].length?this.entity.checkedArray=this.personListCopy[t.id].map(i=>({uid:i.uid,type:i.type,deptId:this.handleLastStr(i.ancestors,i.subjectId)})):this.entity.checkedArray=[];else if(t.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let i;t.routeTxt.departmentIds.map((s,r)=>{i=s.rangeId}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],deptCode:i,multiple:t.type=="InclusiveGatewayModel"||t.loopCardinality>1,maxMultiple:(t.loopCardinality,t.loopCardinality)},this.multiNodeParticipant[t.id]&&this.multiNodeParticipant[t.id].length?this.entity.checkedArray=this.personListCopy[t.id].map(s=>({uid:s.uid,type:s.type,deptId:i})):this.entity.checkedArray=[]}else if(t.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let i;t.routeTxt.companyIds.map((s,r)=>{i=s.name}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel"||t.loopCardinality>1,maxMultiple:(t.loopCardinality,t.loopCardinality),subjectName:i},this.multiNodeParticipant[t.id]&&this.multiNodeParticipant[t.id].length?this.entity.checkedArray=this.personListCopy[t.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(t){console.log("\u53C2\u6570::::",t),this.personListCopy[this.personObjId]=t,this.entity.checkedArray=t.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]=[],t.map((i,s)=>{this.multiNodeParticipant[this.personObjId].push(i.uid),this.partNode[this.personObjId].push(i.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(t,i){return t.split(",")[t.split(",").length-1]!==i?t.split(",")[t.split(",").length-1]:""},async handleSumbit(){if(this.firstPerson&&this.firstPerson.length&&this.firstPerson[0].routeTxt.userNames&&this.firstPerson[0].humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&this.firstPerson[0].humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"&&!this.multiNodeParticipant[this.firstPerson[0].id]){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error");return}this.beforeFunction&&await this.beforeFunction(),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})},handleSongshen(){if(this.resubmit)this.handleTips("",!0,"loading"),this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(t=>{t.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.handleTips(t.msg,!0,"error")});else{this.handleTips("",!0,"loading");let t={title:this.titleData,processDefId:this.checkedItem.id,processBusinessKey:this.idData,showType:this.showType,businessType:this.businessTypeData,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameterData};if(!this.checkedItem.id)return;this.request.post("/aws/pis/createAndStart",t).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(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips&&this.$refs.topTips.handleOpen()}}};var yv=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",[s("TopPopup",{ref:"TopPopup",attrs:{visible:t.show,titleText:"\u9001\u5BA1",isDrawer:"",isIndex:99,className:"sumbmitPopup-index sumbmitPopup-index-sumbit"},on:{"update:visible":function(r){return t.show=r,t.$emit("update:visible",r)}}},[s("TopDownSelect",{attrs:{option:t.option,defaultValue:t.selectDefaultValue},on:{change:t.handleChange}}),t.checkedItem.id?s("div",{staticClass:"viewTrack",on:{click:function(r){t.taskurlshow=!0}}},[t._v(" \u67E5\u770B\u6D41\u7A0B\u56FE ")]):t._e(),t.firstPerson&&t.firstPerson.length?s("div",{staticClass:"person-views"},t._l(t.firstPerson,function(r,c){return s("div",{staticClass:"views-items"},[s("div",{staticClass:"views-items-name"},[t._v(" "+t._s(r.name)+" "),s("span",{staticClass:"views-items-name--re"},[t._v("*")])]),s("div",{staticClass:"views-items-set"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",[t._l(t.partNode[r.id],function(l,d){return s("span",[t._v(" "+t._s(d>=3?"":d==0?l:`,${l}`)+" ")])}),t.partNode[r.id].length>3?s("span",[t._v("...\u7B49"+t._s(t.partNode[r.id].length)+"\u4EBA")]):t._e()],2):r.routeTxt&&r.routeTxt.userNames?s("div",[t._v(" "+t._s(r.routeTxt.userNames)+" ")]):t._e(),r.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||r.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?s("div"):s("div",{staticClass:"views-items-set-btn",on:{click:function(l){return t.handleOpenPerson(r)}}},[t._v(" \u8BBE\u7F6E ")])])])}),0):t._e(),t.personList&&t.personList.length?s("div",{staticClass:"person-views"},t._l(t.personList,function(r,c){return s("div",{staticClass:"views-items"},[s("div",{staticClass:"views-items-name"},[t._v(" "+t._s(r.name)+" ")]),s("div",{staticClass:"views-items-set"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",[t._l(t.partNode[r.id],function(l,d){return s("span",[t._v(" "+t._s(d>=3?"":d==0?l:`,${l}`)+" ")])}),t.partNode[r.id].length>3?s("span",[t._v("...\u7B49"+t._s(t.partNode[r.id].length)+"\u4EBA")]):t._e()],2):s("div"),s("div",{staticClass:"views-items-set-btn",on:{click:function(l){return t.handleOpenPerson(r)}}},[t._v(" \u8BBE\u7F6E ")])])])}),0):t._e(),!t.firstPerson&&!t.firstPerson.length&&!t.personList&&!t.personList.length?s("div",{staticClass:"person-views-white"},[t._v(" \u65E0\u9700\u8BBE\u7F6E ")]):t._e(),s("div",{staticClass:"person-btn"},[s("div",{staticClass:"top-button",staticStyle:{"background-color":"#3c9cff",color:"#fff"},on:{click:t.handleSumbit}},[t._v(" \u9001\u5BA1 ")])])],1),s("TopPopup",{ref:"TopPopup",attrs:{visible:t.visiblePerson,titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},on:{"update:visible":function(r){return t.visiblePerson=r}}},[s("departPerson",t._b({attrs:{isTitle:!1,visible:t.visiblePerson},on:{"update:visible":function(r){t.visiblePerson=r},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),s("PreviewImage",{attrs:{images:t.trackUrl,visible:t.taskurlshow,indexd:0,isOne:!0,isStyle:t.isStyle},on:{"update:visible":function(r){return t.taskurlshow=r}}}),s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}})],1)},Cv=[];const SC="",zc={};var bv=It(Av,yv,Cv,!1,Iv,"711c796f",null,null);function Iv(t){for(let i in zc)this[i]=zc[i]}const Zc=function(){return bv.exports}(),kv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs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QYSY//pK76otyKLKcsQRGlRLzwQah7a/aLeYih3UBYusbC/qPJViJPGwL5JWbgUqHwSQzJKJDfpvQ3wP0vgP1/1P0sJQ2Qwxu6psvDi1RVZ266xgOZqBecneTkFrVAlGYLepaijhn5KjQXed+cq21wgNhYbSmMB39Tg7sBwy55rLJDKpKJWOJU32eE6wwUaztCafaQ1xZai1hQHp60p+vmEpsEV3dyaYiO8Ka0p1vrcpFfba01h+Mi1pihwV+N1SWuKnWyZs/PWS9vmJopTrOJ4kUsiwIVRzQXXx8M1Nxlfg9rfNzdRkhg6oKcvt5QjS1WPpLlJOzX2aS28a27S7GvLJL1m1SaQhMvFddg312AXrvHNTcqkuUkGLYyR5ibW8or6RJubtN1uxe1xZtn+seF0FOcpGKIUpZJkKvaIa48T+8QGSac7fHBRe5zeSbmltMfp2aY9zqYk9C3tcdYXtcf50KftSU6TyLii9jixtWyx8AGWeYHm/nVTVNJHyOqdaWhSvNSdZ1B7UjfpqtKnB/2N4UQUVwFjlEoaLFmMa7CknH2iXEcp7d633r+zBkvSXCl5SaWQdSFxabCkXJcXAUbUgTRYulVrfvPpN1hKQWqnRVfVTFupDOMIOSwwTLAwWmnGttuiqyhVRhb9sRZdRY9OmNJeiy5reFvBklhadEW8ZDWLGqapxq3G307Km/aeffcwyPcWChB1mjR5GzHH5ta1MjCMGI5mnIGRGgYFmr4KpHawp1JJkzd/5tm+yVsyY2uRcu1N0vYsNqwzsELDUgyLopB3++ZYuWyvbPLW0XbrpE1gFg5DUYFvC3iQy+U0rp3XMKUZ6hSmL9Nejnb5nfK315A2gZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",Ev={name:"attchViews",components:{TopTips:oe,PreviewImage:Ta,PreView:Qc,TopPopup:qt},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(t,i){t&&(this.filesArr=[].concat(t),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return kv},del(){return Fc},doc(){return Mc},file(){return Uc},image(){return Lc},pdf(){return Vc},xls(){return Jc},zip(){return jc}},mounted(){this.$nextTick(()=>{let t=document.createElement("input");t.type="file",t.className="upload-input",t.style="opacity: 0;position: absolute;width:100%;height:100%;visibility: hidden;",t.multiple=!0,t.id="fileUp",t.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(t)})},methods:{handleClick(){if(typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${props.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}document.getElementById("fileUp").click()},async handleSelect(t,i){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const s=Array.from(t.target.files);document.getElementById("fileUp").value="";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(t,i){if(this.deletFn){if(this.deletFn(i)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(t,1),this.emitView()}else this.filesArr.splice(t,1),this.emitView()},viewFile(t,i){this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1))?(this.visible=!0,this.indexd=this.lists.indexOf(t.url)):t.url&&(this.visibleS=!0,this.fileUrl=t.url)},viewImage(){this.lists=[];let t=[];this.filesArr.map((i,s)=>{this.imgIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))}),t=this.filesArr.filter(i=>this.imgIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))),t.forEach((i,s)=>{this.lists.push(i.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()}}};var wv=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"attch-upload"},[t.buttonLoading?s("div",{staticClass:"attch-upload-mask"}):t._e(),s("div",{staticClass:"attch-upload-body"},[s("div",{staticClass:"upload-header"},[s("div",{staticClass:"upload-header-title"},[t._v(" \u9644\u4EF6 "),t.requires?s("span",{staticClass:"upload-header-title--re"},[t._v("*")]):t._e()]),s("div",{staticClass:"upload-header-upload"},[t.onlyShow?t._e():s("div",{staticClass:"upload-header-upload--item",attrs:{id:"inputfile"},on:{click:t.handleClick}},[s("img",{attrs:{src:t.addFile}}),t._v("\u4E0A\u4F20\u9644\u4EF6 ")])])]),s("div",{staticClass:"upload-body"},[t.filesArr.length>0?s("div",{staticClass:"upload-list"},t._l(t.filesArr,function(r,c){return s("div",{key:r.uuid,staticClass:"list-items"},[s("div",{staticClass:"list-items-icon"},[t.xlsIcon.includes(r.name.substring(r.name.lastIndexOf(".")+1))?s("img",{staticClass:"icon-img",attrs:{src:t.xls}}):t.imgIcon.includes(r.name.substring(r.name.lastIndexOf(".")+1))?s("img",{staticClass:"icon-img",attrs:{src:t.image}}):r.name.substring(r.name.lastIndexOf(".")+1)=="pdf"?s("img",{staticClass:"icon-img",attrs:{src:t.pdf}}):t.docIcon.includes(r.name.substring(r.name.lastIndexOf(".")+1))?s("img",{staticClass:"icon-img",attrs:{src:t.doc}}):t.zipIcon.includes(r.name.substring(r.name.lastIndexOf(".")+1))?s("img",{staticClass:"icon-img",attrs:{src:t.zip}}):s("img",{staticClass:"icon-img",attrs:{src:t.file}})]),s("div",{staticClass:"list-items-info"},[s("div",{staticClass:"info-name"},[t._v(" "+t._s(r.originFileName)+" ")]),s("div",{staticClass:"info-attribute"},[s("span",{staticClass:"info-attribute-size"},[t._v(t._s(r.fileSize<1024?r.fileSize:r.fileSize/1024>1024?parseFloat((r.fileSize/1024/1024).toFixed(2)):parseFloat((r.fileSize/1024).toFixed(2)))+t._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 t.viewFile(r,c)}}},[t._v(" \u9884\u89C8 ")])])]),t.onlyShow?t._e():s("div",{staticClass:"list-items-operation"},[s("div",{staticClass:"list-items-operation-img",on:{click:function(l){return t.handleDel(c,r)}}},[s("img",{attrs:{src:t.del}})])])])}),0):t._e()])]),s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),s("PreviewImage",{attrs:{images:t.lists,visible:t.visible,indexd:t.indexd},on:{"update:visible":function(r){return t.visible=r}}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:t.visibleS,titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},on:{"update:visible":function(r){return t.visibleS=r}}},[s("PreView",{attrs:{file:t.fileUrl}})],1)],1)},Nv=[];const BC="",Xc={};var Tv=It(Ev,wv,Nv,!1,xv,"063c09b3",null,null);function xv(t){for(let i in Xc)this[i]=Xc[i]}const Pe=function(){return Tv.exports}();var Dv=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-popup-content"},[t._m(0),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.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:t.commentMsg},on:{input:function(r){r.target.composing||(t.commentMsg=r.target.value)}}})])]),t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&t.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"),t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return t.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[r.id],function(d,h){return s("span",[t._v(" "+t._s(h==0?d:`,${d}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(r){return[r.type!="endEvent"&&t.isOption(r.humanPerformerName)?[s("div",{staticClass:"process-pc-label"},[t._v(" "+t._s(r.name)+" "),s("br"),t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(c){return t.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[r.id],function(c,l){return s("span",[t._v(" "+t._s(l==0?c:`,${c}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t._e()]:t._e(),s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return t.visible=r}}},[s("departPerson",t._b({attrs:{isTitle:!1,visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(r){t.visible=r},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),t.labels=="5"?s("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},Ov=[function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-pc-label"},[t._v(" \u52A0\u7B7E\u7406\u7531\uFF1A"),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const _C="",Sv={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:oe,attchViews:Pe,TopPopup:qt,departPerson:ce.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(t,i){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel,t.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":t.outGatewayUserTaskModel.length&&(t.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):t.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||t.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(t){this.visible=!0,this.partObjId=t},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let t="";this.multiNodeParticipant[this.partObjId].map((i,s)=>{s==0?t=i:t=`${t} ${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:t,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 t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(t){this.attchLists=t},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 t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).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(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},$c={};var Bv=It(Sv,Dv,Ov,!1,_v,"213efd4b",null,null);function _v(t){for(let i in $c)this[i]=$c[i]}const Qv=function(){return Bv.exports}();var Pv=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-popup-content"},[t._m(0),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.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:t.commentMsg},on:{input:function(r){r.target.composing||(t.commentMsg=r.target.value)}}})])]),t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&t.isOption(r==null||(c=r.userTaskModelDTO)===null||c===void 0||(l=c.humanPerformer)===null||l===void 0?void 0:l.name)?[s("div",[t._v(" "+t._s(r.userTaskModelDTO.name)+" "),s("br"),t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return t.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[r.id],function(d,h){return s("span",[t._v(" "+t._s(h==0?d:`,${d}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(r){return[r.type!="endEvent"&&t.isOption(r.humanPerformerName)?[s("div",{staticClass:"process-pc-label"},[t._v(" "+t._s(r.name)+" "),s("br"),t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(c){return t.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[r.id],function(c,l){return s("span",[t._v(" "+t._s(l==0?c:`,${c}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t._e()]:t._e(),s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return t.visible=r}}},[s("departPerson",t._b({attrs:{isTitle:!1,visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(r){t.visible=r},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),t.labels=="1"?s("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},Fv=[function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-pc-label"},[t._v(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const QC="",Mv={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:oe,attchViews:Pe,TopPopup:qt,departPerson:ce.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(t,i){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel,t.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":t.outGatewayUserTaskModel.length&&(t.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):t.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||t.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(t){this.visible=!0,this.partObjId=t},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let t="";this.multiNodeParticipant[this.partObjId].map((i,s)=>{s==0?t=i:t=`${t} ${i}`}),this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/delegate",{delegateReason:this.commentMsg,taskInstId:this.param.taskInstId,targetUID:t}).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 t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(t){this.attchLists=t},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 t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).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(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},tl={};var Uv=It(Mv,Pv,Fv,!1,Lv,"5a15fa6f",null,null);function Lv(t){for(let i in tl)this[i]=tl[i]}const Vv=function(){return Uv.exports}(),Jv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR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y7m863UB0jskwFG+gpM9rg+QXiEBjuRSznG/TkB6gwQ4cqq3gtf1AtILJMBRoYzztlg3IK0hAY68yq3kef2AtIIEOCqVcO42GoDUhgQ4cqu2oncdQGpBAhwVyzd/Ky1AsiEBjvyKrbyDHiBZkABH5dKts50mIKUhAY461dpgF11ASkECHA3Ktt6W2oAshQQ46lVqo50AJAoJcDQq2brbAshB7/3fJ5n7R3K+2MPmrm6q2K2FAgByrvr97p2ZvTez/V+WOv082tbunv7yFB8JBQDkUpr3HeW1mf1gZt9sa4+AIcHESZAAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6ikAIHo5J2KHAgDiEIulegoAiF7OidihAIA4xGKpngIAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC";var jv=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"top-msg"},t._l(t.listData,function(r){return s("div",[t._v(" "+t._s(r.opinionName)+" ")])}),0)},Gv=[];const Rv={name:"msgList",props:{visible:{type:Boolean,default:!1},request:{default:null},useInfo:{type:Object,default:()=>{}}},data(){return{listData:[]}},watch:{visible:{handler(t,i){t&&this.request.get("/auth/user/opinion/my").then(s=>{s.code===200&&(this.listData=s.data)})}}}},el={};var qv=It(Rv,jv,Gv,!1,Kv,null,null,null);function Kv(t){for(let i in el)this[i]=el[i]}const Hv=function(){return qv.exports}(),PC="";var Yv=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-popup-content"},[t.param.isDocument?s("div",{staticClass:"process-pc-label"},[t._v(" \u5FEB\u6377\u56DE\u590D ")]):t._e(),t.param.isDocument?s("div",{staticClass:"process-pc-value",staticStyle:{display:"flex"}},[s("div",{staticClass:"process-tag",on:{click:function(){return t.commentMsg="\u540C\u610F"}}},[t._v(" \u540C\u610F ")]),s("div",{staticClass:"process-tag",on:{click:function(){return t.commentMsg="\u5982\u62DF"}}},[t._v(" \u5982\u62DF ")]),s("div",{staticClass:"process-tag",on:{click:function(){return t.commentMsg="\u5DF2\u9605"}}},[t._v(" \u5DF2\u9605 ")])]):t._e(),t._m(0),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.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:t.commentMsg},on:{input:function(r){r.target.composing||(t.commentMsg=r.target.value)}}})])]),t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&t.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",[t._v(" "+t._s(r.userTaskModelDTO.name)+" "),s("br"),t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return t.handleOpenPopup(r)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},[s("span",[t._v(" "+t._s(t.partNode[r.id].join(","))+" ")])]):r.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"?s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])]):r.routeTxt&&r.routeTxt.userNames?s("div",{staticClass:"process-pc-value--data"},[t._v(" "+t._s(r.routeTxt.userNames)+" ")]):t._e()])])]:r.type!="endEvent"?[s("div",{staticClass:"process-pc-label"},[t._v(" "+t._s(r.userTaskModelDTO.name)+" "),t.personMakeList[r.id]?s("span",[t._v("\uFF1A"+t._s(t.personMakeList[r.id]))]):t._e()])]:t._e()]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(r){var c,l;return[t.outGatewayUserTaskModel.childNode&&t.outGatewayUserTaskModel.childNode.length?[r.type!="endEvent"&&t.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",[t._v(" "+t._s(r.userTaskModelDTO.name)+" "),s("br"),t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return t.handleOpenPopup(r)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},[s("span",[t._v(" "+t._s(t.partNode[r.id].join(","))+" ")])]):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:r.type!="endEvent"?[s("div",{staticClass:"process-pc-label"},[t._v(" "+t._s(r.userTaskModelDTO.name)+" ")])]:t._e()]:[s("div",{staticClass:"process-pc-label"},[t._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-radio"},t._l(r.childNode,function(d){return s("div",{staticClass:"process-radio-item",class:d.id==t.radioCheck?"process-radio-item--check":"",on:{click:function(h){return t.handleNode(d)}}},[s("span",[d.id==t.radioCheck?s("img",{staticClass:"process-radio-item-check",attrs:{src:t.check}}):t._e()]),t._v(" "+t._s(d.nodeName)+" ")])}),0)])]]}),t.radioCheck?[t.radioCheckChild&&t.radioCheckChild.length?t._l(t.radioCheckChild,function(r){return s("div",[s("div",{staticClass:"process-pc-label",on:{click:function(c){return t.handleSaveNode(r.id)}}},[s("div",{staticClass:"process-checkbox"},[t._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279:"),s("br"),s("div",{staticClass:"process-checkbox-item"},[t._v(" "+t._s(r.nodeName)+" "),s("span",[t.radioCheckNameList.includes(r.id)?s("img",{staticClass:"process-checkbox-item-check",attrs:{src:t.checkS}}):t._e()])])])]),s("div",{staticClass:"process-pc-value",on:{click:function(c){return t.handleOpenPopup(r)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},[s("span",[t._v(" "+t._s(t.partNode[r.id].join(","))+" ")])]):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])])}):[s("div",{staticClass:"process-pc-label"},[t._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 ")]),s("div",{staticClass:"process-pc-value"},[t._v(" "+t._s(t.radioCheckName)+" ")])]]:t._e()]:t._e()]:t._e(),s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return t.visible=r}}},[s("departPerson",t._b({attrs:{isTitle:!1,visible:t.visible},on:{"update:visible":function(r){t.visible=r},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),s("TopPopup",{ref:"TopPopup",attrs:{visible:t.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(r){return t.visibleListMsg=r}}},[s("MsgList",{attrs:{visible:t.visibleListMsg,request:t.param.request,useInfo:t.param.userInfo}})],1),s("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${t.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:t.handleTipsCancel,comfig:t.handleTipsComfig,visible:t.visibleMsgComfig},on:{"update:visible":function(r){return t.visibleMsgComfig=r}}}),t.labels=="1"?s("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},Wv=[function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-pc-label"},[t._v(" \u5BA1\u6279\u610F\u89C1 "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const FC="",zv={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:oe,attchViews:Pe,TopPopup:qt,departPerson:ce.exports.departPerson,MsgList:Hv},computed:{check(){return Kc},checkS(){return Jv}},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],partList:[],gateVars:{},personMake:[],personMakeList:{},visibleListMsg:!1,visibleMsgComfig:!1,msgCheck:"",msgCheckList:["\u540C\u610F","\u5982\u62DF","\u5DF2\u9605"]}},watch:{param:{handler(t,i){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel,console.log("param:::",t),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)}),s.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"&&this.personMake.push(s.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(s=>{s.code==200&&(this.personMakeList=s.data)})):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:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(t=>{t.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(t.msg,!0,"error"),this.visibleMsgComfig=!1}).catch(t=>{this.handleTips(t.msg,!0,"error"),this.visibleMsgComfig=!1})},handleSaveNode(t){this.radioCheckNameList.includes(t)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(t),1):this.radioCheckNameList.push(t)},handleNode(t){this.radioCheck=t.id,this.radioCheckName=t.nodeName,this.radioCheckChild=t.childNode&&t.childNode.length?t.childNode:[t],console.log("\u5F53\u524D\u9009\u4E2D",t),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[t.incomingConditionItemList[0].itemName]=t.incomingConditionItemList[0].compareValue):this.gateVars[t.incomingConditionItemList[0].itemName]=t.incomingConditionItemList[0].compareValue)},handleOpenPopup(t){if(this.visible=!0,this.partObjId=t.id,this.nextNodeData&&this.nextNodeData.length&&(t={...t,...t.userTaskModelDTO}),console.log("partNode",this.partObjId,t),t.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let i,s=[];t.routeTxt.companyIds.map((r,c)=>{i=r.name}),this.multiNodeParticipant[t.id]&&this.multiNodeParticipant[t.id].length&&this.multiNodeParticipant[t.id].map((r,c)=>{s.push({type:3,uid:r})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel"||t.loopCardinality>1,maxMultiple:(t.loopCardinality,t.loopCardinality),subjectName:i,checkedArray:s}}else if(t.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let i,s=[];t.routeTxt.departmentIds.map((r,c)=>{i=r.rangeId}),this.multiNodeParticipant[t.id]&&this.multiNodeParticipant[t.id].length&&this.multiNodeParticipant[t.id].map((r,c)=>{s.push({type:3,uid:r,deptId:i})}),console.log("multiNodeParticipant",this.multiNodeParticipant[t.id],s),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel"||t.loopCardinality>1,maxMultiple:(t.loopCardinality,t.loopCardinality),deptCode:i,checkedArray:s}}else{let i=[];this.multiNodeParticipant[t.id]&&this.multiNodeParticipant[t.id].length&&this.multiNodeParticipant[t.id].map((s,r)=>{i.push({type:3,uid:s})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel"||t.loopCardinality>1,maxMultiple:(t.loopCardinality,t.loopCardinality),checkedArray:i},console.log("\u4EFB\u610F\u9009\u4EBA\u8282\u70B9\u53C2\u6570",this.entity)}},handleOpenMsg(){this.visibleListMsg=!0},async confirm(){if(!this.commentMsg){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}let t={};if(this.radioCheckNameList&&this.radioCheckNameList.length){let i=0;if(this.radioCheckNameList.map((s,r)=>{(!this.multiNodeParticipant[s]||!this.multiNodeParticipant[s].length)&&(i+=1),t[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}t=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:t}).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 t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(t){this.attchLists=t},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 t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).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(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},sl={};var Zv=It(zv,Yv,Wv,!1,Xv,"68c0803e",null,null);function Xv(t){for(let i in sl)this[i]=sl[i]}const $v=function(){return Zv.exports}();var tm=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-popup-content"},[t._m(0),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.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:t.commentMsg},on:{input:function(r){r.target.composing||(t.commentMsg=r.target.value)}}})])]),t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&t.isOption(r==null||(c=r.userTaskModelDTO)===null||c===void 0||(l=c.humanPerformer)===null||l===void 0?void 0:l.name)?[s("div",[t._v(" "+t._s(r.userTaskModelDTO.name)+" "),s("br"),t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return t.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[r.id],function(d,h){return s("span",[t._v(" "+t._s(h==0?d:`,${d}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(r){return[r.type!="endEvent"&&t.isOption(r.humanPerformerName)?[s("div",{staticStyle:{"font-size":"15px"}},[t._v(" "+t._s(r.name)+" ")]),s("div",{staticClass:"process-pc-label"},[t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:t.handleOpenPopup}},[s("div",{staticClass:"process-pc-value--people"},[t._v(" "+t._s(234)+" ")])])]:t._e()]})]:t._e()]:t._e(),s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return t.visible=r}}},[s("departPerson",t._b({attrs:{isTitle:!1,visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(r){t.visible=r},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),t.labels=="\u62D2\u7EDD"?s("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},em=[function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-pc-label"},[t._v(" \u62D2\u7EDD\u7406\u7531\uFF1A "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const MC="",sm={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:oe,attchViews:Pe,TopPopup:qt,departPerson:ce.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(t){this.visible=!0,this.partObjId=t},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(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(t){this.attchLists=t},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 t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).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(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},il={};var im=It(sm,tm,em,!1,nm,"1a2514b0",null,null);function nm(t){for(let i in il)this[i]=il[i]}const am=function(){return im.exports}();var rm=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-popup-content"},[t._m(0),s("div",{staticClass:"process-pc-value",staticStyle:{display:"inline-block",width:"50%"}},[s("TopDownSelect",{attrs:{option:t.option,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},on:{change:t.handleChange}})],1),t._m(1),s("div",{staticClass:"process-pc-value"},[s("div",{staticClass:"process-popup-textarea"},[s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.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:t.commentMsg},on:{input:function(r){r.target.composing||(t.commentMsg=r.target.value)}}})])]),s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),t.labels=="\u9000\u56DE"?s("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],1)},om=[function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-pc-label",staticStyle:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[t._v(" \u9000\u56DE\u8282\u70B9\uFF1A "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])])},function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-pc-label"},[t._v(" \u9000\u56DE\u7406\u7531\uFF1A "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const UC="",cm={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:oe,attchViews:Pe,TopPopup:qt,departPerson:ce.exports.departPerson,TopDownSelect:Wc},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(t,i){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{getReturnNode(){this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(t=>{t.code===200&&(this.option=t.data)})},handleChange(t){this.nodeId=t.id},handleOpenPopup(t){this.visible=!0,this.partObjId=t},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(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(t){this.attchLists=t},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 t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).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(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},nl={};var lm=It(cm,rm,om,!1,um,"78183b02",null,null);function um(t){for(let i in nl)this[i]=nl[i]}const pm=function(){return lm.exports}();var dm=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-popup-content"},[t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(r){var c,l;return[r.type!="endEvent"&&t.isOption(r==null||(c=r.userTaskModelDTO)===null||c===void 0||(l=c.humanPerformer)===null||l===void 0?void 0:l.name)?[s("div",[t._v(" "+t._s(r.userTaskModelDTO.name)+" "),s("br"),t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(d){return t.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[r.id],function(d,h){return s("span",[t._v(" "+t._s(h==0?d:`,${d}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(r){return[r.type!="endEvent"?[s("div",[t._v(" \u5BA1\u6279\u4EBA "),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),s("div",{staticClass:"process-pc-value",on:{click:function(c){return t.handleOpenPopup(r.id)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[r.id]&&t.partNode[r.id].length?s("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[r.id],function(c,l){return s("span",[t._v(" "+t._s(l==0?c:`,${c}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t._e()]:t._e(),s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),s("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return t.visible=r}}},[s("departPerson",t._b({attrs:{isTitle:!1,visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(r){t.visible=r},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),t.labels=="2"?s("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},fm=[];const LC="",hm={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:oe,attchViews:Pe,TopPopup:qt,departPerson:ce.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(t,i){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel,t.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":t.outGatewayUserTaskModel.length&&(t.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):t.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||t.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(t){this.visible=!0,this.partObjId=t},async confirm(){this.handleTips("",!0,"loading");let t="";this.multiNodeParticipant[this.partObjId].map((i,s)=>{s==0?t=i:t=`${t} ${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:t}).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 t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)})},handleCancel(){},getValues(t){this.attchLists=t},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 t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).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(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},al={};var vm=It(hm,dm,fm,!1,mm,"2e9d3849",null,null);function mm(t){for(let i in al)this[i]=al[i]}const gm=function(){return vm.exports}();var Am=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"process-popup-content"},[[s("div",{staticClass:"process-pc-label"},[s("div",[t._v(" "+t._s(t.getFirstProcessNode.name)+" "),s("br"),t._m(0)])]),s("div",{staticClass:"process-pc-value",on:{click:function(r){return t.handleOpenPopup(t.getFirstProcessNode.id)}}},[s("div",{staticClass:"process-pc-value--people"},[t.partNode[t.getFirstProcessNode.id]&&t.partNode[t.getFirstProcessNode.id].length?s("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[t.getFirstProcessNode.id],function(r,c){return s("span",[t._v(" "+t._s(c==0?r:`,${r}`)+" ")])}),0):s("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[s("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])],s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),s("TopPopup",{attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(r){return t.visible=r}}},[s("departPerson",t._b({attrs:{isTitle:!1,visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(r){t.visible=r},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1)],2)},ym=[function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",[t._v("\u5BA1\u6279\u4EBA"),s("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const VC="",Cm={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:oe,attchViews:Pe,TopPopup:qt,departPerson:ce.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(t,i){console.log("handler::::",t),this.getFirstProcessNode=t.getFirstProcessNode,t.getFirstProcessNode&&this.getFirstProcessNode&&(t.getFirstProcessNode.type=="userTask"||t.getFirstProcessNode.type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):t.getFirstProcessNode.type=="ExclusiveGatewayModel"||t.getFirstProcessNode.type=="InclusiveGatewayModel")},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param)},methods:{handleOpenPopup(t){this.visible=!0,this.partObjId=t},async confirm(){let t={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",t).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(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((i,s)=>{this.multiNodeParticipant[this.partObjId].push(i.uid),this.partNode[this.partObjId].push(i.name)}),console.log("callback_OK",t,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},isOption(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},rl={};var bm=It(Cm,Am,ym,!1,Im,"fcec156a",null,null);function Im(t){for(let i in rl)this[i]=rl[i]}const km=function(){return bm.exports}(),Em={name:"TopProcess",components:{TopTab:iv,TopPopup:qt,TopTips:oe,TopSumbitPopup:Zc},props:{tapList:{require:!1,default:()=>[],type:Array},selfTapList:{require:!1,default:()=>[],type:Array},processDefId:{require:!0,default:"",type:String},processInstId:{require:!0,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!1},restartData:{type:Object,default:{businessType:"",showType:"",processName:""}},selfList:{type:Array,default:()=>[]},selfBtn:{type:Array,default:()=>[]},uid:{type:String,default:""}},data(){return{processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskId:"",taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,ProcessInsObj:{},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[],user:{},canCheck:!0,approveNode:{},restartDataS:{},selfBtnList:[],topNum:144,bottomNum:70,userIdData:""}},watch:{processInstId:{async handler(t,i){this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,t&&(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(t,i){this.restartDataS=t},immediate:!0,deep:!0},selfBtn:{handler(t,i){t&&t.length&&(this.selfBtnList=t)},immediate:!0,deep:!0},uid:{handler(t,i){t&&(this.userIdData=t)},immediate:!0,deep:!0}},mounted(){this.$nextTick(()=>{let t=document.getElementById("process-header"),i=document.getElementById("process-footer");this.bottomNum=i?i.scrollHeight+10:70,this.topNum=t?t.scrollHeight+10:144,console.log(this.topNum,"diss::",this.bottomNum)})},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){var s,r;let t=[],i=this.taskNode&&this.taskNode[0]&&this.taskNode[0].taskState!=4;if(this.formData.currentState==="\u5DF2\u64A4\u9500"||this.formData.currentState==="\u5DF2\u9A73\u56DE"||this.processStatus.status==="\u5DF2\u64A4\u9500"||this.processStatus.status==="\u5DF2\u9A73\u56DE"||this.processStatus.bizStatusName==="\u5DF2\u64A4\u9500"||this.processStatus.bizStatusName==="\u5DF2\u9A73\u56DE"){let c={};c.name="\u91CD\u65B0\u63D0\u4EA4",c.btnProps={type:"default"},t.push(c),c.click=this.handleTest}if(i&&!this.isView&&this.taskObj.completeButtonLabel){let c={};c.name=this.taskObj.completeButtonLabel,c.btnProps={type:"primary"},t.push(c),c.click=l=>{this.handleActionClose(),this.showOperation($v,l,this.request,this.taskObj.completeButtonAnnex)}}if(i&&!this.isView&&this.processStatus.currUserName){let c={};c.name="\u62D2\u7EDD",c.btnProps={type:"danger"},t.push(c),c.click=l=>{this.handleActionClose(),this.showOperation(am,l,this.request,this.taskObj.otherButtonAnnexList)}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(c=>{let l={};l.name=c.name,l.btnProps={type:c.type},t.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"},t.push(l),l.click=d=>{this.handleActionClose(),this.showOperation(pm,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(gm,l,this.request,this.taskObj.ccTaskButtonAnnex)},t.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(Vv,l,this.request,this.taskObj.delegateTaskButtonAnnex)},t.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(Qv,l,this.request,this.taskObj.counterSignButtonAnnex)},t.push(c)}if(this.processIntId&&this.processStatus.createUid==this.userIdData&&((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"},t.push(c)}if(this.processIntId&&this.processStatus.createUid==this.userIdData&&((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"},t.push(c)}return t},processCardHeight(){let t=this.topNum+this.bottomNum-10;return!this.isAdditional&&(!(this.processStatus.status=="\u5DF2\u64A4\u9500"||this.processStatus.status=="\u5DF2\u9A73\u56DE"||this.processStatus.bizStatusName=="\u5DF2\u64A4\u9500"||this.processStatus.bizStatusName=="\u5DF2\u9A73\u56DE")&&this.ProcessInsObj.end||this.processStatus.createTopUserId!=this.user.userId&&this.operBtn.length<3)&&(t-=this.bottomNum),`calc(100vh - ${t}px)`},processBtn(){if(!this.isAdditional&&(!(this.processStatus.status=="\u5DF2\u64A4\u9500"||this.processStatus.status=="\u5DF2\u9A73\u56DE"||this.processStatus.bizStatusName=="\u5DF2\u64A4\u9500"||this.processStatus.bizStatusName=="\u5DF2\u9A73\u56DE")&&this.ProcessInsObj.end||this.processStatus.createTopUserId!=this.user.userId&&this.operBtn.length<3))return`-${this.bottomNum}px`}},methods:{handleTestS(){this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")},handleTest(){this.visibleSong=!0},async getUserInfo(){let t=await this.request.get("/app/user/info");t.code===200&&(this.user=t.data||{})},async handleGetSimulation(t){this.handleTips("",!0,"loading");let i={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:t,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(t,i){let s=await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:t,processNodeId:i}});if(s.code==200){if(s.data&&s.data.length){for(let r=0;r<s.data.length;r++){let c=s.data[r];if(c.type!="UserTaskModel"){let l=await this.getOutgoingProcessNode(t,c.id);l&&l.length&&(await l.map((d,h)=>{d.nodeName=d.incomingConditionItemList[0].compareValue}),c.childNode=l)}}return this.handleTips("",!1,"success"),s.data}return this.handleTips("",!1,"success"),[]}return[]},handleGet(t){this.taskNode=[].concat(t),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(t=>{t.code==200&&(this.processStatus=t.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(t=>{t.code==200&&(this.taskObj=t.data)})},async showOperation(t,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=t,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.userInfo=this.user,this.operationParam.nextNodeData=this.nextNodeData,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId,this.operationParam.endFunction=this.endFunction,this.operationParam.isDocument=this.isDocument,this.operationParam.canCheck=this.canCheck,this.taskObj.commentModels.some(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(t=>{t.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),this.endFunction()):this.handleTips(t.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(t=>{t.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),this.endFunction()):(this.textTips=t.msg,this.typeTips="error",this.handleTips(t.msg,!0,"error"))}))},handleTipsCancel(){},getColor(t){return t=="\u5BA1\u6838\u4E2D"?"#FFA52D":t=="\u5DF2\u9A73\u56DE"?"#F14B4C":t=="\u5DF2\u64A4\u9500"?"#CECECE":t=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(t){this.titleText=t,this.actionShow=!1},getBtnStyle(t){switch(t){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(t=>{this.processDefList=t.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(km,"\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(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(t,i,s){this.textTips=t,this.statusTips=i,this.typeTips=s,this.$refs.topTips.handleOpen()}}};var wm=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",[s("div",{staticClass:"process-warp"},[t.formData.currentState||t.processStatus.bizStatusName||t.processStatus.status?s("div",{staticClass:"process-main",attrs:{id:"process-header"}},[s("div",{staticClass:"process-ml-item border"},[s("div",{staticClass:"process-mli-name"},[t._v("\u6D41\u7A0B\u72B6\u6001")]),s("div",{staticClass:"process-mli-value"},[t.formData.currentState||t.processStatus.bizStatusName||t.processStatus.status?s("div",{staticClass:"process-mliv-dd",style:{background:t.getColor(t.formData.currentState||t.processStatus.bizStatusName||t.processStatus.status)}},[t._v(" "+t._s(t.formData.currentState||t.processStatus.bizStatusName||t.processStatus.status)+" ")]):t._e()])]),s("div",{staticClass:"process-ml-item border"},[s("div",{staticClass:"process-mli-name"},[t._v("\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4")]),s("div",{staticClass:"process-mli-value"},[s("span",[t._v(t._s(t.processStatus.createTime))])])]),t.processStatus.allUserNames&&t.processStatus.allUserNames.length?s("div",{staticClass:"process-ml-item"},[s("div",{staticClass:"process-mli-name"},[t._v("\u5BA1\u6279\u8282\u70B9")]),s("div",{staticClass:"process-mli-value"},[s("span",{staticClass:"process-mliv-jd"},[t._v(t._s(`${t.processStatus.taskState==4?t.processStatus.currUserName:t.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`))])])]):t._e()]):t._e(),s("div",{staticClass:"process-card",style:{height:t.processCardHeight}},[s("TopTab",{attrs:{tapList:t.tapList,selfTapList:t.selfTapList,processIntId:t.processIntId,track:t.trackUrl,taskComment:t.taskCommentList,trackList:t.trackList}},[t.selfTapList&&t.selfTapList.length?t._l(t.selfTapList,function(r,c){return s("div",{key:c,attrs:{slot:r.slot},slot:r.slot},[t._t(r.slot)],2)}):[s("div",{staticStyle:{},attrs:{slot:"default"},slot:"default"},[t._t("default")],2),t._l(t.tapList,function(r,c){return s("div",{key:c,staticStyle:{},attrs:{slot:r.slot},slot:r.slot},[t._t(r.slot)],2)})]],2)],1),s("div",{staticClass:"process-btn",style:{bottom:t.processBtn},attrs:{id:"process-footer"}},[t.isAdditional?s("div",{staticClass:"footBtnRow"},[t._t("btn",null,{data:t.processStatus})],2):[t.isDocument&&(t.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||t.formData.currentState=="\u76D6\u7AE0")?[s("div",{staticClass:"top-button",style:t.getBtnStyle("default")},[t._v(" \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ")])]:[t.formData.currentState!="\u5DF2\u5B8C\u6210"||t.processStatus.status!="\u5DF2\u5B8C\u6210"||t.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?[t._l(t.operBtn,function(r,c){return[c<3?s("div",{key:r.name,staticClass:"top-button",style:t.getBtnStyle(r.btnProps.type.toString()),on:{click:function(l){return r.click(r.name)}}},[t._v(" "+t._s(r.name)+" ")]):t._e()]})]:t._e(),t.operBtn.length>3&&t.actionBtn&&t.actionBtn.length?s("div",{staticClass:"elips",on:{click:t.handleActionOpen}},[s("div",{staticClass:"circle"}),s("div",{staticClass:"circle"}),s("div",{staticClass:"circle"})]):t._e()]]],2)]),s("TopPopup",{ref:"TopPopup1",attrs:{cancel:t.handleCancel,comfig:t.handleComfig,titleText:t.titleText}},[s(t.operationCom,{ref:"operationRef",tag:"component",attrs:{param:t.operationParam},on:{handleClosePopup1:t.handleClosePopup1}})],1),s("TopPopup",{ref:"TopPopup2",attrs:{titleText:t.titleText,isTips:!0,context:t.popupContext,cancel:t.handleTipsCancel,comfig:t.handleTipsComfig}}),s("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),t.actionBtn&&t.actionBtn.length||t.taskNodeList&&t.taskNodeList.length?s("div",{staticClass:"top-elips",style:t.actionShow?"transform: translateY(0)":"transform: translateY(100%)"},[t.taskNodeShow?t._l(t.taskNodeList,function(r){return s("div",{key:r.taskId,staticClass:"top-elips-items",on:{click:function(c){return t.handleGet(r)}}},[t._v(" "+t._s(r.name)+" ")])}):t._l(t.actionBtn,function(r){return s("div",{key:r.name,staticClass:"top-elips-items",on:{click:function(c){return r.click(r.name)}}},[t._v(" "+t._s(r.name)+" ")])}),s("div",{staticClass:"top-elips-items top-elips-items--cancel",on:{click:t.handleActionClose}},[t._v(" \u53D6\u6D88 ")])],2):t._e(),s("div",{staticClass:"top-elips-mask",style:t.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;",on:{click:t.handleActionClose}}),s("TopSumbitPopup",t._b({ref:"actionPop",attrs:{visible:t.visibleSong,request:t.request,appId:t.processStatus.appId,id:t.formData.businessKey,resubmit:!0,selfList:t.selfList},on:{"update:visible":function(r){t.visibleSong=r},successFn:t.endFunction}},"TopSumbitPopup",t.restartDataS,!1))],1)},Nm=[];const JC="",ol={};var Tm=It(Em,wm,Nm,!1,xm,"e0a81fbc",null,null);function xm(t){for(let i in ol)this[i]=ol[i]}const Dm=function(){return Tm.exports}();fe.TopProcess=Dm,fe.TopSumbitPopup=Zc,fe.ViewAttchList=Rc,fe.attchViews=Pe,Object.defineProperties(fe,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});