ui-process-h5 1.0.29 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/v2/style.css +1 -1
- package/v2/ui-process-h5.js +8 -4
- package/v2/ui-process-h5.umd.cjs +1 -1
- package/v2.7/style.css +1 -1
- package/v2.7/ui-process-h5.js +8 -4
- package/v2.7/ui-process-h5.umd.cjs +1 -1
- package/v3/style.css +1 -1
- package/v3/ui-process-h5.js +9 -5
- package/v3/ui-process-h5.umd.cjs +1 -1
package/v3/ui-process-h5.umd.cjs
CHANGED
|
@@ -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 s=sessionStorage.getItem(this.sessionStorageName),n=s?JSON.parse(s):null;if(t.againBtn&&t.content&&n&&Array.isArray(n)&&n.includes(t.content))return;const i=oA({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(i.els),ni(this.mainContainer),iA(i,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const rA={components:{checked:qg,dcSwitch:_g,dcLoading:sA},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},deptCode:{type:String,default:""},subjectName:{type:String,default:""},checkedArray:{type:Array,default:()=>[]},isLoadingClose:{type:Boolean,default:!0},maxMultiple:{type:Number,default:0}},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.defaultBreadcrumb(),N(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})})})}},isSon:{deep:!0,handler:function(e,t){let s=[];const n=this.checkedJson.map(i=>{const r=this.entityJson.findIndex(a=>a.id===i.id&&i.type==a.type&&i.type==2)>-1?e&&i.type==2?"4":i.type:i.orgRecordsType;return(r==4||i.type==1)&&s.push(i.id),{...i,orgRecordsType:r}});this.checkedJson=n.filter(i=>i.ancestors.split(",").findIndex(r=>s.indexOf(r)>-1)===-1)}},checkedArray:{deep:!0,immediate:!0,handler:function(e,t){if(N(e)||!N(this.businessId))return!1;this.getCards()}},isLoadingClose(e){e&&(this.isLoading=!1)}},computed:{queryImg(){return nA},entityJson(){const e=this.checkedJson;return this.jsonData.map(t=>{const s=this.isQuery?this.breadcrumb_level.ancestors||"":t.ancestors,n=this.isQuery?this.breadcrumb_level.ancestorNames:t.ancestorNames,i=s+t.id+"__"+t.type,r=e.find(u=>u.uniqueId===i),a=!N(r),c=a?!1:e.findIndex(u=>u.type===t.type&&u.id===t.id&&t.subjectId===u.subjectId)>-1,l=a?t.type==1||r.orgRecordsType==4:!1,p=N(e)?0:l?t.counts:e.filter(u=>u.type!=1&&u.ancestors.indexOf(t.id)>-1).length,d=a?r.isNoDelete:!1;return{type:t.type,id:t.id,name:t.name,counts:N(t.counts)?0:t.counts,num:p,phone:Jg(t.phone),uid:t.uid,iconName:si(t.name,2),checked:a,ancestors:s,ancestorNames:n,deptName:Pg(t.ancestorNames,"/"),uniqueId:i,isDisabled:c,isLevel:l,subjectId:t.subjectId,sex:t.sex,avatar:N(t.avatar)?"":t.avatar,isNoDelete:d}})},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(i=>i.type==1).length,t=this.checkedJson.filter(i=>i.type==2).length,s=this.checkedJson.filter(i=>i.type==3).length;let n=[];return e>0&&n.push(e+"\u4E2A\u7EC4\u7EC7"),t>0&&n.push(t+"\u4E2A\u90E8\u95E8"),s>0&&n.push(s+"\u4E2A\u6210\u5458"),N(n)?"":"\u5DF2\u9009\u62E9"+n.join("\uFF0C")},breadcrumb_subjectId(){const e=this.breadcrumb.filter((t,s)=>t.value!=="-1");return N(e)?"":e[0].value},breadcrumb_level(){const e=this.breadcrumb.filter((t,s)=>t.value!=="-1");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&&this.isShowDept},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(){return this.codeType.length==1&&this.codeType[0]==2?"\u9009\u62E9\u90E8\u95E8":this.codeType.length==1&&this.codeType[0]==3?"\u9009\u62E9\u4EBA\u5458":"\u9009\u62E9\u7EC4\u7EC7"},isNoDelete(){return N(this.checkedArray)?[]:this.checkedArray.filter(e=>e.isDeleteNo)}},mounted(){document.title=this.getTitle,this.getDetail(()=>{this.defaultBreadcrumb(),N(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})})},methods:{handleSubmit(){if(this.isLoading)return!1;const e=N(this.checkedJson)?[]:this.checkedJson.map(s=>({type:s.orgRecordsType,id:s.id,name:s.name,ancestors:s.ancestors,ancestorNames:s.ancestorNames,subjectId:s.subjectId,phone:N(s.phone)?"":s.phone,sex:s.sex,uid:N(s.uid)?"":s.uid}));if(N(this.businessId))return this.$emit("callback",e);const t={businessId:this.businessId,orgRecords:this.checkedJson.map(s=>({type:s.orgRecordsType,bizId:s.id,ancestors:s.ancestors,ancestorNames:s.ancestorNames,uid:s.uid}))};this.isLoading=!0,this.request.post("/auth/component/org/save",t).then(s=>{s.code===200&&this.$emit("callback",e)}).finally(()=>{this.isLoadingClose&&(this.isLoading=!1)})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){this.getSearch(()=>{this.isQuery=N(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.isNoDelete||t.type==1&&!this.isShowSubject||t.type==2&&!this.isShowDept)return!1;if(e.currentTarget.checked){if(this.checkedJson.findIndex(a=>a.uniqueId===t.uniqueId)!=-1)return!1;const s=t.type==1?"0":t.ancestors,n=t.type==1?"":t.ancestorNames,i=this.isDept&&this.isSon&&t.type==2?"4":t.type,r={...t,ancestors:s,ancestorNames:n,orgRecordsType:i};return(t.type==1||i==4)&&(this.checkedJson=this.checkedJson.filter(a=>a.ancestors.indexOf(t.id)===-1)),this.getBoolChecked(t)?(e.currentTarget.checked=!1,!1):this.maxMultiple!==0&&this.checkedJson.length>=this.maxMultiple&&this.multiple?(e.currentTarget.checked=!1,new oi().message({content:`\u6700\u591A\u9009\u62E9${this.maxMultiple}\u9879\u3001\u8BF7\u79FB\u9664\u540E\u518D\u8FDB\u884C\u9009\u62E9`,type:"warning"}),!1):(this.multiple?this.checkedJson.push(r):this.checkedJson=[r],!1)}this.checkedJson=this.checkedJson.filter(s=>s.uniqueId!==t.uniqueId)},handleBreadcrumb(e,t){if(e.disable||t+1==this.breadcrumb.length)return!1;switch(t){case 0:this.deptId=this.deptCode;break;case 1:this.deptId=0;break;default:this.deptId=e.value;break}this.subjectId=e.value==="-1"?"":this.breadcrumb_subjectId,this.keyword="",this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((s,n)=>n<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(","),s=this.checkedJson.filter(i=>i.type==2||i.type==1).find(i=>t.indexOf(i.id)>-1);let n=!1;return N(s)||(s.type==1&&(new oi().message({content:`\u5DF2\u9009\u7684\u7EC4\u7EC7\u3010${s.name}\u3011\u5B58\u5728${e.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),n=!0),s.type==4&&(new oi().message({content:`\u5DF2\u9009\u7684\u90E8\u95E8\u3010${s.name}\u3011\u5B58\u5728${e.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),n=!0)),n},defaultBreadcrumb(){this.deptId=this.deptCode,this.subjectId="",N(this.deptCode)&&(this.breadcrumb=[{name:"\u7EC4\u7EC7",value:"-1"}]),this.isSon=!1,this.jsonData=[],this.keyword="",this.isQuery=!0,this.isLoading=!1},getIsSon(){const e=this.entityJson.filter(s=>s.type==2),t=this.checkedJson.filter(s=>s.type==2);this.isSon=t.findIndex(s=>e.findIndex(n=>n.id===s.id&&s.orgRecordsType==4)>-1)>-1},getCheckedAll(){const e=this.entityJson.findIndex(t=>this.checkedJson.findIndex(s=>s.type===t.type&&s.id===t.id&&t.subjectId===s.subjectId)===-1);this.checkedAll=e===-1},getSearch(e=()=>{}){const t=this.codeType.findIndex(n=>n==3)>-1?3:this.codeType.findIndex(n=>n==2)>-1?2:1,s={source:this.source,type:this.type,deptId:this.deptId,subjectId:this.subjectId,keyword:this.keyword,showType:t};N(s.deptId)&&delete s.deptId,N(s.subjectId)&&delete s.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:s}).then(n=>{e(),this.jsonData=N(n.data)||n.code!==200?[]:n.data;const i=this.breadcrumb.filter(r=>r.value!=="-1");if(!N(this.jsonData)&&N(i)&&(!N(this.deptCode)||!N(this.subjectName))){const r=n.data[0],a=r.ancestors.split(",");this.breadcrumb=a.map((c,l)=>({value:c,name:r.ancestorNames.split("/")[l],disable:l!==a.length-1&&a.length!==0}))}this.getIsSon(),this.getCheckedAll()}).finally(()=>{this.isLoading=!1})},getDetail(e=()=>{}){if(N(this.businessId))return e(),!1;const t={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:t}).then(s=>{this.checkedJson=N(s.data)||s.code!==200?[]:s.data.map(n=>{const i=n.type==4?"2":n.type,r=n.type==1?"":n.ancestors,a=r+n.bizId+"__"+i,c=this.isNoDelete.findIndex(l=>l.id===n.id||l.uid===n.uid)>-1;return{...n,ancestors:r,id:n.bizId,type:i,uniqueId:a,orgRecordsType:n.type,iconName:si(n.name,2),sex:n.sex,uid:N(n.uid)?"":n.uid,avatar:N(n.avatar)?"":n.avatar,isNoDelete:c}}),e()})},getCards(){if(N(this.checkedArray))return this.checkedJson=[];const e=this.checkedArray.map(t=>({type:t.type,id:N(t.id)?null:t.id,uid:N(t.uid)?null:t.uid,subjectId:N(t.subjectId)?null:t.subjectId,deptId:N(t.deptId)?null:t.deptId}));this.request.post("/auth/component/org/cards",{params:e}).then(t=>{this.checkedJson=N(t.data)||t.code!==200?[]:t.data.map(s=>{const n=s.type==4?"2":s.type,i=s.type==1?"":s.ancestors,r=s.type==1?"":s.ancestorNames,a=i+s.id+"__"+n,c=this.isNoDelete.findIndex(l=>l.id===s.id||l.uid===s.uid)>-1;return{...s,ancestors:i,ancestorNames:r,id:s.id,type:n,uniqueId:a,orgRecordsType:s.type,iconName:si(s.name,2),sex:s.sex,uid:N(s.uid)?"":s.uid,avatar:N(s.avatar)?"":s.avatar,isNoDelete:c}})})},getByName(e=()=>{}){const t={name:this.subjectName};this.request.get("/auth/component/org/subject/getByName",{params:t}).then(s=>{console.log("getByName",s),s.code===200&&(this.subjectId=s.data,e())})}}};var aA=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("main",{staticClass:"departPerson-main"},[s("div",{staticClass:"deper-top"},[e._e(),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowQuery,expression:"isShowQuery"}],staticClass:"deper-query"},[s("form",{staticClass:"form",attrs:{action:"javascript: void(0);"},on:{submit:function(n){n.preventDefault()}}},[s("i",{staticClass:"icon-chaxun iconfont chaxun"}),s("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],staticClass:"input",attrs:{type:"search",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u3001\u624B\u673A\u53F7\u7801"},domProps:{value:e.keyword},on:{keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.handleQuery.apply(null,arguments)},input:function(n){n.target.composing||(e.keyword=n.target.value)}}}),e.keyword.length>0?s("i",{staticClass:"icon-error-fill iconfont close",on:{click:e.handleEmpty}}):e._e()])]),e.isQuery?s("div",{staticClass:"deper-breadcrumb"},e._l(e.breadcrumb,function(n,i){return s("div",{key:n.value,staticClass:"deper-b-item",class:{disable:n.disable},on:{click:function(r){return e.handleBreadcrumb(n,i)}}},[s("span",[e._v(e._s(n.name))]),s("i",{staticClass:"icon-jiantouyou iconfont"})])}),0):e._e(),e.isQuery?s("div",{staticClass:"deper-all"},[s("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(n){var i=e.checkedAll,r=n.target,a=!!r.checked;if(Array.isArray(i)){var c=null,l=e._i(i,c);r.checked?l<0&&(e.checkedAll=i.concat([c])):l>-1&&(e.checkedAll=i.slice(0,l).concat(i.slice(l+1)))}else e.checkedAll=a},e.handleAllCheckbox]}}),s("label",{staticClass:"label",attrs:{for:"deper-all"}},[e._v("\u5168\u9009")])]):e._e()]),e.isQuery?s("div",{staticClass:"deper-center",class:e.getHight},[e.companyJson.length>0?s("div",{staticClass:"deper-c-depart"},e._l(e.companyJson,function(n){return s("div",{key:n.uniqueId,staticClass:"depart-item"},[s("label",{staticClass:"depart-left",class:{width:e.isNotLevel,isNoDelete:n.isNoDelete}},[s("input",{directives:[{name:"show",rawName:"v-show",value:e.isShowSubject,expression:"isShowSubject"},{name:"model",rawName:"v-model",value:n.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:n.isDisabled||n.isNoDelete,type:"checkbox"},domProps:{checked:Array.isArray(n.checked)?e._i(n.checked,null)>-1:n.checked},on:{change:[function(i){var r=n.checked,a=i.target,c=!!a.checked;if(Array.isArray(r)){var l=null,p=e._i(r,l);a.checked?p<0&&e.$set(n,"checked",r.concat([l])):p>-1&&e.$set(n,"checked",r.slice(0,p).concat(r.slice(p+1)))}else e.$set(n,"checked",c)},function(i){return e.handleCheckbox(i,n)}]}}),s("div",{staticClass:"depart-name"},[s("div",{staticClass:"name"},[e._v(e._s(n.name))]),n.num>0?s("div",{staticClass:"number"},[e._v("("),s("label",{staticClass:"label"},[e._v(e._s(n.num)+"/"+e._s(n.counts))]),e._v(")")]):s("div",{staticClass:"number"},[e._v("("+e._s(n.counts)+")")])])]),!e.isNotLevel&&n.counts>0?s("div",{staticClass:"depart-right",class:{isdisabled:n.isLevel},on:{click:function(i){return e.handleLevel(n)}}},[s("i",{staticClass:"icon-pedigree iconfont"}),s("span",[e._v("\u4E0B\u7EA7")])]):e._e()])}),0):e._e(),e.deptJson.length>0?s("div",{staticClass:"deper-c-depart"},e._l(e.deptJson,function(n){return s("div",{key:n.uniqueId,staticClass:"depart-item"},[s("label",{staticClass:"depart-left",class:{isNoDelete:n.isNoDelete}},[s("input",{directives:[{name:"show",rawName:"v-show",value:e.isShowDept,expression:"isShowDept"},{name:"model",rawName:"v-model",value:n.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:n.isDisabled||n.isNoDelete,type:"checkbox"},domProps:{checked:Array.isArray(n.checked)?e._i(n.checked,null)>-1:n.checked},on:{change:[function(i){var r=n.checked,a=i.target,c=!!a.checked;if(Array.isArray(r)){var l=null,p=e._i(r,l);a.checked?p<0&&e.$set(n,"checked",r.concat([l])):p>-1&&e.$set(n,"checked",r.slice(0,p).concat(r.slice(p+1)))}else e.$set(n,"checked",c)},function(i){return e.handleCheckbox(i,n)}]}}),s("div",{staticClass:"depart-name"},[s("div",{staticClass:"name"},[e._v(e._s(n.name))]),n.num>0?s("div",{staticClass:"number"},[e._v("("),s("label",[e._v(e._s(n.num)+"/"+e._s(n.counts))]),e._v(")")]):s("div",{staticClass:"number"},[e._v("("+e._s(n.counts)+")")])])]),n.counts>0?s("div",{staticClass:"depart-right",class:{isdisabled:n.isLevel},on:{click:function(i){return e.handleLevel(n)}}},[s("i",{staticClass:"icon-pedigree iconfont"}),s("span",[e._v("\u4E0B\u7EA7")])]):e._e()])}),0):e._e(),e.userJson.length>0?s("div",{staticClass:"deper-c-user"},e._l(e.userJson,function(n){return s("label",{key:n.uniqueId,staticClass:"user-item",class:{isNoDelete:n.isNoDelete}},[s("input",{directives:[{name:"model",rawName:"v-model",value:n.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:n.isDisabled||n.isNoDelete,type:"checkbox"},domProps:{checked:Array.isArray(n.checked)?e._i(n.checked,null)>-1:n.checked},on:{change:[function(i){var r=n.checked,a=i.target,c=!!a.checked;if(Array.isArray(r)){var l=null,p=e._i(r,l);a.checked?p<0&&e.$set(n,"checked",r.concat([l])):p>-1&&e.$set(n,"checked",r.slice(0,p).concat(r.slice(p+1)))}else e.$set(n,"checked",c)},function(i){return e.handleCheckbox(i,n)}]}}),s("div",{staticClass:"user-icon"},[n.avatar.length<1?s("span",[e._v(e._s(n.iconName))]):s("img",{attrs:{src:n.avatar}})]),s("div",{staticClass:"user-name"},[s("div",{staticClass:"span"},[e._v(e._s(n.name))]),s("div",{staticClass:"phone"},[e._v(e._s(n.phone))])])])}),0):e._e()]):s("div",{staticClass:"deper-search"},[e._e(),s("div",{staticClass:"deper-search-section"},[e._e(),s("div",{staticClass:"search-user"},[s("div",{staticClass:"search-title"},[e._v("\u8054\u7CFB\u4EBA")]),e._l(e.userJson,function(n){return s("label",{key:n.uniqueId,staticClass:"user-item"},[s("input",{directives:[{name:"model",rawName:"v-model",value:n.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:n.isDisabled,type:"checkbox"},domProps:{checked:Array.isArray(n.checked)?e._i(n.checked,null)>-1:n.checked},on:{change:[function(i){var r=n.checked,a=i.target,c=!!a.checked;if(Array.isArray(r)){var l=null,p=e._i(r,l);a.checked?p<0&&e.$set(n,"checked",r.concat([l])):p>-1&&e.$set(n,"checked",r.slice(0,p).concat(r.slice(p+1)))}else e.$set(n,"checked",c)},function(i){return e.handleCheckbox(i,n)}]}}),s("div",{staticClass:"user-icon"},[s("span",[e._v(e._s(n.iconName))])]),s("div",{staticClass:"user-name"},[s("div",{staticClass:"span"},[e._v(e._s(n.name))]),s("div",{staticClass:"phone"},[e._v(e._s(n.phone))]),s("div",{staticClass:"txt"},[e._v(e._s(n.ancestorNames))])])])})],2)])]),e.isDept?s("div",{staticClass:"deper-son"},[s("span",[e._v("\u5305\u542B\u5B50\u7EA7")]),s("dc-switch",{attrs:{modelValue:e.isSon,name:"isSone"},on:{"update:modelValue":function(n){e.isSon=n},"update:model-value":function(n){e.isSon=n}}})],1):e._e(),s("div",{staticClass:"deper-bottom"},[s("div",{staticClass:"deper-b-checked",on:{click:function(n){e.isShowChecked=!0}}},[s("span",[e._v(e._s(e.checkedNumber))]),e.checkedNumber.length>0?s("i",{staticClass:"icon-jiantouyou iconfont"}):e._e()]),s("div",{staticClass:"deper-b-btn",on:{click:e.handleSubmit}},[e._v("\u786E\u5B9A")])]),s("checked",{attrs:{visible:e.isShowChecked,checkedJson:e.checkedJson},on:{"update:visible":function(n){e.isShowChecked=n},"update:checkedJson":function(n){e.checkedJson=n},"update:checked-json":function(n){e.checkedJson=n}},scopedSlots:e._u([{key:"user",fn:function(n){var i=n.item;return[e._t("checkedUser",null,{item:i})]}}],null,!0)}),e.isLoading?s("dcLoading"):e._e()],1)},cA=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"depart-item"},[s("label",{staticClass:"depart-left"},[s("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),s("div",{staticClass:"depart-name"},[s("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")]),s("div",{staticClass:"number"},[e._v("("),s("label",[e._v("100/100")]),e._v(")")])])])])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"depart-item"},[s("label",{staticClass:"depart-left"},[s("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),s("div",{staticClass:"depart-name"},[s("div",{staticClass:"name"},[e._v("\u6280\u672F\u90E8")]),s("div",{staticClass:"number"},[e._v("(80)")])])])])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"depart-item"},[s("label",{staticClass:"depart-left"},[s("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),s("div",{staticClass:"depart-name"},[s("div",{staticClass:"name"},[e._v("\u5F00\u53D1\u90E8")]),s("div",{staticClass:"number"},[e._v("("),s("label",[e._v("100/100")]),e._v(")")])])])])}];const Dc={};var lA=fn(rA,aA,cA,!1,dA,null,null,null);function dA(e){for(let t in Dc)this[t]=Dc[t]}const Ze=function(){return lA.exports}(),WC="",pA={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:qe,TopPopup:de,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?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e="";this.multiNodeParticipant[this.partObjId].map((t,s)=>{s==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.handleFinal(),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]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,s)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,n)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,s){this.textTips=e,this.statusTips=t,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},wt=e=>(o.pushScopeId("data-v-08c15a54"),e=e(),o.popScopeId(),e),uA={class:"process-popup-content"},hA=wt(()=>o.createElementVNode("div",{class:"process-pc-label"},[o.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),fA={class:"process-pc-value"},mA={class:"process-popup-textarea"},gA=wt(()=>o.createElementVNode("br",null,null,-1)),AA=wt(()=>o.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),yA=["onClick"],kA={class:"process-pc-value--people"},CA={key:0,class:"process-pc-value--data"},EA={key:1,class:"process-pc-value--data",style:{color:"#888"}},bA=[wt(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],IA={class:"process-pc-label"},BA=wt(()=>o.createElementVNode("br",null,null,-1)),NA=wt(()=>o.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),wA=["onClick"],vA={class:"process-pc-value--people"},VA={key:0,class:"process-pc-value--data"},TA={key:1,class:"process-pc-value--data",style:{color:"#888"}},SA=[wt(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function DA(e,t,s,n,i,r){const a=o.resolveComponent("TopTips"),c=o.resolveComponent("departPerson"),l=o.resolveComponent("TopPopup"),p=o.resolveComponent("attchViews");return o.openBlock(),o.createElementBlock("div",uA,[hA,o.createElementVNode("div",fA,[o.createElementVNode("div",mA,[o.withDirectives(o.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=d=>i.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),[[o.vModelText,i.commentMsg]])])]),i.taskNode&&i.taskNode.length>0&&i.taskNode[0].taskState!=11?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[i.nextNodeData.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(i.nextNodeData,d=>{var u,g;return o.openBlock(),o.createElementBlock(o.Fragment,null,[d.type!="endEvent"&&r.isOption((g=(u=d==null?void 0:d.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",null,[o.createTextVNode(o.toDisplayString(d.userTaskModelDTO.name)+" ",1),gA,o.createTextVNode(" \u5BA1\u6279\u4EBA "),AA]),o.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(d.id)},[o.createElementVNode("div",kA,[i.partNode[d.id]&&i.partNode[d.id].length?(o.openBlock(),o.createElementBlock("div",CA,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.partNode[d.id],(y,k)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(k==0?y:`,${y}`),1))),256))])):(o.openBlock(),o.createElementBlock("div",EA,bA))])],8,yA)],64)):o.createCommentVNode("",!0)],64)}),256)):i.outGatewayUserTaskModel.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(i.outGatewayUserTaskModel,d=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[d.type!="endEvent"&&r.isOption(d.humanPerformerName)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",IA,[o.createTextVNode(o.toDisplayString(d.name)+" ",1),BA,o.createTextVNode(" \u5BA1\u6279\u4EBA "),NA]),o.createElementVNode("div",{class:"process-pc-value",onClick:u=>r.handleOpenPopup(d.id)},[o.createElementVNode("div",vA,[i.partNode[d.id]&&i.partNode[d.id].length?(o.openBlock(),o.createElementBlock("div",VA,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.partNode[d.id],(u,g)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(g==0?u:`,${u}`),1))),256))])):(o.openBlock(),o.createElementBlock("div",TA,SA))])],8,wA)],64)):o.createCommentVNode("",!0)],64))),256)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),o.createVNode(a,{ref:"topTips",text:i.textTips,statusTips:i.statusTips,type:i.typeTips},null,8,["text","statusTips","type"]),o.createVNode(l,{visible:i.visible,"onUpdate:visible":t[1]||(t[1]=d=>i.visible=d),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:o.withCtx(()=>[o.createVNode(c,o.mergeProps({visible:i.visible,request:s.param.request,businessId:s.param.formData.businessKey},i.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),i.labels=="5"?(o.openBlock(),o.createBlock(p,{key:1,limit:i.limit?i.limit:-1,requires:i.requires,request:s.param.request,linkUrl:s.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):o.createCommentVNode("",!0)])}const OA=q(pA,[["render",DA],["__scopeId","data-v-08c15a54"]]),XC="",QA={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:qe,TopPopup:de,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?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e="";this.multiNodeParticipant[this.partObjId].map((t,s)=>{s==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.handleFinal(),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]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,s)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,n)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,s){this.textTips=e,this.statusTips=t,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},vt=e=>(o.pushScopeId("data-v-29f5935e"),e=e(),o.popScopeId(),e),xA={class:"process-popup-content"},FA=vt(()=>o.createElementVNode("div",{class:"process-pc-label"},[o.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),UA={class:"process-pc-value"},JA={class:"process-popup-textarea"},PA=vt(()=>o.createElementVNode("br",null,null,-1)),MA=vt(()=>o.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),LA=["onClick"],jA={class:"process-pc-value--people"},GA={key:0,class:"process-pc-value--data"},RA={key:1,class:"process-pc-value--data",style:{color:"#888"}},qA=[vt(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],KA={class:"process-pc-label"},HA=vt(()=>o.createElementVNode("br",null,null,-1)),YA=vt(()=>o.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),zA=["onClick"],WA={class:"process-pc-value--people"},_A={key:0,class:"process-pc-value--data"},ZA={key:1,class:"process-pc-value--data",style:{color:"#888"}},XA=[vt(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function $A(e,t,s,n,i,r){const a=o.resolveComponent("TopTips"),c=o.resolveComponent("departPerson"),l=o.resolveComponent("TopPopup"),p=o.resolveComponent("attchViews");return o.openBlock(),o.createElementBlock("div",xA,[FA,o.createElementVNode("div",UA,[o.createElementVNode("div",JA,[o.withDirectives(o.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=d=>i.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),[[o.vModelText,i.commentMsg]])])]),i.taskNode&&i.taskNode.length>0&&i.taskNode[0].taskState!=11?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[i.nextNodeData.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(i.nextNodeData,d=>{var u,g;return o.openBlock(),o.createElementBlock(o.Fragment,null,[d.type!="endEvent"&&r.isOption((g=(u=d==null?void 0:d.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",null,[o.createTextVNode(o.toDisplayString(d.userTaskModelDTO.name)+" ",1),PA,o.createTextVNode(" \u5BA1\u6279\u4EBA "),MA]),o.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(d.id)},[o.createElementVNode("div",jA,[i.partNode[d.id]&&i.partNode[d.id].length?(o.openBlock(),o.createElementBlock("div",GA,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.partNode[d.id],(y,k)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(k==0?y:`,${y}`),1))),256))])):(o.openBlock(),o.createElementBlock("div",RA,qA))])],8,LA)],64)):o.createCommentVNode("",!0)],64)}),256)):i.outGatewayUserTaskModel.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(i.outGatewayUserTaskModel,d=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[d.type!="endEvent"&&r.isOption(d.humanPerformerName)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",KA,[o.createTextVNode(o.toDisplayString(d.name)+" ",1),HA,o.createTextVNode(" \u5BA1\u6279\u4EBA "),YA]),o.createElementVNode("div",{class:"process-pc-value",onClick:u=>r.handleOpenPopup(d.id)},[o.createElementVNode("div",WA,[i.partNode[d.id]&&i.partNode[d.id].length?(o.openBlock(),o.createElementBlock("div",_A,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.partNode[d.id],(u,g)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(g==0?u:`,${u}`),1))),256))])):(o.openBlock(),o.createElementBlock("div",ZA,XA))])],8,zA)],64)):o.createCommentVNode("",!0)],64))),256)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),o.createVNode(a,{ref:"topTips",text:i.textTips,statusTips:i.statusTips,type:i.typeTips},null,8,["text","statusTips","type"]),o.createVNode(l,{visible:i.visible,"onUpdate:visible":t[1]||(t[1]=d=>i.visible=d),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:o.withCtx(()=>[o.createVNode(c,o.mergeProps({visible:i.visible,request:s.param.request,businessId:s.param.formData.businessKey},i.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),i.labels=="1"?(o.openBlock(),o.createBlock(p,{key:1,limit:i.limit?i.limit:-1,requires:i.requires,request:s.param.request,linkUrl:s.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):o.createCommentVNode("",!0)])}const ey=q(QA,[["render",$A],["__scopeId","data-v-29f5935e"]]),ty="data:image/png;base64,iV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KAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",tE="",sE="",sy={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:qe,TopPopup:de,departPerson:Ze},computed:{check(){return lr},checkS(){return ty}},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],partList:[],gateVars:{}}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleSaveNode(e){this.radioCheckNameList.includes(e)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e),1):this.radioCheckNameList.push(e)},handleNode(e){this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue):this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue)},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"){let t,s=[];e.routeTxt.companyIds.map((n,i)=>{t=n.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((n,i)=>{s.push({type:3,uid:n})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel",subjectName:t,checkedArray:s}}else if(e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"){let t,s=[];e.routeTxt.companyIds.map((n,i)=>{t=n.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((n,i)=>{s.push({type:3,uid:n})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel",deptCode:t,checkedArray:s}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((s,n)=>{t.push({type:3,uid:s})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel",checkedArray:t}}},async confirm(){if(!this.commentMsg){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}let e={};if(this.radioCheckNameList&&this.radioCheckNameList.length){let t=0;if(this.radioCheckNameList.map((s,n)=>{(!this.multiNodeParticipant[s]||!this.multiNodeParticipant[s].length)&&(t+=1),e[s]=this.multiNodeParticipant[s]}),t>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}e=this.multiNodeParticipant}this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/complete",{actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskInstId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e}).then(t=>{if(t.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(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]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,s)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,n)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,s){this.textTips=e,this.statusTips=t,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Xe=e=>(o.pushScopeId("data-v-d4e71b58"),e=e(),o.popScopeId(),e),ny={class:"process-popup-content"},oy={key:0,class:"process-pc-label"},iy={key:1,class:"process-pc-value",style:{display:"flex"}},ry=Xe(()=>o.createElementVNode("div",{class:"process-pc-label"},[o.createTextVNode(" \u5BA1\u6279\u610F\u89C1 "),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),ay={class:"process-pc-value"},cy={class:"process-popup-textarea"},ly={class:"process-pc-label"},dy=Xe(()=>o.createElementVNode("br",null,null,-1)),py=Xe(()=>o.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),uy=["onClick"],hy={class:"process-pc-value--people"},fy={key:0,class:"process-pc-value--data"},my={key:1,class:"process-pc-value--data",style:{color:"#888"}},gy=[Xe(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Ay={key:1,class:"process-pc-label"},yy=Xe(()=>o.createElementVNode("div",{class:"process-pc-label"},[o.createTextVNode(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 "),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),ky={class:"process-pc-value"},Cy={class:"process-radio"},Ey=["onClick"],by=["src"],Iy=["onClick"],By={class:"process-checkbox"},Ny=Xe(()=>o.createElementVNode("br",null,null,-1)),wy={class:"process-checkbox-item"},vy=["src"],Vy=["onClick"],Ty={class:"process-pc-value--people"},Sy={key:0,class:"process-pc-value--data"},Dy={key:1,class:"process-pc-value--data",style:{color:"#888"}},Oy=[Xe(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Qy=Xe(()=>o.createElementVNode("div",{class:"process-pc-label"}," \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 ",-1)),xy={class:"process-pc-value"};function Fy(e,t,s,n,i,r){const a=o.resolveComponent("TopTips"),c=o.resolveComponent("departPerson"),l=o.resolveComponent("TopPopup"),p=o.resolveComponent("attchViews");return o.openBlock(),o.createElementBlock("div",ny,[s.param.isDocument?(o.openBlock(),o.createElementBlock("div",oy," \u5FEB\u6377\u56DE\u590D ")):o.createCommentVNode("",!0),s.param.isDocument?(o.openBlock(),o.createElementBlock("div",iy,[o.createElementVNode("div",{class:"process-tag",onClick:t[0]||(t[0]=()=>i.commentMsg="\u540C\u610F")}," \u540C\u610F "),o.createElementVNode("div",{class:"process-tag",onClick:t[1]||(t[1]=()=>i.commentMsg="\u5982\u62DF")}," \u5982\u62DF "),o.createElementVNode("div",{class:"process-tag",onClick:t[2]||(t[2]=()=>i.commentMsg="\u5DF2\u9605")}," \u5DF2\u9605 ")])):o.createCommentVNode("",!0),ry,o.createElementVNode("div",ay,[o.createElementVNode("div",cy,[o.withDirectives(o.createElementVNode("textarea",{"onUpdate:modelValue":t[3]||(t[3]=d=>i.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),[[o.vModelText,i.commentMsg]])])]),i.taskNode&&i.taskNode.length>0&&i.taskNode[0].taskState!=11?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[i.nextNodeData.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(i.nextNodeData,d=>{var u,g;return o.openBlock(),o.createElementBlock(o.Fragment,null,[d.type!="endEvent"&&r.isOption((g=(u=d==null?void 0:d.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",ly,[o.createElementVNode("div",null,[o.createTextVNode(o.toDisplayString(d.userTaskModelDTO.name)+" ",1),dy,o.createTextVNode(" \u5BA1\u6279\u4EBA "),py])]),o.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(d)},[o.createElementVNode("div",hy,[i.partNode[d.id]&&i.partNode[d.id].length?(o.openBlock(),o.createElementBlock("div",fy,[o.createElementVNode("span",null,o.toDisplayString(i.partNode[d.id].join(",")),1)])):(o.openBlock(),o.createElementBlock("div",my,gy))])],8,uy)],64)):(o.openBlock(),o.createElementBlock("div",Ay,o.toDisplayString(d.userTaskModelDTO.name),1))],64)}),256)):i.outGatewayUserTaskModel.length?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.outGatewayUserTaskModel,d=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[yy,o.createElementVNode("div",ky,[o.createElementVNode("div",Cy,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.childNode,u=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["process-radio-item",u.id==i.radioCheck?"process-radio-item--check":""]),onClick:g=>r.handleNode(u)},[o.createElementVNode("span",null,[u.id==i.radioCheck?(o.openBlock(),o.createElementBlock("img",{key:0,class:"process-radio-item-check",src:r.check},null,8,by)):o.createCommentVNode("",!0)]),o.createTextVNode(" "+o.toDisplayString(u.nodeName),1)],10,Ey))),256))])])],64))),256)),i.radioCheck?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[i.radioCheckChild&&i.radioCheckChild.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(i.radioCheckChild,d=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",{class:"process-pc-label",onClick:u=>r.handleSaveNode(d.id)},[o.createElementVNode("div",By,[o.createTextVNode(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279:"),Ny,o.createElementVNode("div",wy,[o.createTextVNode(o.toDisplayString(d.nodeName)+" ",1),o.createElementVNode("span",null,[i.radioCheckNameList.includes(d.id)?(o.openBlock(),o.createElementBlock("img",{key:0,class:"process-checkbox-item-check",src:r.checkS},null,8,vy)):o.createCommentVNode("",!0)])])])],8,Iy),o.createElementVNode("div",{class:"process-pc-value",onClick:u=>r.handleOpenPopup(d)},[o.createElementVNode("div",Ty,[i.partNode[d.id]&&i.partNode[d.id].length?(o.openBlock(),o.createElementBlock("div",Sy,[o.createElementVNode("span",null,o.toDisplayString(i.partNode[d.id].join(",")),1)])):(o.openBlock(),o.createElementBlock("div",Dy,Oy))])],8,Vy)]))),256)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[Qy,o.createElementVNode("div",xy,o.toDisplayString(i.radioCheckName),1)],64))],64)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),o.createVNode(a,{ref:"topTips",text:i.textTips,statusTips:i.statusTips,type:i.typeTips},null,8,["text","statusTips","type"]),o.createVNode(l,{visible:i.visible,"onUpdate:visible":t[4]||(t[4]=d=>i.visible=d),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:o.withCtx(()=>[o.createVNode(c,o.mergeProps({visible:i.visible},i.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","onCallback","onCancel"])]),_:1},8,["visible"]),i.labels=="1"?(o.openBlock(),o.createBlock(p,{key:3,limit:i.limit?i.limit:-1,requires:i.requires,request:s.param.request,linkUrl:s.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):o.createCommentVNode("",!0)])}const Uy=q(sy,[["render",Fy],["__scopeId","data-v-d4e71b58"]]),iE="",Jy={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:qe,TopPopup:de,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(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/reject",{commentMsg:this.commentMsg,taskInstId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,s)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,n)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,s){this.textTips=e,this.statusTips=t,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Ht=e=>(o.pushScopeId("data-v-9613f11c"),e=e(),o.popScopeId(),e),Py={class:"process-popup-content"},My=Ht(()=>o.createElementVNode("div",{class:"process-pc-label"},[o.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Ly={class:"process-pc-value"},jy={class:"process-popup-textarea"},Gy=Ht(()=>o.createElementVNode("br",null,null,-1)),Ry=Ht(()=>o.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),qy=["onClick"],Ky={class:"process-pc-value--people"},Hy={key:0,class:"process-pc-value--data"},Yy={key:1,class:"process-pc-value--data",style:{color:"#888"}},zy=[Ht(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Wy={style:{"font-size":"15px"}},_y=Ht(()=>o.createElementVNode("div",{class:"process-pc-label"},[o.createTextVNode(" \u5BA1\u6279\u4EBA "),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Zy=[Ht(()=>o.createElementVNode("div",{class:"process-pc-value--people"},o.toDisplayString(234),-1))];function Xy(e,t,s,n,i,r){const a=o.resolveComponent("TopTips"),c=o.resolveComponent("departPerson"),l=o.resolveComponent("TopPopup"),p=o.resolveComponent("attchViews");return o.openBlock(),o.createElementBlock("div",Py,[My,o.createElementVNode("div",Ly,[o.createElementVNode("div",jy,[o.withDirectives(o.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=d=>i.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),[[o.vModelText,i.commentMsg]])])]),i.taskNode&&i.taskNode.length>0&&i.taskNode[0].taskState!=11?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[i.nextNodeData.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(i.nextNodeData,d=>{var u,g;return o.openBlock(),o.createElementBlock(o.Fragment,null,[d.type!="endEvent"&&r.isOption((g=(u=d==null?void 0:d.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",null,[o.createTextVNode(o.toDisplayString(d.userTaskModelDTO.name)+" ",1),Gy,o.createTextVNode(" \u5BA1\u6279\u4EBA "),Ry]),o.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(d.id)},[o.createElementVNode("div",Ky,[i.partNode[d.id]&&i.partNode[d.id].length?(o.openBlock(),o.createElementBlock("div",Hy,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.partNode[d.id],(y,k)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(k==0?y:`,${y}`),1))),256))])):(o.openBlock(),o.createElementBlock("div",Yy,zy))])],8,qy)],64)):o.createCommentVNode("",!0)],64)}),256)):i.outGatewayUserTaskModel.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(i.outGatewayUserTaskModel,d=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[d.type!="endEvent"&&r.isOption(d.humanPerformerName)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",Wy,o.toDisplayString(d.name),1),_y,o.createElementVNode("div",{class:"process-pc-value",onClick:t[1]||(t[1]=(...u)=>r.handleOpenPopup&&r.handleOpenPopup(...u))},Zy)],64)):o.createCommentVNode("",!0)],64))),256)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),o.createVNode(a,{ref:"topTips",text:i.textTips,statusTips:i.statusTips,type:i.typeTips},null,8,["text","statusTips","type"]),o.createVNode(l,{visible:i.visible,"onUpdate:visible":t[2]||(t[2]=d=>i.visible=d),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:o.withCtx(()=>[o.createVNode(c,o.mergeProps({visible:i.visible,request:s.param.request,businessId:s.param.formData.businessKey},i.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),i.labels=="\u62D2\u7EDD"?(o.openBlock(),o.createBlock(p,{key:1,limit:i.limit?i.limit:-1,requires:i.requires,request:s.param.request,linkUrl:s.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):o.createCommentVNode("",!0)])}const $y=q(Jy,[["render",Xy],["__scopeId","data-v-9613f11c"]]),ek="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACfVJREFUeF7tnT2S1FYYRaUCYgJ2wArYgRMIYQPGMVUQt8bDAoDRxFBFbLwBE5qEHbACdkBAbCi5HjxgGKbn6b7Wz9O7h9B8avV3rk7J6r7VtA1/IACBvQRa2EAAAvsJIAhXBwQuIYAgXB4QQBCuAQjkEeAOkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hFAkDxuHGVCAEFMgmbNPAIIkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hFAkDxuHGVCAEFMgmbNPAIIkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEPhFkL7vnzZN86fJ/qwJgbMEnnVdd3z2P1x4Bzk9PX0+DMND2EHAhUDbti92u92j8/vu/V+svu//aprmvgsg9rQm8Krruj8uInDpM0jf9/80TXPXGh3L107gddd19/YteakgL1++vPbx48d/m6b5rXZK7GdJ4O3169fvPHjw4L8sQcJBT548uXH16tU3TdPcskTI0rUSePfp06fbjx8//nDZgqM+5n369OnNK1euhDvJzVpps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:Array,default:[]},optionStyle:{type:String,default:""},maskShow:{type:Boolean,default:!0},border:{type:Boolean,default:!1},defaultValue:{type:String,default:""},placeholder:{type:String,default:"\u8BF7\u9009\u62E9"}},data(){return{value:{id:"",text:""},lists:[],expand:!1,active:"",activeItem:{}}},watch:{option:{handler(e,t){e&&e.length&&(this.lists=e)},immediate:!0,deep:!0},defaultValue:{handler(e,t){this.active=e;let s=this.lists.filter((n,i)=>n.id==e);this.activeItem=s[0],this.$emit("change",this.activeItem)}}},computed:{arrow(){return ek},check(){return tk}},methods:{handleExpand(){this.expand?this.expand=!1:this.expand=!0},handleClick(e,t){this.active=e.id,this.activeItem=e,this.expand=!1,this.$emit("change",this.activeItem,this.lists)}}}),cE="",nk={class:"top-select"},ok=["src"],ik=["onClick"],rk=["src"];function ak(e,t,s,n,i,r){return o.openBlock(),o.createElementBlock("div",nk,[o.createElementVNode("div",{class:o.normalizeClass(["top-select-menu",[e.border&&"top-select-menu-border",!e.activeItem.name&&"top-select-menu-placeholder"]]),onClick:t[0]||(t[0]=(...a)=>e.handleExpand&&e.handleExpand(...a))},[o.createTextVNode(o.toDisplayString(e.activeItem.name?e.activeItem.name:e.placeholder)+" ",1),o.createElementVNode("img",{class:o.normalizeClass(["top-select-menu--arrow",[e.expand?"arrow-active":""]]),src:e.arrow},null,10,ok)],2),e.maskShow?(o.openBlock(),o.createElementBlock("div",{key:0,class:"top-select-option-mask",style:o.normalizeStyle(e.expand?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)):o.createCommentVNode("",!0),e.lists&&e.lists.length?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["top-select-option",[e.border&&"top-select-option-border"]]),style:o.normalizeStyle(`${e.expand?"transform: translateY(2%);visibility: visible; opacity: 1;":"transform: translateY(-50%);visibility: hidden; opacity: 0"};${e.optionStyle?e.optionStyle:""}`)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.lists,(a,c)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["option-items",[e.active==a.id?"option-items-active":""]]),key:a.id,onClick:l=>e.handleClick(a,c)},[o.createTextVNode(o.toDisplayString(a.name)+" ",1),e.active==a.id?(o.openBlock(),o.createElementBlock("img",{key:0,class:"option-items-check",src:e.check},null,8,rk)):o.createCommentVNode("",!0)],10,ik))),128))],6)):o.createCommentVNode("",!0)])}const Oc=q(sk,[["render",ak],["__scopeId","data-v-2b1d2075"]]),lE="",ck={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:qe,TopPopup:de,departPerson:Ze,TopDownSelect:Oc},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(){this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=e.data)})},handleChange(e){this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,isCompensation:!1,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,s)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,n)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,s){this.textTips=e,this.statusTips=t,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Qc=e=>(o.pushScopeId("data-v-72fe01a9"),e=e(),o.popScopeId(),e),lk={class:"process-popup-content"},dk=Qc(()=>o.createElementVNode("div",{class:"process-pc-label",style:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[o.createTextVNode(" \u9000\u56DE\u8282\u70B9\uFF1A "),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),pk={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},uk=Qc(()=>o.createElementVNode("div",{class:"process-pc-label"},[o.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),hk={class:"process-pc-value"},fk={class:"process-popup-textarea"};function mk(e,t,s,n,i,r){const a=o.resolveComponent("TopDownSelect"),c=o.resolveComponent("TopTips"),l=o.resolveComponent("attchViews");return o.openBlock(),o.createElementBlock("div",lk,[dk,o.createElementVNode("div",pk,[o.createVNode(a,{option:i.option,onChange:r.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),uk,o.createElementVNode("div",hk,[o.createElementVNode("div",fk,[o.withDirectives(o.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=p=>i.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),[[o.vModelText,i.commentMsg]])])]),o.createVNode(c,{ref:"topTips",text:i.textTips,statusTips:i.statusTips,type:i.typeTips},null,8,["text","statusTips","type"]),i.labels=="\u9000\u56DE"?(o.openBlock(),o.createBlock(l,{key:0,limit:i.limit?i.limit:-1,requires:i.requires,request:s.param.request,linkUrl:s.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):o.createCommentVNode("",!0)])}const gk=q(ck,[["render",mk],["__scopeId","data-v-72fe01a9"]]),dE="",Ak={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:qe,TopPopup:de,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?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){this.handleTips("",!0,"loading");let e="";this.multiNodeParticipant[this.partObjId].map((t,s)=>{s==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.handleFinal()):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]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,s)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,n)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,s){this.textTips=e,this.statusTips=t,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},gs=e=>(o.pushScopeId("data-v-4c2c760e"),e=e(),o.popScopeId(),e),yk={class:"process-popup-content"},kk=gs(()=>o.createElementVNode("br",null,null,-1)),Ck=gs(()=>o.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Ek=["onClick"],bk={class:"process-pc-value--people"},Ik={key:0,class:"process-pc-value--data"},Bk={key:1,class:"process-pc-value--data",style:{color:"#888"}},Nk=[gs(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],wk=gs(()=>o.createElementVNode("div",null,[o.createTextVNode(" \u5BA1\u6279\u4EBA "),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),vk=["onClick"],Vk={class:"process-pc-value--people"},Tk={key:0,class:"process-pc-value--data"},Sk={key:1,class:"process-pc-value--data",style:{color:"#888"}},Dk=[gs(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Ok(e,t,s,n,i,r){const a=o.resolveComponent("TopTips"),c=o.resolveComponent("departPerson"),l=o.resolveComponent("TopPopup"),p=o.resolveComponent("attchViews");return o.openBlock(),o.createElementBlock("div",yk,[i.taskNode&&i.taskNode.length>0&&i.taskNode[0].taskState!=11?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[i.nextNodeData.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(i.nextNodeData,d=>{var u,g;return o.openBlock(),o.createElementBlock(o.Fragment,null,[d.type!="endEvent"&&r.isOption((g=(u=d==null?void 0:d.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",null,[o.createTextVNode(o.toDisplayString(d.userTaskModelDTO.name)+" ",1),kk,o.createTextVNode(" \u5BA1\u6279\u4EBA "),Ck]),o.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(d.id)},[o.createElementVNode("div",bk,[i.partNode[d.id]&&i.partNode[d.id].length?(o.openBlock(),o.createElementBlock("div",Ik,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.partNode[d.id],(y,k)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(k==0?y:`,${y}`),1))),256))])):(o.openBlock(),o.createElementBlock("div",Bk,Nk))])],8,Ek)],64)):o.createCommentVNode("",!0)],64)}),256)):i.outGatewayUserTaskModel.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(i.outGatewayUserTaskModel,d=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[d.type!="endEvent"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[wk,o.createElementVNode("div",{class:"process-pc-value",onClick:u=>r.handleOpenPopup(d.id)},[o.createElementVNode("div",Vk,[i.partNode[d.id]&&i.partNode[d.id].length?(o.openBlock(),o.createElementBlock("div",Tk,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.partNode[d.id],(u,g)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(g==0?u:`,${u}`),1))),256))])):(o.openBlock(),o.createElementBlock("div",Sk,Dk))])],8,vk)],64)):o.createCommentVNode("",!0)],64))),256)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),o.createVNode(a,{ref:"topTips",text:i.textTips,statusTips:i.statusTips,type:i.typeTips},null,8,["text","statusTips","type"]),o.createVNode(l,{visible:i.visible,"onUpdate:visible":t[0]||(t[0]=d=>i.visible=d),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:o.withCtx(()=>[o.createVNode(c,o.mergeProps({visible:i.visible,request:s.param.request,businessId:s.param.formData.businessKey},i.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),i.labels=="2"?(o.openBlock(),o.createBlock(p,{key:1,limit:i.limit?i.limit:-1,requires:i.requires,request:s.param.request,linkUrl:s.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):o.createCommentVNode("",!0)])}const Qk=q(Ak,[["render",Ok],["__scopeId","data-v-4c2c760e"]]),hE="",xk={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:qe,TopPopup:de,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.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,s)=>{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,s){this.textTips=e,this.statusTips=t,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},ii=e=>(o.pushScopeId("data-v-91c0258d"),e=e(),o.popScopeId(),e),Fk={class:"process-popup-content"},Uk={class:"process-pc-label"},Jk=ii(()=>o.createElementVNode("br",null,null,-1)),Pk=ii(()=>o.createElementVNode("div",null,[o.createTextVNode(" \u5BA1\u6279\u4EBA"),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Mk={class:"process-pc-value--people"},Lk={key:0,class:"process-pc-value--data"},jk={key:1,class:"process-pc-value--data",style:{color:"#888"}},Gk=[ii(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Rk(e,t,s,n,i,r){const a=o.resolveComponent("TopTips"),c=o.resolveComponent("departPerson"),l=o.resolveComponent("TopPopup");return o.openBlock(),o.createElementBlock("div",Fk,[o.createElementVNode("template",null,[o.createElementVNode("div",Uk,[o.createElementVNode("div",null,[o.createTextVNode(o.toDisplayString(i.getFirstProcessNode.name)+" ",1),Jk,Pk])]),o.createElementVNode("div",{class:"process-pc-value",onClick:t[0]||(t[0]=p=>r.handleOpenPopup(i.getFirstProcessNode.id))},[o.createElementVNode("div",Mk,[i.partNode[i.getFirstProcessNode.id]&&i.partNode[i.getFirstProcessNode.id].length?(o.openBlock(),o.createElementBlock("div",Lk,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.partNode[i.getFirstProcessNode.id],(p,d)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(d==0?p:`,${p}`),1))),256))])):(o.openBlock(),o.createElementBlock("div",jk,Gk))])])]),o.createVNode(a,{ref:"topTips",text:i.textTips,statusTips:i.statusTips,type:i.typeTips},null,8,["text","statusTips","type"]),o.createVNode(l,{visible:i.visible,"onUpdate:visible":t[1]||(t[1]=p=>i.visible=p),titleText:"\u9009\u4EBA",isDrawer:!0},{default:o.withCtx(()=>[o.createVNode(c,o.mergeProps({visible:i.visible,request:s.param.request,businessId:s.param.formData.businessKey},i.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"])])}const qk=q(xk,[["render",Rk],["__scopeId","data-v-91c0258d"]]),Kk=Be({name:"TopProcess",components:{TopTab:Xp,TopPopup:de,TopTips:Ne},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,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!0}},data(){return{processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskId:"",taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,ProcessInsObj:{},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[],user:{},canCheck:!0,approveNode:{}}},watch:{processInstId:{async handler(e,t){this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/aws/repository/getTrackUrl",{params:{processInstId:this.processIntId,type:"mobile"}}).then(s=>{s.code==200&&(this.trackUrl=s.data)}),this.request.get("/aws/pis/findNodeParticipantRows",{params:{processInstId:this.processIntId}}).then(s=>{s.code==200&&(this.trackList=s.data)}),this.request.get("/aws/tis/getTaskCommentList",{params:{processInstId:this.processInstId,processBusinessKey:this.formData.businessKey}}).then(s=>{s.code==200&&(this.taskCommentList=s.data)}),this.getUserInfo(),this.request.get("/aws/pis/getProcessInstanceById",{params:{processInstId:this.processInstId}}).then(s=>{s.code==200&&(this.ProcessInsObj=s.data)}),await this.request.get("/aws/repository/queryTaskNodeList",{params:{processInstId:this.processInstId}}).then(s=>{if(s.code==200)if(this.taskNode=s.data,this.taskNodeList=s.data,this.taskNodeList.length==1){if(this.taskNodeList[0].taskState==4)return this.taskState=4,!1;this.taskNodeList[0].taskState==11&&(this.taskState=11),this.taskNodeList[0].taskId,this.handleGetProcessStatus(),this.handleGetUserTaskModel()}else this.taskNodeList.length>1?(this.taskNodeList.forEach(n=>{n.name=n.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 s,n;let e=[],t=this.taskNode&&this.taskNode[0]&&this.taskNode[0].taskState!=4;if(t&&!this.isView&&this.taskObj.completeButtonLabel){let i={};i.name=this.taskObj.completeButtonLabel,i.btnProps={type:"primary"},e.push(i),i.click=r=>{this.handleActionClose(),this.showOperation(Uy,r,this.request,this.taskObj.completeButtonAnnex)}}if(t&&!this.isView&&this.processStatus.currUserName){let i={};i.name="\u62D2\u7EDD",i.btnProps={type:"danger"},e.push(i),i.click=r=>{this.handleActionClose(),this.showOperation($y,r,this.request,this.taskObj.otherButtonAnnexList)}}if(t&&!this.isView&&this.taskObj.buttons&&this.taskObj.buttons.length&&this.taskObj.buttons.forEach(i=>{if(i.label==="\u9000\u56DE"){let r={};r.name=i.label,r.btnProps={type:"danger"},e.push(r),r.click=a=>{this.handleActionClose(),this.showOperation(gk,a,this.request,this.taskObj.otherButtonAnnexList)}}}),t&&!this.isView&&this.taskObj.ccTaskButtonLabel){let i={};i.name=this.taskObj.ccTaskButtonLabel,i.btnProps={type:"default"},i.click=r=>{this.handleActionClose(),this.showOperation(Qk,r,this.request,this.taskObj.ccTaskButtonAnnex)},e.push(i)}if(t&&!this.isView&&this.taskObj.delegateTaskButtonLabel){let i={};i.name=this.taskObj.delegateTaskButtonLabel,i.btnProps={type:"default"},i.click=r=>{this.handleActionClose(),this.showOperation(ey,r,this.request,this.taskObj.delegateTaskButtonAnnex)},e.push(i)}if(t&&!this.isView&&this.taskObj.counterSignLabel){let i={};i.name=this.taskObj.counterSignLabel,i.btnProps={type:"primary"},i.click=r=>{this.handleActionClose(),this.showOperation(OA,r,this.request,this.taskObj.counterSignButtonAnnex)},e.push(i)}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 i={};i.name="\u50AC\u529E",i.btnProps={type:"default"},i.click=r=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=r,this.popupContext=`\u786E\u5B9A${r}\u5417?`,this.handleTipsType="\u50AC\u529E"},e.push(i)}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 i={};i.name="\u64A4\u9500",i.btnProps={type:"default"},i.click=r=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=r,this.popupContext=`\u786E\u5B9A${r}\u5417?`,this.handleTipsType="\u64A4\u9500"},e.push(i)}return e},processCardHeight(){let e=210;return this.processStatus.status?this.processStatus.currUserName||(e-=40):e-=140,`calc(100vh - ${e}px)`}},methods:{handleTest(){this.visibleSong=!0},async getUserInfo(){let e=await this.request.get("/app/user/info");e.code===200&&(this.user=e.data||{})},async handleGetSimulation(e){this.handleTips("",!0,"loading");let t={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e},s=await this.request.post("/aws/tis/simulation",t);if(s.success){this.handleTips("",!1,"success"),this.nextNodeData=s.data;for(let n=0;n<this.nextNodeData.length;n++)this.approveNode=this.nextNodeData[n]}else{let n=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(n,"")}},async getOutgoingProcessNode(e,t){let s=await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:e,processNodeId:t}});if(s.code==200){if(s.data)for(let n=0;n<s.data.length;n++){let i=s.data[n];if(i.type!="UserTaskModel"){let r=await this.getOutgoingProcessNode(e,i.id);await r.map((a,c)=>{a.nodeName=a.incomingConditionItemList[0].compareValue}),i.childNode=r}}return this.handleTips("",!1,"success"),s.data}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.request.get("/aws/pis/getProcessStatus",{params:{processInstId:this.processInstId,taskId:this.taskNode.length?this.taskNode[0].taskId:""}}).then(e=>{e.code==200&&(this.processStatus=e.data,this.processStatus.userNodeGroup&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName]&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName].length>1?this.canCheck=!1:this.canCheck=!0)})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length&&this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data)})},async showOperation(e,t,s,n){if(this.beforeFunction&&!this.beforeFunction())return;if(this.processStatus.allUserNames&&this.processStatus.allUserNames.length==1&&this.taskNode[0]&&this.taskNode[0].nodeId){let r;this.getVars&&(r=this.getVars()),await this.handleGetSimulation(r)}s&&(this.operationParam.request=s,this.annexlabel=n),this.titleText=t,this.operationCom=e,this.$refs.TopPopup1.handleOpen(),this.operationParam.annex=n,this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"",this.operationParam.actionName=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,this.operationParam.isDocument=this.isDocument,this.operationParam.canCheck=this.canCheck,this.taskObj.commentModels.some(r=>this.operationParam.actionComplete=r!=null&&r.isDefault?r.actionName:"")},handleCancel(){},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.$refs.TopPopup1.handleClose()},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/aws/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),this.endFunction()):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.post("/aws/pis/revoke",{processInstId:this.ProcessInsObj.id,processBusinessKey:this.ProcessInsObj.processBusinessKey}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),this.endFunction()):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.processStatus.appId}}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(t=>{this.processBusiness=t.data,this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(s=>{this.getFirstProcessNode=s.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(qk,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(s=>{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,s){this.textTips=e,this.statusTips=t,this.typeTips=s,this.$refs.topTips.handleOpen()}}}),mE="",Yt=e=>(o.pushScopeId("data-v-821189c9"),e=e(),o.popScopeId(),e),Hk={class:"process-warp"},Yk={key:0,class:"process-main"},zk={class:"process-ml-item border"},Wk=Yt(()=>o.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),_k={class:"process-mli-value"},Zk={class:"process-ml-item border"},Xk=Yt(()=>o.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),$k={class:"process-mli-value"},eC={key:0,class:"process-ml-item"},tC=Yt(()=>o.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),sC={class:"process-mli-value"},nC={class:"process-mliv-jd"},oC=["slot"],iC={slot:"default",style:{}},rC=["slot"],aC={class:"process-btn"},cC={key:0,class:"footBtnRow"},lC=["onClick"],dC=[Yt(()=>o.createElementVNode("div",{class:"circle"},null,-1)),Yt(()=>o.createElementVNode("div",{class:"circle"},null,-1)),Yt(()=>o.createElementVNode("div",{class:"circle"},null,-1))],pC=["onClick"],uC=["onClick"];function hC(e,t,s,n,i,r){const a=o.resolveComponent("TopTab"),c=o.resolveComponent("TopPopup"),l=o.resolveComponent("TopTips");return o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",Hk,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(o.openBlock(),o.createElementBlock("div",Yk,[o.createElementVNode("div",zk,[Wk,o.createElementVNode("div",_k,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(o.openBlock(),o.createElementBlock("div",{key:0,class:"process-mliv-dd",style:o.normalizeStyle({background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)})},o.toDisplayString(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status),5)):o.createCommentVNode("",!0)])]),o.createElementVNode("div",Zk,[Xk,o.createElementVNode("div",$k,[o.createElementVNode("span",null,o.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(o.openBlock(),o.createElementBlock("div",eC,[tC,o.createElementVNode("div",sC,[o.createElementVNode("span",nC,o.toDisplayString(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`),1)])])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"process-card",style:o.normalizeStyle({height:e.processCardHeight})},[o.createVNode(a,{tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList},{default:o.withCtx(()=>[e.selfTapList&&e.selfTapList.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(e.selfTapList,(p,d)=>(o.openBlock(),o.createElementBlock("div",{key:d,slot:p.slot},[o.renderSlot(e.$slots,p.slot,{},void 0,!0)],8,oC))),128)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",iC,[o.renderSlot(e.$slots,"default",{},void 0,!0)]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.tapList,(p,d)=>(o.openBlock(),o.createElementBlock("div",{style:{},key:d,slot:p.slot},[o.renderSlot(e.$slots,p.slot,{},void 0,!0)],8,rC))),128))],64))]),_:3},8,["tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),o.createElementVNode("div",aC,[e.isAdditional?(o.openBlock(),o.createElementBlock("div",cC,[o.renderSlot(e.$slots,"btn",{},void 0,!0)])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?(o.openBlock(),o.createElementBlock("div",{key:0,class:"top-button",style:o.normalizeStyle(e.getBtnStyle("default"))}," \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ",4)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[e.formData.currentState==="\u5DF2\u64A4\u9500"||e.formData.currentState==="\u5DF2\u9A73\u56DE"||e.processStatus.status==="\u5DF2\u64A4\u9500"||e.processStatus.status==="\u5DF2\u9A73\u56DE"||e.processStatus.bizStatusName==="\u5DF2\u64A4\u9500"||e.processStatus.bizStatusName==="\u5DF2\u9A73\u56DE"?(o.openBlock(),o.createElementBlock("div",{key:0,class:"top-button",style:o.normalizeStyle(e.getBtnStyle("default")),onClick:t[0]||(t[0]=(...p)=>e.handleRestart&&e.handleRestart(...p))}," \u91CD\u65B0\u63D0\u4EA4 ",4)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.operBtn,(p,d)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[d<3?(o.openBlock(),o.createElementBlock("div",{class:"top-button",style:o.normalizeStyle(e.getBtnStyle(p.btnProps.type.toString())),key:p.name,onClick:u=>p.click(p.name)},o.toDisplayString(p.name),13,lC)):o.createCommentVNode("",!0)],64))),256))],64)):o.createCommentVNode("",!0),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?(o.openBlock(),o.createElementBlock("div",{key:1,class:"elips",onClick:t[1]||(t[1]=(...p)=>e.handleActionOpen&&e.handleActionOpen(...p))},dC)):o.createCommentVNode("",!0)],64))],64))])]),o.createVNode(c,{ref:"TopPopup1",cancel:e.handleCancel,comfig:e.handleComfig,titleText:e.titleText},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.operationCom),{ref:"operationRef",param:e.operationParam,onHandleClosePopup1:e.handleClosePopup1},null,40,["param","onHandleClosePopup1"]))]),_:1},8,["cancel","comfig","titleText"]),o.createVNode(c,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),o.createVNode(l,{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?(o.openBlock(),o.createElementBlock("div",{key:0,class:"top-elips",style:o.normalizeStyle(e.actionShow?"transform: translateY(0)":"transform: translateY(100%)")},[e.taskNodeShow?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(e.taskNodeList,p=>(o.openBlock(),o.createElementBlock("div",{class:"top-elips-items",onClick:d=>e.handleGet(p),key:p.taskId},o.toDisplayString(p.name),9,pC))),128)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.actionBtn,p=>(o.openBlock(),o.createElementBlock("div",{class:"top-elips-items",onClick:d=>p.click(p.name),key:p.name},o.toDisplayString(p.name),9,uC))),128)),o.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:t[2]||(t[2]=(...p)=>e.handleActionClose&&e.handleActionClose(...p))}," \u53D6\u6D88 ")],4)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"top-elips-mask",onClick:t[3]||(t[3]=(...p)=>e.handleActionClose&&e.handleActionClose(...p)),style:o.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)])}const fC=q(Kk,[["render",hC],["__scopeId","data-v-821189c9"]]),mC=Be({name:"TopSubmitPopup",components:{TopPopup:de,TopDownSelect:Oc,PreviewImage:qn,departPerson:Ze,TopTips:Ne},props:{visible:{type:Boolean,default:!1},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{type:String,default:""},processName:{type:String,default:""},resubmit:{type:Boolean,default:!1},id:{type:String,default:""},businessType:{type:[String,Number]},todoParameter:{type:Object,default(){return{}}},isClearHistory:{type:Boolean,default:!1},title:{type:String,default:"\u6D4B\u8BD5"},showType:{type:String,default:"all"},beforeFunction:{type:Function,default:null}},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:[],selectDefaultValue:""}},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,processGroupName:this.processName}}).then(s=>{s.code==200&&(this.option=s.data,this.option&&this.option.length&&this.processName&&(this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.getAfferentParticipantNodeList(),this.getDiagramUrl(),this.handlefirstNode(this.checkedItem.id),this.getProcessInstance()))})},immediate:!0}},methods:{async getProcessInstance(){this.id&&await this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.id}}).then(e=>{e.code==200&&(this.processId=e.data.id)})},async handlefirstNode(e){e&&await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:e}}).then(t=>{t.code===200&&(this.firstPerson=t.data)})},handleChange(e,t){this.handleTips("",!0,"loading"),this.checkedItem=e,this.getAfferentParticipantNodeList(),this.getDiagramUrl(),this.$emit("change",e,t),this.$refs.topTips.handleClose()},getAfferentParticipantNodeList(){this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.personList=e.data.slice(1),this.$emit("change",this.checkedItem,e.data))})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenPerson(e){if(this.visiblePerson=!0,this.personObjId=e.id,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"};else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let t;e.routeTxt.companyIds.map((s,n)=>{t=s.rangeId}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],deptCode:t,multiple:e.type=="InclusiveGatewayModel"}}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let t;e.routeTxt.companyIds.map((s,n)=>{t=s.name}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel",subjectName:t}}},handleCallback(e){this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,s)=>{this.multiNodeParticipant[this.personObjId].push(t.uid),this.partNode[this.personObjId].push(t.name)}),this.visiblePerson=!1},handleCancel(){},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.beforeFunction&&await this.beforeFunction(),this.handleSongshen()},async handleSongshen(){this.handleTips("",!0,"loading"),this.resubmit?await this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(e=>{e.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")}):await this.request.post("/aws/pis/createAndStart",{title:this.title,processDefId:this.checkedItem.id,processBusinessKey:this.id,showType:this.showType,businessType:this.businessType,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameter}).then(e=>{e.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):e.code==499?this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(t=>{t.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.handleTips(t.msg,!0,"error")}):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleTips(e,t,s){this.textTips=e,this.statusTips=t,this.typeTips=s,this.$refs.topTips.handleOpen()}}}),kE="",gC=e=>(o.pushScopeId("data-v-2ee79b98"),e=e(),o.popScopeId(),e),AC={key:1,class:"person-views"},yC={class:"views-items"},kC={class:"views-items-name"},CC=gC(()=>o.createElementVNode("span",{class:"views-items-name--re"},"*",-1)),EC={class:"views-items-set"},bC={key:0},IC={key:0},BC={key:1},NC=["onClick"],wC={key:2,class:"person-views"},vC={class:"views-items"},VC={class:"views-items-name"},TC={class:"views-items-set"},SC={key:0},DC={key:0},OC={key:1},QC=["onClick"],xC={key:3,class:"person-views-white"},FC={class:"person-btn"};function UC(e,t,s,n,i,r){const a=o.resolveComponent("TopDownSelect"),c=o.resolveComponent("TopPopup"),l=o.resolveComponent("departPerson"),p=o.resolveComponent("PreviewImage"),d=o.resolveComponent("TopTips");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(c,{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:o.withCtx(()=>[o.createVNode(a,{option:e.option,onChange:e.handleChange,defaultValue:e.selectDefaultValue},null,8,["option","onChange","defaultValue"]),e.checkedItem.id?(o.openBlock(),o.createElementBlock("div",{key:0,class:"viewTrack",onClick:t[0]||(t[0]=u=>e.taskurlshow=!0)}," \u67E5\u770B\u6D41\u7A0B\u56FE ")):o.createCommentVNode("",!0),e.firstPerson&&e.firstPerson.length?(o.openBlock(),o.createElementBlock("div",AC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.firstPerson,(u,g)=>(o.openBlock(),o.createElementBlock("div",yC,[o.createElementVNode("div",kC,[o.createTextVNode(o.toDisplayString(u.name)+" ",1),CC]),o.createElementVNode("div",EC,[e.partNode[u.id]&&e.partNode[u.id].length?(o.openBlock(),o.createElementBlock("div",bC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.partNode[u.id],(y,k)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(k>=3?"":k==0?y:`,${y}`),1))),256)),e.partNode[u.id].length>3?(o.openBlock(),o.createElementBlock("span",IC,"...\u7B49"+o.toDisplayString(e.partNode[u.id].length)+"\u4EBA",1)):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",BC)),o.createElementVNode("div",{class:"views-items-set-btn",onClick:y=>e.handleOpenPerson(u)}," \u8BBE\u7F6E ",8,NC)])]))),256))])):o.createCommentVNode("",!0),e.personList&&e.personList.length?(o.openBlock(),o.createElementBlock("div",wC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.personList,(u,g)=>(o.openBlock(),o.createElementBlock("div",vC,[o.createElementVNode("div",VC,o.toDisplayString(u.name),1),o.createElementVNode("div",TC,[e.partNode[u.id]&&e.partNode[u.id].length?(o.openBlock(),o.createElementBlock("div",SC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.partNode[u.id],(y,k)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(k>=3?"":k==0?y:`,${y}`),1))),256)),e.partNode[u.id].length>3?(o.openBlock(),o.createElementBlock("span",DC,"...\u7B49"+o.toDisplayString(e.partNode[u.id].length)+"\u4EBA",1)):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",OC)),o.createElementVNode("div",{class:"views-items-set-btn",onClick:y=>e.handleOpenPerson(u)}," \u8BBE\u7F6E ",8,QC)])]))),256))])):o.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(o.openBlock(),o.createElementBlock("div",xC," \u65E0\u9700\u8BBE\u7F6E ")):o.createCommentVNode("",!0),o.createElementVNode("div",FC,[o.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"]),o.createVNode(c,{visible:e.visiblePerson,"onUpdate:visible":t[3]||(t[3]=u=>e.visiblePerson=u),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},{default:o.withCtx(()=>[o.createVNode(l,o.mergeProps({visible:e.visiblePerson},e.entity,{onCallback:e.handleCallback,onCancel:e.handleCancel}),null,16,["visible","onCallback","onCancel"])]),_:1},8,["visible"]),o.createVNode(p,{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"]),o.createVNode(d,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"])])}const JC=q(mC,[["render",UC],["__scopeId","data-v-2ee79b98"]]);Ee.TopProcess=fC,Ee.TopSumbitPopup=JC,Ee.ViewAttchList=cr,Ee.attchViews=qe,Object.defineProperties(Ee,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
55
|
+
`,document.body.appendChild(this.mainContainer)}message(t={}){let s=sessionStorage.getItem(this.sessionStorageName),n=s?JSON.parse(s):null;if(t.againBtn&&t.content&&n&&Array.isArray(n)&&n.includes(t.content))return;const i=oA({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(i.els),ni(this.mainContainer),iA(i,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const rA={components:{checked:qg,dcSwitch:_g,dcLoading:sA},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},deptCode:{type:String,default:""},subjectName:{type:String,default:""},checkedArray:{type:Array,default:()=>[]},isLoadingClose:{type:Boolean,default:!0},maxMultiple:{type:Number,default:0}},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.defaultBreadcrumb(),N(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})})})}},isSon:{deep:!0,handler:function(e,t){let s=[];const n=this.checkedJson.map(i=>{const r=this.entityJson.findIndex(a=>a.id===i.id&&i.type==a.type&&i.type==2)>-1?e&&i.type==2?"4":i.type:i.orgRecordsType;return(r==4||i.type==1)&&s.push(i.id),{...i,orgRecordsType:r}});this.checkedJson=n.filter(i=>i.ancestors.split(",").findIndex(r=>s.indexOf(r)>-1)===-1)}},checkedArray:{deep:!0,immediate:!0,handler:function(e,t){if(N(e)||!N(this.businessId))return!1;this.getCards()}},isLoadingClose(e){e&&(this.isLoading=!1)}},computed:{queryImg(){return nA},entityJson(){const e=this.checkedJson;return this.jsonData.map(t=>{const s=this.isQuery?this.breadcrumb_level.ancestors||"":t.ancestors,n=this.isQuery?this.breadcrumb_level.ancestorNames:t.ancestorNames,i=s+t.id+"__"+t.type,r=e.find(u=>u.uniqueId===i),a=!N(r),c=a?!1:e.findIndex(u=>u.type===t.type&&u.id===t.id&&t.subjectId===u.subjectId)>-1,l=a?t.type==1||r.orgRecordsType==4:!1,p=N(e)?0:l?t.counts:e.filter(u=>u.type!=1&&u.ancestors.indexOf(t.id)>-1).length,d=a?r.isNoDelete:!1;return{type:t.type,id:t.id,name:t.name,counts:N(t.counts)?0:t.counts,num:p,phone:Jg(t.phone),uid:t.uid,iconName:si(t.name,2),checked:a,ancestors:s,ancestorNames:n,deptName:Pg(t.ancestorNames,"/"),uniqueId:i,isDisabled:c,isLevel:l,subjectId:t.subjectId,sex:t.sex,avatar:N(t.avatar)?"":t.avatar,isNoDelete:d}})},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(i=>i.type==1).length,t=this.checkedJson.filter(i=>i.type==2).length,s=this.checkedJson.filter(i=>i.type==3).length;let n=[];return e>0&&n.push(e+"\u4E2A\u7EC4\u7EC7"),t>0&&n.push(t+"\u4E2A\u90E8\u95E8"),s>0&&n.push(s+"\u4E2A\u6210\u5458"),N(n)?"":"\u5DF2\u9009\u62E9"+n.join("\uFF0C")},breadcrumb_subjectId(){const e=this.breadcrumb.filter((t,s)=>t.value!=="-1");return N(e)?"":e[0].value},breadcrumb_level(){const e=this.breadcrumb.filter((t,s)=>t.value!=="-1");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&&this.isShowDept},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(){return this.codeType.length==1&&this.codeType[0]==2?"\u9009\u62E9\u90E8\u95E8":this.codeType.length==1&&this.codeType[0]==3?"\u9009\u62E9\u4EBA\u5458":"\u9009\u62E9\u7EC4\u7EC7"},isNoDelete(){return N(this.checkedArray)?[]:this.checkedArray.filter(e=>e.isDeleteNo)}},mounted(){document.title=this.getTitle,this.getDetail(()=>{this.defaultBreadcrumb(),N(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})})},methods:{handleSubmit(){if(this.isLoading)return!1;const e=N(this.checkedJson)?[]:this.checkedJson.map(s=>({type:s.orgRecordsType,id:s.id,name:s.name,ancestors:s.ancestors,ancestorNames:s.ancestorNames,subjectId:s.subjectId,phone:N(s.phone)?"":s.phone,sex:s.sex,uid:N(s.uid)?"":s.uid}));if(N(this.businessId))return this.$emit("callback",e);const t={businessId:this.businessId,orgRecords:this.checkedJson.map(s=>({type:s.orgRecordsType,bizId:s.id,ancestors:s.ancestors,ancestorNames:s.ancestorNames,uid:s.uid}))};this.isLoading=!0,this.request.post("/auth/component/org/save",t).then(s=>{s.code===200&&this.$emit("callback",e)}).finally(()=>{this.isLoadingClose&&(this.isLoading=!1)})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){this.getSearch(()=>{this.isQuery=N(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.isNoDelete||t.type==1&&!this.isShowSubject||t.type==2&&!this.isShowDept)return!1;if(e.currentTarget.checked){if(this.checkedJson.findIndex(a=>a.uniqueId===t.uniqueId)!=-1)return!1;const s=t.type==1?"0":t.ancestors,n=t.type==1?"":t.ancestorNames,i=this.isDept&&this.isSon&&t.type==2?"4":t.type,r={...t,ancestors:s,ancestorNames:n,orgRecordsType:i};return(t.type==1||i==4)&&(this.checkedJson=this.checkedJson.filter(a=>a.ancestors.indexOf(t.id)===-1)),this.getBoolChecked(t)?(e.currentTarget.checked=!1,!1):this.maxMultiple!==0&&this.checkedJson.length>=this.maxMultiple&&this.multiple?(e.currentTarget.checked=!1,new oi().message({content:`\u6700\u591A\u9009\u62E9${this.maxMultiple}\u9879\u3001\u8BF7\u79FB\u9664\u540E\u518D\u8FDB\u884C\u9009\u62E9`,type:"warning"}),!1):(this.multiple?this.checkedJson.push(r):this.checkedJson=[r],!1)}this.checkedJson=this.checkedJson.filter(s=>s.uniqueId!==t.uniqueId)},handleBreadcrumb(e,t){if(e.disable||t+1==this.breadcrumb.length)return!1;switch(t){case 0:this.deptId=this.deptCode;break;case 1:this.deptId=0;break;default:this.deptId=e.value;break}this.subjectId=e.value==="-1"?"":this.breadcrumb_subjectId,this.keyword="",this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((s,n)=>n<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(","),s=this.checkedJson.filter(i=>i.type==2||i.type==1).find(i=>t.indexOf(i.id)>-1);let n=!1;return N(s)||(s.type==1&&(new oi().message({content:`\u5DF2\u9009\u7684\u7EC4\u7EC7\u3010${s.name}\u3011\u5B58\u5728${e.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),n=!0),s.type==4&&(new oi().message({content:`\u5DF2\u9009\u7684\u90E8\u95E8\u3010${s.name}\u3011\u5B58\u5728${e.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),n=!0)),n},defaultBreadcrumb(){this.deptId=this.deptCode,this.subjectId="",N(this.deptCode)&&(this.breadcrumb=[{name:"\u7EC4\u7EC7",value:"-1"}]),this.isSon=!1,this.jsonData=[],this.keyword="",this.isQuery=!0,this.isLoading=!1},getIsSon(){const e=this.entityJson.filter(s=>s.type==2),t=this.checkedJson.filter(s=>s.type==2);this.isSon=t.findIndex(s=>e.findIndex(n=>n.id===s.id&&s.orgRecordsType==4)>-1)>-1},getCheckedAll(){const e=this.entityJson.findIndex(t=>this.checkedJson.findIndex(s=>s.type===t.type&&s.id===t.id&&t.subjectId===s.subjectId)===-1);this.checkedAll=e===-1},getSearch(e=()=>{}){const t=this.codeType.findIndex(n=>n==3)>-1?3:this.codeType.findIndex(n=>n==2)>-1?2:1,s={source:this.source,type:this.type,deptId:this.deptId,subjectId:this.subjectId,keyword:this.keyword,showType:t};N(s.deptId)&&delete s.deptId,N(s.subjectId)&&delete s.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:s}).then(n=>{e(),this.jsonData=N(n.data)||n.code!==200?[]:n.data;const i=this.breadcrumb.filter(r=>r.value!=="-1");if(!N(this.jsonData)&&N(i)&&(!N(this.deptCode)||!N(this.subjectName))){const r=n.data[0],a=r.ancestors.split(",");this.breadcrumb=a.map((c,l)=>({value:c,name:r.ancestorNames.split("/")[l],disable:l!==a.length-1&&a.length!==0}))}this.getIsSon(),this.getCheckedAll()}).finally(()=>{this.isLoading=!1})},getDetail(e=()=>{}){if(N(this.businessId))return e(),!1;const t={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:t}).then(s=>{this.checkedJson=N(s.data)||s.code!==200?[]:s.data.map(n=>{const i=n.type==4?"2":n.type,r=n.type==1?"":n.ancestors,a=r+n.bizId+"__"+i,c=this.isNoDelete.findIndex(l=>l.id===n.id||l.uid===n.uid)>-1;return{...n,ancestors:r,id:n.bizId,type:i,uniqueId:a,orgRecordsType:n.type,iconName:si(n.name,2),sex:n.sex,uid:N(n.uid)?"":n.uid,avatar:N(n.avatar)?"":n.avatar,isNoDelete:c}}),e()})},getCards(){if(N(this.checkedArray))return this.checkedJson=[];const e=this.checkedArray.map(t=>({type:t.type,id:N(t.id)?null:t.id,uid:N(t.uid)?null:t.uid,subjectId:N(t.subjectId)?null:t.subjectId,deptId:N(t.deptId)?null:t.deptId}));this.request.post("/auth/component/org/cards",{params:e}).then(t=>{this.checkedJson=N(t.data)||t.code!==200?[]:t.data.map(s=>{const n=s.type==4?"2":s.type,i=s.type==1?"":s.ancestors,r=s.type==1?"":s.ancestorNames,a=i+s.id+"__"+n,c=this.isNoDelete.findIndex(l=>l.id===s.id||l.uid===s.uid)>-1;return{...s,ancestors:i,ancestorNames:r,id:s.id,type:n,uniqueId:a,orgRecordsType:s.type,iconName:si(s.name,2),sex:s.sex,uid:N(s.uid)?"":s.uid,avatar:N(s.avatar)?"":s.avatar,isNoDelete:c}})})},getByName(e=()=>{}){const t={name:this.subjectName};this.request.get("/auth/component/org/subject/getByName",{params:t}).then(s=>{console.log("getByName",s),s.code===200&&(this.subjectId=s.data,e())})}}};var aA=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("main",{staticClass:"departPerson-main"},[s("div",{staticClass:"deper-top"},[e._e(),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowQuery,expression:"isShowQuery"}],staticClass:"deper-query"},[s("form",{staticClass:"form",attrs:{action:"javascript: void(0);"},on:{submit:function(n){n.preventDefault()}}},[s("i",{staticClass:"icon-chaxun iconfont chaxun"}),s("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],staticClass:"input",attrs:{type:"search",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u3001\u624B\u673A\u53F7\u7801"},domProps:{value:e.keyword},on:{keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.handleQuery.apply(null,arguments)},input:function(n){n.target.composing||(e.keyword=n.target.value)}}}),e.keyword.length>0?s("i",{staticClass:"icon-error-fill iconfont close",on:{click:e.handleEmpty}}):e._e()])]),e.isQuery?s("div",{staticClass:"deper-breadcrumb"},e._l(e.breadcrumb,function(n,i){return s("div",{key:n.value,staticClass:"deper-b-item",class:{disable:n.disable},on:{click:function(r){return e.handleBreadcrumb(n,i)}}},[s("span",[e._v(e._s(n.name))]),s("i",{staticClass:"icon-jiantouyou iconfont"})])}),0):e._e(),e.isQuery?s("div",{staticClass:"deper-all"},[s("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(n){var i=e.checkedAll,r=n.target,a=!!r.checked;if(Array.isArray(i)){var c=null,l=e._i(i,c);r.checked?l<0&&(e.checkedAll=i.concat([c])):l>-1&&(e.checkedAll=i.slice(0,l).concat(i.slice(l+1)))}else e.checkedAll=a},e.handleAllCheckbox]}}),s("label",{staticClass:"label",attrs:{for:"deper-all"}},[e._v("\u5168\u9009")])]):e._e()]),e.isQuery?s("div",{staticClass:"deper-center",class:e.getHight},[e.companyJson.length>0?s("div",{staticClass:"deper-c-depart"},e._l(e.companyJson,function(n){return s("div",{key:n.uniqueId,staticClass:"depart-item"},[s("label",{staticClass:"depart-left",class:{width:e.isNotLevel,isNoDelete:n.isNoDelete}},[s("input",{directives:[{name:"show",rawName:"v-show",value:e.isShowSubject,expression:"isShowSubject"},{name:"model",rawName:"v-model",value:n.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:n.isDisabled||n.isNoDelete,type:"checkbox"},domProps:{checked:Array.isArray(n.checked)?e._i(n.checked,null)>-1:n.checked},on:{change:[function(i){var r=n.checked,a=i.target,c=!!a.checked;if(Array.isArray(r)){var l=null,p=e._i(r,l);a.checked?p<0&&e.$set(n,"checked",r.concat([l])):p>-1&&e.$set(n,"checked",r.slice(0,p).concat(r.slice(p+1)))}else e.$set(n,"checked",c)},function(i){return e.handleCheckbox(i,n)}]}}),s("div",{staticClass:"depart-name"},[s("div",{staticClass:"name"},[e._v(e._s(n.name))]),n.num>0?s("div",{staticClass:"number"},[e._v("("),s("label",{staticClass:"label"},[e._v(e._s(n.num)+"/"+e._s(n.counts))]),e._v(")")]):s("div",{staticClass:"number"},[e._v("("+e._s(n.counts)+")")])])]),!e.isNotLevel&&n.counts>0?s("div",{staticClass:"depart-right",class:{isdisabled:n.isLevel},on:{click:function(i){return e.handleLevel(n)}}},[s("i",{staticClass:"icon-pedigree iconfont"}),s("span",[e._v("\u4E0B\u7EA7")])]):e._e()])}),0):e._e(),e.deptJson.length>0?s("div",{staticClass:"deper-c-depart"},e._l(e.deptJson,function(n){return s("div",{key:n.uniqueId,staticClass:"depart-item"},[s("label",{staticClass:"depart-left",class:{isNoDelete:n.isNoDelete}},[s("input",{directives:[{name:"show",rawName:"v-show",value:e.isShowDept,expression:"isShowDept"},{name:"model",rawName:"v-model",value:n.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:n.isDisabled||n.isNoDelete,type:"checkbox"},domProps:{checked:Array.isArray(n.checked)?e._i(n.checked,null)>-1:n.checked},on:{change:[function(i){var r=n.checked,a=i.target,c=!!a.checked;if(Array.isArray(r)){var l=null,p=e._i(r,l);a.checked?p<0&&e.$set(n,"checked",r.concat([l])):p>-1&&e.$set(n,"checked",r.slice(0,p).concat(r.slice(p+1)))}else e.$set(n,"checked",c)},function(i){return e.handleCheckbox(i,n)}]}}),s("div",{staticClass:"depart-name"},[s("div",{staticClass:"name"},[e._v(e._s(n.name))]),n.num>0?s("div",{staticClass:"number"},[e._v("("),s("label",[e._v(e._s(n.num)+"/"+e._s(n.counts))]),e._v(")")]):s("div",{staticClass:"number"},[e._v("("+e._s(n.counts)+")")])])]),n.counts>0?s("div",{staticClass:"depart-right",class:{isdisabled:n.isLevel},on:{click:function(i){return e.handleLevel(n)}}},[s("i",{staticClass:"icon-pedigree iconfont"}),s("span",[e._v("\u4E0B\u7EA7")])]):e._e()])}),0):e._e(),e.userJson.length>0?s("div",{staticClass:"deper-c-user"},e._l(e.userJson,function(n){return s("label",{key:n.uniqueId,staticClass:"user-item",class:{isNoDelete:n.isNoDelete}},[s("input",{directives:[{name:"model",rawName:"v-model",value:n.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:n.isDisabled||n.isNoDelete,type:"checkbox"},domProps:{checked:Array.isArray(n.checked)?e._i(n.checked,null)>-1:n.checked},on:{change:[function(i){var r=n.checked,a=i.target,c=!!a.checked;if(Array.isArray(r)){var l=null,p=e._i(r,l);a.checked?p<0&&e.$set(n,"checked",r.concat([l])):p>-1&&e.$set(n,"checked",r.slice(0,p).concat(r.slice(p+1)))}else e.$set(n,"checked",c)},function(i){return e.handleCheckbox(i,n)}]}}),s("div",{staticClass:"user-icon"},[n.avatar.length<1?s("span",[e._v(e._s(n.iconName))]):s("img",{attrs:{src:n.avatar}})]),s("div",{staticClass:"user-name"},[s("div",{staticClass:"span"},[e._v(e._s(n.name))]),s("div",{staticClass:"phone"},[e._v(e._s(n.phone))])])])}),0):e._e()]):s("div",{staticClass:"deper-search"},[e._e(),s("div",{staticClass:"deper-search-section"},[e._e(),s("div",{staticClass:"search-user"},[s("div",{staticClass:"search-title"},[e._v("\u8054\u7CFB\u4EBA")]),e._l(e.userJson,function(n){return s("label",{key:n.uniqueId,staticClass:"user-item"},[s("input",{directives:[{name:"model",rawName:"v-model",value:n.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:n.isDisabled,type:"checkbox"},domProps:{checked:Array.isArray(n.checked)?e._i(n.checked,null)>-1:n.checked},on:{change:[function(i){var r=n.checked,a=i.target,c=!!a.checked;if(Array.isArray(r)){var l=null,p=e._i(r,l);a.checked?p<0&&e.$set(n,"checked",r.concat([l])):p>-1&&e.$set(n,"checked",r.slice(0,p).concat(r.slice(p+1)))}else e.$set(n,"checked",c)},function(i){return e.handleCheckbox(i,n)}]}}),s("div",{staticClass:"user-icon"},[s("span",[e._v(e._s(n.iconName))])]),s("div",{staticClass:"user-name"},[s("div",{staticClass:"span"},[e._v(e._s(n.name))]),s("div",{staticClass:"phone"},[e._v(e._s(n.phone))]),s("div",{staticClass:"txt"},[e._v(e._s(n.ancestorNames))])])])})],2)])]),e.isDept?s("div",{staticClass:"deper-son"},[s("span",[e._v("\u5305\u542B\u5B50\u7EA7")]),s("dc-switch",{attrs:{modelValue:e.isSon,name:"isSone"},on:{"update:modelValue":function(n){e.isSon=n},"update:model-value":function(n){e.isSon=n}}})],1):e._e(),s("div",{staticClass:"deper-bottom"},[s("div",{staticClass:"deper-b-checked",on:{click:function(n){e.isShowChecked=!0}}},[s("span",[e._v(e._s(e.checkedNumber))]),e.checkedNumber.length>0?s("i",{staticClass:"icon-jiantouyou iconfont"}):e._e()]),s("div",{staticClass:"deper-b-btn",on:{click:e.handleSubmit}},[e._v("\u786E\u5B9A")])]),s("checked",{attrs:{visible:e.isShowChecked,checkedJson:e.checkedJson},on:{"update:visible":function(n){e.isShowChecked=n},"update:checkedJson":function(n){e.checkedJson=n},"update:checked-json":function(n){e.checkedJson=n}},scopedSlots:e._u([{key:"user",fn:function(n){var i=n.item;return[e._t("checkedUser",null,{item:i})]}}],null,!0)}),e.isLoading?s("dcLoading"):e._e()],1)},cA=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"depart-item"},[s("label",{staticClass:"depart-left"},[s("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),s("div",{staticClass:"depart-name"},[s("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")]),s("div",{staticClass:"number"},[e._v("("),s("label",[e._v("100/100")]),e._v(")")])])])])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"depart-item"},[s("label",{staticClass:"depart-left"},[s("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),s("div",{staticClass:"depart-name"},[s("div",{staticClass:"name"},[e._v("\u6280\u672F\u90E8")]),s("div",{staticClass:"number"},[e._v("(80)")])])])])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"depart-item"},[s("label",{staticClass:"depart-left"},[s("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),s("div",{staticClass:"depart-name"},[s("div",{staticClass:"name"},[e._v("\u5F00\u53D1\u90E8")]),s("div",{staticClass:"number"},[e._v("("),s("label",[e._v("100/100")]),e._v(")")])])])])}];const Dc={};var lA=fn(rA,aA,cA,!1,dA,null,null,null);function dA(e){for(let t in Dc)this[t]=Dc[t]}const Ze=function(){return lA.exports}(),WC="",pA={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:qe,TopPopup:de,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?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e="";this.multiNodeParticipant[this.partObjId].map((t,s)=>{s==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.handleFinal(),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]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,s)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,n)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,s){this.textTips=e,this.statusTips=t,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},wt=e=>(o.pushScopeId("data-v-08c15a54"),e=e(),o.popScopeId(),e),uA={class:"process-popup-content"},hA=wt(()=>o.createElementVNode("div",{class:"process-pc-label"},[o.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),fA={class:"process-pc-value"},mA={class:"process-popup-textarea"},gA=wt(()=>o.createElementVNode("br",null,null,-1)),AA=wt(()=>o.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),yA=["onClick"],kA={class:"process-pc-value--people"},CA={key:0,class:"process-pc-value--data"},EA={key:1,class:"process-pc-value--data",style:{color:"#888"}},bA=[wt(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],IA={class:"process-pc-label"},BA=wt(()=>o.createElementVNode("br",null,null,-1)),NA=wt(()=>o.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),wA=["onClick"],vA={class:"process-pc-value--people"},VA={key:0,class:"process-pc-value--data"},TA={key:1,class:"process-pc-value--data",style:{color:"#888"}},SA=[wt(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function DA(e,t,s,n,i,r){const a=o.resolveComponent("TopTips"),c=o.resolveComponent("departPerson"),l=o.resolveComponent("TopPopup"),p=o.resolveComponent("attchViews");return o.openBlock(),o.createElementBlock("div",uA,[hA,o.createElementVNode("div",fA,[o.createElementVNode("div",mA,[o.withDirectives(o.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=d=>i.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),[[o.vModelText,i.commentMsg]])])]),i.taskNode&&i.taskNode.length>0&&i.taskNode[0].taskState!=11?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[i.nextNodeData.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(i.nextNodeData,d=>{var u,g;return o.openBlock(),o.createElementBlock(o.Fragment,null,[d.type!="endEvent"&&r.isOption((g=(u=d==null?void 0:d.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",null,[o.createTextVNode(o.toDisplayString(d.userTaskModelDTO.name)+" ",1),gA,o.createTextVNode(" \u5BA1\u6279\u4EBA "),AA]),o.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(d.id)},[o.createElementVNode("div",kA,[i.partNode[d.id]&&i.partNode[d.id].length?(o.openBlock(),o.createElementBlock("div",CA,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.partNode[d.id],(y,k)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(k==0?y:`,${y}`),1))),256))])):(o.openBlock(),o.createElementBlock("div",EA,bA))])],8,yA)],64)):o.createCommentVNode("",!0)],64)}),256)):i.outGatewayUserTaskModel.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(i.outGatewayUserTaskModel,d=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[d.type!="endEvent"&&r.isOption(d.humanPerformerName)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",IA,[o.createTextVNode(o.toDisplayString(d.name)+" ",1),BA,o.createTextVNode(" \u5BA1\u6279\u4EBA "),NA]),o.createElementVNode("div",{class:"process-pc-value",onClick:u=>r.handleOpenPopup(d.id)},[o.createElementVNode("div",vA,[i.partNode[d.id]&&i.partNode[d.id].length?(o.openBlock(),o.createElementBlock("div",VA,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.partNode[d.id],(u,g)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(g==0?u:`,${u}`),1))),256))])):(o.openBlock(),o.createElementBlock("div",TA,SA))])],8,wA)],64)):o.createCommentVNode("",!0)],64))),256)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),o.createVNode(a,{ref:"topTips",text:i.textTips,statusTips:i.statusTips,type:i.typeTips},null,8,["text","statusTips","type"]),o.createVNode(l,{visible:i.visible,"onUpdate:visible":t[1]||(t[1]=d=>i.visible=d),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:o.withCtx(()=>[o.createVNode(c,o.mergeProps({visible:i.visible,request:s.param.request,businessId:s.param.formData.businessKey},i.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),i.labels=="5"?(o.openBlock(),o.createBlock(p,{key:1,limit:i.limit?i.limit:-1,requires:i.requires,request:s.param.request,linkUrl:s.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):o.createCommentVNode("",!0)])}const OA=q(pA,[["render",DA],["__scopeId","data-v-08c15a54"]]),XC="",QA={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:qe,TopPopup:de,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?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e="";this.multiNodeParticipant[this.partObjId].map((t,s)=>{s==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.handleFinal(),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]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,s)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,n)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,s){this.textTips=e,this.statusTips=t,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},vt=e=>(o.pushScopeId("data-v-29f5935e"),e=e(),o.popScopeId(),e),xA={class:"process-popup-content"},FA=vt(()=>o.createElementVNode("div",{class:"process-pc-label"},[o.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),UA={class:"process-pc-value"},JA={class:"process-popup-textarea"},PA=vt(()=>o.createElementVNode("br",null,null,-1)),MA=vt(()=>o.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),LA=["onClick"],jA={class:"process-pc-value--people"},GA={key:0,class:"process-pc-value--data"},RA={key:1,class:"process-pc-value--data",style:{color:"#888"}},qA=[vt(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],KA={class:"process-pc-label"},HA=vt(()=>o.createElementVNode("br",null,null,-1)),YA=vt(()=>o.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),zA=["onClick"],WA={class:"process-pc-value--people"},_A={key:0,class:"process-pc-value--data"},ZA={key:1,class:"process-pc-value--data",style:{color:"#888"}},XA=[vt(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function $A(e,t,s,n,i,r){const a=o.resolveComponent("TopTips"),c=o.resolveComponent("departPerson"),l=o.resolveComponent("TopPopup"),p=o.resolveComponent("attchViews");return o.openBlock(),o.createElementBlock("div",xA,[FA,o.createElementVNode("div",UA,[o.createElementVNode("div",JA,[o.withDirectives(o.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=d=>i.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),[[o.vModelText,i.commentMsg]])])]),i.taskNode&&i.taskNode.length>0&&i.taskNode[0].taskState!=11?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[i.nextNodeData.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(i.nextNodeData,d=>{var u,g;return o.openBlock(),o.createElementBlock(o.Fragment,null,[d.type!="endEvent"&&r.isOption((g=(u=d==null?void 0:d.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",null,[o.createTextVNode(o.toDisplayString(d.userTaskModelDTO.name)+" ",1),PA,o.createTextVNode(" \u5BA1\u6279\u4EBA "),MA]),o.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(d.id)},[o.createElementVNode("div",jA,[i.partNode[d.id]&&i.partNode[d.id].length?(o.openBlock(),o.createElementBlock("div",GA,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.partNode[d.id],(y,k)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(k==0?y:`,${y}`),1))),256))])):(o.openBlock(),o.createElementBlock("div",RA,qA))])],8,LA)],64)):o.createCommentVNode("",!0)],64)}),256)):i.outGatewayUserTaskModel.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(i.outGatewayUserTaskModel,d=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[d.type!="endEvent"&&r.isOption(d.humanPerformerName)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",KA,[o.createTextVNode(o.toDisplayString(d.name)+" ",1),HA,o.createTextVNode(" \u5BA1\u6279\u4EBA "),YA]),o.createElementVNode("div",{class:"process-pc-value",onClick:u=>r.handleOpenPopup(d.id)},[o.createElementVNode("div",WA,[i.partNode[d.id]&&i.partNode[d.id].length?(o.openBlock(),o.createElementBlock("div",_A,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.partNode[d.id],(u,g)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(g==0?u:`,${u}`),1))),256))])):(o.openBlock(),o.createElementBlock("div",ZA,XA))])],8,zA)],64)):o.createCommentVNode("",!0)],64))),256)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),o.createVNode(a,{ref:"topTips",text:i.textTips,statusTips:i.statusTips,type:i.typeTips},null,8,["text","statusTips","type"]),o.createVNode(l,{visible:i.visible,"onUpdate:visible":t[1]||(t[1]=d=>i.visible=d),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:o.withCtx(()=>[o.createVNode(c,o.mergeProps({visible:i.visible,request:s.param.request,businessId:s.param.formData.businessKey},i.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),i.labels=="1"?(o.openBlock(),o.createBlock(p,{key:1,limit:i.limit?i.limit:-1,requires:i.requires,request:s.param.request,linkUrl:s.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):o.createCommentVNode("",!0)])}const ey=q(QA,[["render",$A],["__scopeId","data-v-29f5935e"]]),ty="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx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I++gUESPbppXMUKPO4i74BUYcEOOKVXciyf0BUIQGOQiW+zM0YgKhBAhzLqrqg9TiAqEACHAXLe7mrsQBZOyTAsbyiC3sYD5C1QgIchUu7jLsxAVkbJMBRppoTvIwLyFogAY6Esi7ncmxARocEOMpVcpKn8QEZFRLgSCrpsm7XAchokABH2SpO9LYeQEaBBDgSy7m863UB0jskwFG+gpM9rg+QXiEBjuRSznG/TkB6gwQ4cqq3gtf1AtILJMBRoYzztlg3IK0hAY68yq3kef2AtIIEOCqVcO42GoDUhgQ4cqu2oncdQGpBAhwVyzd/Ky1AsiEBjvyKrbyDHiBZkABH5dKts50mIKUhAY461dpgF11ASkECHA3Ktt6W2oAshQQ46lVqo50AJAoJcDQq2brbAshB7/3fJ5n7R3K+2MPmrm6q2K2FAgByrvr97p2ZvTez/V+WOv082tbunv7yFB8JBQDkUpr3HeW1mf1gZt9sa4+AIcHESZAAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6ikAIHo5J2KHAgDiEIulegoAiF7OidihAIA4xGKpngIAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",tE="",sE="",sy={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:qe,TopPopup:de,departPerson:Ze},computed:{check(){return lr},checkS(){return ty}},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],partList:[],gateVars:{}}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleSaveNode(e){this.radioCheckNameList.includes(e)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e),1):this.radioCheckNameList.push(e)},handleNode(e){this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue):this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue)},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"){let t,s=[];e.routeTxt.companyIds.map((n,i)=>{t=n.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((n,i)=>{s.push({type:3,uid:n})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel",subjectName:t,checkedArray:s}}else if(e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"){let t,s=[];e.routeTxt.companyIds.map((n,i)=>{t=n.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((n,i)=>{s.push({type:3,uid:n})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel",deptCode:t,checkedArray:s}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((s,n)=>{t.push({type:3,uid:s})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel",checkedArray:t}}},async confirm(){if(!this.commentMsg){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}let e={};if(this.radioCheckNameList&&this.radioCheckNameList.length){let t=0;if(this.radioCheckNameList.map((s,n)=>{(!this.multiNodeParticipant[s]||!this.multiNodeParticipant[s].length)&&(t+=1),e[s]=this.multiNodeParticipant[s]}),t>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}e=this.multiNodeParticipant}this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/complete",{actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskInstId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e}).then(t=>{if(t.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(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]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,s)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,n)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,s){this.textTips=e,this.statusTips=t,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Xe=e=>(o.pushScopeId("data-v-d4e71b58"),e=e(),o.popScopeId(),e),ny={class:"process-popup-content"},oy={key:0,class:"process-pc-label"},iy={key:1,class:"process-pc-value",style:{display:"flex"}},ry=Xe(()=>o.createElementVNode("div",{class:"process-pc-label"},[o.createTextVNode(" \u5BA1\u6279\u610F\u89C1 "),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),ay={class:"process-pc-value"},cy={class:"process-popup-textarea"},ly={class:"process-pc-label"},dy=Xe(()=>o.createElementVNode("br",null,null,-1)),py=Xe(()=>o.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),uy=["onClick"],hy={class:"process-pc-value--people"},fy={key:0,class:"process-pc-value--data"},my={key:1,class:"process-pc-value--data",style:{color:"#888"}},gy=[Xe(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Ay={key:1,class:"process-pc-label"},yy=Xe(()=>o.createElementVNode("div",{class:"process-pc-label"},[o.createTextVNode(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 "),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),ky={class:"process-pc-value"},Cy={class:"process-radio"},Ey=["onClick"],by=["src"],Iy=["onClick"],By={class:"process-checkbox"},Ny=Xe(()=>o.createElementVNode("br",null,null,-1)),wy={class:"process-checkbox-item"},vy=["src"],Vy=["onClick"],Ty={class:"process-pc-value--people"},Sy={key:0,class:"process-pc-value--data"},Dy={key:1,class:"process-pc-value--data",style:{color:"#888"}},Oy=[Xe(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Qy=Xe(()=>o.createElementVNode("div",{class:"process-pc-label"}," \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 ",-1)),xy={class:"process-pc-value"};function Fy(e,t,s,n,i,r){const a=o.resolveComponent("TopTips"),c=o.resolveComponent("departPerson"),l=o.resolveComponent("TopPopup"),p=o.resolveComponent("attchViews");return o.openBlock(),o.createElementBlock("div",ny,[s.param.isDocument?(o.openBlock(),o.createElementBlock("div",oy," \u5FEB\u6377\u56DE\u590D ")):o.createCommentVNode("",!0),s.param.isDocument?(o.openBlock(),o.createElementBlock("div",iy,[o.createElementVNode("div",{class:"process-tag",onClick:t[0]||(t[0]=()=>i.commentMsg="\u540C\u610F")}," \u540C\u610F "),o.createElementVNode("div",{class:"process-tag",onClick:t[1]||(t[1]=()=>i.commentMsg="\u5982\u62DF")}," \u5982\u62DF "),o.createElementVNode("div",{class:"process-tag",onClick:t[2]||(t[2]=()=>i.commentMsg="\u5DF2\u9605")}," \u5DF2\u9605 ")])):o.createCommentVNode("",!0),ry,o.createElementVNode("div",ay,[o.createElementVNode("div",cy,[o.withDirectives(o.createElementVNode("textarea",{"onUpdate:modelValue":t[3]||(t[3]=d=>i.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),[[o.vModelText,i.commentMsg]])])]),i.taskNode&&i.taskNode.length>0&&i.taskNode[0].taskState!=11?(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[i.nextNodeData.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(i.nextNodeData,d=>{var u,g;return o.openBlock(),o.createElementBlock(o.Fragment,null,[d.type!="endEvent"&&r.isOption((g=(u=d==null?void 0:d.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",ly,[o.createElementVNode("div",null,[o.createTextVNode(o.toDisplayString(d.userTaskModelDTO.name)+" ",1),dy,o.createTextVNode(" \u5BA1\u6279\u4EBA "),py])]),o.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(d)},[o.createElementVNode("div",hy,[i.partNode[d.id]&&i.partNode[d.id].length?(o.openBlock(),o.createElementBlock("div",fy,[o.createElementVNode("span",null,o.toDisplayString(i.partNode[d.id].join(",")),1)])):(o.openBlock(),o.createElementBlock("div",my,gy))])],8,uy)],64)):(o.openBlock(),o.createElementBlock("div",Ay,o.toDisplayString(d.userTaskModelDTO.name),1))],64)}),256)):i.outGatewayUserTaskModel.length?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.outGatewayUserTaskModel,d=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[yy,o.createElementVNode("div",ky,[o.createElementVNode("div",Cy,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d.childNode,u=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["process-radio-item",u.id==i.radioCheck?"process-radio-item--check":""]),onClick:g=>r.handleNode(u)},[o.createElementVNode("span",null,[u.id==i.radioCheck?(o.openBlock(),o.createElementBlock("img",{key:0,class:"process-radio-item-check",src:r.check},null,8,by)):o.createCommentVNode("",!0)]),o.createTextVNode(" "+o.toDisplayString(u.nodeName),1)],10,Ey))),256))])])],64))),256)),i.radioCheck?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[i.radioCheckChild&&i.radioCheckChild.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(i.radioCheckChild,d=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",{class:"process-pc-label",onClick:u=>r.handleSaveNode(d.id)},[o.createElementVNode("div",By,[o.createTextVNode(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279:"),Ny,o.createElementVNode("div",wy,[o.createTextVNode(o.toDisplayString(d.nodeName)+" ",1),o.createElementVNode("span",null,[i.radioCheckNameList.includes(d.id)?(o.openBlock(),o.createElementBlock("img",{key:0,class:"process-checkbox-item-check",src:r.checkS},null,8,vy)):o.createCommentVNode("",!0)])])])],8,Iy),o.createElementVNode("div",{class:"process-pc-value",onClick:u=>r.handleOpenPopup(d)},[o.createElementVNode("div",Ty,[i.partNode[d.id]&&i.partNode[d.id].length?(o.openBlock(),o.createElementBlock("div",Sy,[o.createElementVNode("span",null,o.toDisplayString(i.partNode[d.id].join(",")),1)])):(o.openBlock(),o.createElementBlock("div",Dy,Oy))])],8,Vy)]))),256)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[Qy,o.createElementVNode("div",xy,o.toDisplayString(i.radioCheckName),1)],64))],64)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),o.createVNode(a,{ref:"topTips",text:i.textTips,statusTips:i.statusTips,type:i.typeTips},null,8,["text","statusTips","type"]),o.createVNode(l,{visible:i.visible,"onUpdate:visible":t[4]||(t[4]=d=>i.visible=d),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:o.withCtx(()=>[o.createVNode(c,o.mergeProps({visible:i.visible},i.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","onCallback","onCancel"])]),_:1},8,["visible"]),i.labels=="1"?(o.openBlock(),o.createBlock(p,{key:3,limit:i.limit?i.limit:-1,requires:i.requires,request:s.param.request,linkUrl:s.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):o.createCommentVNode("",!0)])}const Uy=q(sy,[["render",Fy],["__scopeId","data-v-d4e71b58"]]),iE="",Jy={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:qe,TopPopup:de,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(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/reject",{commentMsg:this.commentMsg,taskInstId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,s)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,n)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,s){this.textTips=e,this.statusTips=t,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Ht=e=>(o.pushScopeId("data-v-9613f11c"),e=e(),o.popScopeId(),e),Py={class:"process-popup-content"},My=Ht(()=>o.createElementVNode("div",{class:"process-pc-label"},[o.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Ly={class:"process-pc-value"},jy={class:"process-popup-textarea"},Gy=Ht(()=>o.createElementVNode("br",null,null,-1)),Ry=Ht(()=>o.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),qy=["onClick"],Ky={class:"process-pc-value--people"},Hy={key:0,class:"process-pc-value--data"},Yy={key:1,class:"process-pc-value--data",style:{color:"#888"}},zy=[Ht(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Wy={style:{"font-size":"15px"}},_y=Ht(()=>o.createElementVNode("div",{class:"process-pc-label"},[o.createTextVNode(" \u5BA1\u6279\u4EBA "),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Zy=[Ht(()=>o.createElementVNode("div",{class:"process-pc-value--people"},o.toDisplayString(234),-1))];function Xy(e,t,s,n,i,r){const a=o.resolveComponent("TopTips"),c=o.resolveComponent("departPerson"),l=o.resolveComponent("TopPopup"),p=o.resolveComponent("attchViews");return o.openBlock(),o.createElementBlock("div",Py,[My,o.createElementVNode("div",Ly,[o.createElementVNode("div",jy,[o.withDirectives(o.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=d=>i.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),[[o.vModelText,i.commentMsg]])])]),i.taskNode&&i.taskNode.length>0&&i.taskNode[0].taskState!=11?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[i.nextNodeData.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(i.nextNodeData,d=>{var u,g;return o.openBlock(),o.createElementBlock(o.Fragment,null,[d.type!="endEvent"&&r.isOption((g=(u=d==null?void 0:d.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",null,[o.createTextVNode(o.toDisplayString(d.userTaskModelDTO.name)+" ",1),Gy,o.createTextVNode(" \u5BA1\u6279\u4EBA "),Ry]),o.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(d.id)},[o.createElementVNode("div",Ky,[i.partNode[d.id]&&i.partNode[d.id].length?(o.openBlock(),o.createElementBlock("div",Hy,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.partNode[d.id],(y,k)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(k==0?y:`,${y}`),1))),256))])):(o.openBlock(),o.createElementBlock("div",Yy,zy))])],8,qy)],64)):o.createCommentVNode("",!0)],64)}),256)):i.outGatewayUserTaskModel.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(i.outGatewayUserTaskModel,d=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[d.type!="endEvent"&&r.isOption(d.humanPerformerName)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",Wy,o.toDisplayString(d.name),1),_y,o.createElementVNode("div",{class:"process-pc-value",onClick:t[1]||(t[1]=(...u)=>r.handleOpenPopup&&r.handleOpenPopup(...u))},Zy)],64)):o.createCommentVNode("",!0)],64))),256)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),o.createVNode(a,{ref:"topTips",text:i.textTips,statusTips:i.statusTips,type:i.typeTips},null,8,["text","statusTips","type"]),o.createVNode(l,{visible:i.visible,"onUpdate:visible":t[2]||(t[2]=d=>i.visible=d),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:o.withCtx(()=>[o.createVNode(c,o.mergeProps({visible:i.visible,request:s.param.request,businessId:s.param.formData.businessKey},i.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),i.labels=="\u62D2\u7EDD"?(o.openBlock(),o.createBlock(p,{key:1,limit:i.limit?i.limit:-1,requires:i.requires,request:s.param.request,linkUrl:s.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):o.createCommentVNode("",!0)])}const $y=q(Jy,[["render",Xy],["__scopeId","data-v-9613f11c"]]),ek="data:image/png;base64,iVBORw0KGgoAAA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MYEyQEYgMWa85hg41qQU8E0pIJMiAUfA4q+9shyQyZCAY+2mBn1XEsgkSMARtPRbri0LJDkScGzZ0sBvSwNJigQcgQu/9eryQJIhAcfWDQ3+XgJIEiTgCF52y/UyQIKRgMOynQnOSAEJQgKOBItufYIckMFIwGHdzCTnJIEMQgKOJEu+5xmyQJyRgGPPViY6Kw3ECQk4Ei343qfIA+mMBBx7NzLZeYD8N5AO/7EoOJItd4/nAOQkxR1IwNFjGxPWAMj/hmJAAo6Ei93rSQA5k+QGJODotYlJ6wDkicGsQAKOpEvd81kAuZDmBSTg6LmFiWsB5JnhnEECjsQL3ftpAFmR6AmSa/5pnhWBFfoEICuHeUTy+Wb5svJzPiuSAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBL4Csq/cvbKQGitAAAAAElFTkSuQmCC",sk=Be({name:"TopDownSelect",props:{option:{type:Array,default:[]},optionStyle:{type:String,default:""},maskShow:{type:Boolean,default:!0},border:{type:Boolean,default:!1},defaultValue:{type:String,default:""},placeholder:{type:String,default:"\u8BF7\u9009\u62E9"}},data(){return{value:{id:"",text:""},lists:[],expand:!1,active:"",activeItem:{}}},watch:{option:{handler(e,t){e&&e.length&&(this.lists=e)},immediate:!0,deep:!0},defaultValue:{handler(e,t){this.active=e;let s=this.lists.filter((n,i)=>n.id==e);this.activeItem=s[0],this.$emit("change",this.activeItem)}}},computed:{arrow(){return ek},check(){return tk}},methods:{handleExpand(){this.expand?this.expand=!1:this.expand=!0},handleClick(e,t){this.active=e.id,this.activeItem=e,this.expand=!1,this.$emit("change",this.activeItem,this.lists)}}}),cE="",nk={class:"top-select"},ok=["src"],ik=["onClick"],rk=["src"];function ak(e,t,s,n,i,r){return o.openBlock(),o.createElementBlock("div",nk,[o.createElementVNode("div",{class:o.normalizeClass(["top-select-menu",[e.border&&"top-select-menu-border",!e.activeItem.name&&"top-select-menu-placeholder"]]),onClick:t[0]||(t[0]=(...a)=>e.handleExpand&&e.handleExpand(...a))},[o.createTextVNode(o.toDisplayString(e.activeItem.name?e.activeItem.name:e.placeholder)+" ",1),o.createElementVNode("img",{class:o.normalizeClass(["top-select-menu--arrow",[e.expand?"arrow-active":""]]),src:e.arrow},null,10,ok)],2),e.maskShow?(o.openBlock(),o.createElementBlock("div",{key:0,class:"top-select-option-mask",style:o.normalizeStyle(e.expand?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)):o.createCommentVNode("",!0),e.lists&&e.lists.length?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["top-select-option",[e.border&&"top-select-option-border"]]),style:o.normalizeStyle(`${e.expand?"transform: translateY(2%);visibility: visible; opacity: 1;":"transform: translateY(-50%);visibility: hidden; opacity: 0"};${e.optionStyle?e.optionStyle:""}`)},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.lists,(a,c)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["option-items",[e.active==a.id?"option-items-active":""]]),key:a.id,onClick:l=>e.handleClick(a,c)},[o.createTextVNode(o.toDisplayString(a.name)+" ",1),e.active==a.id?(o.openBlock(),o.createElementBlock("img",{key:0,class:"option-items-check",src:e.check},null,8,rk)):o.createCommentVNode("",!0)],10,ik))),128))],6)):o.createCommentVNode("",!0)])}const Oc=q(sk,[["render",ak],["__scopeId","data-v-2b1d2075"]]),lE="",ck={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:qe,TopPopup:de,departPerson:Ze,TopDownSelect:Oc},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(){this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=e.data)})},handleChange(e){this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,isCompensation:!1,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,s)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,n)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,s){this.textTips=e,this.statusTips=t,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Qc=e=>(o.pushScopeId("data-v-72fe01a9"),e=e(),o.popScopeId(),e),lk={class:"process-popup-content"},dk=Qc(()=>o.createElementVNode("div",{class:"process-pc-label",style:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[o.createTextVNode(" \u9000\u56DE\u8282\u70B9\uFF1A "),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),pk={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},uk=Qc(()=>o.createElementVNode("div",{class:"process-pc-label"},[o.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),hk={class:"process-pc-value"},fk={class:"process-popup-textarea"};function mk(e,t,s,n,i,r){const a=o.resolveComponent("TopDownSelect"),c=o.resolveComponent("TopTips"),l=o.resolveComponent("attchViews");return o.openBlock(),o.createElementBlock("div",lk,[dk,o.createElementVNode("div",pk,[o.createVNode(a,{option:i.option,onChange:r.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),uk,o.createElementVNode("div",hk,[o.createElementVNode("div",fk,[o.withDirectives(o.createElementVNode("textarea",{"onUpdate:modelValue":t[0]||(t[0]=p=>i.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),[[o.vModelText,i.commentMsg]])])]),o.createVNode(c,{ref:"topTips",text:i.textTips,statusTips:i.statusTips,type:i.typeTips},null,8,["text","statusTips","type"]),i.labels=="\u9000\u56DE"?(o.openBlock(),o.createBlock(l,{key:0,limit:i.limit?i.limit:-1,requires:i.requires,request:s.param.request,linkUrl:s.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):o.createCommentVNode("",!0)])}const gk=q(ck,[["render",mk],["__scopeId","data-v-72fe01a9"]]),dE="",Ak={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:qe,TopPopup:de,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?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){this.handleTips("",!0,"loading");let e="";this.multiNodeParticipant[this.partObjId].map((t,s)=>{s==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.handleFinal()):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]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,s)=>{this.multiNodeParticipant[this.partObjId].push(t.uid),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((s,n)=>{s.size=s.fileSize,s.format=s.originFileName.substring(s.originFileName.lastIndexOf(".")+1),s.uploadTime=s.createTime,s.processInstId=this.param.processInstId,s.taskInstId=this.param.taskInstId,s.name=s.originFileName});let e=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,t,s){this.textTips=e,this.statusTips=t,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},gs=e=>(o.pushScopeId("data-v-4c2c760e"),e=e(),o.popScopeId(),e),yk={class:"process-popup-content"},kk=gs(()=>o.createElementVNode("br",null,null,-1)),Ck=gs(()=>o.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Ek=["onClick"],bk={class:"process-pc-value--people"},Ik={key:0,class:"process-pc-value--data"},Bk={key:1,class:"process-pc-value--data",style:{color:"#888"}},Nk=[gs(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],wk=gs(()=>o.createElementVNode("div",null,[o.createTextVNode(" \u5BA1\u6279\u4EBA "),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),vk=["onClick"],Vk={class:"process-pc-value--people"},Tk={key:0,class:"process-pc-value--data"},Sk={key:1,class:"process-pc-value--data",style:{color:"#888"}},Dk=[gs(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Ok(e,t,s,n,i,r){const a=o.resolveComponent("TopTips"),c=o.resolveComponent("departPerson"),l=o.resolveComponent("TopPopup"),p=o.resolveComponent("attchViews");return o.openBlock(),o.createElementBlock("div",yk,[i.taskNode&&i.taskNode.length>0&&i.taskNode[0].taskState!=11?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[i.nextNodeData.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(i.nextNodeData,d=>{var u,g;return o.openBlock(),o.createElementBlock(o.Fragment,null,[d.type!="endEvent"&&r.isOption((g=(u=d==null?void 0:d.userTaskModelDTO)==null?void 0:u.humanPerformer)==null?void 0:g.name)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",null,[o.createTextVNode(o.toDisplayString(d.userTaskModelDTO.name)+" ",1),kk,o.createTextVNode(" \u5BA1\u6279\u4EBA "),Ck]),o.createElementVNode("div",{class:"process-pc-value",onClick:y=>r.handleOpenPopup(d.id)},[o.createElementVNode("div",bk,[i.partNode[d.id]&&i.partNode[d.id].length?(o.openBlock(),o.createElementBlock("div",Ik,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.partNode[d.id],(y,k)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(k==0?y:`,${y}`),1))),256))])):(o.openBlock(),o.createElementBlock("div",Bk,Nk))])],8,Ek)],64)):o.createCommentVNode("",!0)],64)}),256)):i.outGatewayUserTaskModel.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(i.outGatewayUserTaskModel,d=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[d.type!="endEvent"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[wk,o.createElementVNode("div",{class:"process-pc-value",onClick:u=>r.handleOpenPopup(d.id)},[o.createElementVNode("div",Vk,[i.partNode[d.id]&&i.partNode[d.id].length?(o.openBlock(),o.createElementBlock("div",Tk,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.partNode[d.id],(u,g)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(g==0?u:`,${u}`),1))),256))])):(o.openBlock(),o.createElementBlock("div",Sk,Dk))])],8,vk)],64)):o.createCommentVNode("",!0)],64))),256)):o.createCommentVNode("",!0)],64)):o.createCommentVNode("",!0),o.createVNode(a,{ref:"topTips",text:i.textTips,statusTips:i.statusTips,type:i.typeTips},null,8,["text","statusTips","type"]),o.createVNode(l,{visible:i.visible,"onUpdate:visible":t[0]||(t[0]=d=>i.visible=d),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:o.withCtx(()=>[o.createVNode(c,o.mergeProps({visible:i.visible,request:s.param.request,businessId:s.param.formData.businessKey},i.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"]),i.labels=="2"?(o.openBlock(),o.createBlock(p,{key:1,limit:i.limit?i.limit:-1,requires:i.requires,request:s.param.request,linkUrl:s.param.linkUrl,onGetValue:r.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):o.createCommentVNode("",!0)])}const Qk=q(Ak,[["render",Ok],["__scopeId","data-v-4c2c760e"]]),hE="",xk={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Ne,attchViews:qe,TopPopup:de,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.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,s)=>{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,s){this.textTips=e,this.statusTips=t,this.typeTips=s,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},ii=e=>(o.pushScopeId("data-v-91c0258d"),e=e(),o.popScopeId(),e),Fk={class:"process-popup-content"},Uk={class:"process-pc-label"},Jk=ii(()=>o.createElementVNode("br",null,null,-1)),Pk=ii(()=>o.createElementVNode("div",null,[o.createTextVNode(" \u5BA1\u6279\u4EBA"),o.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Mk={class:"process-pc-value--people"},Lk={key:0,class:"process-pc-value--data"},jk={key:1,class:"process-pc-value--data",style:{color:"#888"}},Gk=[ii(()=>o.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Rk(e,t,s,n,i,r){const a=o.resolveComponent("TopTips"),c=o.resolveComponent("departPerson"),l=o.resolveComponent("TopPopup");return o.openBlock(),o.createElementBlock("div",Fk,[o.createElementVNode("template",null,[o.createElementVNode("div",Uk,[o.createElementVNode("div",null,[o.createTextVNode(o.toDisplayString(i.getFirstProcessNode.name)+" ",1),Jk,Pk])]),o.createElementVNode("div",{class:"process-pc-value",onClick:t[0]||(t[0]=p=>r.handleOpenPopup(i.getFirstProcessNode.id))},[o.createElementVNode("div",Mk,[i.partNode[i.getFirstProcessNode.id]&&i.partNode[i.getFirstProcessNode.id].length?(o.openBlock(),o.createElementBlock("div",Lk,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.partNode[i.getFirstProcessNode.id],(p,d)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(d==0?p:`,${p}`),1))),256))])):(o.openBlock(),o.createElementBlock("div",jk,Gk))])])]),o.createVNode(a,{ref:"topTips",text:i.textTips,statusTips:i.statusTips,type:i.typeTips},null,8,["text","statusTips","type"]),o.createVNode(l,{visible:i.visible,"onUpdate:visible":t[1]||(t[1]=p=>i.visible=p),titleText:"\u9009\u4EBA",isDrawer:!0},{default:o.withCtx(()=>[o.createVNode(c,o.mergeProps({visible:i.visible,request:s.param.request,businessId:s.param.formData.businessKey},i.entity,{onCallback:r.handleCallback,onCancel:r.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"])])}const qk=q(xk,[["render",Rk],["__scopeId","data-v-91c0258d"]]),Kk=Be({name:"TopProcess",components:{TopTab:Xp,TopPopup:de,TopTips:Ne},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,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!0}},data(){return{processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskId:"",taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,ProcessInsObj:{},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[],user:{},canCheck:!0,approveNode:{}}},watch:{processInstId:{async handler(e,t){this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/aws/repository/getTrackUrl",{params:{processInstId:this.processIntId,type:"mobile"}}).then(s=>{s.code==200&&(this.trackUrl=s.data)}),this.request.get("/aws/pis/findNodeParticipantRows",{params:{processInstId:this.processIntId}}).then(s=>{s.code==200&&(this.trackList=s.data)}),this.request.get("/aws/tis/getTaskCommentList",{params:{processInstId:this.processInstId,processBusinessKey:this.formData.businessKey}}).then(s=>{s.code==200&&(this.taskCommentList=s.data)}),this.getUserInfo(),this.request.get("/aws/pis/getProcessInstanceById",{params:{processInstId:this.processInstId}}).then(s=>{s.code==200&&(this.ProcessInsObj=s.data)}),await this.request.get("/aws/repository/queryTaskNodeList",{params:{processInstId:this.processInstId}}).then(s=>{if(s.code==200)if(this.taskNode=s.data,this.taskNodeList=s.data,this.taskNodeList.length==1){if(this.taskNodeList[0].taskState==4)return this.taskState=4,!1;this.taskNodeList[0].taskState==11&&(this.taskState=11),this.taskNodeList[0].taskId,this.handleGetProcessStatus(),this.handleGetUserTaskModel()}else this.taskNodeList.length>1?(this.taskNodeList.forEach(n=>{n.name=n.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 s,n;let e=[],t=this.taskNode&&this.taskNode[0]&&this.taskNode[0].taskState!=4;if(t&&!this.isView&&this.taskObj.completeButtonLabel){let i={};i.name=this.taskObj.completeButtonLabel,i.btnProps={type:"primary"},e.push(i),i.click=r=>{this.handleActionClose(),this.showOperation(Uy,r,this.request,this.taskObj.completeButtonAnnex)}}if(t&&!this.isView&&this.processStatus.currUserName){let i={};i.name="\u62D2\u7EDD",i.btnProps={type:"danger"},e.push(i),i.click=r=>{this.handleActionClose(),this.showOperation($y,r,this.request,this.taskObj.otherButtonAnnexList)}}if(t&&!this.isView&&this.taskObj.buttons&&this.taskObj.buttons.length&&this.taskObj.buttons.forEach(i=>{if(i.label==="\u9000\u56DE"){let r={};r.name=i.label,r.btnProps={type:"danger"},e.push(r),r.click=a=>{this.handleActionClose(),this.showOperation(gk,a,this.request,this.taskObj.otherButtonAnnexList)}}}),t&&!this.isView&&this.taskObj.ccTaskButtonLabel){let i={};i.name=this.taskObj.ccTaskButtonLabel,i.btnProps={type:"default"},i.click=r=>{this.handleActionClose(),this.showOperation(Qk,r,this.request,this.taskObj.ccTaskButtonAnnex)},e.push(i)}if(t&&!this.isView&&this.taskObj.delegateTaskButtonLabel){let i={};i.name=this.taskObj.delegateTaskButtonLabel,i.btnProps={type:"default"},i.click=r=>{this.handleActionClose(),this.showOperation(ey,r,this.request,this.taskObj.delegateTaskButtonAnnex)},e.push(i)}if(t&&!this.isView&&this.taskObj.counterSignLabel){let i={};i.name=this.taskObj.counterSignLabel,i.btnProps={type:"primary"},i.click=r=>{this.handleActionClose(),this.showOperation(OA,r,this.request,this.taskObj.counterSignButtonAnnex)},e.push(i)}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 i={};i.name="\u50AC\u529E",i.btnProps={type:"default"},i.click=r=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=r,this.popupContext=`\u786E\u5B9A${r}\u5417?`,this.handleTipsType="\u50AC\u529E"},e.push(i)}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 i={};i.name="\u64A4\u9500",i.btnProps={type:"default"},i.click=r=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=r,this.popupContext=`\u786E\u5B9A${r}\u5417?`,this.handleTipsType="\u64A4\u9500"},e.push(i)}return e},processCardHeight(){let e=210;return this.processStatus.status?this.processStatus.currUserName||(e-=40):e-=140,`calc(100vh - ${e}px)`}},methods:{handleTest(){this.visibleSong=!0},async getUserInfo(){let e=await this.request.get("/app/user/info");e.code===200&&(this.user=e.data||{})},async handleGetSimulation(e){this.handleTips("",!0,"loading");let t={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e},s=await this.request.post("/aws/tis/simulation",t);if(s.success){this.handleTips("",!1,"success"),this.nextNodeData=s.data;for(let n=0;n<this.nextNodeData.length;n++)this.approveNode=this.nextNodeData[n]}else{let n=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(n,"")}},async getOutgoingProcessNode(e,t){let s=await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:e,processNodeId:t}});if(s.code==200){if(s.data)for(let n=0;n<s.data.length;n++){let i=s.data[n];if(i.type!="UserTaskModel"){let r=await this.getOutgoingProcessNode(e,i.id);await r.map((a,c)=>{a.nodeName=a.incomingConditionItemList[0].compareValue}),i.childNode=r}}return this.handleTips("",!1,"success"),s.data}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.request.get("/aws/pis/getProcessStatus",{params:{processInstId:this.processInstId,taskId:this.taskNode.length?this.taskNode[0].taskId:""}}).then(e=>{e.code==200&&(this.processStatus=e.data,this.processStatus.userNodeGroup&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName]&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName].length>1?this.canCheck=!1:this.canCheck=!0)})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length&&this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data)})},async showOperation(e,t,s,n){if(this.beforeFunction&&!this.beforeFunction())return;if(this.processStatus.allUserNames&&this.processStatus.allUserNames.length==1&&this.taskNode[0]&&this.taskNode[0].nodeId){let r;this.getVars&&(r=this.getVars()),await this.handleGetSimulation(r)}s&&(this.operationParam.request=s,this.annexlabel=n),this.titleText=t,this.operationCom=e,this.$refs.TopPopup1.handleOpen(),this.operationParam.annex=n,this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"",this.operationParam.actionName=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,this.operationParam.isDocument=this.isDocument,this.operationParam.canCheck=this.canCheck,this.taskObj.commentModels.some(r=>this.operationParam.actionComplete=r!=null&&r.isDefault?r.actionName:"")},handleCancel(){},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.$refs.TopPopup1.handleClose()},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/aws/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),this.endFunction()):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.post("/aws/pis/revoke",{processInstId:this.ProcessInsObj.id,processBusinessKey:this.ProcessInsObj.processBusinessKey}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),this.endFunction()):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.processStatus.appId}}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(t=>{this.processBusiness=t.data,this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(s=>{this.getFirstProcessNode=s.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(qk,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(s=>{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,s){this.textTips=e,this.statusTips=t,this.typeTips=s,this.$refs.topTips.handleOpen()}}}),mE="",Yt=e=>(o.pushScopeId("data-v-bc5a7ad5"),e=e(),o.popScopeId(),e),Hk={class:"process-warp"},Yk={key:0,class:"process-main"},zk={class:"process-ml-item border"},Wk=Yt(()=>o.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),_k={class:"process-mli-value"},Zk={class:"process-ml-item border"},Xk=Yt(()=>o.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),$k={class:"process-mli-value"},eC={key:0,class:"process-ml-item"},tC=Yt(()=>o.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),sC={class:"process-mli-value"},nC={class:"process-mliv-jd"},oC=["slot"],iC={slot:"default",style:{}},rC=["slot"],aC={class:"process-btn"},cC={key:0,class:"footBtnRow"},lC=["onClick"],dC=[Yt(()=>o.createElementVNode("div",{class:"circle"},null,-1)),Yt(()=>o.createElementVNode("div",{class:"circle"},null,-1)),Yt(()=>o.createElementVNode("div",{class:"circle"},null,-1))],pC=["onClick"],uC=["onClick"];function hC(e,t,s,n,i,r){const a=o.resolveComponent("TopTab"),c=o.resolveComponent("TopPopup"),l=o.resolveComponent("TopTips");return o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",Hk,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(o.openBlock(),o.createElementBlock("div",Yk,[o.createElementVNode("div",zk,[Wk,o.createElementVNode("div",_k,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(o.openBlock(),o.createElementBlock("div",{key:0,class:"process-mliv-dd",style:o.normalizeStyle({background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)})},o.toDisplayString(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status),5)):o.createCommentVNode("",!0)])]),o.createElementVNode("div",Zk,[Xk,o.createElementVNode("div",$k,[o.createElementVNode("span",null,o.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(o.openBlock(),o.createElementBlock("div",eC,[tC,o.createElementVNode("div",sC,[o.createElementVNode("span",nC,o.toDisplayString(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`),1)])])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"process-card",style:o.normalizeStyle({height:e.processCardHeight})},[o.createVNode(a,{tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList},{default:o.withCtx(()=>[e.selfTapList&&e.selfTapList.length?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(e.selfTapList,(p,d)=>(o.openBlock(),o.createElementBlock("div",{key:d,slot:p.slot},[o.renderSlot(e.$slots,p.slot,{},void 0,!0)],8,oC))),128)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",iC,[o.renderSlot(e.$slots,"default",{},void 0,!0)]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.tapList,(p,d)=>(o.openBlock(),o.createElementBlock("div",{style:{},key:d,slot:p.slot},[o.renderSlot(e.$slots,p.slot,{},void 0,!0)],8,rC))),128))],64))]),_:3},8,["tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),o.createElementVNode("div",aC,[e.isAdditional?(o.openBlock(),o.createElementBlock("div",cC,[o.renderSlot(e.$slots,"btn",{},void 0,!0)])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?(o.openBlock(),o.createElementBlock("div",{key:0,class:"top-button",style:o.normalizeStyle(e.getBtnStyle("default"))}," \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ",4)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[e.formData.currentState==="\u5DF2\u64A4\u9500"||e.formData.currentState==="\u5DF2\u9A73\u56DE"||e.processStatus.status==="\u5DF2\u64A4\u9500"||e.processStatus.status==="\u5DF2\u9A73\u56DE"||e.processStatus.bizStatusName==="\u5DF2\u64A4\u9500"||e.processStatus.bizStatusName==="\u5DF2\u9A73\u56DE"?(o.openBlock(),o.createElementBlock("div",{key:0,class:"top-button",style:o.normalizeStyle(e.getBtnStyle("default")),onClick:t[0]||(t[0]=(...p)=>e.handleRestart&&e.handleRestart(...p))}," \u91CD\u65B0\u63D0\u4EA4 ",4)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.operBtn,(p,d)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[d<3?(o.openBlock(),o.createElementBlock("div",{class:"top-button",style:o.normalizeStyle(e.getBtnStyle(p.btnProps.type.toString())),key:p.name,onClick:u=>p.click(p.name)},o.toDisplayString(p.name),13,lC)):o.createCommentVNode("",!0)],64))),256))],64)):o.createCommentVNode("",!0),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?(o.openBlock(),o.createElementBlock("div",{key:1,class:"elips",onClick:t[1]||(t[1]=(...p)=>e.handleActionOpen&&e.handleActionOpen(...p))},dC)):o.createCommentVNode("",!0)],64))],64))])]),o.createVNode(c,{ref:"TopPopup1",cancel:e.handleCancel,comfig:e.handleComfig,titleText:e.titleText},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.operationCom),{ref:"operationRef",param:e.operationParam,onHandleClosePopup1:e.handleClosePopup1},null,40,["param","onHandleClosePopup1"]))]),_:1},8,["cancel","comfig","titleText"]),o.createVNode(c,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),o.createVNode(l,{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?(o.openBlock(),o.createElementBlock("div",{key:0,class:"top-elips",style:o.normalizeStyle(e.actionShow?"transform: translateY(0)":"transform: translateY(100%)")},[e.taskNodeShow?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(e.taskNodeList,p=>(o.openBlock(),o.createElementBlock("div",{class:"top-elips-items",onClick:d=>e.handleGet(p),key:p.taskId},o.toDisplayString(p.name),9,pC))),128)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.actionBtn,p=>(o.openBlock(),o.createElementBlock("div",{class:"top-elips-items",onClick:d=>p.click(p.name),key:p.name},o.toDisplayString(p.name),9,uC))),128)),o.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:t[2]||(t[2]=(...p)=>e.handleActionClose&&e.handleActionClose(...p))}," \u53D6\u6D88 ")],4)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"top-elips-mask",onClick:t[3]||(t[3]=(...p)=>e.handleActionClose&&e.handleActionClose(...p)),style:o.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4)])}const fC=q(Kk,[["render",hC],["__scopeId","data-v-bc5a7ad5"]]),mC=Be({name:"TopSubmitPopup",components:{TopPopup:de,TopDownSelect:Oc,PreviewImage:qn,departPerson:Ze,TopTips:Ne},props:{visible:{type:Boolean,default:!1},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{type:String,default:""},processName:{type:String,default:""},resubmit:{type:Boolean,default:!1},id:{type:String,default:""},businessType:{type:[String,Number]},todoParameter:{type:Object,default(){return{}}},isClearHistory:{type:Boolean,default:!1},title:{type:String,default:"\u6D4B\u8BD5"},showType:{type:String,default:"all"},beforeFunction:{type:Function,default:null}},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:[],selectDefaultValue:""}},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,processGroupName:this.processName}}).then(s=>{s.code==200&&(this.option=s.data,this.option&&this.option.length&&this.processName&&(this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.getAfferentParticipantNodeList(),this.getDiagramUrl(),this.handlefirstNode(this.checkedItem.id),this.getProcessInstance()))})},immediate:!0}},methods:{async getProcessInstance(){this.id&&await this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.id}}).then(e=>{e.code==200&&(this.processId=e.data.id)})},async handlefirstNode(e){e&&await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:e}}).then(t=>{t.code===200&&(this.firstPerson=t.data)})},handleChange(e,t){this.handleTips("",!0,"loading"),this.checkedItem=e,this.handlefirstNode(this.checkedItem.id),this.getAfferentParticipantNodeList(),this.getDiagramUrl(),this.$emit("change",e,t),this.$refs.topTips.handleClose()},getAfferentParticipantNodeList(){this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.firstPerson&&this.firstPerson.length&&(this.personList=e.data.slice(1)),this.$emit("change",this.checkedItem,e.data))})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenPerson(e){if(this.visiblePerson=!0,this.personObjId=e.id,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"};else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let t;e.routeTxt.companyIds.map((s,n)=>{t=s.rangeId}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],deptCode:t,multiple:e.type=="InclusiveGatewayModel"}}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let t;e.routeTxt.companyIds.map((s,n)=>{t=s.name}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel",subjectName:t}}},handleCallback(e){this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((t,s)=>{this.multiNodeParticipant[this.personObjId].push(t.uid),this.partNode[this.personObjId].push(t.name)}),this.visiblePerson=!1},handleCancel(){},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}if(this.beforeFunction){await this.beforeFunction(),await this.handleSongshen();return}await this.handleSongshen()},async handleSongshen(){this.handleTips("",!0,"loading"),this.resubmit?await this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(e=>{e.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")}):await this.request.post("/aws/pis/createAndStart",{title:this.title,processDefId:this.checkedItem.id,processBusinessKey:this.id,showType:this.showType,businessType:this.businessType,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameter}).then(e=>{e.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):e.code==499?this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(t=>{t.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.handleTips(t.msg,!0,"error")}):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleTips(e,t,s){this.textTips=e,this.statusTips=t,this.typeTips=s,this.$refs.topTips.handleOpen()}}}),kE="",gC=e=>(o.pushScopeId("data-v-2ee79b98"),e=e(),o.popScopeId(),e),AC={key:1,class:"person-views"},yC={class:"views-items"},kC={class:"views-items-name"},CC=gC(()=>o.createElementVNode("span",{class:"views-items-name--re"},"*",-1)),EC={class:"views-items-set"},bC={key:0},IC={key:0},BC={key:1},NC=["onClick"],wC={key:2,class:"person-views"},vC={class:"views-items"},VC={class:"views-items-name"},TC={class:"views-items-set"},SC={key:0},DC={key:0},OC={key:1},QC=["onClick"],xC={key:3,class:"person-views-white"},FC={class:"person-btn"};function UC(e,t,s,n,i,r){const a=o.resolveComponent("TopDownSelect"),c=o.resolveComponent("TopPopup"),l=o.resolveComponent("departPerson"),p=o.resolveComponent("PreviewImage"),d=o.resolveComponent("TopTips");return o.openBlock(),o.createElementBlock("div",null,[o.createVNode(c,{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:o.withCtx(()=>[o.createVNode(a,{option:e.option,onChange:e.handleChange,defaultValue:e.selectDefaultValue},null,8,["option","onChange","defaultValue"]),e.checkedItem.id?(o.openBlock(),o.createElementBlock("div",{key:0,class:"viewTrack",onClick:t[0]||(t[0]=u=>e.taskurlshow=!0)}," \u67E5\u770B\u6D41\u7A0B\u56FE ")):o.createCommentVNode("",!0),e.firstPerson&&e.firstPerson.length?(o.openBlock(),o.createElementBlock("div",AC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.firstPerson,(u,g)=>(o.openBlock(),o.createElementBlock("div",yC,[o.createElementVNode("div",kC,[o.createTextVNode(o.toDisplayString(u.name)+" ",1),CC]),o.createElementVNode("div",EC,[e.partNode[u.id]&&e.partNode[u.id].length?(o.openBlock(),o.createElementBlock("div",bC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.partNode[u.id],(y,k)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(k>=3?"":k==0?y:`,${y}`),1))),256)),e.partNode[u.id].length>3?(o.openBlock(),o.createElementBlock("span",IC,"...\u7B49"+o.toDisplayString(e.partNode[u.id].length)+"\u4EBA",1)):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",BC)),o.createElementVNode("div",{class:"views-items-set-btn",onClick:y=>e.handleOpenPerson(u)}," \u8BBE\u7F6E ",8,NC)])]))),256))])):o.createCommentVNode("",!0),e.personList&&e.personList.length?(o.openBlock(),o.createElementBlock("div",wC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.personList,(u,g)=>(o.openBlock(),o.createElementBlock("div",vC,[o.createElementVNode("div",VC,o.toDisplayString(u.name),1),o.createElementVNode("div",TC,[e.partNode[u.id]&&e.partNode[u.id].length?(o.openBlock(),o.createElementBlock("div",SC,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.partNode[u.id],(y,k)=>(o.openBlock(),o.createElementBlock("span",null,o.toDisplayString(k>=3?"":k==0?y:`,${y}`),1))),256)),e.partNode[u.id].length>3?(o.openBlock(),o.createElementBlock("span",DC,"...\u7B49"+o.toDisplayString(e.partNode[u.id].length)+"\u4EBA",1)):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",OC)),o.createElementVNode("div",{class:"views-items-set-btn",onClick:y=>e.handleOpenPerson(u)}," \u8BBE\u7F6E ",8,QC)])]))),256))])):o.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(o.openBlock(),o.createElementBlock("div",xC," \u65E0\u9700\u8BBE\u7F6E ")):o.createCommentVNode("",!0),o.createElementVNode("div",FC,[o.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"]),o.createVNode(c,{visible:e.visiblePerson,"onUpdate:visible":t[3]||(t[3]=u=>e.visiblePerson=u),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},{default:o.withCtx(()=>[o.createVNode(l,o.mergeProps({visible:e.visiblePerson},e.entity,{onCallback:e.handleCallback,onCancel:e.handleCancel}),null,16,["visible","onCallback","onCancel"])]),_:1},8,["visible"]),o.createVNode(p,{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"]),o.createVNode(d,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"])])}const JC=q(mC,[["render",UC],["__scopeId","data-v-2ee79b98"]]);Ee.TopProcess=fC,Ee.TopSumbitPopup=JC,Ee.ViewAttchList=cr,Ee.attchViews=qe,Object.defineProperties(Ee,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|