ui-process-h5 1.0.5 → 1.0.6

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.
@@ -52,4 +52,4 @@ See more tips at https://vuejs.org/guide/deployment.html`)},0);var Yo=function(e
52
52
  left:0;
53
53
  right:0;
54
54
  margin: 0 auto;
55
- `,document.body.appendChild(this.mainContainer)}message(t={}){let n=sessionStorage.getItem(this.sessionStorageName),s=n?JSON.parse(n):null;if(t.againBtn&&t.content&&s&&Array.isArray(s)&&s.includes(t.content))return;const o=Pg({type:t.type,content:t.content,duration:t.duration,delay:t.delay,againBtn:t.againBtn,minWidth:this.minWidth,maxWidth:this.maxWidth},this.mainContainer);this.mainContainer.appendChild(o.els),si(this.mainContainer),Jg(o,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const Mg={components:{checked:Ig,dcSwitch:Vg,dcLoading:Fg},name:"departPerson",props:{visible:{type:Boolean,default:!1},source:{type:String,default:"0"},type:{type:String,default:"0"},request:{type:Function,default:()=>({get:()=>{},post:()=>{}})},businessId:{type:String,default:""},codeType:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},checkedArray:{type:Array,default:()=>[]}},data(){return{isSon:!1,deptId:"",subjectId:"",jsonData:[],breadcrumb:[],checkedJson:[],keyword:"",isQuery:!0,isLoading:!1,checkedAll:!1,isShowChecked:!1}},watch:{visible:{deep:!0,immediate:!0,handler:function(e,t){if(!e)return!1;this.$nextTick(()=>{this.getDetail(()=>{this.getSearch(),this.defaultBreadcrumb()})})}},isSon:{deep:!0,handler:function(e,t){let n=[];const s=this.checkedJson.map(o=>{const r=this.entityJson.findIndex(a=>a.id===o.id&&o.type==a.type&&o.type==2)>-1?e&&o.type==2?"4":o.type:o.orgRecordsType;return(r==4||o.type==1)&&n.push(o.id),{...o,orgRecordsType:r}});this.checkedJson=s.filter(o=>o.ancestors.split(",").findIndex(r=>n.indexOf(r)>-1)===-1)}},checkedArray:{deep:!0,immediate:!0,handler:function(e,t){if(J(e)||!J(this.businessId))return!1;this.checkedJson=e.map(n=>({...n,iconName:J(n.name)?"":ni(n.name,2)}))}}},computed:{dialogVisible:{get(){return this.visible},set(e){this.$emit("update:visible",e)}},queryImg(){return Ug},entityJson(){const e=this.checkedJson;return this.jsonData.map(t=>{const n=this.isQuery?this.breadcrumb_level.ancestors||"0":t.ancestors,s=this.isQuery?this.breadcrumb_level.ancestorNames:t.ancestorNames,o=n+t.id+"__"+t.type,r=e.find(p=>p.uniqueId===o),a=!J(r),l=a?!1:e.findIndex(p=>p.type===t.type&&p.id===t.id&&t.subjectId===p.subjectId)>-1,c=a?t.type==1||r.orgRecordsType==4:!1,d=J(e)?0:c?t.counts:e.filter(p=>p.type!=1&&p.ancestors.indexOf(t.id)>-1).length;return{type:t.type,id:t.id,name:t.name,counts:t.counts,num:d,phone:gg(t.phone),uid:t.uid,iconName:ni(t.name,2),checked:a,ancestors:n,ancestorNames:s,deptName:Ag(t.ancestorNames,"/"),uniqueId:o,isDisabled:l,isLevel:c,subjectId:t.subjectId,sex:t.sex}})},companyJson(){return this.entityJson.filter(e=>e.type==1)},deptJson(){return this.entityJson.filter(e=>e.type==2)},userJson(){return this.entityJson.filter(e=>e.type==3)},checkedNumber(){const e=this.checkedJson.filter(o=>o.type==1).length,t=this.checkedJson.filter(o=>o.type==2).length,n=this.checkedJson.filter(o=>o.type==3).length;let s=[];return e>0&&s.push(e+"\u4E2A\u7EC4\u7EC7"),t>0&&s.push(t+"\u4E2A\u90E8\u95E8"),n>0&&s.push(n+"\u4E2A\u6210\u5458"),J(s)?"":"\u5DF2\u9009\u62E9"+s.join("\uFF0C")},breadcrumb_subjectId(){return this.breadcrumb.length>1?this.breadcrumb.find((e,t)=>t===1).value:""},breadcrumb_level(){const e=this.breadcrumb.filter((t,n)=>n!==0);return{ancestors:e.map(t=>t.value).join(","),ancestorNames:e.map(t=>t.name).join("/")}},isDept(){return this.jsonData.findIndex(e=>e.type==2)>-1},isShowSubject(){return this.codeType.findIndex(e=>e==1)>-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)>-1},getHight(){return!this.isShowQuery&&this.isDept?"notQuerySon":!this.isShowQuery&&!this.isDept?"notQuery":this.isDept?"nvaHeight":""},getTitle(){let e=[];return this.isShowSubject&&e.push("\u7EC4\u7EC7"),this.isShowDept&&e.push("\u90E8\u95E8"),this.isShowQuery&&e.push("\u4EBA\u5458"),"\u9009\u62E9"+e.join("\u3001")}},mounted(){document.title=this.getTitle},methods:{handleSubmit(){const e=J(this.checkedJson)?[]:this.checkedJson.map(n=>({type:n.orgRecordsType,id:n.id,name:n.name,ancestors:n.ancestors,ancestorNames:n.ancestorNames,subjectId:n.subjectId,phone:J(n.phone)?"":n.phone,sex:n.sex,uid:J(n.uid)?"":n.uid}));if(J(this.businessId))return this.dialogVisible=!1,this.$emit("callback",e);const t={businessId:this.businessId,orgRecords:this.checkedJson.map(n=>({type:n.orgRecordsType,bizId:n.id,ancestors:n.ancestors,ancestorNames:n.ancestorNames,uid:n.uid}))};this.isLoading=!0,this.request.post("/auth/component/org/save",t).then(n=>{n.code===200&&(this.dialogVisible=!1,this.$emit("callback",e))}).finally(()=>{this.isLoading=!1})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){this.getSearch(()=>{this.isQuery=J(this.keyword)})},handleAllCheckbox(e){(this.isShowDept?this.entityJson:this.entityJson.filter(t=>t.type!=2)).forEach(t=>this.handleCheckbox(e,t))},handleCheckbox(e,t){if(t.isDisabled||t.type==1&&!this.isShowSubject||t.type==2&&!this.isShowDept)return!1;if(e.currentTarget.checked){const n=t.type==1?"0":t.ancestors,s=t.type==1?"":t.ancestorNames,o=this.isDept&&this.isSon&&t.type==2?"4":t.type,r={...t,ancestors:n,ancestorNames:s,orgRecordsType:o};return(t.type==1||o==4)&&(this.checkedJson=this.checkedJson.filter(a=>a.ancestors.indexOf(t.id)===-1)),this.getBoolChecked(t)?(e.currentTarget.checked=!1,!1):(this.multiple?this.checkedJson.push(r):this.checkedJson=[r],!1)}this.checkedJson=this.checkedJson.filter(n=>n.uniqueId!==t.uniqueId)},handleBreadcrumb(e,t){if(t+1==this.breadcrumb.length)return!1;switch(t){case 0:this.deptId="",this.subjectId="";break;case 1:this.deptId=0,this.subjectId=this.breadcrumb_subjectId;break;default:this.deptId=e.value,this.subjectId=this.breadcrumb_subjectId;break}this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((n,s)=>s<t+1)})},handleLevel(e){if(e.isDisabled||e.isLevel)return!1;switch(e.type){case"1":this.deptId=0,this.subjectId=e.id,this.getSearch(()=>{this.breadcrumb.push({name:e.name,value:e.id})});break;case"2":this.deptId=e.id,this.subjectId=this.breadcrumb_subjectId,this.getSearch(()=>{this.breadcrumb.push({name:e.name,value:e.id})});break}},getBoolChecked(e){if(e.type!=3)return!1;const t=e.ancestors.split(","),n=this.checkedJson.filter(o=>o.type==2||o.type==1).find(o=>t.indexOf(o.id)>-1);let s=!1;return J(n)||(n.type==1&&(new Vl().message({content:`\u5DF2\u9009\u7684\u7EC4\u7EC7\u3010${n.name}\u3011\u5B58\u5728${e.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),s=!0),n.type==4&&(new Vl().message({content:`\u5DF2\u9009\u7684\u90E8\u95E8\u3010${n.name}\u3011\u5B58\u5728${e.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),s=!0)),s},defaultBreadcrumb(){this.breadcrumb=[{name:"\u7EC4\u7EC7",value:"-1"}],this.isSon=!1,this.deptId="",this.subjectId="",this.jsonData=[],this.keyword="",this.isQuery=!0,this.isLoading=!1},getIsSon(){const e=this.entityJson.filter(n=>n.type==2),t=this.checkedJson.filter(n=>n.type==2);this.isSon=t.findIndex(n=>e.findIndex(s=>s.id===n.id&&n.orgRecordsType==4)>-1)>-1},getSearch(e=()=>{}){const t=this.codeType.findIndex(s=>s==3)>-1?3:this.codeType.findIndex(s=>s==2)>-1?2:1,n={source:this.source,type:this.type,deptId:this.deptId,subjectId:this.subjectId,keyword:this.keyword,showType:t};J(n.deptId)&&delete n.deptId,J(n.deptId)&&delete n.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:n}).then(s=>{e(),this.jsonData=J(s.data)||s.code!==200?[]:s.data,this.getIsSon()}).finally(()=>{this.isLoading=!1})},getDetail(e=()=>{}){if(J(this.businessId))return e(),!1;const t={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:t}).then(n=>{this.checkedJson=J(n.data)||n.code!==200?[]:n.data.map(s=>{const o=s.type==4?"2":s.type,r=s.ancestors+s.bizId+"__"+o;return{...s,id:s.bizId,type:o,uniqueId:r,orgRecordsType:s.type,iconName:ni(s.name,2),sex:s.sex,uid:J(s.uid)?"":s.uid}}),e()})}}};var Lg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("main",{staticClass:"departPerson-main"},[n("div",{staticClass:"deper-top"},[e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowQuery,expression:"isShowQuery"}],staticClass:"deper-query"},[n("i",{staticClass:"icon-chaxun iconfont"}),n("form",{staticClass:"form",attrs:{action:"javascript: void(0);"},on:{submit:function(s){s.preventDefault()}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],attrs:{type:"search",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u3001\u624B\u673A\u53F7\u7801"},domProps:{value:e.keyword},on:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.handleQuery.apply(null,arguments)},input:function(s){s.target.composing||(e.keyword=s.target.value)}}})]),e.keyword.length>0?n("i",{staticClass:"icon-error-fill iconfont close",on:{click:e.handleEmpty}}):e._e()]),e.isQuery?n("div",{staticClass:"deper-breadcrumb"},e._l(e.breadcrumb,function(s,o){return n("div",{key:s.value,staticClass:"deper-b-item",on:{click:function(r){return e.handleBreadcrumb(s,o)}}},[n("span",[e._v(e._s(s.name))]),n("i",{staticClass:"icon-jiantouyou iconfont"})])}),0):e._e(),e.isQuery?n("div",{staticClass:"deper-all"},[n("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(s){var o=e.checkedAll,r=s.target,a=!!r.checked;if(Array.isArray(o)){var l=null,c=e._i(o,l);r.checked?c<0&&(e.checkedAll=o.concat([l])):c>-1&&(e.checkedAll=o.slice(0,c).concat(o.slice(c+1)))}else e.checkedAll=a},e.handleAllCheckbox]}}),n("label",{attrs:{for:"deper-all"}},[e._v("\u5168\u9009")])]):e._e()]),e.isQuery?n("div",{staticClass:"deper-center",class:e.getHight},[e.companyJson.length>0?n("div",{staticClass:"deper-c-depart"},e._l(e.companyJson,function(s){return n("div",{key:s.uniqueId,staticClass:"depart-item"},[n("label",{staticClass:"depart-left",class:{width:e.isNotLevel}},[n("input",{directives:[{name:"show",rawName:"v-show",value:e.isShowSubject,expression:"isShowSubject"},{name:"model",rawName:"v-model",value:s.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:s.isDisabled,type:"checkbox"},domProps:{checked:Array.isArray(s.checked)?e._i(s.checked,null)>-1:s.checked},on:{change:[function(o){var r=s.checked,a=o.target,l=!!a.checked;if(Array.isArray(r)){var c=null,d=e._i(r,c);a.checked?d<0&&e.$set(s,"checked",r.concat([c])):d>-1&&e.$set(s,"checked",r.slice(0,d).concat(r.slice(d+1)))}else e.$set(s,"checked",l)},function(o){return e.handleCheckbox(o,s)}]}}),n("div",{staticClass:"depart-name"},[n("div",{staticClass:"name"},[e._v(e._s(s.name))]),s.num>0?n("div",{staticClass:"number"},[e._v("("),n("label",[e._v(e._s(s.num)+"/"+e._s(s.counts))]),e._v(")")]):n("div",{staticClass:"number"},[e._v("("+e._s(s.counts)+")")])])]),e.isNotLevel?e._e():n("div",{staticClass:"depart-right",class:{isdisabled:s.isLevel},on:{click:function(o){return e.handleLevel(s)}}},[n("i",{staticClass:"icon-pedigree iconfont"}),n("span",[e._v("\u4E0B\u7EA7")])])])}),0):e._e(),e.deptJson.length>0?n("div",{staticClass:"deper-c-depart"},e._l(e.deptJson,function(s){return n("div",{key:s.uniqueId,staticClass:"depart-item"},[n("label",{staticClass:"depart-left"},[n("input",{directives:[{name:"show",rawName:"v-show",value:e.isShowDept,expression:"isShowDept"},{name:"model",rawName:"v-model",value:s.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:s.isDisabled,type:"checkbox"},domProps:{checked:Array.isArray(s.checked)?e._i(s.checked,null)>-1:s.checked},on:{change:[function(o){var r=s.checked,a=o.target,l=!!a.checked;if(Array.isArray(r)){var c=null,d=e._i(r,c);a.checked?d<0&&e.$set(s,"checked",r.concat([c])):d>-1&&e.$set(s,"checked",r.slice(0,d).concat(r.slice(d+1)))}else e.$set(s,"checked",l)},function(o){return e.handleCheckbox(o,s)}]}}),n("div",{staticClass:"depart-name"},[n("div",{staticClass:"name"},[e._v(e._s(s.name))]),s.num>0?n("div",{staticClass:"number"},[e._v("("),n("label",[e._v(e._s(s.num)+"/"+e._s(s.counts))]),e._v(")")]):n("div",{staticClass:"number"},[e._v("("+e._s(s.counts)+")")])])]),n("div",{staticClass:"depart-right",class:{isdisabled:s.isLevel},on:{click:function(o){return e.handleLevel(s)}}},[n("i",{staticClass:"icon-pedigree iconfont"}),n("span",[e._v("\u4E0B\u7EA7")])])])}),0):e._e(),e.userJson.length>0?n("div",{staticClass:"deper-c-user"},e._l(e.userJson,function(s){return n("label",{key:s.uniqueId,staticClass:"user-item"},[n("input",{directives:[{name:"model",rawName:"v-model",value:s.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:s.isDisabled,type:"checkbox"},domProps:{checked:Array.isArray(s.checked)?e._i(s.checked,null)>-1:s.checked},on:{change:[function(o){var r=s.checked,a=o.target,l=!!a.checked;if(Array.isArray(r)){var c=null,d=e._i(r,c);a.checked?d<0&&e.$set(s,"checked",r.concat([c])):d>-1&&e.$set(s,"checked",r.slice(0,d).concat(r.slice(d+1)))}else e.$set(s,"checked",l)},function(o){return e.handleCheckbox(o,s)}]}}),n("div",{staticClass:"user-icon"},[n("span",[e._v(e._s(s.iconName))])]),n("div",{staticClass:"user-name"},[n("div",{staticClass:"span"},[e._v(e._s(s.name))]),n("div",{staticClass:"phone"},[e._v(e._s(s.phone))])])])}),0):e._e()]):n("div",{staticClass:"deper-search"},[e._e(),n("div",{staticClass:"deper-search-section"},[e._e(),n("div",{staticClass:"search-user"},[n("div",{staticClass:"search-title"},[e._v("\u8054\u7CFB\u4EBA")]),e._l(e.userJson,function(s){return n("label",{key:s.uniqueId,staticClass:"user-item"},[n("input",{directives:[{name:"model",rawName:"v-model",value:s.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:s.isDisabled,type:"checkbox"},domProps:{checked:Array.isArray(s.checked)?e._i(s.checked,null)>-1:s.checked},on:{change:[function(o){var r=s.checked,a=o.target,l=!!a.checked;if(Array.isArray(r)){var c=null,d=e._i(r,c);a.checked?d<0&&e.$set(s,"checked",r.concat([c])):d>-1&&e.$set(s,"checked",r.slice(0,d).concat(r.slice(d+1)))}else e.$set(s,"checked",l)},function(o){return e.handleCheckbox(o,s)}]}}),n("div",{staticClass:"user-icon"},[n("span",[e._v(e._s(s.iconName))])]),n("div",{staticClass:"user-name"},[n("div",{staticClass:"span"},[e._v(e._s(s.name))]),n("div",{staticClass:"phone"},[e._v(e._s(s.phone))]),n("div",{staticClass:"txt"},[e._v(e._s(s.ancestorNames))])])])})],2)])]),e.isDept?n("div",{staticClass:"deper-son"},[n("span",[e._v("\u5305\u542B\u5B50\u7EA7")]),n("dc-switch",{attrs:{modelValue:e.isSon,name:"isSone"},on:{"update:modelValue":function(s){e.isSon=s},"update:model-value":function(s){e.isSon=s}}})],1):e._e(),n("div",{staticClass:"deper-bottom"},[n("div",{staticClass:"deper-b-checked",on:{click:function(s){e.isShowChecked=!0}}},[n("span",[e._v(e._s(e.checkedNumber))]),e.checkedNumber.length>0?n("i",{staticClass:"icon-jiantouyou iconfont"}):e._e()]),n("div",{staticClass:"deper-b-btn",on:{click:e.handleSubmit}},[e._v("\u786E\u5B9A")])]),n("checked",{attrs:{visible:e.isShowChecked,checkedJson:e.checkedJson},on:{"update:visible":function(s){e.isShowChecked=s},"update:checkedJson":function(s){e.checkedJson=s},"update:checked-json":function(s){e.checkedJson=s}}}),e.isLoading?n("dcLoading"):e._e()],1)},Gg=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"depart-item"},[n("label",{staticClass:"depart-left"},[n("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),n("div",{staticClass:"depart-name"},[n("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")]),n("div",{staticClass:"number"},[e._v("("),n("label",[e._v("100/100")]),e._v(")")])])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"depart-item"},[n("label",{staticClass:"depart-left"},[n("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),n("div",{staticClass:"depart-name"},[n("div",{staticClass:"name"},[e._v("\u6280\u672F\u90E8")]),n("div",{staticClass:"number"},[e._v("(80)")])])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"depart-item"},[n("label",{staticClass:"depart-left"},[n("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),n("div",{staticClass:"depart-name"},[n("div",{staticClass:"name"},[e._v("\u5F00\u53D1\u90E8")]),n("div",{staticClass:"number"},[e._v("("),n("label",[e._v("100/100")]),e._v(")")])])])])}];const Sl={};var jg=fs(Mg,Lg,Gg,!1,Rg,"7d50b77a",null,null);function Rg(e){for(let t in Sl)this[t]=Sl[t]}const Ze=function(){return jg.exports}(),qg=Be({name:"TopSubmitPopup",components:{TopPopup:pe,TopDownSelect:ar,PreviewImage:qs,departPerson:Ze,TopTips:Ne},props:{visible:{type:Boolean,default:!1},request:{type:Function,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"}},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},multiNodeParticipant:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[]}},watch:{visible:{async handler(e,t){this.show=e,this.$emit("update:visible",this.show),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId}}).then(n=>{console.log("\u83B7\u53D6\u6D41\u7A0B::",n),n.code==200&&(this.option=n.data,this.checkedItem=this.option[0],this.getAfferentParticipantNodeList(),this.getDiagramUrl())}),await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.checkedItem.id}}).then(n=>{n.code===200&&(this.firstPerson=n.data)})},immediate:!0}},methods:{handleChange(e){console.log("\u5F53\u524D\u9009\u62E9::::",e),this.checkedItem=e,this.getAfferentParticipantNodeList(),this.getDiagramUrl()},getAfferentParticipantNodeList(){this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.personList=e.data.slice(1))})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenPerson(e){console.log("\u9009\u4EBA\u5F39\u7A97",e),this.visiblePerson=!0,this.personObjId=e.id},handleCallback(e){this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,n)=>{this.multiNodeParticipant[this.personObjId].push(t.uid),this.partNode[this.personObjId].push(t.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},async handleSumbit(){if(this.firstPerson&&this.firstPerson.length&&!this.multiNodeParticipant[this.firstPerson[0].id]){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error");return}this.handleTips("",!0,"loading"),this.resubmit?(console.log("\u9001\u5BA1\u91CD\u65B0\u63D0\u4EA4",this.multiNodeParticipant),await this.request.post("/aws/pis/reactivate",{processInstId:this.processId||"572405e4-e0dc-40fc-9a95-2b20f5bdfbf1",isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(e=>{e.code==200?(this.show=!1,this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})):(console.log("\u9001\u5BA1\u9996\u6B21\u63D0\u4EA4",this.multiNodeParticipant),await this.request.post("/aws/pis/createAndStart",{title:this.title,processDefId:this.checkedItem.id,processBusinessKey:this.id,showType:"app",businessType:this.businessType,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameter}).then(e=>{e.code===200?(this.show=!1,this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")):e.code==499?this.request.post("/aws/pis/reactivate",{processInstId:this.processId||"572405e4-e0dc-40fc-9a95-2b20f5bdfbf1",isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(t=>{t.code==200?(this.show=!1,this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.handleTips(t.msg,!0,"error")}):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")}))},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()}}}),OC="",Kg=e=>(i.pushScopeId("data-v-fb529bf9"),e=e(),i.popScopeId(),e),Hg={key:0,class:"person-views"},Yg={class:"views-items"},_g={class:"views-items-name"},Wg=Kg(()=>i.createElementVNode("span",{class:"views-items-name--re"},"*",-1)),Zg={class:"views-items-set"},zg={key:0},Xg={key:0},$g={key:1},eA=["onClick"],tA={key:1,class:"person-views"},nA={class:"views-items"},sA={class:"views-items-name"},oA={class:"views-items-set"},iA={key:0},rA={key:0},aA={key:1},lA=["onClick"],cA={key:2,class:"person-views-white"},pA={class:"person-btn"};function dA(e,t,n,s,o,r){const a=i.resolveComponent("TopDownSelect"),l=i.resolveComponent("TopPopup"),c=i.resolveComponent("departPerson"),d=i.resolveComponent("PreviewImage"),p=i.resolveComponent("TopTips");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(l,{visible:e.show,"onUpdate:visible":t[2]||(t[2]=u=>(e.show=u,e.$emit("update:visible",u))),ref:"TopPopup",titleText:"\u9001\u5BA1",isDrawer:"",isIndex:99},{default:i.withCtx(()=>[i.createVNode(a,{option:e.option,onChange:e.handleChange},null,8,["option","onChange"]),i.createElementVNode("div",{class:"viewTrack",onClick:t[0]||(t[0]=u=>e.taskurlshow=!0)},"\u67E5\u770B\u6D41\u7A0B\u56FE"),e.firstPerson&&e.firstPerson.length?(i.openBlock(),i.createElementBlock("div",Hg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.firstPerson,(u,g)=>(i.openBlock(),i.createElementBlock("div",Yg,[i.createElementVNode("div",_g,[i.createTextVNode(i.toDisplayString(u.name)+" ",1),Wg]),i.createElementVNode("div",Zg,[e.partNode[u.id]&&e.partNode[u.id].length?(i.openBlock(),i.createElementBlock("div",zg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.partNode[u.id],(y,k)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(k>=3?"":k==0?y:`,${y}`),1))),256)),e.partNode[u.id].length>3?(i.openBlock(),i.createElementBlock("span",Xg,"...\u7B49"+i.toDisplayString(e.partNode[u.id].length)+"\u4EBA",1)):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",$g)),i.createElementVNode("div",{class:"views-items-set-btn",onClick:y=>e.handleOpenPerson(u)}," \u8BBE\u7F6E ",8,eA)])]))),256))])):i.createCommentVNode("",!0),e.personList&&e.personList.length?(i.openBlock(),i.createElementBlock("div",tA,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.personList,(u,g)=>(i.openBlock(),i.createElementBlock("div",nA,[i.createElementVNode("div",sA,i.toDisplayString(u.name),1),i.createElementVNode("div",oA,[e.partNode[u.id]&&e.partNode[u.id].length?(i.openBlock(),i.createElementBlock("div",iA,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.partNode[u.id],(y,k)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(k>=3?"":k==0?y:`,${y}`),1))),256)),e.partNode[u.id].length>3?(i.openBlock(),i.createElementBlock("span",rA,"...\u7B49"+i.toDisplayString(e.partNode[u.id].length)+"\u4EBA",1)):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",aA)),i.createElementVNode("div",{class:"views-items-set-btn",onClick:y=>e.handleOpenPerson(u)}," \u8BBE\u7F6E ",8,lA)])]))),256))])):i.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(i.openBlock(),i.createElementBlock("div",cA," \u65E0\u9700\u8BBE\u7F6E ")):i.createCommentVNode("",!0),i.createElementVNode("div",pA,[i.createElementVNode("div",{class:"top-button",style:{"background-color":"#3c9cff",color:"#fff"},onClick:t[1]||(t[1]=(...u)=>e.handleSumbit&&e.handleSumbit(...u))}," \u9001\u5BA1 ")])]),_:1},8,["visible"]),i.createVNode(l,{visible:e.visiblePerson,"onUpdate:visible":t[3]||(t[3]=u=>e.visiblePerson=u),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},{default:i.withCtx(()=>[i.createVNode(c,i.mergeProps({visible:e.visiblePerson},e.entity,{onCallback:e.handleCallback,onCancel:e.handleCancel}),null,16,["visible","onCallback","onCancel"])]),_:1},8,["visible"]),i.createVNode(d,{images:e.trackUrl,visible:e.taskurlshow,"onUpdate:visible":t[4]||(t[4]=u=>e.taskurlshow=u),indexd:0,isOne:!0,isStyle:e.isStyle},null,8,["images","visible","isStyle"]),i.createVNode(p,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"])])}const Dl=q(qg,[["render",dA],["__scopeId","data-v-fb529bf9"]]),uA="data:image/png;base64,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",hA=Be({name:"attchViews",components:{TopTips:Ne,PreviewImage:qs,PreView:zi,TopPopup:pe},props:{request:{type:Function,defalut:()=>{}},limit:{type:Number|String,default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(e,t){e&&(this.filesArr=[].concat(e),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return uA},del(){return Xi},doc(){return $i},file(){return er},image(){return tr},pdf(){return nr},xls(){return sr},zip(){return or}},mounted(){let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;",e.multiple=!0,e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e),typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1)},methods:{handleClick(){if(console.log("\u62E6\u622A",this.haveCount,this.limit),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${props.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}},async handleSelect(e,t){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading"),console.log("formData",e.target.files);const n=Array.from(e.target.files);let s=0,o=this.haveCount>n.length?n.length:this.haveCount;try{for(let r=0;r<o;r++)if(this.extension.includes(n[r].name.substring(n[r].name.lastIndexOf(".")+1))){const a=new FormData;a.append("file",n[r]);const l=await this.request.post("/file/upload",a,{headers:{"Content-Type":"multipart/form-data"}});if(l.code===200){if(this.filesArr.length>0){for(let c=0;c<this.filesArr.length;c++)if(l.originFileName==this.filesArr[c].originFileName&&s++,this.filesArr[c].originFileName.includes(`(${s})`)&&s++,s>0){let d=l.originFileName.lastIndexOf(".");l.originFileName=`${l.originFileName.substring(0,d)} (${s}) .${l.originFileName.substring(l.originFileName.lastIndexOf(".")+1)}`}}this.filesArr.push(l.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${n[r].name}\u683C\u5F0F\u9519\u8BEF,\u8BF7\u91CD\u65B0\u4E0A\u4F20`,!0,"error");return}this.handleTips("\u4E0A\u4F20\u6210\u529F",!0,"success"),this.viewImage(),console.log("\u5F53\u524D\u5DF2\u4E0A\u4F20",this.filesArr),this.emitView()}catch{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.emitView()}},handleDel(e,t){if(this.deletFn){if(this.deletFn(t)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(e,1),this.emitView()}else this.filesArr.splice(e,1),this.emitView()},viewFile(e,t){console.log("data",e),this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1))?(this.visible=!0,this.indexd=this.lists.indexOf(e.url)):e.url&&(this.visibleS=!0,this.fileUrl=e.url)},viewImage(){this.lists=[];let e=[];this.filesArr.map((t,n)=>{this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1))}),e=this.filesArr.filter(t=>this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1))),e.forEach((t,n)=>{this.lists.push(t.url)})},emitView(){console.log("\u5DF2\u53D1\u9001\u6570\u636E:",this.filesArr),this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[],console.log("clear!!!!!")},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()}}}),xC="",fA={class:"attch-upload"},mA={key:0,class:"attch-upload-mask"},gA={class:"attch-upload-body"},AA={class:"upload-header"},yA={class:"upload-header-title"},kA={key:0,class:"upload-header-title--re"},CA={class:"upload-header-upload"},EA=["src"],bA={class:"upload-body"},IA={key:0,class:"upload-list"},BA={class:"list-items-icon"},NA=["src"],wA=["src"],vA=["src"],TA=["src"],VA=["src"],SA=["src"],DA={class:"list-items-info"},OA={class:"info-name"},xA={class:"info-attribute"},QA={class:"info-attribute-size"},FA=["onClick"],UA={key:0,class:"list-items-operation"},PA=["onClick"],JA=["src"];function MA(e,t,n,s,o,r){const a=i.resolveComponent("TopTips"),l=i.resolveComponent("PreviewImage"),c=i.resolveComponent("PreView"),d=i.resolveComponent("TopPopup");return i.openBlock(),i.createElementBlock("div",fA,[e.buttonLoading?(i.openBlock(),i.createElementBlock("div",mA)):i.createCommentVNode("",!0),i.createElementVNode("div",gA,[i.createElementVNode("div",AA,[i.createElementVNode("div",yA,[i.createTextVNode(" \u9644\u4EF6 "),e.requires?(i.openBlock(),i.createElementBlock("span",kA,"*")):i.createCommentVNode("",!0)]),i.createElementVNode("div",CA,[e.onlyShow?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"upload-header-upload--item",id:"inputfile",onClick:t[0]||(t[0]=(...p)=>e.handleClick&&e.handleClick(...p))},[i.createElementVNode("img",{src:e.addFile},null,8,EA),i.createTextVNode("\u4E0A\u4F20\u9644\u4EF6 ")]))])]),i.createElementVNode("div",bA,[e.filesArr.length>0?(i.openBlock(),i.createElementBlock("div",IA,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.filesArr,(p,u)=>(i.openBlock(),i.createElementBlock("div",{class:"list-items",key:p.uuid},[i.createElementVNode("div",BA,[e.xlsIcon.includes(p.name.substring(p.name.lastIndexOf(".")+1))?(i.openBlock(),i.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,NA)):e.imgIcon.includes(p.name.substring(p.name.lastIndexOf(".")+1))?(i.openBlock(),i.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,wA)):p.name.substring(p.name.lastIndexOf(".")+1)=="pdf"?(i.openBlock(),i.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,vA)):e.docIcon.includes(p.name.substring(p.name.lastIndexOf(".")+1))?(i.openBlock(),i.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,TA)):e.zipIcon.includes(p.name.substring(p.name.lastIndexOf(".")+1))?(i.openBlock(),i.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,VA)):(i.openBlock(),i.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,SA))]),i.createElementVNode("div",DA,[i.createElementVNode("div",OA,i.toDisplayString(p.originFileName),1),i.createElementVNode("div",xA,[i.createElementVNode("span",QA,i.toDisplayString(p.fileSize<1024?p.fileSize:p.fileSize/1024>1024?parseFloat((p.fileSize/1024/1024).toFixed(2)):parseFloat((p.fileSize/1024).toFixed(2)))+i.toDisplayString(p.fileSize<1024?"b":parseFloat((p.fileSize/1024).toFixed(2))<1024?"kb":"M"),1),i.createElementVNode("span",{class:"info-attribute-views",onClick:g=>e.viewFile(p,u)}," \u9884\u89C8 ",8,FA)])]),e.onlyShow?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",UA,[i.createElementVNode("div",{onClick:g=>e.handleDel(u,p),class:"list-items-operation-img"},[i.createElementVNode("img",{src:e.del},null,8,JA)],8,PA)]))]))),128))])):i.createCommentVNode("",!0)])]),i.createVNode(a,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),i.createVNode(l,{images:e.lists,visible:e.visible,"onUpdate:visible":t[1]||(t[1]=p=>e.visible=p),indexd:e.indexd},null,8,["images","visible","indexd"]),i.createVNode(d,{visible:e.visibleS,"onUpdate:visible":t[2]||(t[2]=p=>e.visibleS=p),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:i.withCtx(()=>[i.createVNode(c,{file:e.fileUrl},null,8,["file"])]),_:1},8,["visible"])])}const ze=q(hA,[["render",MA],["__scopeId","data-v-2fb31c81"]]),QC="",LA={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:ze,TopPopup:pe,departPerson:Ze},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e="";this.multiNodeParticipant[this.partObjId].map((t,n)=>{n==0?e=t:e=`${e} ${t}`}),this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/createDynamicTask",{title:this.param.formData.title||this.param.formData.reason||this.param.formData.meetingTheme,participant:e,processInstId:this.param.processInstId,adHocType:2,parentTaskInstId:this.param.taskInstId,reason:this.commentMsg}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,n)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((n,s)=>{n.size=n.fileSize,n.format=n.originFileName.substring(n.originFileName.lastIndexOf(".")+1),n.uploadTime=n.createTime,n.processInstId=this.param.processInstId,n.taskInstId=this.param.taskInstId,n.name=n.originFileName});let e=this.attchLists;const t=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});console.log("asd",t),t.success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()}}},Rt=e=>(i.pushScopeId("data-v-f224c271"),e=e(),i.popScopeId(),e),GA={class:"process-popup-content"},jA=Rt(()=>i.createElementVNode("div",{class:"process-pc-label"},[i.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),i.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),RA={class:"process-pc-value"},qA={class:"process-popup-textarea"},KA={class:"process-pc-label"},HA=Rt(()=>i.createElementVNode("br",null,null,-1)),YA=["onClick"],_A={class:"process-pc-value--people"},WA={key:0,class:"process-pc-value--data"},ZA={key:1,class:"process-pc-value--data",style:{color:"#888"}},zA=[Rt(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],XA={class:"process-pc-label"},$A=Rt(()=>i.createElementVNode("br",null,null,-1)),ey=Rt(()=>i.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),ty=["onClick"],ny={class:"process-pc-value--people"},sy={key:0,class:"process-pc-value--data"},oy={key:1,class:"process-pc-value--data",style:{color:"#888"}},iy=[Rt(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function ry(e,t,n,s,o,r){const a=i.resolveComponent("TopTips"),l=i.resolveComponent("departPerson"),c=i.resolveComponent("TopPopup"),d=i.resolveComponent("attchViews");return i.openBlock(),i.createElementBlock("div",GA,[jA,i.createElementVNode("div",RA,[i.createElementVNode("div",qA,[i.withDirectives(i.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=p=>o.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[i.vModelText,o.commentMsg]])])]),o.taskNode&&o.taskNode.length>0&&o.taskNode[0].taskState!=11?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[o.nextNodeData.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(o.nextNodeData,p=>{var u,g;return i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption((g=(u=p==null?void 0:p.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",KA,[i.createTextVNode(i.toDisplayString(p.userTaskModelDTO.name)+" ",1),HA,i.createTextVNode(" \u5BA1\u6279\u4EBA: ")]),i.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(p.id)},[i.createElementVNode("div",_A,[o.partNode[p.id]&&o.partNode[p.id].length?(i.openBlock(),i.createElementBlock("div",WA,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[p.id],(y,k)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(k==0?y:`,${y}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",ZA,zA))])],8,YA)],64)):i.createCommentVNode("",!0)],64)}),256)):o.outGatewayUserTaskModel.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(o.outGatewayUserTaskModel,p=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption(p.humanPerformerName)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",XA,[i.createTextVNode(i.toDisplayString(p.name)+" ",1),$A,i.createTextVNode(" \u5BA1\u6279\u4EBA "),ey]),i.createElementVNode("div",{class:"process-pc-value",onClick:u=>r.handleOpenPopup(p.id)},[i.createElementVNode("div",ny,[o.partNode[p.id]&&o.partNode[p.id].length?(i.openBlock(),i.createElementBlock("div",sy,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[p.id],(u,g)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(g==0?u:`,${u}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",oy,iy))])],8,ty)],64)):i.createCommentVNode("",!0)],64))),256)):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createVNode(a,{ref:"topTips",text:o.textTips,statusTips:o.statusTips,type:o.typeTips},null,8,["text","statusTips","type"]),i.createVNode(c,{visible:o.visible,"onUpdate:visible":t[1]||(t[1]=p=>o.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:i.withCtx(()=>[i.createVNode(l,i.mergeProps({visible:o.visible,request:n.param.request,businessId:n.param.formData.businessKey},o.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),o.labels=="5"?(i.openBlock(),i.createBlock(d,{key:1,limit:o.limit?o.limit:-1,requires:o.requires,request:n.param.request,linkUrl:n.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):i.createCommentVNode("",!0)])}const ay=q(LA,[["render",ry],["__scopeId","data-v-f224c271"]]),PC="",ly={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:ze,TopPopup:pe,departPerson:Ze},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e="";this.multiNodeParticipant[this.partObjId].map((t,n)=>{n==0?e=t:e=`${e} ${t}`}),this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/delegate",{delegateReason:this.commentMsg,taskInstId:this.param.taskInstId,targetUID:e}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,n)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((n,s)=>{n.size=n.fileSize,n.format=n.originFileName.substring(n.originFileName.lastIndexOf(".")+1),n.uploadTime=n.createTime,n.processInstId=this.param.processInstId,n.taskInstId=this.param.taskInstId,n.name=n.originFileName});let e=this.attchLists;const t=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});console.log("asd",t),t.success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()}}},qt=e=>(i.pushScopeId("data-v-9bec467d"),e=e(),i.popScopeId(),e),cy={class:"process-popup-content"},py=qt(()=>i.createElementVNode("div",{class:"process-pc-label"},[i.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),i.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),dy={class:"process-pc-value"},uy={class:"process-popup-textarea"},hy={class:"process-pc-label"},fy=qt(()=>i.createElementVNode("br",null,null,-1)),my=["onClick"],gy={class:"process-pc-value--people"},Ay={key:0,class:"process-pc-value--data"},yy={key:1,class:"process-pc-value--data",style:{color:"#888"}},ky=[qt(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Cy={class:"process-pc-label"},Ey=qt(()=>i.createElementVNode("br",null,null,-1)),by=qt(()=>i.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Iy=["onClick"],By={class:"process-pc-value--people"},Ny={key:0,class:"process-pc-value--data"},wy={key:1,class:"process-pc-value--data",style:{color:"#888"}},vy=[qt(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Ty(e,t,n,s,o,r){const a=i.resolveComponent("TopTips"),l=i.resolveComponent("departPerson"),c=i.resolveComponent("TopPopup"),d=i.resolveComponent("attchViews");return i.openBlock(),i.createElementBlock("div",cy,[py,i.createElementVNode("div",dy,[i.createElementVNode("div",uy,[i.withDirectives(i.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=p=>o.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[i.vModelText,o.commentMsg]])])]),o.taskNode&&o.taskNode.length>0&&o.taskNode[0].taskState!=11?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[o.nextNodeData.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(o.nextNodeData,p=>{var u,g;return i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption((g=(u=p==null?void 0:p.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",hy,[i.createTextVNode(i.toDisplayString(p.userTaskModelDTO.name)+" ",1),fy,i.createTextVNode(" \u5BA1\u6279\u4EBA: ")]),i.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(p.id)},[i.createElementVNode("div",gy,[o.partNode[p.id]&&o.partNode[p.id].length?(i.openBlock(),i.createElementBlock("div",Ay,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[p.id],(y,k)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(k==0?y:`,${y}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",yy,ky))])],8,my)],64)):i.createCommentVNode("",!0)],64)}),256)):o.outGatewayUserTaskModel.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(o.outGatewayUserTaskModel,p=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption(p.humanPerformerName)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",Cy,[i.createTextVNode(i.toDisplayString(p.name)+" ",1),Ey,i.createTextVNode(" \u5BA1\u6279\u4EBA "),by]),i.createElementVNode("div",{class:"process-pc-value",onClick:u=>r.handleOpenPopup(p.id)},[i.createElementVNode("div",By,[o.partNode[p.id]&&o.partNode[p.id].length?(i.openBlock(),i.createElementBlock("div",Ny,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[p.id],(u,g)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(g==0?u:`,${u}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",wy,vy))])],8,Iy)],64)):i.createCommentVNode("",!0)],64))),256)):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createVNode(a,{ref:"topTips",text:o.textTips,statusTips:o.statusTips,type:o.typeTips},null,8,["text","statusTips","type"]),i.createVNode(c,{visible:o.visible,"onUpdate:visible":t[1]||(t[1]=p=>o.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:i.withCtx(()=>[i.createVNode(l,i.mergeProps({visible:o.visible,request:n.param.request,businessId:n.param.formData.businessKey},o.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),o.labels=="1"?(i.openBlock(),i.createBlock(d,{key:1,limit:o.limit?o.limit:-1,requires:o.requires,request:n.param.request,linkUrl:n.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):i.createCommentVNode("",!0)])}const Vy=q(ly,[["render",Ty],["__scopeId","data-v-9bec467d"]]),LC="",Sy={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:ze,TopPopup:pe,departPerson:Ze},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel")},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},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}this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/complete",{actionName:"\u63D0\u4EA4",commentMsg:this.commentMsg,taskInstId:this.param.taskInstId,vars:this.param.vars,multiNodeParticipant:this.multiNodeParticipant}).then(e=>{if(e.code==200){if(this.attchLists.length>0){this.uploadAttch();return}this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.commentMsg=""}else this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,n)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((n,s)=>{n.size=n.fileSize,n.format=n.originFileName.substring(n.originFileName.lastIndexOf(".")+1),n.uploadTime=n.createTime,n.processInstId=this.param.processInstId,n.taskInstId=this.param.taskInstId,n.name=n.originFileName});let e=this.attchLists;const t=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});console.log("asd",t),t.success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()}}},Kt=e=>(i.pushScopeId("data-v-4665c449"),e=e(),i.popScopeId(),e),Dy={class:"process-popup-content"},Oy=Kt(()=>i.createElementVNode("div",{class:"process-pc-label"},[i.createTextVNode(" \u5BA1\u6279\u610F\u89C1 "),i.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),xy={class:"process-pc-value"},Qy={class:"process-popup-textarea"},Fy={class:"process-pc-label"},Uy=Kt(()=>i.createElementVNode("br",null,null,-1)),Py=["onClick"],Jy={class:"process-pc-value--people"},My={key:0,class:"process-pc-value--data"},Ly={key:1,class:"process-pc-value--data",style:{color:"#888"}},Gy=[Kt(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],jy={class:"process-pc-label"},Ry=Kt(()=>i.createElementVNode("br",null,null,-1)),qy=Kt(()=>i.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Ky=["onClick"],Hy={class:"process-pc-value--people"},Yy={key:0,class:"process-pc-value--data"},_y={key:1,class:"process-pc-value--data",style:{color:"#888"}},Wy=[Kt(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Zy(e,t,n,s,o,r){const a=i.resolveComponent("TopTips"),l=i.resolveComponent("departPerson"),c=i.resolveComponent("TopPopup"),d=i.resolveComponent("attchViews");return i.openBlock(),i.createElementBlock("div",Dy,[Oy,i.createElementVNode("div",xy,[i.createElementVNode("div",Qy,[i.withDirectives(i.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=p=>o.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[i.vModelText,o.commentMsg]])])]),o.taskNode&&o.taskNode.length>0&&o.taskNode[0].taskState!=11?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[o.nextNodeData.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(o.nextNodeData,p=>{var u,g;return i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption((g=(u=p==null?void 0:p.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",Fy,[i.createTextVNode(i.toDisplayString(p.userTaskModelDTO.name)+" ",1),Uy,i.createTextVNode(" \u5BA1\u6279\u4EBA: ")]),i.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(p.id)},[i.createElementVNode("div",Jy,[o.partNode[p.id]&&o.partNode[p.id].length?(i.openBlock(),i.createElementBlock("div",My,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[p.id],(y,k)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(k==0?y:`,${y}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",Ly,Gy))])],8,Py)],64)):i.createCommentVNode("",!0)],64)}),256)):o.outGatewayUserTaskModel.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(o.outGatewayUserTaskModel,p=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption(p.humanPerformerName)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",jy,[i.createTextVNode(i.toDisplayString(p.name)+" ",1),Ry,i.createTextVNode(" \u5BA1\u6279\u4EBA "),qy]),i.createElementVNode("div",{class:"process-pc-value",onClick:u=>r.handleOpenPopup(p.id)},[i.createElementVNode("div",Hy,[o.partNode[p.id]&&o.partNode[p.id].length?(i.openBlock(),i.createElementBlock("div",Yy,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[p.id],(u,g)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(g==0?u:`,${u}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",_y,Wy))])],8,Ky)],64)):i.createCommentVNode("",!0)],64))),256)):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createVNode(a,{ref:"topTips",text:o.textTips,statusTips:o.statusTips,type:o.typeTips},null,8,["text","statusTips","type"]),i.createVNode(c,{visible:o.visible,"onUpdate:visible":t[1]||(t[1]=p=>o.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:i.withCtx(()=>[i.createVNode(l,i.mergeProps({visible:o.visible,request:n.param.request,businessId:n.param.formData.businessKey},o.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),o.labels=="1"?(i.openBlock(),i.createBlock(d,{key:1,limit:o.limit?o.limit:-1,requires:o.requires,request:n.param.request,linkUrl:n.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):i.createCommentVNode("",!0)])}const zy=q(Sy,[["render",Zy],["__scopeId","data-v-4665c449"]]),RC="",Xy={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:ze,TopPopup:pe,departPerson:Ze},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(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/reject",{commentMsg:this.commentMsg,taskInstId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,n)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((n,s)=>{n.size=n.fileSize,n.format=n.originFileName.substring(n.originFileName.lastIndexOf(".")+1),n.uploadTime=n.createTime,n.processInstId=this.param.processInstId,n.taskInstId=this.param.taskInstId,n.name=n.originFileName});let e=this.attchLists;const t=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});console.log("asd",t),t.success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()}}},gn=e=>(i.pushScopeId("data-v-8688ca2e"),e=e(),i.popScopeId(),e),$y={class:"process-popup-content"},ek=gn(()=>i.createElementVNode("div",{class:"process-pc-label"},[i.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),i.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),tk={class:"process-pc-value"},nk={class:"process-popup-textarea"},sk={class:"process-pc-label"},ok=gn(()=>i.createElementVNode("br",null,null,-1)),ik=["onClick"],rk={class:"process-pc-value--people"},ak={key:0,class:"process-pc-value--data"},lk={key:1,class:"process-pc-value--data",style:{color:"#888"}},ck=[gn(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],pk={style:{"font-size":"15px"}},dk=gn(()=>i.createElementVNode("div",{class:"process-pc-label"},[i.createTextVNode(" \u5BA1\u6279\u4EBA "),i.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),uk=[gn(()=>i.createElementVNode("div",{class:"process-pc-value--people"},i.toDisplayString(234),-1))];function hk(e,t,n,s,o,r){const a=i.resolveComponent("TopTips"),l=i.resolveComponent("departPerson"),c=i.resolveComponent("TopPopup"),d=i.resolveComponent("attchViews");return i.openBlock(),i.createElementBlock("div",$y,[ek,i.createElementVNode("div",tk,[i.createElementVNode("div",nk,[i.withDirectives(i.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=p=>o.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[i.vModelText,o.commentMsg]])])]),o.taskNode&&o.taskNode.length>0&&o.taskNode[0].taskState!=11?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[o.nextNodeData.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(o.nextNodeData,p=>{var u,g;return i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption((g=(u=p==null?void 0:p.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",sk,[i.createTextVNode(i.toDisplayString(p.userTaskModelDTO.name)+" ",1),ok,i.createTextVNode(" \u5BA1\u6279\u4EBA: ")]),i.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(p.id)},[i.createElementVNode("div",rk,[o.partNode[p.id]&&o.partNode[p.id].length?(i.openBlock(),i.createElementBlock("div",ak,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[p.id],(y,k)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(k==0?y:`,${y}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",lk,ck))])],8,ik)],64)):i.createCommentVNode("",!0)],64)}),256)):o.outGatewayUserTaskModel.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(o.outGatewayUserTaskModel,p=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption(p.humanPerformerName)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",pk,i.toDisplayString(p.name),1),dk,i.createElementVNode("div",{class:"process-pc-value",onClick:t[1]||(t[1]=(...u)=>r.handleOpenPopup&&r.handleOpenPopup(...u))},uk)],64)):i.createCommentVNode("",!0)],64))),256)):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createVNode(a,{ref:"topTips",text:o.textTips,statusTips:o.statusTips,type:o.typeTips},null,8,["text","statusTips","type"]),i.createVNode(c,{visible:o.visible,"onUpdate:visible":t[2]||(t[2]=p=>o.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:i.withCtx(()=>[i.createVNode(l,i.mergeProps({visible:o.visible,request:n.param.request,businessId:n.param.formData.businessKey},o.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),o.labels=="\u62D2\u7EDD"?(i.openBlock(),i.createBlock(d,{key:1,limit:o.limit?o.limit:-1,requires:o.requires,request:n.param.request,linkUrl:n.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):i.createCommentVNode("",!0)])}const fk=q(Xy,[["render",hk],["__scopeId","data-v-8688ca2e"]]),HC="",mk={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:ze,TopPopup:pe,departPerson:Ze,TopDownSelect:ar},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:""}},watch:{param:{async handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{getReturnNode(){console.log("this.param.taskInstId",this.param.taskInstId),this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=e.data)})},handleChange(e){console.log("\u9000\u56DE\u8282\u70B9,",e),this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,isCompensation:!1,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,n)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((n,s)=>{n.size=n.fileSize,n.format=n.originFileName.substring(n.originFileName.lastIndexOf(".")+1),n.uploadTime=n.createTime,n.processInstId=this.param.processInstId,n.taskInstId=this.param.taskInstId,n.name=n.originFileName});let e=this.attchLists;const t=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});console.log("asd",t),t.success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()}}},Ol=e=>(i.pushScopeId("data-v-6c5c96d3"),e=e(),i.popScopeId(),e),gk={class:"process-popup-content"},Ak=Ol(()=>i.createElementVNode("div",{class:"process-pc-label",style:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[i.createTextVNode(" \u9000\u56DE\u8282\u70B9\uFF1A "),i.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),yk={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},kk=Ol(()=>i.createElementVNode("div",{class:"process-pc-label"},[i.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),i.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Ck={class:"process-pc-value"},Ek={class:"process-popup-textarea"};function bk(e,t,n,s,o,r){const a=i.resolveComponent("TopDownSelect"),l=i.resolveComponent("TopTips"),c=i.resolveComponent("attchViews");return i.openBlock(),i.createElementBlock("div",gk,[Ak,i.createElementVNode("div",yk,[i.createVNode(a,{option:o.option,onChange:r.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),kk,i.createElementVNode("div",Ck,[i.createElementVNode("div",Ek,[i.withDirectives(i.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=d=>o.commentMsg=d),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[i.vModelText,o.commentMsg]])])]),i.createVNode(l,{ref:"topTips",text:o.textTips,statusTips:o.statusTips,type:o.typeTips},null,8,["text","statusTips","type"]),o.labels=="\u9000\u56DE"?(i.openBlock(),i.createBlock(c,{key:0,limit:o.limit?o.limit:-1,requires:o.requires,request:n.param.request,linkUrl:n.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):i.createCommentVNode("",!0)])}const Ik=q(mk,[["render",bk],["__scopeId","data-v-6c5c96d3"]]),YC="",Bk={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:ze,TopPopup:pe,departPerson:Ze},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){this.handleTips("",!0,"loading");let e="";this.multiNodeParticipant[this.partObjId].map((t,n)=>{n==0?e=t:e=`${e} ${t}`}),await this.param.request.post("/aws/tis/createCCTask",{processInstId:this.param.processInstId,title:this.param.formData.title||this.param.formData.reason||this.param.formData.meetingTheme,parentTaskInstId:this.param.taskInstId,participant:e}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,n)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((n,s)=>{n.size=n.fileSize,n.format=n.originFileName.substring(n.originFileName.lastIndexOf(".")+1),n.uploadTime=n.createTime,n.processInstId=this.param.processInstId,n.taskInstId=this.param.taskInstId,n.name=n.originFileName});let e=this.attchLists;const t=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});console.log("asd",t),t.success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()}}},An=e=>(i.pushScopeId("data-v-9dd840eb"),e=e(),i.popScopeId(),e),Nk={class:"process-popup-content"},wk={class:"process-pc-label"},vk=An(()=>i.createElementVNode("br",null,null,-1)),Tk=["onClick"],Vk={class:"process-pc-value--people"},Sk={key:0,class:"process-pc-value--data"},Dk={key:1,class:"process-pc-value--data",style:{color:"#888"}},Ok=[An(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],xk={class:"process-pc-label"},Qk=An(()=>i.createElementVNode("br",null,null,-1)),Fk=An(()=>i.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Uk=["onClick"],Pk={class:"process-pc-value--people"},Jk={key:0,class:"process-pc-value--data"},Mk={key:1,class:"process-pc-value--data",style:{color:"#888"}},Lk=[An(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Gk(e,t,n,s,o,r){const a=i.resolveComponent("TopTips"),l=i.resolveComponent("departPerson"),c=i.resolveComponent("TopPopup"),d=i.resolveComponent("attchViews");return i.openBlock(),i.createElementBlock("div",Nk,[o.taskNode&&o.taskNode.length>0&&o.taskNode[0].taskState!=11?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[o.nextNodeData.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(o.nextNodeData,p=>{var u,g;return i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption((g=(u=p==null?void 0:p.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",wk,[i.createTextVNode(i.toDisplayString(p.userTaskModelDTO.name)+" ",1),vk,i.createTextVNode(" \u5BA1\u6279\u4EBA: ")]),i.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(p.id)},[i.createElementVNode("div",Vk,[o.partNode[p.id]&&o.partNode[p.id].length?(i.openBlock(),i.createElementBlock("div",Sk,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[p.id],(y,k)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(k==0?y:`,${y}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",Dk,Ok))])],8,Tk)],64)):i.createCommentVNode("",!0)],64)}),256)):o.outGatewayUserTaskModel.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(o.outGatewayUserTaskModel,p=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption(p.humanPerformerName)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",xk,[i.createTextVNode(i.toDisplayString(p.name)+" ",1),Qk,i.createTextVNode(" \u5BA1\u6279\u4EBA "),Fk]),i.createElementVNode("div",{class:"process-pc-value",onClick:u=>r.handleOpenPopup(p.id)},[i.createElementVNode("div",Pk,[o.partNode[p.id]&&o.partNode[p.id].length?(i.openBlock(),i.createElementBlock("div",Jk,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[p.id],(u,g)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(g==0?u:`,${u}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",Mk,Lk))])],8,Uk)],64)):i.createCommentVNode("",!0)],64))),256)):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createVNode(a,{ref:"topTips",text:o.textTips,statusTips:o.statusTips,type:o.typeTips},null,8,["text","statusTips","type"]),i.createVNode(c,{visible:o.visible,"onUpdate:visible":t[0]||(t[0]=p=>o.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:i.withCtx(()=>[i.createVNode(l,i.mergeProps({visible:o.visible,request:n.param.request,businessId:n.param.formData.businessKey},o.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),o.labels=="2"?(i.openBlock(),i.createBlock(d,{key:1,limit:o.limit?o.limit:-1,requires:o.requires,request:n.param.request,linkUrl:n.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):i.createCommentVNode("",!0)])}const jk=q(Bk,[["render",Gk],["__scopeId","data-v-9dd840eb"]]),ZC="",Rk={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:ze,TopPopup:pe,departPerson:Ze},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:{},getFirstProcessNode:{}}},watch:{param:{handler(e,t){console.log("handler::::",e),this.getFirstProcessNode=e.getFirstProcessNode,e.getFirstProcessNode&&this.getFirstProcessNode&&(e.getFirstProcessNode.type=="userTask"||e.getFirstProcessNode.type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):e.getFirstProcessNode.type=="ExclusiveGatewayModel"||e.getFirstProcessNode.type=="InclusiveGatewayModel")},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param)},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){let e={isClearHistory:!1,processInstId:this.param.processInstId,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant};this.handleTips("",!0,"loading"),await this.param.request.post("/aws/pis/reactivate",e).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")):this.handleTips(t.msg,!0,"error")})},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,n)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()}}},xl=e=>(i.pushScopeId("data-v-19b60514"),e=e(),i.popScopeId(),e),qk={class:"process-popup-content"},Kk={class:"process-pc-label"},Hk=xl(()=>i.createElementVNode("br",null,null,-1)),Yk={class:"process-pc-value--people"},_k={key:0,class:"process-pc-value--data"},Wk={key:1,class:"process-pc-value--data",style:{color:"#888"}},Zk=[xl(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function zk(e,t,n,s,o,r){const a=i.resolveComponent("TopTips"),l=i.resolveComponent("departPerson"),c=i.resolveComponent("TopPopup");return i.openBlock(),i.createElementBlock("div",qk,[i.createElementVNode("template",null,[i.createElementVNode("div",Kk,[i.createTextVNode(i.toDisplayString(o.getFirstProcessNode.name)+" ",1),Hk,i.createTextVNode(" \u5BA1\u6279\u4EBA: ")]),i.createElementVNode("div",{class:"process-pc-value",onClick:t[0]||(t[0]=d=>r.handleOpenPopup(o.getFirstProcessNode.id))},[i.createElementVNode("div",Yk,[o.partNode[o.getFirstProcessNode.id]&&o.partNode[o.getFirstProcessNode.id].length?(i.openBlock(),i.createElementBlock("div",_k,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[o.getFirstProcessNode.id],(d,p)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(p==0?d:`,${d}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",Wk,Zk))])])]),i.createVNode(a,{ref:"topTips",text:o.textTips,statusTips:o.statusTips,type:o.typeTips},null,8,["text","statusTips","type"]),i.createVNode(c,{visible:o.visible,"onUpdate:visible":t[1]||(t[1]=d=>o.visible=d),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:i.withCtx(()=>[i.createVNode(l,i.mergeProps({visible:o.visible,request:n.param.request,businessId:n.param.formData.businessKey},o.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"])])}const Xk=q(Rk,[["render",zk],["__scopeId","data-v-19b60514"]]),XC="",$k=Be({name:"TopProcess",components:{TopTab:Zd,TopPopup:pe,TopTips:Ne,TopSumbitPopup:Dl},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},userId:{require:!0,default:"",type:String},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},linkUrl:{default:null,type:Function},request:{type:Function,default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{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:[]}},watch:{processInstId:{async handler(e,t){this.processIntId=this.processInstId,e&&(this.request.get("/aws/repository/getTrackUrl",{params:{processInstId:this.processIntId,type:"mobile"}}).then(n=>{n.code==200&&(this.trackUrl=n.data)}),this.request.get("/aws/pis/findNodeParticipantRows",{params:{processInstId:this.processIntId}}).then(n=>{n.code==200&&(this.trackList=n.data)}),this.request.get("/aws/tis/getTaskCommentList",{params:{processInstId:this.processInstId,processBusinessKey:this.formData.businessKey}}).then(n=>{n.code==200&&(this.taskCommentList=n.data)}),this.request.get("/aws/pis/getProcessInstanceById",{params:{processInstId:this.processInstId}}).then(n=>{n.code==200&&(this.ProcessInsObj=n.data)}),await this.request.get("/aws/repository/queryTaskNodeList",{params:{processInstId:this.processInstId}}).then(n=>{if(n.code==200)if(this.taskNode=n.data,this.taskNodeList=n.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(s=>{s.name=s.nodeName}),this.taskNodeShow=!0,this.actionShow=!0):(this.handleGetProcessStatus(),this.handleGetUserTaskModel())}))},immediate:!0,deep:!0}},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){var n,s;let e=[],t=this.taskNode&&this.taskNode[0]&&this.taskNode[0].taskState!=4;if(t&&!this.isView&&this.taskObj.completeButtonLabel){let o={};o.name=this.taskObj.completeButtonLabel,o.btnProps={type:"primary"},e.push(o),o.click=r=>{this.$refs.TopPopup1.handleOpen(),this.handleActionClose(),this.showOperation(zy,r,this.request,this.taskObj.completeButtonAnnex)}}if(t&&!this.isView&&this.processStatus.currUserName){let o={};o.name="\u62D2\u7EDD",o.btnProps={type:"danger"},e.push(o),o.click=r=>{this.$refs.TopPopup1.handleOpen(),this.handleActionClose(),this.showOperation(fk,r,this.request,this.taskObj.otherButtonAnnexList)}}if(t&&!this.isView&&this.taskObj.buttons&&this.taskObj.buttons.length&&this.taskObj.buttons.forEach(o=>{if(o.label==="\u9000\u56DE"){let r={};r.name=o.label,r.btnProps={type:"danger"},e.push(r),r.click=a=>{this.$refs.TopPopup1.handleOpen(),this.handleActionClose(),this.showOperation(Ik,a,this.request,this.taskObj.otherButtonAnnexList)}}}),t&&!this.isView&&this.taskObj.ccTaskButtonLabel){let o={};o.name=this.taskObj.ccTaskButtonLabel,o.btnProps={type:"default"},o.click=r=>{this.$refs.TopPopup1.handleOpen(),this.handleActionClose(),this.showOperation(jk,r,this.request,this.taskObj.ccTaskButtonAnnex)},e.push(o)}if(t&&!this.isView&&this.taskObj.delegateTaskButtonLabel){let o={};o.name=this.taskObj.delegateTaskButtonLabel,o.btnProps={type:"default"},o.click=r=>{this.$refs.TopPopup1.handleOpen(),this.handleActionClose(),this.showOperation(Vy,r,this.request,this.taskObj.delegateTaskButtonAnnex)},e.push(o)}if(t&&!this.isView&&this.taskObj.counterSignLabel){let o={};o.name=this.taskObj.counterSignLabel,o.btnProps={type:"primary"},o.click=r=>{this.$refs.TopPopup1.handleOpen(),this.handleActionClose(),this.showOperation(ay,r,this.request,this.taskObj.counterSignButtonAnnex)},e.push(o)}if(this.processIntId&&this.processStatus.createTopUserId==this.userId&&((n=this.taskNode[0])==null?void 0:n.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let o={};o.name="\u50AC\u529E",o.btnProps={type:"default"},o.click=r=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=r,this.popupContext=`\u786E\u5B9A${r}\u5417?`,this.handleTipsType="\u50AC\u529E"},e.push(o)}if(this.processIntId&&this.processStatus.createTopUserId==this.userId&&((s=this.taskNode[0])==null?void 0:s.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let o={};o.name="\u64A4\u9500",o.btnProps={type:"default"},o.click=r=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=r,this.popupContext=`\u786E\u5B9A${r}\u5417?`,this.handleTipsType="\u64A4\u9500"},e.push(o)}return e},processCardHeight(){let e=210;return this.processStatus.status?this.processStatus.currUserName||(e-=40):e-=140,`calc(100vh - ${e}px)`}},methods:{handleTest(){},async handleGetSimulation(e){this.handleTips("",!0,"loading");let t={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e},n=await this.request.post("/aws/tis/simulation",t);n.success?(this.handleTips("",!1,"success"),this.nextNodeData=n.data):await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:this.taskNode.length?this.taskNode[0].taskId:"",processNodeId:""}}).then(s=>{this.handleTips("",!1,"success"),console.log("outGatewayUserTaskModel",s),this.outGatewayUserTaskModel=s.data})},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.request.get("/aws/pis/getProcessStatus",{params:{processInstId:this.processInstId,taskId:this.taskNode.length?this.taskNode[0].taskId:""}}).then(e=>{e.code==200&&(this.processStatus=e.data)})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length&&this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data)})},async showOperation(e,t,n,s){if(this.processStatus.allUserNames&&this.processStatus.allUserNames.length==1&&this.taskNode[0]&&this.taskNode[0].nodeId){let o;this.getVars&&(o=this.getVars()),await this.handleGetSimulation(o)}n&&(this.operationParam.request=n),n&&(this.annexlabel=s),this.titleText=t,this.operationCom=e,this.operationParam.annex=s,this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=this.taskNode[0].taskId,this.operationParam.actionName=t,this.operationParam.formData=this.formData,this.operationParam.nextNodeData=this.nextNodeData,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId},handleCancel(){console.log("handleCancel")},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.$refs.TopPopup1.handleClose()},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/aws/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.post("/aws/pis/revoke",{processInstId:this.ProcessInsObj.id,processBusinessKey:this.ProcessInsObj.processBusinessKey}).then(e=>{e.code==200?this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){console.log("handleTipsCancel")},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.$refs.TopPopup1.handleOpen(),this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.processStatus.appId}}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(t=>{this.processBusiness=t.data,this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(n=>{console.log("getProcessInstanceByBusinessKey:::",n),this.getFirstProcessNode=n.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.$refs.TopPopup1.handleOpen(),this.handleActionClose(),this.showOperation(Xk,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(n=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()}}}),$C="",Ht=e=>(i.pushScopeId("data-v-335cabac"),e=e(),i.popScopeId(),e),eC={class:"process-warp"},tC={key:0,class:"process-main"},nC={class:"process-ml-item border"},sC=Ht(()=>i.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),oC={class:"process-mli-value"},iC={class:"process-ml-item border"},rC=Ht(()=>i.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),aC={class:"process-mli-value"},lC={key:0,class:"process-ml-item"},cC=Ht(()=>i.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),pC={class:"process-mli-value"},dC={class:"process-mliv-jd"},uC={key:1,class:"process-foot"},hC={class:"footBtnRow"},fC={class:"process-btn"},mC=["onClick"],gC=[Ht(()=>i.createElementVNode("div",{class:"circle"},null,-1)),Ht(()=>i.createElementVNode("div",{class:"circle"},null,-1)),Ht(()=>i.createElementVNode("div",{class:"circle"},null,-1))],AC=["onClick"],yC=["onClick"];function kC(e,t,n,s,o,r){const a=i.resolveComponent("TopTab"),l=i.resolveComponent("TopPopup"),c=i.resolveComponent("TopTips");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",eC,[e.processStatus.status?(i.openBlock(),i.createElementBlock("div",tC,[i.createElementVNode("div",nC,[sC,i.createElementVNode("div",{class:"process-mli-name",onClick:t[0]||(t[0]=(...d)=>e.handleTest&&e.handleTest(...d))},"\u6D4B\u8BD5"),i.createElementVNode("div",oC,[e.processStatus.status||e.processStatus.bizStatusName?(i.openBlock(),i.createElementBlock("div",{key:0,class:"process-mliv-dd",style:i.normalizeStyle({background:e.getColor(e.processStatus.status)})},i.toDisplayString(e.processStatus.bizStatusName?e.processStatus.bizStatusName:e.processStatus.status),5)):i.createCommentVNode("",!0)])]),i.createElementVNode("div",iC,[rC,i.createElementVNode("div",aC,[i.createElementVNode("span",null,i.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(i.openBlock(),i.createElementBlock("div",lC,[cC,i.createElementVNode("div",pC,[i.createElementVNode("span",dC,i.toDisplayString(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`),1)])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"process-card",style:i.normalizeStyle({height:e.processCardHeight})},[i.createVNode(a,{tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),e.isAdditional?(i.openBlock(),i.createElementBlock("div",uC,[i.createElementVNode("div",hC,[i.renderSlot(e.$slots,"btn",{},void 0,!0)])])):i.createCommentVNode("",!0),i.createElementVNode("div",fC,[e.processStatus.status!="\u5DF2\u5B8C\u6210"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[e.processStatus.status==="\u5DF2\u64A4\u9500"||e.processStatus.status==="\u5DF2\u9A73\u56DE"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"top-button",style:i.normalizeStyle(e.getBtnStyle("default")),onClick:t[1]||(t[1]=(...d)=>e.handleRestart&&e.handleRestart(...d))}," \u91CD\u65B0\u63D0\u4EA4 ",4)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(e.operBtn,(d,p)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[p<3?(i.openBlock(),i.createElementBlock("div",{class:"top-button",style:i.normalizeStyle(e.getBtnStyle(d.btnProps.type.toString())),key:d.name,onClick:u=>d.click(d.name)},i.toDisplayString(d.name),13,mC)):i.createCommentVNode("",!0)],64))),256))],64)):i.createCommentVNode("",!0),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?(i.openBlock(),i.createElementBlock("div",{key:1,class:"elips",onClick:t[2]||(t[2]=(...d)=>e.handleActionOpen&&e.handleActionOpen(...d))},gC)):i.createCommentVNode("",!0)])]),i.createVNode(l,{ref:"TopPopup1",cancel:e.handleCancel,comfig:e.handleComfig,titleText:e.titleText},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.operationCom),{ref:"operationRef",param:e.operationParam,onHandleClosePopup1:e.handleClosePopup1},null,40,["param","onHandleClosePopup1"]))]),_:1},8,["cancel","comfig","titleText"]),i.createVNode(l,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),i.createVNode(c,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?(i.openBlock(),i.createElementBlock("div",{key:0,class:"top-elips",style:i.normalizeStyle(e.actionShow?"transform: translateY(0)":"transform: translateY(100%)")},[e.taskNodeShow?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(e.taskNodeList,d=>(i.openBlock(),i.createElementBlock("div",{class:"top-elips-items",onClick:p=>e.handleGet(d),key:d.taskId},i.toDisplayString(d.name),9,AC))),128)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(e.actionBtn,d=>(i.openBlock(),i.createElementBlock("div",{class:"top-elips-items",onClick:p=>d.click(d.name),key:d.name},i.toDisplayString(d.name),9,yC))),128)),i.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:t[3]||(t[3]=(...d)=>e.handleActionClose&&e.handleActionClose(...d))}," \u53D6\u6D88 ")],4)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"top-elips-mask",onClick:t[4]||(t[4]=(...d)=>e.handleActionClose&&e.handleActionClose(...d)),style:i.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)])}const CC=q($k,[["render",kC],["__scopeId","data-v-335cabac"]]);Ee.TopProcess=CC,Ee.TopSumbitPopup=Dl,Ee.ViewAttchList=rr,Ee.attchViews=ze,Object.defineProperties(Ee,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
55
+ `,document.body.appendChild(this.mainContainer)}message(t={}){let n=sessionStorage.getItem(this.sessionStorageName),s=n?JSON.parse(n):null;if(t.againBtn&&t.content&&s&&Array.isArray(s)&&s.includes(t.content))return;const o=Pg({type:t.type,content:t.content,duration:t.duration,delay:t.delay,againBtn:t.againBtn,minWidth:this.minWidth,maxWidth:this.maxWidth},this.mainContainer);this.mainContainer.appendChild(o.els),si(this.mainContainer),Jg(o,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const Mg={components:{checked:Ig,dcSwitch:Vg,dcLoading:Fg},name:"departPerson",props:{visible:{type:Boolean,default:!1},source:{type:String,default:"0"},type:{type:String,default:"0"},request:{type:Function,default:()=>({get:()=>{},post:()=>{}})},businessId:{type:String,default:""},codeType:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},checkedArray:{type:Array,default:()=>[]}},data(){return{isSon:!1,deptId:"",subjectId:"",jsonData:[],breadcrumb:[],checkedJson:[],keyword:"",isQuery:!0,isLoading:!1,checkedAll:!1,isShowChecked:!1}},watch:{visible:{deep:!0,immediate:!0,handler:function(e,t){if(!e)return!1;this.$nextTick(()=>{this.getDetail(()=>{this.getSearch(),this.defaultBreadcrumb()})})}},isSon:{deep:!0,handler:function(e,t){let n=[];const s=this.checkedJson.map(o=>{const r=this.entityJson.findIndex(a=>a.id===o.id&&o.type==a.type&&o.type==2)>-1?e&&o.type==2?"4":o.type:o.orgRecordsType;return(r==4||o.type==1)&&n.push(o.id),{...o,orgRecordsType:r}});this.checkedJson=s.filter(o=>o.ancestors.split(",").findIndex(r=>n.indexOf(r)>-1)===-1)}},checkedArray:{deep:!0,immediate:!0,handler:function(e,t){if(J(e)||!J(this.businessId))return!1;this.checkedJson=e.map(n=>({...n,iconName:J(n.name)?"":ni(n.name,2)}))}}},computed:{dialogVisible:{get(){return this.visible},set(e){this.$emit("update:visible",e)}},queryImg(){return Ug},entityJson(){const e=this.checkedJson;return this.jsonData.map(t=>{const n=this.isQuery?this.breadcrumb_level.ancestors||"0":t.ancestors,s=this.isQuery?this.breadcrumb_level.ancestorNames:t.ancestorNames,o=n+t.id+"__"+t.type,r=e.find(p=>p.uniqueId===o),a=!J(r),l=a?!1:e.findIndex(p=>p.type===t.type&&p.id===t.id&&t.subjectId===p.subjectId)>-1,c=a?t.type==1||r.orgRecordsType==4:!1,d=J(e)?0:c?t.counts:e.filter(p=>p.type!=1&&p.ancestors.indexOf(t.id)>-1).length;return{type:t.type,id:t.id,name:t.name,counts:t.counts,num:d,phone:gg(t.phone),uid:t.uid,iconName:ni(t.name,2),checked:a,ancestors:n,ancestorNames:s,deptName:Ag(t.ancestorNames,"/"),uniqueId:o,isDisabled:l,isLevel:c,subjectId:t.subjectId,sex:t.sex}})},companyJson(){return this.entityJson.filter(e=>e.type==1)},deptJson(){return this.entityJson.filter(e=>e.type==2)},userJson(){return this.entityJson.filter(e=>e.type==3)},checkedNumber(){const e=this.checkedJson.filter(o=>o.type==1).length,t=this.checkedJson.filter(o=>o.type==2).length,n=this.checkedJson.filter(o=>o.type==3).length;let s=[];return e>0&&s.push(e+"\u4E2A\u7EC4\u7EC7"),t>0&&s.push(t+"\u4E2A\u90E8\u95E8"),n>0&&s.push(n+"\u4E2A\u6210\u5458"),J(s)?"":"\u5DF2\u9009\u62E9"+s.join("\uFF0C")},breadcrumb_subjectId(){return this.breadcrumb.length>1?this.breadcrumb.find((e,t)=>t===1).value:""},breadcrumb_level(){const e=this.breadcrumb.filter((t,n)=>n!==0);return{ancestors:e.map(t=>t.value).join(","),ancestorNames:e.map(t=>t.name).join("/")}},isDept(){return this.jsonData.findIndex(e=>e.type==2)>-1},isShowSubject(){return this.codeType.findIndex(e=>e==1)>-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)>-1},getHight(){return!this.isShowQuery&&this.isDept?"notQuerySon":!this.isShowQuery&&!this.isDept?"notQuery":this.isDept?"nvaHeight":""},getTitle(){let e=[];return this.isShowSubject&&e.push("\u7EC4\u7EC7"),this.isShowDept&&e.push("\u90E8\u95E8"),this.isShowQuery&&e.push("\u4EBA\u5458"),"\u9009\u62E9"+e.join("\u3001")}},mounted(){document.title=this.getTitle},methods:{handleSubmit(){const e=J(this.checkedJson)?[]:this.checkedJson.map(n=>({type:n.orgRecordsType,id:n.id,name:n.name,ancestors:n.ancestors,ancestorNames:n.ancestorNames,subjectId:n.subjectId,phone:J(n.phone)?"":n.phone,sex:n.sex,uid:J(n.uid)?"":n.uid}));if(J(this.businessId))return this.dialogVisible=!1,this.$emit("callback",e);const t={businessId:this.businessId,orgRecords:this.checkedJson.map(n=>({type:n.orgRecordsType,bizId:n.id,ancestors:n.ancestors,ancestorNames:n.ancestorNames,uid:n.uid}))};this.isLoading=!0,this.request.post("/auth/component/org/save",t).then(n=>{n.code===200&&(this.dialogVisible=!1,this.$emit("callback",e))}).finally(()=>{this.isLoading=!1})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){this.getSearch(()=>{this.isQuery=J(this.keyword)})},handleAllCheckbox(e){(this.isShowDept?this.entityJson:this.entityJson.filter(t=>t.type!=2)).forEach(t=>this.handleCheckbox(e,t))},handleCheckbox(e,t){if(t.isDisabled||t.type==1&&!this.isShowSubject||t.type==2&&!this.isShowDept)return!1;if(e.currentTarget.checked){const n=t.type==1?"0":t.ancestors,s=t.type==1?"":t.ancestorNames,o=this.isDept&&this.isSon&&t.type==2?"4":t.type,r={...t,ancestors:n,ancestorNames:s,orgRecordsType:o};return(t.type==1||o==4)&&(this.checkedJson=this.checkedJson.filter(a=>a.ancestors.indexOf(t.id)===-1)),this.getBoolChecked(t)?(e.currentTarget.checked=!1,!1):(this.multiple?this.checkedJson.push(r):this.checkedJson=[r],!1)}this.checkedJson=this.checkedJson.filter(n=>n.uniqueId!==t.uniqueId)},handleBreadcrumb(e,t){if(t+1==this.breadcrumb.length)return!1;switch(t){case 0:this.deptId="",this.subjectId="";break;case 1:this.deptId=0,this.subjectId=this.breadcrumb_subjectId;break;default:this.deptId=e.value,this.subjectId=this.breadcrumb_subjectId;break}this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((n,s)=>s<t+1)})},handleLevel(e){if(e.isDisabled||e.isLevel)return!1;switch(e.type){case"1":this.deptId=0,this.subjectId=e.id,this.getSearch(()=>{this.breadcrumb.push({name:e.name,value:e.id})});break;case"2":this.deptId=e.id,this.subjectId=this.breadcrumb_subjectId,this.getSearch(()=>{this.breadcrumb.push({name:e.name,value:e.id})});break}},getBoolChecked(e){if(e.type!=3)return!1;const t=e.ancestors.split(","),n=this.checkedJson.filter(o=>o.type==2||o.type==1).find(o=>t.indexOf(o.id)>-1);let s=!1;return J(n)||(n.type==1&&(new Vl().message({content:`\u5DF2\u9009\u7684\u7EC4\u7EC7\u3010${n.name}\u3011\u5B58\u5728${e.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),s=!0),n.type==4&&(new Vl().message({content:`\u5DF2\u9009\u7684\u90E8\u95E8\u3010${n.name}\u3011\u5B58\u5728${e.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),s=!0)),s},defaultBreadcrumb(){this.breadcrumb=[{name:"\u7EC4\u7EC7",value:"-1"}],this.isSon=!1,this.deptId="",this.subjectId="",this.jsonData=[],this.keyword="",this.isQuery=!0,this.isLoading=!1},getIsSon(){const e=this.entityJson.filter(n=>n.type==2),t=this.checkedJson.filter(n=>n.type==2);this.isSon=t.findIndex(n=>e.findIndex(s=>s.id===n.id&&n.orgRecordsType==4)>-1)>-1},getSearch(e=()=>{}){const t=this.codeType.findIndex(s=>s==3)>-1?3:this.codeType.findIndex(s=>s==2)>-1?2:1,n={source:this.source,type:this.type,deptId:this.deptId,subjectId:this.subjectId,keyword:this.keyword,showType:t};J(n.deptId)&&delete n.deptId,J(n.deptId)&&delete n.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:n}).then(s=>{e(),this.jsonData=J(s.data)||s.code!==200?[]:s.data,this.getIsSon()}).finally(()=>{this.isLoading=!1})},getDetail(e=()=>{}){if(J(this.businessId))return e(),!1;const t={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:t}).then(n=>{this.checkedJson=J(n.data)||n.code!==200?[]:n.data.map(s=>{const o=s.type==4?"2":s.type,r=s.ancestors+s.bizId+"__"+o;return{...s,id:s.bizId,type:o,uniqueId:r,orgRecordsType:s.type,iconName:ni(s.name,2),sex:s.sex,uid:J(s.uid)?"":s.uid}}),e()})}}};var Lg=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("main",{staticClass:"departPerson-main"},[n("div",{staticClass:"deper-top"},[e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowQuery,expression:"isShowQuery"}],staticClass:"deper-query"},[n("i",{staticClass:"icon-chaxun iconfont"}),n("form",{staticClass:"form",attrs:{action:"javascript: void(0);"},on:{submit:function(s){s.preventDefault()}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],attrs:{type:"search",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u3001\u624B\u673A\u53F7\u7801"},domProps:{value:e.keyword},on:{keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")?null:e.handleQuery.apply(null,arguments)},input:function(s){s.target.composing||(e.keyword=s.target.value)}}})]),e.keyword.length>0?n("i",{staticClass:"icon-error-fill iconfont close",on:{click:e.handleEmpty}}):e._e()]),e.isQuery?n("div",{staticClass:"deper-breadcrumb"},e._l(e.breadcrumb,function(s,o){return n("div",{key:s.value,staticClass:"deper-b-item",on:{click:function(r){return e.handleBreadcrumb(s,o)}}},[n("span",[e._v(e._s(s.name))]),n("i",{staticClass:"icon-jiantouyou iconfont"})])}),0):e._e(),e.isQuery?n("div",{staticClass:"deper-all"},[n("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(s){var o=e.checkedAll,r=s.target,a=!!r.checked;if(Array.isArray(o)){var l=null,c=e._i(o,l);r.checked?c<0&&(e.checkedAll=o.concat([l])):c>-1&&(e.checkedAll=o.slice(0,c).concat(o.slice(c+1)))}else e.checkedAll=a},e.handleAllCheckbox]}}),n("label",{attrs:{for:"deper-all"}},[e._v("\u5168\u9009")])]):e._e()]),e.isQuery?n("div",{staticClass:"deper-center",class:e.getHight},[e.companyJson.length>0?n("div",{staticClass:"deper-c-depart"},e._l(e.companyJson,function(s){return n("div",{key:s.uniqueId,staticClass:"depart-item"},[n("label",{staticClass:"depart-left",class:{width:e.isNotLevel}},[n("input",{directives:[{name:"show",rawName:"v-show",value:e.isShowSubject,expression:"isShowSubject"},{name:"model",rawName:"v-model",value:s.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:s.isDisabled,type:"checkbox"},domProps:{checked:Array.isArray(s.checked)?e._i(s.checked,null)>-1:s.checked},on:{change:[function(o){var r=s.checked,a=o.target,l=!!a.checked;if(Array.isArray(r)){var c=null,d=e._i(r,c);a.checked?d<0&&e.$set(s,"checked",r.concat([c])):d>-1&&e.$set(s,"checked",r.slice(0,d).concat(r.slice(d+1)))}else e.$set(s,"checked",l)},function(o){return e.handleCheckbox(o,s)}]}}),n("div",{staticClass:"depart-name"},[n("div",{staticClass:"name"},[e._v(e._s(s.name))]),s.num>0?n("div",{staticClass:"number"},[e._v("("),n("label",[e._v(e._s(s.num)+"/"+e._s(s.counts))]),e._v(")")]):n("div",{staticClass:"number"},[e._v("("+e._s(s.counts)+")")])])]),e.isNotLevel?e._e():n("div",{staticClass:"depart-right",class:{isdisabled:s.isLevel},on:{click:function(o){return e.handleLevel(s)}}},[n("i",{staticClass:"icon-pedigree iconfont"}),n("span",[e._v("\u4E0B\u7EA7")])])])}),0):e._e(),e.deptJson.length>0?n("div",{staticClass:"deper-c-depart"},e._l(e.deptJson,function(s){return n("div",{key:s.uniqueId,staticClass:"depart-item"},[n("label",{staticClass:"depart-left"},[n("input",{directives:[{name:"show",rawName:"v-show",value:e.isShowDept,expression:"isShowDept"},{name:"model",rawName:"v-model",value:s.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:s.isDisabled,type:"checkbox"},domProps:{checked:Array.isArray(s.checked)?e._i(s.checked,null)>-1:s.checked},on:{change:[function(o){var r=s.checked,a=o.target,l=!!a.checked;if(Array.isArray(r)){var c=null,d=e._i(r,c);a.checked?d<0&&e.$set(s,"checked",r.concat([c])):d>-1&&e.$set(s,"checked",r.slice(0,d).concat(r.slice(d+1)))}else e.$set(s,"checked",l)},function(o){return e.handleCheckbox(o,s)}]}}),n("div",{staticClass:"depart-name"},[n("div",{staticClass:"name"},[e._v(e._s(s.name))]),s.num>0?n("div",{staticClass:"number"},[e._v("("),n("label",[e._v(e._s(s.num)+"/"+e._s(s.counts))]),e._v(")")]):n("div",{staticClass:"number"},[e._v("("+e._s(s.counts)+")")])])]),n("div",{staticClass:"depart-right",class:{isdisabled:s.isLevel},on:{click:function(o){return e.handleLevel(s)}}},[n("i",{staticClass:"icon-pedigree iconfont"}),n("span",[e._v("\u4E0B\u7EA7")])])])}),0):e._e(),e.userJson.length>0?n("div",{staticClass:"deper-c-user"},e._l(e.userJson,function(s){return n("label",{key:s.uniqueId,staticClass:"user-item"},[n("input",{directives:[{name:"model",rawName:"v-model",value:s.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:s.isDisabled,type:"checkbox"},domProps:{checked:Array.isArray(s.checked)?e._i(s.checked,null)>-1:s.checked},on:{change:[function(o){var r=s.checked,a=o.target,l=!!a.checked;if(Array.isArray(r)){var c=null,d=e._i(r,c);a.checked?d<0&&e.$set(s,"checked",r.concat([c])):d>-1&&e.$set(s,"checked",r.slice(0,d).concat(r.slice(d+1)))}else e.$set(s,"checked",l)},function(o){return e.handleCheckbox(o,s)}]}}),n("div",{staticClass:"user-icon"},[n("span",[e._v(e._s(s.iconName))])]),n("div",{staticClass:"user-name"},[n("div",{staticClass:"span"},[e._v(e._s(s.name))]),n("div",{staticClass:"phone"},[e._v(e._s(s.phone))])])])}),0):e._e()]):n("div",{staticClass:"deper-search"},[e._e(),n("div",{staticClass:"deper-search-section"},[e._e(),n("div",{staticClass:"search-user"},[n("div",{staticClass:"search-title"},[e._v("\u8054\u7CFB\u4EBA")]),e._l(e.userJson,function(s){return n("label",{key:s.uniqueId,staticClass:"user-item"},[n("input",{directives:[{name:"model",rawName:"v-model",value:s.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:s.isDisabled,type:"checkbox"},domProps:{checked:Array.isArray(s.checked)?e._i(s.checked,null)>-1:s.checked},on:{change:[function(o){var r=s.checked,a=o.target,l=!!a.checked;if(Array.isArray(r)){var c=null,d=e._i(r,c);a.checked?d<0&&e.$set(s,"checked",r.concat([c])):d>-1&&e.$set(s,"checked",r.slice(0,d).concat(r.slice(d+1)))}else e.$set(s,"checked",l)},function(o){return e.handleCheckbox(o,s)}]}}),n("div",{staticClass:"user-icon"},[n("span",[e._v(e._s(s.iconName))])]),n("div",{staticClass:"user-name"},[n("div",{staticClass:"span"},[e._v(e._s(s.name))]),n("div",{staticClass:"phone"},[e._v(e._s(s.phone))]),n("div",{staticClass:"txt"},[e._v(e._s(s.ancestorNames))])])])})],2)])]),e.isDept?n("div",{staticClass:"deper-son"},[n("span",[e._v("\u5305\u542B\u5B50\u7EA7")]),n("dc-switch",{attrs:{modelValue:e.isSon,name:"isSone"},on:{"update:modelValue":function(s){e.isSon=s},"update:model-value":function(s){e.isSon=s}}})],1):e._e(),n("div",{staticClass:"deper-bottom"},[n("div",{staticClass:"deper-b-checked",on:{click:function(s){e.isShowChecked=!0}}},[n("span",[e._v(e._s(e.checkedNumber))]),e.checkedNumber.length>0?n("i",{staticClass:"icon-jiantouyou iconfont"}):e._e()]),n("div",{staticClass:"deper-b-btn",on:{click:e.handleSubmit}},[e._v("\u786E\u5B9A")])]),n("checked",{attrs:{visible:e.isShowChecked,checkedJson:e.checkedJson},on:{"update:visible":function(s){e.isShowChecked=s},"update:checkedJson":function(s){e.checkedJson=s},"update:checked-json":function(s){e.checkedJson=s}}}),e.isLoading?n("dcLoading"):e._e()],1)},Gg=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"depart-item"},[n("label",{staticClass:"depart-left"},[n("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),n("div",{staticClass:"depart-name"},[n("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")]),n("div",{staticClass:"number"},[e._v("("),n("label",[e._v("100/100")]),e._v(")")])])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"depart-item"},[n("label",{staticClass:"depart-left"},[n("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),n("div",{staticClass:"depart-name"},[n("div",{staticClass:"name"},[e._v("\u6280\u672F\u90E8")]),n("div",{staticClass:"number"},[e._v("(80)")])])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"depart-item"},[n("label",{staticClass:"depart-left"},[n("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),n("div",{staticClass:"depart-name"},[n("div",{staticClass:"name"},[e._v("\u5F00\u53D1\u90E8")]),n("div",{staticClass:"number"},[e._v("("),n("label",[e._v("100/100")]),e._v(")")])])])])}];const Sl={};var jg=fs(Mg,Lg,Gg,!1,Rg,"7d50b77a",null,null);function Rg(e){for(let t in Sl)this[t]=Sl[t]}const Ze=function(){return jg.exports}(),qg=Be({name:"TopSubmitPopup",components:{TopPopup:pe,TopDownSelect:ar,PreviewImage:qs,departPerson:Ze,TopTips:Ne},props:{visible:{type:Boolean,default:!1},request:{type:Function,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"}},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},multiNodeParticipant:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[]}},watch:{visible:{async handler(e,t){this.show=e,this.$emit("update:visible",this.show),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId}}).then(n=>{console.log("\u83B7\u53D6\u6D41\u7A0B::",n),n.code==200&&(this.option=n.data,this.checkedItem=this.option[0],this.getAfferentParticipantNodeList(),this.getDiagramUrl())}),await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.checkedItem.id}}).then(n=>{n.code===200&&(this.firstPerson=n.data)})},immediate:!0}},methods:{handleChange(e){console.log("\u5F53\u524D\u9009\u62E9::::",e),this.checkedItem=e,this.getAfferentParticipantNodeList(),this.getDiagramUrl()},getAfferentParticipantNodeList(){this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.personList=e.data.slice(1))})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenPerson(e){console.log("\u9009\u4EBA\u5F39\u7A97",e),this.visiblePerson=!0,this.personObjId=e.id},handleCallback(e){this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,n)=>{this.multiNodeParticipant[this.personObjId].push(t.uid),this.partNode[this.personObjId].push(t.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},async handleSumbit(){if(this.firstPerson&&this.firstPerson.length&&!this.multiNodeParticipant[this.firstPerson[0].id]){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error");return}this.handleTips("",!0,"loading"),this.resubmit?(console.log("\u9001\u5BA1\u91CD\u65B0\u63D0\u4EA4",this.multiNodeParticipant),await this.request.post("/aws/pis/reactivate",{processInstId:this.processId||"572405e4-e0dc-40fc-9a95-2b20f5bdfbf1",isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(e=>{e.code==200?(this.show=!1,this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})):(console.log("\u9001\u5BA1\u9996\u6B21\u63D0\u4EA4",this.multiNodeParticipant),await this.request.post("/aws/pis/createAndStart",{title:this.title,processDefId:this.checkedItem.id,processBusinessKey:this.id,showType:"app",businessType:this.businessType,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameter}).then(e=>{e.code===200?(this.show=!1,this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")):e.code==499?this.request.post("/aws/pis/reactivate",{processInstId:this.processId||"572405e4-e0dc-40fc-9a95-2b20f5bdfbf1",isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(t=>{t.code==200?(this.show=!1,this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.handleTips(t.msg,!0,"error")}):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")}))},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()}}}),OC="",Kg=e=>(i.pushScopeId("data-v-fb529bf9"),e=e(),i.popScopeId(),e),Hg={key:0,class:"person-views"},Yg={class:"views-items"},_g={class:"views-items-name"},Wg=Kg(()=>i.createElementVNode("span",{class:"views-items-name--re"},"*",-1)),Zg={class:"views-items-set"},zg={key:0},Xg={key:0},$g={key:1},eA=["onClick"],tA={key:1,class:"person-views"},nA={class:"views-items"},sA={class:"views-items-name"},oA={class:"views-items-set"},iA={key:0},rA={key:0},aA={key:1},lA=["onClick"],cA={key:2,class:"person-views-white"},pA={class:"person-btn"};function dA(e,t,n,s,o,r){const a=i.resolveComponent("TopDownSelect"),l=i.resolveComponent("TopPopup"),c=i.resolveComponent("departPerson"),d=i.resolveComponent("PreviewImage"),p=i.resolveComponent("TopTips");return i.openBlock(),i.createElementBlock("div",null,[i.createVNode(l,{visible:e.show,"onUpdate:visible":t[2]||(t[2]=u=>(e.show=u,e.$emit("update:visible",u))),ref:"TopPopup",titleText:"\u9001\u5BA1",isDrawer:"",isIndex:99},{default:i.withCtx(()=>[i.createVNode(a,{option:e.option,onChange:e.handleChange},null,8,["option","onChange"]),i.createElementVNode("div",{class:"viewTrack",onClick:t[0]||(t[0]=u=>e.taskurlshow=!0)},"\u67E5\u770B\u6D41\u7A0B\u56FE"),e.firstPerson&&e.firstPerson.length?(i.openBlock(),i.createElementBlock("div",Hg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.firstPerson,(u,g)=>(i.openBlock(),i.createElementBlock("div",Yg,[i.createElementVNode("div",_g,[i.createTextVNode(i.toDisplayString(u.name)+" ",1),Wg]),i.createElementVNode("div",Zg,[e.partNode[u.id]&&e.partNode[u.id].length?(i.openBlock(),i.createElementBlock("div",zg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.partNode[u.id],(y,k)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(k>=3?"":k==0?y:`,${y}`),1))),256)),e.partNode[u.id].length>3?(i.openBlock(),i.createElementBlock("span",Xg,"...\u7B49"+i.toDisplayString(e.partNode[u.id].length)+"\u4EBA",1)):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",$g)),i.createElementVNode("div",{class:"views-items-set-btn",onClick:y=>e.handleOpenPerson(u)}," \u8BBE\u7F6E ",8,eA)])]))),256))])):i.createCommentVNode("",!0),e.personList&&e.personList.length?(i.openBlock(),i.createElementBlock("div",tA,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.personList,(u,g)=>(i.openBlock(),i.createElementBlock("div",nA,[i.createElementVNode("div",sA,i.toDisplayString(u.name),1),i.createElementVNode("div",oA,[e.partNode[u.id]&&e.partNode[u.id].length?(i.openBlock(),i.createElementBlock("div",iA,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.partNode[u.id],(y,k)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(k>=3?"":k==0?y:`,${y}`),1))),256)),e.partNode[u.id].length>3?(i.openBlock(),i.createElementBlock("span",rA,"...\u7B49"+i.toDisplayString(e.partNode[u.id].length)+"\u4EBA",1)):i.createCommentVNode("",!0)])):(i.openBlock(),i.createElementBlock("div",aA)),i.createElementVNode("div",{class:"views-items-set-btn",onClick:y=>e.handleOpenPerson(u)}," \u8BBE\u7F6E ",8,lA)])]))),256))])):i.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(i.openBlock(),i.createElementBlock("div",cA," \u65E0\u9700\u8BBE\u7F6E ")):i.createCommentVNode("",!0),i.createElementVNode("div",pA,[i.createElementVNode("div",{class:"top-button",style:{"background-color":"#3c9cff",color:"#fff"},onClick:t[1]||(t[1]=(...u)=>e.handleSumbit&&e.handleSumbit(...u))}," \u9001\u5BA1 ")])]),_:1},8,["visible"]),i.createVNode(l,{visible:e.visiblePerson,"onUpdate:visible":t[3]||(t[3]=u=>e.visiblePerson=u),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},{default:i.withCtx(()=>[i.createVNode(c,i.mergeProps({visible:e.visiblePerson},e.entity,{onCallback:e.handleCallback,onCancel:e.handleCancel}),null,16,["visible","onCallback","onCancel"])]),_:1},8,["visible"]),i.createVNode(d,{images:e.trackUrl,visible:e.taskurlshow,"onUpdate:visible":t[4]||(t[4]=u=>e.taskurlshow=u),indexd:0,isOne:!0,isStyle:e.isStyle},null,8,["images","visible","isStyle"]),i.createVNode(p,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"])])}const Dl=q(qg,[["render",dA],["__scopeId","data-v-fb529bf9"]]),uA="data:image/png;base64,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",hA=Be({name:"attchViews",components:{TopTips:Ne,PreviewImage:qs,PreView:zi,TopPopup:pe},props:{request:{type:Function,defalut:()=>{}},limit:{type:Number|String,default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(e,t){e&&(this.filesArr=[].concat(e),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return uA},del(){return Xi},doc(){return $i},file(){return er},image(){return tr},pdf(){return nr},xls(){return sr},zip(){return or}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;",e.multiple=!0,e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e),typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1)})},methods:{handleClick(){if(console.log("\u62E6\u622A",this.haveCount,this.limit),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${props.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}},async handleSelect(e,t){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading"),console.log("formData",e.target.files);const n=Array.from(e.target.files);let s=0,o=this.haveCount>n.length?n.length:this.haveCount;try{for(let r=0;r<o;r++)if(this.extension.includes(n[r].name.substring(n[r].name.lastIndexOf(".")+1))){const a=new FormData;a.append("file",n[r]);const l=await this.request.post("/file/upload",a,{headers:{"Content-Type":"multipart/form-data"}});if(l.code===200){if(this.filesArr.length>0){for(let c=0;c<this.filesArr.length;c++)if(l.originFileName==this.filesArr[c].originFileName&&s++,this.filesArr[c].originFileName.includes(`(${s})`)&&s++,s>0){let d=l.originFileName.lastIndexOf(".");l.originFileName=`${l.originFileName.substring(0,d)} (${s}) .${l.originFileName.substring(l.originFileName.lastIndexOf(".")+1)}`}}this.filesArr.push(l.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${n[r].name}\u683C\u5F0F\u9519\u8BEF,\u8BF7\u91CD\u65B0\u4E0A\u4F20`,!0,"error");return}this.handleTips("\u4E0A\u4F20\u6210\u529F",!0,"success"),this.viewImage(),console.log("\u5F53\u524D\u5DF2\u4E0A\u4F20",this.filesArr),this.emitView()}catch{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.emitView()}},handleDel(e,t){if(this.deletFn){if(this.deletFn(t)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(e,1),this.emitView()}else this.filesArr.splice(e,1),this.emitView()},viewFile(e,t){console.log("data",e),this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1))?(this.visible=!0,this.indexd=this.lists.indexOf(e.url)):e.url&&(this.visibleS=!0,this.fileUrl=e.url)},viewImage(){this.lists=[];let e=[];this.filesArr.map((t,n)=>{this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1))}),e=this.filesArr.filter(t=>this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1))),e.forEach((t,n)=>{this.lists.push(t.url)})},emitView(){console.log("\u5DF2\u53D1\u9001\u6570\u636E:",this.filesArr),this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[],console.log("clear!!!!!")},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()}}}),xC="",fA={class:"attch-upload"},mA={key:0,class:"attch-upload-mask"},gA={class:"attch-upload-body"},AA={class:"upload-header"},yA={class:"upload-header-title"},kA={key:0,class:"upload-header-title--re"},CA={class:"upload-header-upload"},EA=["src"],bA={class:"upload-body"},IA={key:0,class:"upload-list"},BA={class:"list-items-icon"},NA=["src"],wA=["src"],vA=["src"],TA=["src"],VA=["src"],SA=["src"],DA={class:"list-items-info"},OA={class:"info-name"},xA={class:"info-attribute"},QA={class:"info-attribute-size"},FA=["onClick"],UA={key:0,class:"list-items-operation"},PA=["onClick"],JA=["src"];function MA(e,t,n,s,o,r){const a=i.resolveComponent("TopTips"),l=i.resolveComponent("PreviewImage"),c=i.resolveComponent("PreView"),d=i.resolveComponent("TopPopup");return i.openBlock(),i.createElementBlock("div",fA,[e.buttonLoading?(i.openBlock(),i.createElementBlock("div",mA)):i.createCommentVNode("",!0),i.createElementVNode("div",gA,[i.createElementVNode("div",AA,[i.createElementVNode("div",yA,[i.createTextVNode(" \u9644\u4EF6 "),e.requires?(i.openBlock(),i.createElementBlock("span",kA,"*")):i.createCommentVNode("",!0)]),i.createElementVNode("div",CA,[e.onlyShow?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,class:"upload-header-upload--item",id:"inputfile",onClick:t[0]||(t[0]=(...p)=>e.handleClick&&e.handleClick(...p))},[i.createElementVNode("img",{src:e.addFile},null,8,EA),i.createTextVNode("\u4E0A\u4F20\u9644\u4EF6 ")]))])]),i.createElementVNode("div",bA,[e.filesArr.length>0?(i.openBlock(),i.createElementBlock("div",IA,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.filesArr,(p,u)=>(i.openBlock(),i.createElementBlock("div",{class:"list-items",key:p.uuid},[i.createElementVNode("div",BA,[e.xlsIcon.includes(p.name.substring(p.name.lastIndexOf(".")+1))?(i.openBlock(),i.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,NA)):e.imgIcon.includes(p.name.substring(p.name.lastIndexOf(".")+1))?(i.openBlock(),i.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,wA)):p.name.substring(p.name.lastIndexOf(".")+1)=="pdf"?(i.openBlock(),i.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,vA)):e.docIcon.includes(p.name.substring(p.name.lastIndexOf(".")+1))?(i.openBlock(),i.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,TA)):e.zipIcon.includes(p.name.substring(p.name.lastIndexOf(".")+1))?(i.openBlock(),i.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,VA)):(i.openBlock(),i.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,SA))]),i.createElementVNode("div",DA,[i.createElementVNode("div",OA,i.toDisplayString(p.originFileName),1),i.createElementVNode("div",xA,[i.createElementVNode("span",QA,i.toDisplayString(p.fileSize<1024?p.fileSize:p.fileSize/1024>1024?parseFloat((p.fileSize/1024/1024).toFixed(2)):parseFloat((p.fileSize/1024).toFixed(2)))+i.toDisplayString(p.fileSize<1024?"b":parseFloat((p.fileSize/1024).toFixed(2))<1024?"kb":"M"),1),i.createElementVNode("span",{class:"info-attribute-views",onClick:g=>e.viewFile(p,u)}," \u9884\u89C8 ",8,FA)])]),e.onlyShow?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",UA,[i.createElementVNode("div",{onClick:g=>e.handleDel(u,p),class:"list-items-operation-img"},[i.createElementVNode("img",{src:e.del},null,8,JA)],8,PA)]))]))),128))])):i.createCommentVNode("",!0)])]),i.createVNode(a,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),i.createVNode(l,{images:e.lists,visible:e.visible,"onUpdate:visible":t[1]||(t[1]=p=>e.visible=p),indexd:e.indexd},null,8,["images","visible","indexd"]),i.createVNode(d,{visible:e.visibleS,"onUpdate:visible":t[2]||(t[2]=p=>e.visibleS=p),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:i.withCtx(()=>[i.createVNode(c,{file:e.fileUrl},null,8,["file"])]),_:1},8,["visible"])])}const ze=q(hA,[["render",MA],["__scopeId","data-v-2fb31c81"]]),QC="",LA={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:ze,TopPopup:pe,departPerson:Ze},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e="";this.multiNodeParticipant[this.partObjId].map((t,n)=>{n==0?e=t:e=`${e} ${t}`}),this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/createDynamicTask",{title:this.param.formData.title||this.param.formData.reason||this.param.formData.meetingTheme,participant:e,processInstId:this.param.processInstId,adHocType:2,parentTaskInstId:this.param.taskInstId,reason:this.commentMsg}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,n)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((n,s)=>{n.size=n.fileSize,n.format=n.originFileName.substring(n.originFileName.lastIndexOf(".")+1),n.uploadTime=n.createTime,n.processInstId=this.param.processInstId,n.taskInstId=this.param.taskInstId,n.name=n.originFileName});let e=this.attchLists;const t=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});console.log("asd",t),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(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Rt=e=>(i.pushScopeId("data-v-23b0a40e"),e=e(),i.popScopeId(),e),GA={class:"process-popup-content"},jA=Rt(()=>i.createElementVNode("div",{class:"process-pc-label"},[i.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),i.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),RA={class:"process-pc-value"},qA={class:"process-popup-textarea"},KA={class:"process-pc-label"},HA=Rt(()=>i.createElementVNode("br",null,null,-1)),YA=["onClick"],_A={class:"process-pc-value--people"},WA={key:0,class:"process-pc-value--data"},ZA={key:1,class:"process-pc-value--data",style:{color:"#888"}},zA=[Rt(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],XA={class:"process-pc-label"},$A=Rt(()=>i.createElementVNode("br",null,null,-1)),ey=Rt(()=>i.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),ty=["onClick"],ny={class:"process-pc-value--people"},sy={key:0,class:"process-pc-value--data"},oy={key:1,class:"process-pc-value--data",style:{color:"#888"}},iy=[Rt(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function ry(e,t,n,s,o,r){const a=i.resolveComponent("TopTips"),l=i.resolveComponent("departPerson"),c=i.resolveComponent("TopPopup"),d=i.resolveComponent("attchViews");return i.openBlock(),i.createElementBlock("div",GA,[jA,i.createElementVNode("div",RA,[i.createElementVNode("div",qA,[i.withDirectives(i.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=p=>o.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[i.vModelText,o.commentMsg]])])]),o.taskNode&&o.taskNode.length>0&&o.taskNode[0].taskState!=11?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[o.nextNodeData.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(o.nextNodeData,p=>{var u,g;return i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption((g=(u=p==null?void 0:p.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",KA,[i.createTextVNode(i.toDisplayString(p.userTaskModelDTO.name)+" ",1),HA,i.createTextVNode(" \u5BA1\u6279\u4EBA: ")]),i.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(p.id)},[i.createElementVNode("div",_A,[o.partNode[p.id]&&o.partNode[p.id].length?(i.openBlock(),i.createElementBlock("div",WA,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[p.id],(y,k)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(k==0?y:`,${y}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",ZA,zA))])],8,YA)],64)):i.createCommentVNode("",!0)],64)}),256)):o.outGatewayUserTaskModel.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(o.outGatewayUserTaskModel,p=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption(p.humanPerformerName)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",XA,[i.createTextVNode(i.toDisplayString(p.name)+" ",1),$A,i.createTextVNode(" \u5BA1\u6279\u4EBA "),ey]),i.createElementVNode("div",{class:"process-pc-value",onClick:u=>r.handleOpenPopup(p.id)},[i.createElementVNode("div",ny,[o.partNode[p.id]&&o.partNode[p.id].length?(i.openBlock(),i.createElementBlock("div",sy,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[p.id],(u,g)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(g==0?u:`,${u}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",oy,iy))])],8,ty)],64)):i.createCommentVNode("",!0)],64))),256)):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createVNode(a,{ref:"topTips",text:o.textTips,statusTips:o.statusTips,type:o.typeTips},null,8,["text","statusTips","type"]),i.createVNode(c,{visible:o.visible,"onUpdate:visible":t[1]||(t[1]=p=>o.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:i.withCtx(()=>[i.createVNode(l,i.mergeProps({visible:o.visible,request:n.param.request,businessId:n.param.formData.businessKey},o.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),o.labels=="5"?(i.openBlock(),i.createBlock(d,{key:1,limit:o.limit?o.limit:-1,requires:o.requires,request:n.param.request,linkUrl:n.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):i.createCommentVNode("",!0)])}const ay=q(LA,[["render",ry],["__scopeId","data-v-23b0a40e"]]),PC="",ly={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:ze,TopPopup:pe,departPerson:Ze},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e="";this.multiNodeParticipant[this.partObjId].map((t,n)=>{n==0?e=t:e=`${e} ${t}`}),this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/delegate",{delegateReason:this.commentMsg,taskInstId:this.param.taskInstId,targetUID:e}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,n)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((n,s)=>{n.size=n.fileSize,n.format=n.originFileName.substring(n.originFileName.lastIndexOf(".")+1),n.uploadTime=n.createTime,n.processInstId=this.param.processInstId,n.taskInstId=this.param.taskInstId,n.name=n.originFileName});let e=this.attchLists;const t=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});console.log("asd",t),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(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},qt=e=>(i.pushScopeId("data-v-cba54fe5"),e=e(),i.popScopeId(),e),cy={class:"process-popup-content"},py=qt(()=>i.createElementVNode("div",{class:"process-pc-label"},[i.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),i.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),dy={class:"process-pc-value"},uy={class:"process-popup-textarea"},hy={class:"process-pc-label"},fy=qt(()=>i.createElementVNode("br",null,null,-1)),my=["onClick"],gy={class:"process-pc-value--people"},Ay={key:0,class:"process-pc-value--data"},yy={key:1,class:"process-pc-value--data",style:{color:"#888"}},ky=[qt(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Cy={class:"process-pc-label"},Ey=qt(()=>i.createElementVNode("br",null,null,-1)),by=qt(()=>i.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Iy=["onClick"],By={class:"process-pc-value--people"},Ny={key:0,class:"process-pc-value--data"},wy={key:1,class:"process-pc-value--data",style:{color:"#888"}},vy=[qt(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Ty(e,t,n,s,o,r){const a=i.resolveComponent("TopTips"),l=i.resolveComponent("departPerson"),c=i.resolveComponent("TopPopup"),d=i.resolveComponent("attchViews");return i.openBlock(),i.createElementBlock("div",cy,[py,i.createElementVNode("div",dy,[i.createElementVNode("div",uy,[i.withDirectives(i.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=p=>o.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[i.vModelText,o.commentMsg]])])]),o.taskNode&&o.taskNode.length>0&&o.taskNode[0].taskState!=11?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[o.nextNodeData.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(o.nextNodeData,p=>{var u,g;return i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption((g=(u=p==null?void 0:p.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",hy,[i.createTextVNode(i.toDisplayString(p.userTaskModelDTO.name)+" ",1),fy,i.createTextVNode(" \u5BA1\u6279\u4EBA: ")]),i.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(p.id)},[i.createElementVNode("div",gy,[o.partNode[p.id]&&o.partNode[p.id].length?(i.openBlock(),i.createElementBlock("div",Ay,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[p.id],(y,k)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(k==0?y:`,${y}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",yy,ky))])],8,my)],64)):i.createCommentVNode("",!0)],64)}),256)):o.outGatewayUserTaskModel.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(o.outGatewayUserTaskModel,p=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption(p.humanPerformerName)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",Cy,[i.createTextVNode(i.toDisplayString(p.name)+" ",1),Ey,i.createTextVNode(" \u5BA1\u6279\u4EBA "),by]),i.createElementVNode("div",{class:"process-pc-value",onClick:u=>r.handleOpenPopup(p.id)},[i.createElementVNode("div",By,[o.partNode[p.id]&&o.partNode[p.id].length?(i.openBlock(),i.createElementBlock("div",Ny,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[p.id],(u,g)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(g==0?u:`,${u}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",wy,vy))])],8,Iy)],64)):i.createCommentVNode("",!0)],64))),256)):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createVNode(a,{ref:"topTips",text:o.textTips,statusTips:o.statusTips,type:o.typeTips},null,8,["text","statusTips","type"]),i.createVNode(c,{visible:o.visible,"onUpdate:visible":t[1]||(t[1]=p=>o.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:i.withCtx(()=>[i.createVNode(l,i.mergeProps({visible:o.visible,request:n.param.request,businessId:n.param.formData.businessKey},o.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),o.labels=="1"?(i.openBlock(),i.createBlock(d,{key:1,limit:o.limit?o.limit:-1,requires:o.requires,request:n.param.request,linkUrl:n.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):i.createCommentVNode("",!0)])}const Vy=q(ly,[["render",Ty],["__scopeId","data-v-cba54fe5"]]),LC="",Sy={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:ze,TopPopup:pe,departPerson:Ze},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel")},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},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}this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/complete",{actionName:"\u63D0\u4EA4",commentMsg:this.commentMsg,taskInstId:this.param.taskInstId,vars:this.param.vars,multiNodeParticipant:this.multiNodeParticipant}).then(e=>{if(e.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(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,n)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((n,s)=>{n.size=n.fileSize,n.format=n.originFileName.substring(n.originFileName.lastIndexOf(".")+1),n.uploadTime=n.createTime,n.processInstId=this.param.processInstId,n.taskInstId=this.param.taskInstId,n.name=n.originFileName});let e=this.attchLists;const t=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});console.log("asd",t),t.success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Kt=e=>(i.pushScopeId("data-v-069ab1fb"),e=e(),i.popScopeId(),e),Dy={class:"process-popup-content"},Oy=Kt(()=>i.createElementVNode("div",{class:"process-pc-label"},[i.createTextVNode(" \u5BA1\u6279\u610F\u89C1 "),i.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),xy={class:"process-pc-value"},Qy={class:"process-popup-textarea"},Fy={class:"process-pc-label"},Uy=Kt(()=>i.createElementVNode("br",null,null,-1)),Py=["onClick"],Jy={class:"process-pc-value--people"},My={key:0,class:"process-pc-value--data"},Ly={key:1,class:"process-pc-value--data",style:{color:"#888"}},Gy=[Kt(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],jy={class:"process-pc-label"},Ry=Kt(()=>i.createElementVNode("br",null,null,-1)),qy=Kt(()=>i.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Ky=["onClick"],Hy={class:"process-pc-value--people"},Yy={key:0,class:"process-pc-value--data"},_y={key:1,class:"process-pc-value--data",style:{color:"#888"}},Wy=[Kt(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Zy(e,t,n,s,o,r){const a=i.resolveComponent("TopTips"),l=i.resolveComponent("departPerson"),c=i.resolveComponent("TopPopup"),d=i.resolveComponent("attchViews");return i.openBlock(),i.createElementBlock("div",Dy,[Oy,i.createElementVNode("div",xy,[i.createElementVNode("div",Qy,[i.withDirectives(i.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=p=>o.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[i.vModelText,o.commentMsg]])])]),o.taskNode&&o.taskNode.length>0&&o.taskNode[0].taskState!=11?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[o.nextNodeData.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(o.nextNodeData,p=>{var u,g;return i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption((g=(u=p==null?void 0:p.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",Fy,[i.createTextVNode(i.toDisplayString(p.userTaskModelDTO.name)+" ",1),Uy,i.createTextVNode(" \u5BA1\u6279\u4EBA: ")]),i.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(p.id)},[i.createElementVNode("div",Jy,[o.partNode[p.id]&&o.partNode[p.id].length?(i.openBlock(),i.createElementBlock("div",My,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[p.id],(y,k)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(k==0?y:`,${y}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",Ly,Gy))])],8,Py)],64)):i.createCommentVNode("",!0)],64)}),256)):o.outGatewayUserTaskModel.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(o.outGatewayUserTaskModel,p=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption(p.humanPerformerName)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",jy,[i.createTextVNode(i.toDisplayString(p.name)+" ",1),Ry,i.createTextVNode(" \u5BA1\u6279\u4EBA "),qy]),i.createElementVNode("div",{class:"process-pc-value",onClick:u=>r.handleOpenPopup(p.id)},[i.createElementVNode("div",Hy,[o.partNode[p.id]&&o.partNode[p.id].length?(i.openBlock(),i.createElementBlock("div",Yy,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[p.id],(u,g)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(g==0?u:`,${u}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",_y,Wy))])],8,Ky)],64)):i.createCommentVNode("",!0)],64))),256)):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createVNode(a,{ref:"topTips",text:o.textTips,statusTips:o.statusTips,type:o.typeTips},null,8,["text","statusTips","type"]),i.createVNode(c,{visible:o.visible,"onUpdate:visible":t[1]||(t[1]=p=>o.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:i.withCtx(()=>[i.createVNode(l,i.mergeProps({visible:o.visible,request:n.param.request,businessId:n.param.formData.businessKey},o.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),o.labels=="1"?(i.openBlock(),i.createBlock(d,{key:1,limit:o.limit?o.limit:-1,requires:o.requires,request:n.param.request,linkUrl:n.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):i.createCommentVNode("",!0)])}const zy=q(Sy,[["render",Zy],["__scopeId","data-v-069ab1fb"]]),RC="",Xy={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:ze,TopPopup:pe,departPerson:Ze},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(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/reject",{commentMsg:this.commentMsg,taskInstId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,n)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((n,s)=>{n.size=n.fileSize,n.format=n.originFileName.substring(n.originFileName.lastIndexOf(".")+1),n.uploadTime=n.createTime,n.processInstId=this.param.processInstId,n.taskInstId=this.param.taskInstId,n.name=n.originFileName});let e=this.attchLists;const t=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});console.log("asd",t),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(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},gn=e=>(i.pushScopeId("data-v-bac0015f"),e=e(),i.popScopeId(),e),$y={class:"process-popup-content"},ek=gn(()=>i.createElementVNode("div",{class:"process-pc-label"},[i.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),i.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),tk={class:"process-pc-value"},nk={class:"process-popup-textarea"},sk={class:"process-pc-label"},ok=gn(()=>i.createElementVNode("br",null,null,-1)),ik=["onClick"],rk={class:"process-pc-value--people"},ak={key:0,class:"process-pc-value--data"},lk={key:1,class:"process-pc-value--data",style:{color:"#888"}},ck=[gn(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],pk={style:{"font-size":"15px"}},dk=gn(()=>i.createElementVNode("div",{class:"process-pc-label"},[i.createTextVNode(" \u5BA1\u6279\u4EBA "),i.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),uk=[gn(()=>i.createElementVNode("div",{class:"process-pc-value--people"},i.toDisplayString(234),-1))];function hk(e,t,n,s,o,r){const a=i.resolveComponent("TopTips"),l=i.resolveComponent("departPerson"),c=i.resolveComponent("TopPopup"),d=i.resolveComponent("attchViews");return i.openBlock(),i.createElementBlock("div",$y,[ek,i.createElementVNode("div",tk,[i.createElementVNode("div",nk,[i.withDirectives(i.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=p=>o.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[i.vModelText,o.commentMsg]])])]),o.taskNode&&o.taskNode.length>0&&o.taskNode[0].taskState!=11?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[o.nextNodeData.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(o.nextNodeData,p=>{var u,g;return i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption((g=(u=p==null?void 0:p.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",sk,[i.createTextVNode(i.toDisplayString(p.userTaskModelDTO.name)+" ",1),ok,i.createTextVNode(" \u5BA1\u6279\u4EBA: ")]),i.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(p.id)},[i.createElementVNode("div",rk,[o.partNode[p.id]&&o.partNode[p.id].length?(i.openBlock(),i.createElementBlock("div",ak,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[p.id],(y,k)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(k==0?y:`,${y}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",lk,ck))])],8,ik)],64)):i.createCommentVNode("",!0)],64)}),256)):o.outGatewayUserTaskModel.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(o.outGatewayUserTaskModel,p=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption(p.humanPerformerName)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",pk,i.toDisplayString(p.name),1),dk,i.createElementVNode("div",{class:"process-pc-value",onClick:t[1]||(t[1]=(...u)=>r.handleOpenPopup&&r.handleOpenPopup(...u))},uk)],64)):i.createCommentVNode("",!0)],64))),256)):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createVNode(a,{ref:"topTips",text:o.textTips,statusTips:o.statusTips,type:o.typeTips},null,8,["text","statusTips","type"]),i.createVNode(c,{visible:o.visible,"onUpdate:visible":t[2]||(t[2]=p=>o.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:i.withCtx(()=>[i.createVNode(l,i.mergeProps({visible:o.visible,request:n.param.request,businessId:n.param.formData.businessKey},o.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),o.labels=="\u62D2\u7EDD"?(i.openBlock(),i.createBlock(d,{key:1,limit:o.limit?o.limit:-1,requires:o.requires,request:n.param.request,linkUrl:n.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):i.createCommentVNode("",!0)])}const fk=q(Xy,[["render",hk],["__scopeId","data-v-bac0015f"]]),HC="",mk={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:ze,TopPopup:pe,departPerson:Ze,TopDownSelect:ar},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:""}},watch:{param:{async handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{getReturnNode(){console.log("this.param.taskInstId",this.param.taskInstId),this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=e.data)})},handleChange(e){console.log("\u9000\u56DE\u8282\u70B9,",e),this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,isCompensation:!1,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,n)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((n,s)=>{n.size=n.fileSize,n.format=n.originFileName.substring(n.originFileName.lastIndexOf(".")+1),n.uploadTime=n.createTime,n.processInstId=this.param.processInstId,n.taskInstId=this.param.taskInstId,n.name=n.originFileName});let e=this.attchLists;const t=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});console.log("asd",t),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(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Ol=e=>(i.pushScopeId("data-v-293684bd"),e=e(),i.popScopeId(),e),gk={class:"process-popup-content"},Ak=Ol(()=>i.createElementVNode("div",{class:"process-pc-label",style:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[i.createTextVNode(" \u9000\u56DE\u8282\u70B9\uFF1A "),i.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),yk={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},kk=Ol(()=>i.createElementVNode("div",{class:"process-pc-label"},[i.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),i.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Ck={class:"process-pc-value"},Ek={class:"process-popup-textarea"};function bk(e,t,n,s,o,r){const a=i.resolveComponent("TopDownSelect"),l=i.resolveComponent("TopTips"),c=i.resolveComponent("attchViews");return i.openBlock(),i.createElementBlock("div",gk,[Ak,i.createElementVNode("div",yk,[i.createVNode(a,{option:o.option,onChange:r.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),kk,i.createElementVNode("div",Ck,[i.createElementVNode("div",Ek,[i.withDirectives(i.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=d=>o.commentMsg=d),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[i.vModelText,o.commentMsg]])])]),i.createVNode(l,{ref:"topTips",text:o.textTips,statusTips:o.statusTips,type:o.typeTips},null,8,["text","statusTips","type"]),o.labels=="\u9000\u56DE"?(i.openBlock(),i.createBlock(c,{key:0,limit:o.limit?o.limit:-1,requires:o.requires,request:n.param.request,linkUrl:n.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):i.createCommentVNode("",!0)])}const Ik=q(mk,[["render",bk],["__scopeId","data-v-293684bd"]]),YC="",Bk={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:ze,TopPopup:pe,departPerson:Ze},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){this.handleTips("",!0,"loading");let e="";this.multiNodeParticipant[this.partObjId].map((t,n)=>{n==0?e=t:e=`${e} ${t}`}),await this.param.request.post("/aws/tis/createCCTask",{processInstId:this.param.processInstId,title:this.param.formData.title||this.param.formData.reason||this.param.formData.meetingTheme,parentTaskInstId:this.param.taskInstId,participant:e}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,n)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((n,s)=>{n.size=n.fileSize,n.format=n.originFileName.substring(n.originFileName.lastIndexOf(".")+1),n.uploadTime=n.createTime,n.processInstId=this.param.processInstId,n.taskInstId=this.param.taskInstId,n.name=n.originFileName});let e=this.attchLists;const t=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});console.log("asd",t),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(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},An=e=>(i.pushScopeId("data-v-cca67a97"),e=e(),i.popScopeId(),e),Nk={class:"process-popup-content"},wk={class:"process-pc-label"},vk=An(()=>i.createElementVNode("br",null,null,-1)),Tk=["onClick"],Vk={class:"process-pc-value--people"},Sk={key:0,class:"process-pc-value--data"},Dk={key:1,class:"process-pc-value--data",style:{color:"#888"}},Ok=[An(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],xk={class:"process-pc-label"},Qk=An(()=>i.createElementVNode("br",null,null,-1)),Fk=An(()=>i.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Uk=["onClick"],Pk={class:"process-pc-value--people"},Jk={key:0,class:"process-pc-value--data"},Mk={key:1,class:"process-pc-value--data",style:{color:"#888"}},Lk=[An(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Gk(e,t,n,s,o,r){const a=i.resolveComponent("TopTips"),l=i.resolveComponent("departPerson"),c=i.resolveComponent("TopPopup"),d=i.resolveComponent("attchViews");return i.openBlock(),i.createElementBlock("div",Nk,[o.taskNode&&o.taskNode.length>0&&o.taskNode[0].taskState!=11?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[o.nextNodeData.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(o.nextNodeData,p=>{var u,g;return i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption((g=(u=p==null?void 0:p.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",wk,[i.createTextVNode(i.toDisplayString(p.userTaskModelDTO.name)+" ",1),vk,i.createTextVNode(" \u5BA1\u6279\u4EBA: ")]),i.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(p.id)},[i.createElementVNode("div",Vk,[o.partNode[p.id]&&o.partNode[p.id].length?(i.openBlock(),i.createElementBlock("div",Sk,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[p.id],(y,k)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(k==0?y:`,${y}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",Dk,Ok))])],8,Tk)],64)):i.createCommentVNode("",!0)],64)}),256)):o.outGatewayUserTaskModel.length?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(o.outGatewayUserTaskModel,p=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[p.type!="endEvent"&&r.isOption(p.humanPerformerName)?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createElementVNode("div",xk,[i.createTextVNode(i.toDisplayString(p.name)+" ",1),Qk,i.createTextVNode(" \u5BA1\u6279\u4EBA "),Fk]),i.createElementVNode("div",{class:"process-pc-value",onClick:u=>r.handleOpenPopup(p.id)},[i.createElementVNode("div",Pk,[o.partNode[p.id]&&o.partNode[p.id].length?(i.openBlock(),i.createElementBlock("div",Jk,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[p.id],(u,g)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(g==0?u:`,${u}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",Mk,Lk))])],8,Uk)],64)):i.createCommentVNode("",!0)],64))),256)):i.createCommentVNode("",!0)],64)):i.createCommentVNode("",!0),i.createVNode(a,{ref:"topTips",text:o.textTips,statusTips:o.statusTips,type:o.typeTips},null,8,["text","statusTips","type"]),i.createVNode(c,{visible:o.visible,"onUpdate:visible":t[0]||(t[0]=p=>o.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:i.withCtx(()=>[i.createVNode(l,i.mergeProps({visible:o.visible,request:n.param.request,businessId:n.param.formData.businessKey},o.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),o.labels=="2"?(i.openBlock(),i.createBlock(d,{key:1,limit:o.limit?o.limit:-1,requires:o.requires,request:n.param.request,linkUrl:n.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):i.createCommentVNode("",!0)])}const jk=q(Bk,[["render",Gk],["__scopeId","data-v-cca67a97"]]),ZC="",Rk={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:ze,TopPopup:pe,departPerson:Ze},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},getFirstProcessNode:{}}},watch:{param:{handler(e,t){console.log("handler::::",e),this.getFirstProcessNode=e.getFirstProcessNode,e.getFirstProcessNode&&this.getFirstProcessNode&&(e.getFirstProcessNode.type=="userTask"||e.getFirstProcessNode.type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):e.getFirstProcessNode.type=="ExclusiveGatewayModel"||e.getFirstProcessNode.type=="InclusiveGatewayModel")},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param)},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){let e={isClearHistory:!1,processInstId:this.param.processInstId,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant};this.handleTips("",!0,"loading"),await this.param.request.post("/aws/pis/reactivate",e).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal()):this.handleTips(t.msg,!0,"error")})},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,n)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},xl=e=>(i.pushScopeId("data-v-4a149200"),e=e(),i.popScopeId(),e),qk={class:"process-popup-content"},Kk={class:"process-pc-label"},Hk=xl(()=>i.createElementVNode("br",null,null,-1)),Yk={class:"process-pc-value--people"},_k={key:0,class:"process-pc-value--data"},Wk={key:1,class:"process-pc-value--data",style:{color:"#888"}},Zk=[xl(()=>i.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function zk(e,t,n,s,o,r){const a=i.resolveComponent("TopTips"),l=i.resolveComponent("departPerson"),c=i.resolveComponent("TopPopup");return i.openBlock(),i.createElementBlock("div",qk,[i.createElementVNode("template",null,[i.createElementVNode("div",Kk,[i.createTextVNode(i.toDisplayString(o.getFirstProcessNode.name)+" ",1),Hk,i.createTextVNode(" \u5BA1\u6279\u4EBA: ")]),i.createElementVNode("div",{class:"process-pc-value",onClick:t[0]||(t[0]=d=>r.handleOpenPopup(o.getFirstProcessNode.id))},[i.createElementVNode("div",Yk,[o.partNode[o.getFirstProcessNode.id]&&o.partNode[o.getFirstProcessNode.id].length?(i.openBlock(),i.createElementBlock("div",_k,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(o.partNode[o.getFirstProcessNode.id],(d,p)=>(i.openBlock(),i.createElementBlock("span",null,i.toDisplayString(p==0?d:`,${d}`),1))),256))])):(i.openBlock(),i.createElementBlock("div",Wk,Zk))])])]),i.createVNode(a,{ref:"topTips",text:o.textTips,statusTips:o.statusTips,type:o.typeTips},null,8,["text","statusTips","type"]),i.createVNode(c,{visible:o.visible,"onUpdate:visible":t[1]||(t[1]=d=>o.visible=d),titleText:"\u9009\u4EBA",isDrawer:!0},{default:i.withCtx(()=>[i.createVNode(l,i.mergeProps({visible:o.visible,request:n.param.request,businessId:n.param.formData.businessKey},o.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"])])}const Xk=q(Rk,[["render",zk],["__scopeId","data-v-4a149200"]]),XC="",$k=Be({name:"TopProcess",components:{TopTab:Zd,TopPopup:pe,TopTips:Ne,TopSumbitPopup:Dl},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},userId:{require:!0,default:"",type:String},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},request:{type:Function,default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{type:String,default:""},endFunction:{type:Function,default:null}},data(){return{processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskId:"",taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,ProcessInsObj:{},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[]}},watch:{processInstId:{async handler(e,t){this.processIntId=this.processInstId,e&&(this.request.get("/aws/repository/getTrackUrl",{params:{processInstId:this.processIntId,type:"mobile"}}).then(n=>{n.code==200&&(this.trackUrl=n.data)}),this.request.get("/aws/pis/findNodeParticipantRows",{params:{processInstId:this.processIntId}}).then(n=>{n.code==200&&(this.trackList=n.data)}),this.request.get("/aws/tis/getTaskCommentList",{params:{processInstId:this.processInstId,processBusinessKey:this.formData.businessKey}}).then(n=>{n.code==200&&(this.taskCommentList=n.data)}),this.request.get("/aws/pis/getProcessInstanceById",{params:{processInstId:this.processInstId}}).then(n=>{n.code==200&&(this.ProcessInsObj=n.data)}),await this.request.get("/aws/repository/queryTaskNodeList",{params:{processInstId:this.processInstId}}).then(n=>{if(n.code==200)if(this.taskNode=n.data,this.taskNodeList=n.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(s=>{s.name=s.nodeName}),this.taskNodeShow=!0,this.actionShow=!0):(this.handleGetProcessStatus(),this.handleGetUserTaskModel())}))},immediate:!0,deep:!0}},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){var n,s;let e=[],t=this.taskNode&&this.taskNode[0]&&this.taskNode[0].taskState!=4;if(t&&!this.isView&&this.taskObj.completeButtonLabel){let o={};o.name=this.taskObj.completeButtonLabel,o.btnProps={type:"primary"},e.push(o),o.click=r=>{this.$refs.TopPopup1.handleOpen(),this.handleActionClose(),this.showOperation(zy,r,this.request,this.taskObj.completeButtonAnnex)}}if(t&&!this.isView&&this.processStatus.currUserName){let o={};o.name="\u62D2\u7EDD",o.btnProps={type:"danger"},e.push(o),o.click=r=>{this.$refs.TopPopup1.handleOpen(),this.handleActionClose(),this.showOperation(fk,r,this.request,this.taskObj.otherButtonAnnexList)}}if(t&&!this.isView&&this.taskObj.buttons&&this.taskObj.buttons.length&&this.taskObj.buttons.forEach(o=>{if(o.label==="\u9000\u56DE"){let r={};r.name=o.label,r.btnProps={type:"danger"},e.push(r),r.click=a=>{this.$refs.TopPopup1.handleOpen(),this.handleActionClose(),this.showOperation(Ik,a,this.request,this.taskObj.otherButtonAnnexList)}}}),t&&!this.isView&&this.taskObj.ccTaskButtonLabel){let o={};o.name=this.taskObj.ccTaskButtonLabel,o.btnProps={type:"default"},o.click=r=>{this.$refs.TopPopup1.handleOpen(),this.handleActionClose(),this.showOperation(jk,r,this.request,this.taskObj.ccTaskButtonAnnex)},e.push(o)}if(t&&!this.isView&&this.taskObj.delegateTaskButtonLabel){let o={};o.name=this.taskObj.delegateTaskButtonLabel,o.btnProps={type:"default"},o.click=r=>{this.$refs.TopPopup1.handleOpen(),this.handleActionClose(),this.showOperation(Vy,r,this.request,this.taskObj.delegateTaskButtonAnnex)},e.push(o)}if(t&&!this.isView&&this.taskObj.counterSignLabel){let o={};o.name=this.taskObj.counterSignLabel,o.btnProps={type:"primary"},o.click=r=>{this.$refs.TopPopup1.handleOpen(),this.handleActionClose(),this.showOperation(ay,r,this.request,this.taskObj.counterSignButtonAnnex)},e.push(o)}if(this.processIntId&&this.processStatus.createTopUserId==this.userId&&((n=this.taskNode[0])==null?void 0:n.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let o={};o.name="\u50AC\u529E",o.btnProps={type:"default"},o.click=r=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=r,this.popupContext=`\u786E\u5B9A${r}\u5417?`,this.handleTipsType="\u50AC\u529E"},e.push(o)}if(this.processIntId&&this.processStatus.createTopUserId==this.userId&&((s=this.taskNode[0])==null?void 0:s.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let o={};o.name="\u64A4\u9500",o.btnProps={type:"default"},o.click=r=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=r,this.popupContext=`\u786E\u5B9A${r}\u5417?`,this.handleTipsType="\u64A4\u9500"},e.push(o)}return e},processCardHeight(){let e=210;return this.processStatus.status?this.processStatus.currUserName||(e-=40):e-=140,`calc(100vh - ${e}px)`}},methods:{handleTest(){},async handleGetSimulation(e){this.handleTips("",!0,"loading");let t={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e},n=await this.request.post("/aws/tis/simulation",t);n.success?(this.handleTips("",!1,"success"),this.nextNodeData=n.data):await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:this.taskNode.length?this.taskNode[0].taskId:"",processNodeId:""}}).then(s=>{this.handleTips("",!1,"success"),console.log("outGatewayUserTaskModel",s),this.outGatewayUserTaskModel=s.data})},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.request.get("/aws/pis/getProcessStatus",{params:{processInstId:this.processInstId,taskId:this.taskNode.length?this.taskNode[0].taskId:""}}).then(e=>{e.code==200&&(this.processStatus=e.data)})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length&&this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data)})},async showOperation(e,t,n,s){if(this.processStatus.allUserNames&&this.processStatus.allUserNames.length==1&&this.taskNode[0]&&this.taskNode[0].nodeId){let o;this.getVars&&(o=this.getVars()),await this.handleGetSimulation(o)}n&&(this.operationParam.request=n),n&&(this.annexlabel=s),this.titleText=t,this.operationCom=e,this.operationParam.annex=s,this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=this.taskNode[0].taskId,this.operationParam.actionName=t,this.operationParam.formData=this.formData,this.operationParam.nextNodeData=this.nextNodeData,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId,this.operationParam.endFunction=this.endFunction},handleCancel(){console.log("handleCancel")},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.$refs.TopPopup1.handleClose()},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/aws/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.post("/aws/pis/revoke",{processInstId:this.ProcessInsObj.id,processBusinessKey:this.ProcessInsObj.processBusinessKey}).then(e=>{e.code==200?this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){console.log("handleTipsCancel")},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.$refs.TopPopup1.handleOpen(),this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.processStatus.appId}}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(t=>{this.processBusiness=t.data,this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(n=>{console.log("getProcessInstanceByBusinessKey:::",n),this.getFirstProcessNode=n.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.$refs.TopPopup1.handleOpen(),this.handleActionClose(),this.showOperation(Xk,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(n=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,t,n){this.textTips=e,this.statusTips=t,this.typeTips=n,this.$refs.topTips.handleOpen()}}}),$C="",Ht=e=>(i.pushScopeId("data-v-ec42cc65"),e=e(),i.popScopeId(),e),eC={class:"process-warp"},tC={key:0,class:"process-main"},nC={class:"process-ml-item border"},sC=Ht(()=>i.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),oC={class:"process-mli-value"},iC={class:"process-ml-item border"},rC=Ht(()=>i.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),aC={class:"process-mli-value"},lC={key:0,class:"process-ml-item"},cC=Ht(()=>i.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),pC={class:"process-mli-value"},dC={class:"process-mliv-jd"},uC={key:1,class:"process-foot"},hC={class:"footBtnRow"},fC={class:"process-btn"},mC=["onClick"],gC=[Ht(()=>i.createElementVNode("div",{class:"circle"},null,-1)),Ht(()=>i.createElementVNode("div",{class:"circle"},null,-1)),Ht(()=>i.createElementVNode("div",{class:"circle"},null,-1))],AC=["onClick"],yC=["onClick"];function kC(e,t,n,s,o,r){const a=i.resolveComponent("TopTab"),l=i.resolveComponent("TopPopup"),c=i.resolveComponent("TopTips");return i.openBlock(),i.createElementBlock("div",null,[i.createElementVNode("div",eC,[e.processStatus.status?(i.openBlock(),i.createElementBlock("div",tC,[i.createElementVNode("div",nC,[sC,i.createElementVNode("div",oC,[e.processStatus.status||e.processStatus.bizStatusName?(i.openBlock(),i.createElementBlock("div",{key:0,class:"process-mliv-dd",style:i.normalizeStyle({background:e.getColor(e.processStatus.status)})},i.toDisplayString(e.processStatus.bizStatusName?e.processStatus.bizStatusName:e.processStatus.status),5)):i.createCommentVNode("",!0)])]),i.createElementVNode("div",iC,[rC,i.createElementVNode("div",aC,[i.createElementVNode("span",null,i.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(i.openBlock(),i.createElementBlock("div",lC,[cC,i.createElementVNode("div",pC,[i.createElementVNode("span",dC,i.toDisplayString(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`),1)])])):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"process-card",style:i.normalizeStyle({height:e.processCardHeight})},[i.createVNode(a,{tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList},{default:i.withCtx(()=>[i.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),e.isAdditional?(i.openBlock(),i.createElementBlock("div",uC,[i.createElementVNode("div",hC,[i.renderSlot(e.$slots,"btn",{},void 0,!0)])])):i.createCommentVNode("",!0),i.createElementVNode("div",fC,[e.processStatus.status!="\u5DF2\u5B8C\u6210"?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[e.processStatus.status==="\u5DF2\u64A4\u9500"||e.processStatus.status==="\u5DF2\u9A73\u56DE"?(i.openBlock(),i.createElementBlock("div",{key:0,class:"top-button",style:i.normalizeStyle(e.getBtnStyle("default")),onClick:t[0]||(t[0]=(...d)=>e.handleRestart&&e.handleRestart(...d))}," \u91CD\u65B0\u63D0\u4EA4 ",4)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(e.operBtn,(d,p)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[p<3?(i.openBlock(),i.createElementBlock("div",{class:"top-button",style:i.normalizeStyle(e.getBtnStyle(d.btnProps.type.toString())),key:d.name,onClick:u=>d.click(d.name)},i.toDisplayString(d.name),13,mC)):i.createCommentVNode("",!0)],64))),256))],64)):i.createCommentVNode("",!0),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?(i.openBlock(),i.createElementBlock("div",{key:1,class:"elips",onClick:t[1]||(t[1]=(...d)=>e.handleActionOpen&&e.handleActionOpen(...d))},gC)):i.createCommentVNode("",!0)])]),i.createVNode(l,{ref:"TopPopup1",cancel:e.handleCancel,comfig:e.handleComfig,titleText:e.titleText},{default:i.withCtx(()=>[(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.operationCom),{ref:"operationRef",param:e.operationParam,onHandleClosePopup1:e.handleClosePopup1},null,40,["param","onHandleClosePopup1"]))]),_:1},8,["cancel","comfig","titleText"]),i.createVNode(l,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),i.createVNode(c,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?(i.openBlock(),i.createElementBlock("div",{key:0,class:"top-elips",style:i.normalizeStyle(e.actionShow?"transform: translateY(0)":"transform: translateY(100%)")},[e.taskNodeShow?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(e.taskNodeList,d=>(i.openBlock(),i.createElementBlock("div",{class:"top-elips-items",onClick:p=>e.handleGet(d),key:d.taskId},i.toDisplayString(d.name),9,AC))),128)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(e.actionBtn,d=>(i.openBlock(),i.createElementBlock("div",{class:"top-elips-items",onClick:p=>d.click(d.name),key:d.name},i.toDisplayString(d.name),9,yC))),128)),i.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:t[2]||(t[2]=(...d)=>e.handleActionClose&&e.handleActionClose(...d))}," \u53D6\u6D88 ")],4)):i.createCommentVNode("",!0),i.createElementVNode("div",{class:"top-elips-mask",onClick:t[3]||(t[3]=(...d)=>e.handleActionClose&&e.handleActionClose(...d)),style:i.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)])}const CC=q($k,[["render",kC],["__scopeId","data-v-ec42cc65"]]);Ee.TopProcess=CC,Ee.TopSumbitPopup=Dl,Ee.ViewAttchList=rr,Ee.attchViews=ze,Object.defineProperties(Ee,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});