ui-process-h5 1.0.36 → 1.1.1
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/ui-process-h5.js +34 -38
- package/v2/ui-process-h5.umd.cjs +1 -1
- package/v2.7/ui-process-h5.js +34 -38
- package/v2.7/ui-process-h5.umd.cjs +1 -1
- package/v3/ui-process-h5.js +34 -38
- package/v3/ui-process-h5.umd.cjs +11 -11
|
@@ -64,4 +64,4 @@ See more tips at https://vuejs.org/guide/deployment.html`)},0);var da=function(t
|
|
|
64
64
|
left:0;
|
|
65
65
|
right:0;
|
|
66
66
|
margin: 0 auto;
|
|
67
|
-
`,document.body.appendChild(this.mainContainer)}message(n={}){let e=sessionStorage.getItem(this.sessionStorageName),i=e?JSON.parse(e):null;if(n.againBtn&&n.content&&i&&Array.isArray(i)&&i.includes(n.content))return;const s=Zy({type:n.type,content:n.content,duration:n.duration,delay:n.delay,againBtn:n.againBtn,minWidth:this.minWidth,maxWidth:this.maxWidth},this.mainContainer);this.mainContainer.appendChild(s.els),Ea(this.mainContainer),zy(s,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const Xy={components:{checked:Py,dcSwitch:jy,dcLoading:Yy},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(t,n){if(!t)return!1;this.$nextTick(()=>{this.getDetail(()=>{this.defaultBreadcrumb(),Q(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})})})}},isSon:{deep:!0,handler:function(t,n){let e=[];const i=this.checkedJson.map(s=>{const r=this.entityJson.findIndex(a=>a.id===s.id&&s.type==a.type&&s.type==2)>-1?t&&s.type==2?"4":s.type:s.orgRecordsType;return(r==4||s.type==1)&&e.push(s.id),{...s,orgRecordsType:r}});this.checkedJson=i.filter(s=>s.ancestors.split(",").findIndex(r=>e.indexOf(r)>-1)===-1)}},checkedArray:{deep:!0,immediate:!0,handler:function(t,n){if(Q(t)||!Q(this.businessId))return!1;this.getCards()}},isLoadingClose(t){t&&(this.isLoading=!1)}},computed:{queryImg(){return Wy},entityJson(){const t=this.checkedJson;return this.jsonData.map(n=>{const e=this.isQuery?this.breadcrumb_level.ancestors||"":n.ancestors,i=this.isQuery?this.breadcrumb_level.ancestorNames:n.ancestorNames,s=e+n.id+"__"+n.type,r=t.find(h=>h.uniqueId===s),a=!Q(r),o=a?!1:t.findIndex(h=>h.type===n.type&&h.id===n.id&&n.subjectId===h.subjectId)>-1,c=a?n.type==1||r.orgRecordsType==4:!1,p=Q(t)?0:c?n.counts:t.filter(h=>h.type!=1&&h.ancestors.indexOf(n.id)>-1).length,d=a?r.isNoDelete:!1;return{type:n.type,id:n.id,name:n.name,counts:Q(n.counts)?0:n.counts,num:p,phone:Ty(n.phone),uid:n.uid,iconName:ba(n.name,2),checked:a,ancestors:e,ancestorNames:i,deptName:Oy(n.ancestorNames,"/"),uniqueId:s,isDisabled:o,isLevel:c,subjectId:n.subjectId,sex:n.sex,avatar:Q(n.avatar)?"":n.avatar,isNoDelete:d}})},companyJson(){return this.entityJson.filter(t=>t.type==1)},deptJson(){return this.entityJson.filter(t=>t.type==2)},userJson(){return this.entityJson.filter(t=>t.type==3)},checkedNumber(){const t=this.checkedJson.filter(s=>s.type==1).length,n=this.checkedJson.filter(s=>s.type==2).length,e=this.checkedJson.filter(s=>s.type==3).length;let i=[];return t>0&&i.push(t+"\u4E2A\u7EC4\u7EC7"),n>0&&i.push(n+"\u4E2A\u90E8\u95E8"),e>0&&i.push(e+"\u4E2A\u6210\u5458"),Q(i)?"":"\u5DF2\u9009\u62E9"+i.join("\uFF0C")},breadcrumb_subjectId(){const t=this.breadcrumb.filter((n,e)=>n.value!=="-1");return Q(t)?"":t[0].value},breadcrumb_level(){const t=this.breadcrumb.filter((n,e)=>n.value!=="-1");return{ancestors:t.map(n=>n.value).join(","),ancestorNames:t.map(n=>n.name).join("/")}},isDept(){return this.jsonData.findIndex(t=>t.type==2)>-1&&this.isShowDept},isShowSubject(){return this.codeType.findIndex(t=>t==1)>-1},isShowDept(){return this.codeType.findIndex(t=>t==2)>-1},isNotLevel(){return this.isShowSubject&&this.codeType.length===1},isShowQuery(){return this.codeType.findIndex(t=>t==3)>-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 Q(this.checkedArray)?[]:this.checkedArray.filter(t=>t.isDeleteNo)}},mounted(){document.title=this.getTitle,this.getDetail(()=>{this.defaultBreadcrumb(),Q(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})})},methods:{handleSubmit(){if(this.isLoading)return!1;const t=Q(this.checkedJson)?[]:this.checkedJson.map(e=>({type:e.orgRecordsType,id:e.id,name:e.name,ancestors:e.ancestors,ancestorNames:e.ancestorNames,subjectId:e.subjectId,phone:Q(e.phone)?"":e.phone,sex:e.sex,uid:Q(e.uid)?"":e.uid}));if(Q(this.businessId))return this.$emit("callback",t);const n={businessId:this.businessId,orgRecords:this.checkedJson.map(e=>({type:e.orgRecordsType,bizId:e.id,ancestors:e.ancestors,ancestorNames:e.ancestorNames,uid:e.uid}))};this.isLoading=!0,this.request.post("/auth/component/org/save",n).then(e=>{e.code===200&&this.$emit("callback",t)}).finally(()=>{this.isLoadingClose&&(this.isLoading=!1)})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){this.getSearch(()=>{this.isQuery=Q(this.keyword)})},handleAllCheckbox(t){(this.isShowDept?this.entityJson:this.entityJson.filter(n=>n.type!=2)).forEach(n=>this.handleCheckbox(t,n))},handleCheckbox(t,n){if(n.isDisabled||n.isNoDelete||n.type==1&&!this.isShowSubject||n.type==2&&!this.isShowDept)return!1;if(t.currentTarget.checked){if(this.checkedJson.findIndex(a=>a.uniqueId===n.uniqueId)!=-1)return!1;const e=n.type==1?"0":n.ancestors,i=n.type==1?"":n.ancestorNames,s=this.isDept&&this.isSon&&n.type==2?"4":n.type,r={...n,ancestors:e,ancestorNames:i,orgRecordsType:s};return(n.type==1||s==4)&&(this.checkedJson=this.checkedJson.filter(a=>a.ancestors.indexOf(n.id)===-1)),this.getBoolChecked(n)?(t.currentTarget.checked=!1,!1):this.maxMultiple!==0&&this.checkedJson.length>=this.maxMultiple&&this.multiple?(t.currentTarget.checked=!1,new Ia().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(e=>e.uniqueId!==n.uniqueId)},handleBreadcrumb(t,n){if(t.disable||n+1==this.breadcrumb.length)return!1;switch(n){case 0:this.deptId=this.deptCode;break;case 1:this.deptId=0;break;default:this.deptId=t.value;break}this.subjectId=t.value==="-1"?"":this.breadcrumb_subjectId,this.keyword="",this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((e,i)=>i<n+1)})},handleLevel(t){if(t.isDisabled||t.isLevel)return!1;switch(t.type){case"1":this.deptId=0,this.subjectId=t.id,this.getSearch(()=>{this.breadcrumb.push({name:t.name,value:t.id})});break;case"2":this.deptId=t.id,this.subjectId=this.breadcrumb_subjectId,this.getSearch(()=>{this.breadcrumb.push({name:t.name,value:t.id})});break}},getBoolChecked(t){if(t.type!=3)return!1;const n=t.ancestors.split(","),e=this.checkedJson.filter(s=>s.type==2||s.type==1).find(s=>n.indexOf(s.id)>-1);let i=!1;return Q(e)||(e.type==1&&(new Ia().message({content:`\u5DF2\u9009\u7684\u7EC4\u7EC7\u3010${e.name}\u3011\u5B58\u5728${t.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),i=!0),e.type==4&&(new Ia().message({content:`\u5DF2\u9009\u7684\u90E8\u95E8\u3010${e.name}\u3011\u5B58\u5728${t.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),i=!0)),i},defaultBreadcrumb(){this.deptId=this.deptCode,this.subjectId="",Q(this.deptCode)&&(this.breadcrumb=[{name:"\u7EC4\u7EC7",value:"-1"}]),this.isSon=!1,this.jsonData=[],this.keyword="",this.isQuery=!0,this.isLoading=!1},getIsSon(){const t=this.entityJson.filter(e=>e.type==2),n=this.checkedJson.filter(e=>e.type==2);this.isSon=n.findIndex(e=>t.findIndex(i=>i.id===e.id&&e.orgRecordsType==4)>-1)>-1},getCheckedAll(){const t=this.entityJson.findIndex(n=>this.checkedJson.findIndex(e=>e.type===n.type&&e.id===n.id&&n.subjectId===e.subjectId)===-1);this.checkedAll=t===-1},getSearch(t=()=>{}){const n=this.codeType.findIndex(i=>i==3)>-1?3:this.codeType.findIndex(i=>i==2)>-1?2:1,e={source:this.source,type:this.type,deptId:this.deptId,subjectId:this.subjectId,keyword:this.keyword,showType:n};Q(e.deptId)&&delete e.deptId,Q(e.subjectId)&&delete e.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:e}).then(i=>{t(),this.jsonData=Q(i.data)||i.code!==200?[]:i.data;const s=this.breadcrumb.filter(r=>r.value!=="-1");if(!Q(this.jsonData)&&Q(s)&&(!Q(this.deptCode)||!Q(this.subjectName))){const r=i.data[0],a=r.ancestors.split(",");this.breadcrumb=a.map((o,c)=>({value:o,name:r.ancestorNames.split("/")[c],disable:c!==a.length-1&&a.length!==0}))}this.getIsSon(),this.getCheckedAll()}).finally(()=>{this.isLoading=!1})},getDetail(t=()=>{}){if(Q(this.businessId))return t(),!1;const n={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:n}).then(e=>{this.checkedJson=Q(e.data)||e.code!==200?[]:e.data.map(i=>{const s=i.type==4?"2":i.type,r=i.type==1?"":i.ancestors,a=r+i.bizId+"__"+s,o=this.isNoDelete.findIndex(c=>c.id===i.id||c.uid===i.uid)>-1;return{...i,ancestors:r,id:i.bizId,type:s,uniqueId:a,orgRecordsType:i.type,iconName:ba(i.name,2),sex:i.sex,uid:Q(i.uid)?"":i.uid,avatar:Q(i.avatar)?"":i.avatar,isNoDelete:o}}),t()})},getCards(){if(Q(this.checkedArray))return this.checkedJson=[];const t=this.checkedArray.map(n=>({type:n.type,id:Q(n.id)?null:n.id,uid:Q(n.uid)?null:n.uid,subjectId:Q(n.subjectId)?null:n.subjectId,deptId:Q(n.deptId)?null:n.deptId}));this.request.post("/auth/component/org/cards",{params:t}).then(n=>{this.checkedJson=Q(n.data)||n.code!==200?[]:n.data.map(e=>{const i=e.type==4?"2":e.type,s=e.type==1?"":e.ancestors,r=e.type==1?"":e.ancestorNames,a=s+e.id+"__"+i,o=this.isNoDelete.findIndex(c=>c.id===e.id||c.uid===e.uid)>-1;return{...e,ancestors:s,ancestorNames:r,id:e.id,type:i,uniqueId:a,orgRecordsType:e.type,iconName:ba(e.name,2),sex:e.sex,uid:Q(e.uid)?"":e.uid,avatar:Q(e.avatar)?"":e.avatar,isNoDelete:o}})})},getByName(t=()=>{}){const n={name:this.subjectName};this.request.get("/auth/component/org/subject/getByName",{params:n}).then(e=>{console.log("getByName",e),e.code===200&&(this.subjectId=e.data,t())})}}};var $y=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("main",{staticClass:"departPerson-main"},[e("div",{staticClass:"deper-top"},[t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowQuery,expression:"isShowQuery"}],staticClass:"deper-query"},[e("form",{staticClass:"form",attrs:{action:"javascript: void(0);"},on:{submit:function(i){i.preventDefault()}}},[e("i",{staticClass:"icon-chaxun iconfont chaxun"}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.keyword,expression:"keyword"}],staticClass:"input",attrs:{type:"search",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u3001\u624B\u673A\u53F7\u7801"},domProps:{value:t.keyword},on:{keyup:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:t.handleQuery.apply(null,arguments)},input:function(i){i.target.composing||(t.keyword=i.target.value)}}}),t.keyword.length>0?e("i",{staticClass:"icon-error-fill iconfont close",on:{click:t.handleEmpty}}):t._e()])]),t.isQuery?e("div",{staticClass:"deper-breadcrumb"},t._l(t.breadcrumb,function(i,s){return e("div",{key:i.value,staticClass:"deper-b-item",class:{disable:i.disable},on:{click:function(r){return t.handleBreadcrumb(i,s)}}},[e("span",[t._v(t._s(i.name))]),e("i",{staticClass:"icon-jiantouyou iconfont"})])}),0):t._e(),t.isQuery?e("div",{staticClass:"deper-all"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.checkedAll,expression:"checkedAll"}],staticClass:"deper-checkbox",attrs:{type:"checkbox",name:"deper-all",id:"deper-all"},domProps:{checked:Array.isArray(t.checkedAll)?t._i(t.checkedAll,null)>-1:t.checkedAll},on:{change:[function(i){var s=t.checkedAll,r=i.target,a=!!r.checked;if(Array.isArray(s)){var o=null,c=t._i(s,o);r.checked?c<0&&(t.checkedAll=s.concat([o])):c>-1&&(t.checkedAll=s.slice(0,c).concat(s.slice(c+1)))}else t.checkedAll=a},t.handleAllCheckbox]}}),e("label",{staticClass:"label",attrs:{for:"deper-all"}},[t._v("\u5168\u9009")])]):t._e()]),t.isQuery?e("div",{staticClass:"deper-center",class:t.getHight},[t.companyJson.length>0?e("div",{staticClass:"deper-c-depart"},t._l(t.companyJson,function(i){return e("div",{key:i.uniqueId,staticClass:"depart-item"},[e("label",{staticClass:"depart-left",class:{width:t.isNotLevel,isNoDelete:i.isNoDelete}},[e("input",{directives:[{name:"show",rawName:"v-show",value:t.isShowSubject,expression:"isShowSubject"},{name:"model",rawName:"v-model",value:i.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:i.isDisabled||i.isNoDelete,type:"checkbox"},domProps:{checked:Array.isArray(i.checked)?t._i(i.checked,null)>-1:i.checked},on:{change:[function(s){var r=i.checked,a=s.target,o=!!a.checked;if(Array.isArray(r)){var c=null,p=t._i(r,c);a.checked?p<0&&t.$set(i,"checked",r.concat([c])):p>-1&&t.$set(i,"checked",r.slice(0,p).concat(r.slice(p+1)))}else t.$set(i,"checked",o)},function(s){return t.handleCheckbox(s,i)}]}}),e("div",{staticClass:"depart-name"},[e("div",{staticClass:"name"},[t._v(t._s(i.name))]),i.num>0?e("div",{staticClass:"number"},[t._v("("),e("label",{staticClass:"label"},[t._v(t._s(i.num)+"/"+t._s(i.counts))]),t._v(")")]):e("div",{staticClass:"number"},[t._v("("+t._s(i.counts)+")")])])]),!t.isNotLevel&&i.counts>0?e("div",{staticClass:"depart-right",class:{isdisabled:i.isLevel},on:{click:function(s){return t.handleLevel(i)}}},[e("i",{staticClass:"icon-pedigree iconfont"}),e("span",[t._v("\u4E0B\u7EA7")])]):t._e()])}),0):t._e(),t.deptJson.length>0?e("div",{staticClass:"deper-c-depart"},t._l(t.deptJson,function(i){return e("div",{key:i.uniqueId,staticClass:"depart-item"},[e("label",{staticClass:"depart-left",class:{isNoDelete:i.isNoDelete}},[e("input",{directives:[{name:"show",rawName:"v-show",value:t.isShowDept,expression:"isShowDept"},{name:"model",rawName:"v-model",value:i.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:i.isDisabled||i.isNoDelete,type:"checkbox"},domProps:{checked:Array.isArray(i.checked)?t._i(i.checked,null)>-1:i.checked},on:{change:[function(s){var r=i.checked,a=s.target,o=!!a.checked;if(Array.isArray(r)){var c=null,p=t._i(r,c);a.checked?p<0&&t.$set(i,"checked",r.concat([c])):p>-1&&t.$set(i,"checked",r.slice(0,p).concat(r.slice(p+1)))}else t.$set(i,"checked",o)},function(s){return t.handleCheckbox(s,i)}]}}),e("div",{staticClass:"depart-name"},[e("div",{staticClass:"name"},[t._v(t._s(i.name))]),i.num>0?e("div",{staticClass:"number"},[t._v("("),e("label",[t._v(t._s(i.num)+"/"+t._s(i.counts))]),t._v(")")]):e("div",{staticClass:"number"},[t._v("("+t._s(i.counts)+")")])])]),i.counts>0?e("div",{staticClass:"depart-right",class:{isdisabled:i.isLevel},on:{click:function(s){return t.handleLevel(i)}}},[e("i",{staticClass:"icon-pedigree iconfont"}),e("span",[t._v("\u4E0B\u7EA7")])]):t._e()])}),0):t._e(),t.userJson.length>0?e("div",{staticClass:"deper-c-user"},t._l(t.userJson,function(i){return e("label",{key:i.uniqueId,staticClass:"user-item",class:{isNoDelete:i.isNoDelete}},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:i.isDisabled||i.isNoDelete,type:"checkbox"},domProps:{checked:Array.isArray(i.checked)?t._i(i.checked,null)>-1:i.checked},on:{change:[function(s){var r=i.checked,a=s.target,o=!!a.checked;if(Array.isArray(r)){var c=null,p=t._i(r,c);a.checked?p<0&&t.$set(i,"checked",r.concat([c])):p>-1&&t.$set(i,"checked",r.slice(0,p).concat(r.slice(p+1)))}else t.$set(i,"checked",o)},function(s){return t.handleCheckbox(s,i)}]}}),e("div",{staticClass:"user-icon"},[i.avatar.length<1?e("span",[t._v(t._s(i.iconName))]):e("img",{attrs:{src:i.avatar}})]),e("div",{staticClass:"user-name"},[e("div",{staticClass:"span"},[t._v(t._s(i.name))]),e("div",{staticClass:"phone"},[t._v(t._s(i.phone))])])])}),0):t._e()]):e("div",{staticClass:"deper-search"},[t._e(),e("div",{staticClass:"deper-search-section"},[t._e(),e("div",{staticClass:"search-user"},[e("div",{staticClass:"search-title"},[t._v("\u8054\u7CFB\u4EBA")]),t._l(t.userJson,function(i){return e("label",{key:i.uniqueId,staticClass:"user-item"},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:i.isDisabled,type:"checkbox"},domProps:{checked:Array.isArray(i.checked)?t._i(i.checked,null)>-1:i.checked},on:{change:[function(s){var r=i.checked,a=s.target,o=!!a.checked;if(Array.isArray(r)){var c=null,p=t._i(r,c);a.checked?p<0&&t.$set(i,"checked",r.concat([c])):p>-1&&t.$set(i,"checked",r.slice(0,p).concat(r.slice(p+1)))}else t.$set(i,"checked",o)},function(s){return t.handleCheckbox(s,i)}]}}),e("div",{staticClass:"user-icon"},[e("span",[t._v(t._s(i.iconName))])]),e("div",{staticClass:"user-name"},[e("div",{staticClass:"span"},[t._v(t._s(i.name))]),e("div",{staticClass:"phone"},[t._v(t._s(i.phone))]),e("div",{staticClass:"txt"},[t._v(t._s(i.ancestorNames))])])])})],2)])]),t.isDept?e("div",{staticClass:"deper-son"},[e("span",[t._v("\u5305\u542B\u5B50\u7EA7")]),e("dc-switch",{attrs:{modelValue:t.isSon,name:"isSone"},on:{"update:modelValue":function(i){t.isSon=i},"update:model-value":function(i){t.isSon=i}}})],1):t._e(),e("div",{staticClass:"deper-bottom"},[e("div",{staticClass:"deper-b-checked",on:{click:function(i){t.isShowChecked=!0}}},[e("span",[t._v(t._s(t.checkedNumber))]),t.checkedNumber.length>0?e("i",{staticClass:"icon-jiantouyou iconfont"}):t._e()]),e("div",{staticClass:"deper-b-btn",on:{click:t.handleSubmit}},[t._v("\u786E\u5B9A")])]),e("checked",{attrs:{visible:t.isShowChecked,checkedJson:t.checkedJson},on:{"update:visible":function(i){t.isShowChecked=i},"update:checkedJson":function(i){t.checkedJson=i},"update:checked-json":function(i){t.checkedJson=i}},scopedSlots:t._u([{key:"user",fn:function(i){var s=i.item;return[t._t("checkedUser",null,{item:s})]}}],null,!0)}),t.isLoading?e("dcLoading"):t._e()],1)},tC=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"depart-item"},[e("label",{staticClass:"depart-left"},[e("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),e("div",{staticClass:"depart-name"},[e("div",{staticClass:"name"},[t._v("\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8")]),e("div",{staticClass:"number"},[t._v("("),e("label",[t._v("100/100")]),t._v(")")])])])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"depart-item"},[e("label",{staticClass:"depart-left"},[e("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),e("div",{staticClass:"depart-name"},[e("div",{staticClass:"name"},[t._v("\u6280\u672F\u90E8")]),e("div",{staticClass:"number"},[t._v("(80)")])])])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"depart-item"},[e("label",{staticClass:"depart-left"},[e("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),e("div",{staticClass:"depart-name"},[e("div",{staticClass:"name"},[t._v("\u5F00\u53D1\u90E8")]),e("div",{staticClass:"number"},[t._v("("),e("label",[t._v("100/100")]),t._v(")")])])])])}];const lp={};var eC=as(Xy,$y,tC,!1,nC,null,null,null);function nC(t){for(let n in lp)this[n]=lp[n]}const Ie=function(){return eC.exports}();var iC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-popup-content"},[t._m(0),e("div",{staticClass:"process-pc-value"},[e("div",{staticClass:"process-popup-textarea"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:t.commentMsg},on:{input:function(i){i.target.composing||(t.commentMsg=i.target.value)}}})])]),t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&t.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[e("div",[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),e("div",{staticClass:"process-pc-value",on:{click:function(a){return t.handleOpenPopup(i.id)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[i.id],function(a,o){return e("span",[t._v(" "+t._s(o==0?a:`,${a}`)+" ")])}),0):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(i){return[i.type!="endEvent"&&t.isOption(i.humanPerformerName)?[e("div",{staticClass:"process-pc-label"},[t._v(" "+t._s(i.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),e("div",{staticClass:"process-pc-value",on:{click:function(s){return t.handleOpenPopup(i.id)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[i.id],function(s,r){return e("span",[t._v(" "+t._s(r==0?s:`,${s}`)+" ")])}),0):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t._e()]:t._e(),e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),e("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return t.visible=i}}},[e("departPerson",t._b({attrs:{visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(i){t.visible=i},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),t.labels=="5"?e("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},sC=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-pc-label"},[t._v(" \u52A0\u7B7E\u7406\u7531\uFF1A"),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const Ab="",rC={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:me,TopPopup:Qt,departPerson:Ie},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(t,n){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel,t.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":t.outGatewayUserTaskModel.length&&(t.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):t.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(t){this.visible=!0,this.partObjId=t},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let t="";this.multiNodeParticipant[this.partObjId].map((n,e)=>{e==0?t=n:t=`${t} ${n}`}),this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/createDynamicTask",{title:this.param.formData.title||this.param.formData.reason||this.param.formData.meetingTheme,participant:t,processInstId:this.param.processInstId,adHocType:2,parentTaskInstId:this.param.taskInstId,reason:this.commentMsg}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((n,e)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(t){this.attchLists=t},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((e,i)=>{e.size=e.fileSize,e.format=e.originFileName.substring(e.originFileName.lastIndexOf(".")+1),e.uploadTime=e.createTime,e.processInstId=this.param.processInstId,e.taskInstId=this.param.taskInstId,e.name=e.originFileName});let t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},up={};var aC=st(rC,iC,sC,!1,oC,"b04c3b72",null,null);function oC(t){for(let n in up)this[n]=up[n]}const cC=function(){return aC.exports}();var lC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-popup-content"},[t._m(0),e("div",{staticClass:"process-pc-value"},[e("div",{staticClass:"process-popup-textarea"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:t.commentMsg},on:{input:function(i){i.target.composing||(t.commentMsg=i.target.value)}}})])]),t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&t.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[e("div",[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),e("div",{staticClass:"process-pc-value",on:{click:function(a){return t.handleOpenPopup(i.id)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[i.id],function(a,o){return e("span",[t._v(" "+t._s(o==0?a:`,${a}`)+" ")])}),0):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(i){return[i.type!="endEvent"&&t.isOption(i.humanPerformerName)?[e("div",{staticClass:"process-pc-label"},[t._v(" "+t._s(i.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),e("div",{staticClass:"process-pc-value",on:{click:function(s){return t.handleOpenPopup(i.id)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[i.id],function(s,r){return e("span",[t._v(" "+t._s(r==0?s:`,${s}`)+" ")])}),0):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t._e()]:t._e(),e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),e("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return t.visible=i}}},[e("departPerson",t._b({attrs:{visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(i){t.visible=i},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),t.labels=="1"?e("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},uC=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-pc-label"},[t._v(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const yb="",pC={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:me,TopPopup:Qt,departPerson:Ie},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(t,n){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel,t.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":t.outGatewayUserTaskModel.length&&(t.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):t.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(t){this.visible=!0,this.partObjId=t},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let t="";this.multiNodeParticipant[this.partObjId].map((n,e)=>{e==0?t=n:t=`${t} ${n}`}),this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/delegate",{delegateReason:this.commentMsg,taskInstId:this.param.taskInstId,targetUID:t}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((n,e)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(t){this.attchLists=t},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((e,i)=>{e.size=e.fileSize,e.format=e.originFileName.substring(e.originFileName.lastIndexOf(".")+1),e.uploadTime=e.createTime,e.processInstId=this.param.processInstId,e.taskInstId=this.param.taskInstId,e.name=e.originFileName});let t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},pp={};var dC=st(pC,lC,uC,!1,fC,"4e763a94",null,null);function fC(t){for(let n in pp)this[n]=pp[n]}const hC=function(){return dC.exports}(),vC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSm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yKrbyDHiBZkABH5dKts50mIKUhAY461dpgF11ASkECHA3Ktt6W2oAshQQ46lVqo50AJAoJcDQq2brbAshB7/3fJ5n7R3K+2MPmrm6q2K2FAgByrvr97p2ZvTez/V+WOv082tbunv7yFB8JBQDkUpr3HeW1mf1gZt9sa4+AIcHESZAAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6ikAIHo5J2KHAgDiEIulegoAiF7OidihAIA4xGKpngIAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",Cb="";var mC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-popup-content"},[t.param.isDocument?e("div",{staticClass:"process-pc-label"},[t._v(" \u5FEB\u6377\u56DE\u590D ")]):t._e(),t.param.isDocument?e("div",{staticClass:"process-pc-value",staticStyle:{display:"flex"}},[e("div",{staticClass:"process-tag",on:{click:function(){return t.commentMsg="\u540C\u610F"}}},[t._v(" \u540C\u610F ")]),e("div",{staticClass:"process-tag",on:{click:function(){return t.commentMsg="\u5982\u62DF"}}},[t._v(" \u5982\u62DF ")]),e("div",{staticClass:"process-tag",on:{click:function(){return t.commentMsg="\u5DF2\u9605"}}},[t._v(" \u5DF2\u9605 ")])]):t._e(),t._m(0),e("div",{staticClass:"process-pc-value"},[e("div",{staticClass:"process-popup-textarea"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:t.commentMsg},on:{input:function(i){i.target.composing||(t.commentMsg=i.target.value)}}})])]),t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&t.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[e("div",{staticClass:"process-pc-label"},[e("div",[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])])]),e("div",{staticClass:"process-pc-value",on:{click:function(a){return t.handleOpenPopup(i)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",{staticClass:"process-pc-value--data"},[e("span",[t._v(" "+t._s(t.partNode[i.id].join(","))+" ")])]):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:[e("div",{staticClass:"process-pc-label"},[t._v(" "+t._s(i.userTaskModelDTO.name)+" ")])]]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(i){return[e("div",{staticClass:"process-pc-label"},[t._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),e("div",{staticClass:"process-pc-value"},[e("div",{staticClass:"process-radio"},t._l(i.childNode,function(s){return e("div",{staticClass:"process-radio-item",class:s.id==t.radioCheck?"process-radio-item--check":"",on:{click:function(r){return t.handleNode(s)}}},[e("span",[s.id==t.radioCheck?e("img",{staticClass:"process-radio-item-check",attrs:{src:t.check}}):t._e()]),t._v(" "+t._s(s.nodeName)+" ")])}),0)])]}),t.radioCheck?[t.radioCheckChild&&t.radioCheckChild.length?t._l(t.radioCheckChild,function(i){return e("div",[e("div",{staticClass:"process-pc-label",on:{click:function(s){return t.handleSaveNode(i.id)}}},[e("div",{staticClass:"process-checkbox"},[t._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279:"),e("br"),e("div",{staticClass:"process-checkbox-item"},[t._v(" "+t._s(i.nodeName)+" "),e("span",[t.radioCheckNameList.includes(i.id)?e("img",{staticClass:"process-checkbox-item-check",attrs:{src:t.checkS}}):t._e()])])])]),e("div",{staticClass:"process-pc-value",on:{click:function(s){return t.handleOpenPopup(i)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",{staticClass:"process-pc-value--data"},[e("span",[t._v(" "+t._s(t.partNode[i.id].join(","))+" ")])]):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])])}):[e("div",{staticClass:"process-pc-label"},[t._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 ")]),e("div",{staticClass:"process-pc-value"},[t._v(" "+t._s(t.radioCheckName)+" ")])]]:t._e()]:t._e()]:t._e(),e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),e("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return t.visible=i}}},[e("departPerson",t._b({attrs:{visible:t.visible},on:{"update:visible":function(i){t.visible=i},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),t.labels=="1"?e("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},gC=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-pc-label"},[t._v(" \u5BA1\u6279\u610F\u89C1 "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const bb="",AC={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:me,TopPopup:Qt,departPerson:Ie},computed:{check(){return Uc},checkS(){return vC}},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(t,n){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleSaveNode(t){this.radioCheckNameList.includes(t)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(t),1):this.radioCheckNameList.push(t)},handleNode(t){this.radioCheck=t.id,this.radioCheckName=t.nodeName,this.radioCheckChild=t.childNode,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[t.incomingConditionItemList[0].itemName]=t.incomingConditionItemList[0].compareValue):this.gateVars[t.incomingConditionItemList[0].itemName]=t.incomingConditionItemList[0].compareValue)},handleOpenPopup(t){if(this.visible=!0,this.partObjId=t.id,t.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"){let n,e=[];t.routeTxt.companyIds.map((i,s)=>{n=i.name}),this.multiNodeParticipant[t.id]&&this.multiNodeParticipant[t.id].length&&this.multiNodeParticipant[t.id].map((i,s)=>{e.push({type:3,uid:i})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel",subjectName:n,checkedArray:e}}else if(t.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"){let n,e=[];t.routeTxt.companyIds.map((i,s)=>{n=i.rangeId}),this.multiNodeParticipant[t.id]&&this.multiNodeParticipant[t.id].length&&this.multiNodeParticipant[t.id].map((i,s)=>{e.push({type:3,uid:i})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel",deptCode:n,checkedArray:e}}else{let n=[];this.multiNodeParticipant[t.id]&&this.multiNodeParticipant[t.id].length&&this.multiNodeParticipant[t.id].map((e,i)=>{n.push({type:3,uid:e})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel",checkedArray:n}}},async confirm(){if(!this.commentMsg){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}let t={};if(this.radioCheckNameList&&this.radioCheckNameList.length){let n=0;if(this.radioCheckNameList.map((e,i)=>{(!this.multiNodeParticipant[e]||!this.multiNodeParticipant[e].length)&&(n+=1),t[e]=this.multiNodeParticipant[e]}),n>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}t=this.multiNodeParticipant}this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/complete",{actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskInstId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:t}).then(n=>{if(n.code==200){if(this.attchLists.length>0){this.uploadAttch();return}this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""}else this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((n,e)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(t){this.attchLists=t},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((e,i)=>{e.size=e.fileSize,e.format=e.originFileName.substring(e.originFileName.lastIndexOf(".")+1),e.uploadTime=e.createTime,e.processInstId=this.param.processInstId,e.taskInstId=this.param.taskInstId,e.name=e.originFileName});let t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},dp={};var yC=st(AC,mC,gC,!1,CC,"c5d4bcba",null,null);function CC(t){for(let n in dp)this[n]=dp[n]}const bC=function(){return yC.exports}();var EC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-popup-content"},[t._m(0),e("div",{staticClass:"process-pc-value"},[e("div",{staticClass:"process-popup-textarea"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:t.commentMsg},on:{input:function(i){i.target.composing||(t.commentMsg=i.target.value)}}})])]),t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&t.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[e("div",[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),e("div",{staticClass:"process-pc-value",on:{click:function(a){return t.handleOpenPopup(i.id)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[i.id],function(a,o){return e("span",[t._v(" "+t._s(o==0?a:`,${a}`)+" ")])}),0):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(i){return[i.type!="endEvent"&&t.isOption(i.humanPerformerName)?[e("div",{staticStyle:{"font-size":"15px"}},[t._v(" "+t._s(i.name)+" ")]),e("div",{staticClass:"process-pc-label"},[t._v(" \u5BA1\u6279\u4EBA "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),e("div",{staticClass:"process-pc-value",on:{click:t.handleOpenPopup}},[e("div",{staticClass:"process-pc-value--people"},[t._v(" "+t._s(234)+" ")])])]:t._e()]})]:t._e()]:t._e(),e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),e("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return t.visible=i}}},[e("departPerson",t._b({attrs:{visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(i){t.visible=i},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),t.labels=="\u62D2\u7EDD"?e("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},IC=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-pc-label"},[t._v(" \u62D2\u7EDD\u7406\u7531\uFF1A "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const Eb="",kC={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:me,TopPopup:Qt,departPerson:Ie},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(t){this.visible=!0,this.partObjId=t},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/reject",{commentMsg:this.commentMsg,taskInstId:this.param.taskInstId}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((n,e)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(t){this.attchLists=t},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((e,i)=>{e.size=e.fileSize,e.format=e.originFileName.substring(e.originFileName.lastIndexOf(".")+1),e.uploadTime=e.createTime,e.processInstId=this.param.processInstId,e.taskInstId=this.param.taskInstId,e.name=e.originFileName});let t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},fp={};var wC=st(kC,EC,IC,!1,NC,"03e6902a",null,null);function NC(t){for(let n in fp)this[n]=fp[n]}const xC=function(){return wC.exports}(),DC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAX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+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",OC={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(t,n){t&&t.length&&(this.lists=t)},immediate:!0,deep:!0},defaultValue:{handler(t,n){this.active=t;let e=this.lists.filter((i,s)=>i.id==t);this.activeItem=e[0],this.$emit("change",this.activeItem)}}},computed:{arrow(){return DC},check(){return TC}},methods:{handleExpand(){this.expand?this.expand=!1:this.expand=!0},handleClick(t,n){this.active=t.id,this.activeItem=t,this.expand=!1,this.$emit("change",this.activeItem,this.lists)}}};var SC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"top-select"},[e("div",{staticClass:"top-select-menu",class:[t.border&&"top-select-menu-border",!t.activeItem.name&&"top-select-menu-placeholder"],on:{click:t.handleExpand}},[t._v(" "+t._s(t.activeItem.name?t.activeItem.name:t.placeholder)+" "),e("img",{staticClass:"top-select-menu--arrow",class:[t.expand?"arrow-active":""],attrs:{src:t.arrow}})]),t.maskShow?e("div",{staticClass:"top-select-option-mask",style:t.expand?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"}):t._e(),t.lists&&t.lists.length?e("div",{staticClass:"top-select-option",class:[t.border&&"top-select-option-border"],style:`${t.expand?"transform: translateY(2%);visibility: visible; opacity: 1;":"transform: translateY(-50%);visibility: hidden; opacity: 0"};${t.optionStyle?t.optionStyle:""}`},t._l(t.lists,function(i,s){return e("div",{key:i.id,staticClass:"option-items",class:[t.active==i.id?"option-items-active":""],on:{click:function(r){return t.handleClick(i,s)}}},[t._v(" "+t._s(i.name)+" "),t.active==i.id?e("img",{staticClass:"option-items-check",attrs:{src:t.check}}):t._e()])}),0):t._e()])},BC=[];const Ib="",hp={};var _C=st(OC,SC,BC,!1,QC,"3b51c309",null,null);function QC(t){for(let n in hp)this[n]=hp[n]}const vp=function(){return _C.exports}();var FC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-popup-content"},[t._m(0),e("div",{staticClass:"process-pc-value",staticStyle:{display:"inline-block",width:"50%"}},[e("TopDownSelect",{attrs:{option:t.option,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},on:{change:t.handleChange}})],1),t._m(1),e("div",{staticClass:"process-pc-value"},[e("div",{staticClass:"process-popup-textarea"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:t.commentMsg},on:{input:function(i){i.target.composing||(t.commentMsg=i.target.value)}}})])]),e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),t.labels=="\u9000\u56DE"?e("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],1)},PC=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-pc-label",staticStyle:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[t._v(" \u9000\u56DE\u8282\u70B9\uFF1A "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-pc-label"},[t._v(" \u9000\u56DE\u7406\u7531\uFF1A "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const kb="",MC={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:me,TopPopup:Qt,departPerson:Ie,TopDownSelect:vp},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:""}},watch:{param:{async handler(t,n){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{getReturnNode(){this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(t=>{t.code===200&&(this.option=t.data)})},handleChange(t){this.nodeId=t.id},handleOpenPopup(t){this.visible=!0,this.partObjId=t},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,isCompensation:!1,targetActivityId:this.nodeId}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((n,e)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(t){this.attchLists=t},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((e,i)=>{e.size=e.fileSize,e.format=e.originFileName.substring(e.originFileName.lastIndexOf(".")+1),e.uploadTime=e.createTime,e.processInstId=this.param.processInstId,e.taskInstId=this.param.taskInstId,e.name=e.originFileName});let t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},mp={};var VC=st(MC,FC,PC,!1,UC,"409b85c5",null,null);function UC(t){for(let n in mp)this[n]=mp[n]}const JC=function(){return VC.exports}();var LC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-popup-content"},[t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&t.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[e("div",[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),e("div",{staticClass:"process-pc-value",on:{click:function(a){return t.handleOpenPopup(i.id)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[i.id],function(a,o){return e("span",[t._v(" "+t._s(o==0?a:`,${a}`)+" ")])}),0):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(i){return[i.type!="endEvent"?[e("div",[t._v(" \u5BA1\u6279\u4EBA "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),e("div",{staticClass:"process-pc-value",on:{click:function(s){return t.handleOpenPopup(i.id)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[i.id],function(s,r){return e("span",[t._v(" "+t._s(r==0?s:`,${s}`)+" ")])}),0):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t._e()]:t._e(),e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),e("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return t.visible=i}}},[e("departPerson",t._b({attrs:{visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(i){t.visible=i},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),t.labels=="2"?e("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},jC=[];const wb="",GC={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:me,TopPopup:Qt,departPerson:Ie},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(t,n){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel,t.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":t.outGatewayUserTaskModel.length&&(t.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):t.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(t){this.visible=!0,this.partObjId=t},async confirm(){this.handleTips("",!0,"loading");let t="";this.multiNodeParticipant[this.partObjId].map((n,e)=>{e==0?t=n:t=`${t} ${n}`}),await this.param.request.post("/aws/tis/createCCTask",{processInstId:this.param.processInstId,title:this.param.formData.title||this.param.formData.reason||this.param.formData.meetingTheme,parentTaskInstId:this.param.taskInstId,participant:t}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal()):this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((n,e)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(t){this.attchLists=t},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((e,i)=>{e.size=e.fileSize,e.format=e.originFileName.substring(e.originFileName.lastIndexOf(".")+1),e.uploadTime=e.createTime,e.processInstId=this.param.processInstId,e.taskInstId=this.param.taskInstId,e.name=e.originFileName});let t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},gp={};var RC=st(GC,LC,jC,!1,qC,"4423f9f0",null,null);function qC(t){for(let n in gp)this[n]=gp[n]}const KC=function(){return RC.exports}();var HC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-popup-content"},[[e("div",{staticClass:"process-pc-label"},[e("div",[t._v(" "+t._s(t.getFirstProcessNode.name)+" "),e("br"),t._m(0)])]),e("div",{staticClass:"process-pc-value",on:{click:function(i){return t.handleOpenPopup(t.getFirstProcessNode.id)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[t.getFirstProcessNode.id]&&t.partNode[t.getFirstProcessNode.id].length?e("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[t.getFirstProcessNode.id],function(i,s){return e("span",[t._v(" "+t._s(s==0?i:`,${i}`)+" ")])}),0):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])],e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),e("TopPopup",{attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return t.visible=i}}},[e("departPerson",t._b({attrs:{visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(i){t.visible=i},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1)],2)},YC=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[t._v(" \u5BA1\u6279\u4EBA"),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const Nb="",WC={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:me,TopPopup:Qt,departPerson:Ie},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},getFirstProcessNode:{}}},watch:{param:{handler(t,n){console.log("handler::::",t),this.getFirstProcessNode=t.getFirstProcessNode,t.getFirstProcessNode&&this.getFirstProcessNode&&(t.getFirstProcessNode.type=="userTask"||t.getFirstProcessNode.type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):t.getFirstProcessNode.type=="ExclusiveGatewayModel"||t.getFirstProcessNode.type=="InclusiveGatewayModel")},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param)},methods:{handleOpenPopup(t){this.visible=!0,this.partObjId=t},async confirm(){let t={isClearHistory:!1,processInstId:this.param.processInstId,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant};this.handleTips("",!0,"loading"),await this.param.request.post("/aws/pis/reactivate",t).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal()):this.handleTips(n.msg,!0,"error")})},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((n,e)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),console.log("callback_OK",t,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},isOption(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Ap={};var ZC=st(WC,HC,YC,!1,zC,"0f1b413c",null,null);function zC(t){for(let n in Ap)this[n]=Ap[n]}const XC=function(){return ZC.exports}(),$C={name:"TopProcess",components:{TopTab:bv,TopPopup:Qt,TopTips:Kt},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(t,n){this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,t&&(this.request.get("/aws/repository/getTrackUrl",{params:{processInstId:this.processIntId,type:"mobile"}}).then(e=>{e.code==200&&(this.trackUrl=e.data)}),this.request.get("/aws/pis/findNodeParticipantRows",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200&&(this.trackList=e.data)}),this.request.get("/aws/tis/getTaskCommentList",{params:{processInstId:this.processInstId,processBusinessKey:this.formData.businessKey}}).then(e=>{e.code==200&&(this.taskCommentList=e.data)}),this.getUserInfo(),this.request.get("/aws/pis/getProcessInstanceById",{params:{processInstId:this.processInstId}}).then(e=>{e.code==200&&(this.ProcessInsObj=e.data)}),await this.request.get("/aws/repository/queryTaskNodeList",{params:{processInstId:this.processInstId}}).then(e=>{if(e.code==200)if(this.taskNode=e.data,this.taskNodeList=e.data,this.taskNodeList.length==1){if(this.taskNodeList[0].taskState==4)return this.taskState=4,!1;this.taskNodeList[0].taskState==11&&(this.taskState=11),this.taskNodeList[0].taskId,this.handleGetProcessStatus(),this.handleGetUserTaskModel()}else this.taskNodeList.length>1?(this.taskNodeList.forEach(i=>{i.name=i.nodeName}),this.taskNodeShow=!0,this.actionShow=!0):(this.handleGetProcessStatus(),this.handleGetUserTaskModel())}))},immediate:!0,deep:!0}},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){var e,i;let t=[],n=this.taskNode&&this.taskNode[0]&&this.taskNode[0].taskState!=4;if(n&&!this.isView&&this.taskObj.completeButtonLabel){let s={};s.name=this.taskObj.completeButtonLabel,s.btnProps={type:"primary"},t.push(s),s.click=r=>{this.handleActionClose(),this.showOperation(bC,r,this.request,this.taskObj.completeButtonAnnex)}}if(n&&!this.isView&&this.processStatus.currUserName){let s={};s.name="\u62D2\u7EDD",s.btnProps={type:"danger"},t.push(s),s.click=r=>{this.handleActionClose(),this.showOperation(xC,r,this.request,this.taskObj.otherButtonAnnexList)}}if(n&&!this.isView&&this.taskObj.buttons&&this.taskObj.buttons.length&&this.taskObj.buttons.forEach(s=>{if(s.label==="\u9000\u56DE"){let r={};r.name=s.label,r.btnProps={type:"danger"},t.push(r),r.click=a=>{this.handleActionClose(),this.showOperation(JC,a,this.request,this.taskObj.otherButtonAnnexList)}}}),n&&!this.isView&&this.taskObj.ccTaskButtonLabel){let s={};s.name=this.taskObj.ccTaskButtonLabel,s.btnProps={type:"default"},s.click=r=>{this.handleActionClose(),this.showOperation(KC,r,this.request,this.taskObj.ccTaskButtonAnnex)},t.push(s)}if(n&&!this.isView&&this.taskObj.delegateTaskButtonLabel){let s={};s.name=this.taskObj.delegateTaskButtonLabel,s.btnProps={type:"default"},s.click=r=>{this.handleActionClose(),this.showOperation(hC,r,this.request,this.taskObj.delegateTaskButtonAnnex)},t.push(s)}if(n&&!this.isView&&this.taskObj.counterSignLabel){let s={};s.name=this.taskObj.counterSignLabel,s.btnProps={type:"primary"},s.click=r=>{this.handleActionClose(),this.showOperation(cC,r,this.request,this.taskObj.counterSignButtonAnnex)},t.push(s)}if(this.processIntId&&this.processStatus.createTopUserId==this.userId&&((e=this.taskNode[0])==null?void 0:e.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let s={};s.name="\u50AC\u529E",s.btnProps={type:"default"},s.click=r=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=r,this.popupContext=`\u786E\u5B9A${r}\u5417?`,this.handleTipsType="\u50AC\u529E"},t.push(s)}if(this.processIntId&&this.processStatus.createTopUserId==this.userId&&((i=this.taskNode[0])==null?void 0:i.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let s={};s.name="\u64A4\u9500",s.btnProps={type:"default"},s.click=r=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=r,this.popupContext=`\u786E\u5B9A${r}\u5417?`,this.handleTipsType="\u64A4\u9500"},t.push(s)}return t},processCardHeight(){let t=210;return this.processStatus.status?this.processStatus.currUserName||(t-=40):t-=140,`calc(100vh - ${t}px)`}},methods:{handleTest(){this.visibleSong=!0},async getUserInfo(){let t=await this.request.get("/app/user/info");t.code===200&&(this.user=t.data||{})},async handleGetSimulation(t){this.handleTips("",!0,"loading");let n={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:t},e=await this.request.post("/aws/tis/simulation",n);if(e.success){this.handleTips("",!1,"success"),this.nextNodeData=e.data;for(let i=0;i<this.nextNodeData.length;i++)this.approveNode=this.nextNodeData[i]}else{let i=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(i,"")}},async getOutgoingProcessNode(t,n){let e=await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:t,processNodeId:n}});if(e.code==200){if(e.data)for(let i=0;i<e.data.length;i++){let s=e.data[i];if(s.type!="UserTaskModel"){let r=await this.getOutgoingProcessNode(t,s.id);await r.map((a,o)=>{a.nodeName=a.incomingConditionItemList[0].compareValue}),s.childNode=r}}return this.handleTips("",!1,"success"),e.data}return[]},handleGet(t){this.taskNode=[].concat(t),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.request.get("/aws/pis/getProcessStatus",{params:{processInstId:this.processInstId,taskId:this.taskNode.length?this.taskNode[0].taskId:""}}).then(t=>{t.code==200&&(this.processStatus=t.data,this.processStatus.userNodeGroup&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName]&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName].length>1?this.canCheck=!1:this.canCheck=!0)})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length&&this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(t=>{t.code==200&&(this.taskObj=t.data)})},async showOperation(t,n,e,i){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)}e&&(this.operationParam.request=e,this.annexlabel=i),this.titleText=n,this.operationCom=t,this.$refs.TopPopup1.handleOpen(),this.operationParam.annex=i,this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"",this.operationParam.actionName=n,this.operationParam.formData=this.formData,this.operationParam.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(t=>{t.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),this.endFunction()):this.handleTips(t.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.post("/aws/pis/revoke",{processInstId:this.ProcessInsObj.id,processBusinessKey:this.ProcessInsObj.processBusinessKey}).then(t=>{t.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),this.endFunction()):(this.textTips=t.msg,this.typeTips="error",this.handleTips(t.msg,!0,"error"))}))},handleTipsCancel(){},getColor(t){return t=="\u5BA1\u6838\u4E2D"?"#FFA52D":t=="\u5DF2\u9A73\u56DE"?"#F14B4C":t=="\u5DF2\u64A4\u9500"?"#CECECE":t=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(t){this.titleText=t,this.actionShow=!1},getBtnStyle(t){switch(t){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.processStatus.appId}}).then(t=>{this.processDefList=t.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(n=>{this.processBusiness=n.data,this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(e=>{this.getFirstProcessNode=e.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(XC,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(n=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()}}};var tb=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("div",{staticClass:"process-warp"},[t.formData.currentState||t.processStatus.bizStatusName||t.processStatus.status?e("div",{staticClass:"process-main"},[e("div",{staticClass:"process-ml-item border"},[e("div",{staticClass:"process-mli-name"},[t._v("\u6D41\u7A0B\u72B6\u6001")]),e("div",{staticClass:"process-mli-value"},[t.formData.currentState||t.processStatus.bizStatusName||t.processStatus.status?e("div",{staticClass:"process-mliv-dd",style:{background:t.getColor(t.formData.currentState||t.processStatus.bizStatusName||t.processStatus.status)}},[t._v(" "+t._s(t.formData.currentState||t.processStatus.bizStatusName||t.processStatus.status)+" ")]):t._e()])]),e("div",{staticClass:"process-ml-item border"},[e("div",{staticClass:"process-mli-name"},[t._v("\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4")]),e("div",{staticClass:"process-mli-value"},[e("span",[t._v(t._s(t.processStatus.createTime))])])]),t.processStatus.allUserNames&&t.processStatus.allUserNames.length?e("div",{staticClass:"process-ml-item"},[e("div",{staticClass:"process-mli-name"},[t._v("\u5BA1\u6279\u8282\u70B9")]),e("div",{staticClass:"process-mli-value"},[e("span",{staticClass:"process-mliv-jd"},[t._v(t._s(`${t.processStatus.taskState==4?t.processStatus.currUserName:t.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`))])])]):t._e()]):t._e(),e("div",{staticClass:"process-card",style:{height:t.processCardHeight}},[e("TopTab",{attrs:{tapList:t.tapList,selfTapList:t.selfTapList,processIntId:t.processIntId,track:t.trackUrl,taskComment:t.taskCommentList,trackList:t.trackList}},[t.selfTapList&&t.selfTapList.length?t._l(t.selfTapList,function(i,s){return e("div",{key:s,attrs:{slot:i.slot},slot:i.slot},[t._t(i.slot)],2)}):[e("div",{staticStyle:{},attrs:{slot:"default"},slot:"default"},[t._t("default")],2),t._l(t.tapList,function(i,s){return e("div",{key:s,staticStyle:{},attrs:{slot:i.slot},slot:i.slot},[t._t(i.slot)],2)})]],2)],1),e("div",{staticClass:"process-btn"},[t.isAdditional?e("div",{staticClass:"footBtnRow"},[t._t("btn")],2):[t.isDocument&&(t.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||t.formData.currentState=="\u76D6\u7AE0")?[e("div",{staticClass:"top-button",style:t.getBtnStyle("default")},[t._v(" \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ")])]:[t.formData.currentState!="\u5DF2\u5B8C\u6210"||t.processStatus.status!="\u5DF2\u5B8C\u6210"||t.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?[t.formData.currentState==="\u5DF2\u64A4\u9500"||t.formData.currentState==="\u5DF2\u9A73\u56DE"||t.processStatus.status==="\u5DF2\u64A4\u9500"||t.processStatus.status==="\u5DF2\u9A73\u56DE"||t.processStatus.bizStatusName==="\u5DF2\u64A4\u9500"||t.processStatus.bizStatusName==="\u5DF2\u9A73\u56DE"?e("div",{staticClass:"top-button",style:t.getBtnStyle("default"),on:{click:t.handleRestart}},[t._v(" \u91CD\u65B0\u63D0\u4EA4 ")]):t._l(t.operBtn,function(i,s){return[s<3?e("div",{key:i.name,staticClass:"top-button",style:t.getBtnStyle(i.btnProps.type.toString()),on:{click:function(r){return i.click(i.name)}}},[t._v(" "+t._s(i.name)+" ")]):t._e()]})]:t._e(),t.operBtn.length>3&&t.actionBtn&&t.actionBtn.length?e("div",{staticClass:"elips",on:{click:t.handleActionOpen}},[e("div",{staticClass:"circle"}),e("div",{staticClass:"circle"}),e("div",{staticClass:"circle"})]):t._e()]]],2)]),e("TopPopup",{ref:"TopPopup1",attrs:{cancel:t.handleCancel,comfig:t.handleComfig,titleText:t.titleText}},[e(t.operationCom,{ref:"operationRef",tag:"component",attrs:{param:t.operationParam},on:{handleClosePopup1:t.handleClosePopup1}})],1),e("TopPopup",{ref:"TopPopup2",attrs:{titleText:t.titleText,isTips:!0,context:t.popupContext,cancel:t.handleTipsCancel,comfig:t.handleTipsComfig}}),e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),t.actionBtn&&t.actionBtn.length||t.taskNodeList&&t.taskNodeList.length?e("div",{staticClass:"top-elips",style:t.actionShow?"transform: translateY(0)":"transform: translateY(100%)"},[t.taskNodeShow?t._l(t.taskNodeList,function(i){return e("div",{key:i.taskId,staticClass:"top-elips-items",on:{click:function(s){return t.handleGet(i)}}},[t._v(" "+t._s(i.name)+" ")])}):t._l(t.actionBtn,function(i){return e("div",{key:i.name,staticClass:"top-elips-items",on:{click:function(s){return i.click(i.name)}}},[t._v(" "+t._s(i.name)+" ")])}),e("div",{staticClass:"top-elips-items top-elips-items--cancel",on:{click:t.handleActionClose}},[t._v(" \u53D6\u6D88 ")])],2):t._e(),e("div",{staticClass:"top-elips-mask",style:t.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;",on:{click:t.handleActionClose}})],1)},eb=[];const xb="",yp={};var nb=st($C,tb,eb,!1,ib,"451e116a",null,null);function ib(t){for(let n in yp)this[n]=yp[n]}const sb=function(){return nb.exports}(),rb={name:"TopSubmitPopup",components:{TopPopup:Qt,TopDownSelect:vp,PreviewImage:ur,departPerson:Ie,TopTips:Kt},props:{visible:{type:Boolean,default:!1},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{type:String,default:""},processName:{type:String,default:""},resubmit:{type:Boolean,default:!1},id:{type:String,default:""},businessType:{type:[String,Number]},todoParameter:{type:Object,default(){return{}}},isClearHistory:{type:Boolean,default:!1},title:{type:String,default:"\u6D4B\u8BD5"},showType:{type:String,default:"all"},beforeFunction:{type:Function,default:null},manual:{type:Boolean,default:!1}},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:"",businessTypeData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{}}},watch:{visible:{async handler(t,n){this.show=t,this.$emit("update:visible",this.show),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId,processGroupName:this.processNameData}}).then(e=>{e.code==200&&(this.option=e.data,this.option&&this.option.length&&this.processNameData&&(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},businessType:{handler(t,n){this.businessTypeData=t},immediate:!0},id:{handler(t,n){this.idData=t},immediate:!0},processName:{handler(t,n){this.processNameData=t},immediate:!0},title:{handler(t,n){this.titleData=t},immediate:!0},todoParameter:{handler(t,n){this.todoParameterData=t},immediate:!0,deep:!0}},methods:{async getProcessInstance(){this.id&&await this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.id}}).then(t=>{t.code==200&&(this.processId=t.data.id)})},async handlefirstNode(t){t&&await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:t}}).then(n=>{n.code===200&&(this.firstPerson=n.data)})},handleChange(t,n){this.handleTips("",!0,"loading"),this.checkedItem=t,this.handlefirstNode(this.checkedItem.id),this.getAfferentParticipantNodeList(),this.getProcessInstance(),this.getDiagramUrl(),this.$emit("change",t,n),this.$refs.topTips.handleClose()},getAfferentParticipantNodeList(){this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(t=>{t.code==200&&(this.firstPerson&&this.firstPerson.length&&(this.personList=t.data.filter(n=>!this.firstPerson.some(e=>e.id==n.id))),this.$emit("change",this.checkedItem,t.data))})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(t=>{t.code==200&&(this.trackUrl=[t.data])})},handleOpenPerson(t){if(this.visiblePerson=!0,this.personObjId=t.id,t.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel"};else if(t.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let n;t.routeTxt.companyIds.map((e,i)=>{n=e.rangeId}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],deptCode:n,multiple:t.type=="InclusiveGatewayModel"}}else if(t.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let n;t.routeTxt.companyIds.map((e,i)=>{n=e.name}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel",subjectName:n}}},handleCallback(t){this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],t.map((n,e)=>{this.multiNodeParticipant[this.personObjId].push(n.uid),this.partNode[this.personObjId].push(n.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.manual||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(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")}):(console.log("\u9A8C\u8BC1\u6761\u4EF6::this.id",this.idData,"\u9A8C\u8BC1\u6761\u4EF6::this.businessType",this.businessTypeData,"\u9A8C\u8BC1\u6761\u4EF6::this.todoParameter",this.todoParameterData,"\u9A8C\u8BC1\u6761\u4EF6::this.title",this.titleData),await this.request.post("/aws/pis/createAndStart",{title:this.titleData,processDefId:this.checkedItem.id,processBusinessKey:this.idData,showType:this.showType,businessType:this.businessTypeData,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameterData}).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")):t.code==499?this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(n=>{n.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):this.handleTips(n.msg,!0,"error")}).catch(n=>{this.handleTips(n.msg,!0,"error")}):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.handleTips(t.msg,!0,"error")}))},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()}}};var ab=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("TopPopup",{ref:"TopPopup",attrs:{visible:t.show,titleText:"\u9001\u5BA1",isDrawer:"",isIndex:99},on:{"update:visible":function(i){return t.show=i,t.$emit("update:visible",i)}}},[e("TopDownSelect",{attrs:{option:t.option,defaultValue:t.selectDefaultValue},on:{change:t.handleChange}}),t.checkedItem.id?e("div",{staticClass:"viewTrack",on:{click:function(i){t.taskurlshow=!0}}},[t._v(" \u67E5\u770B\u6D41\u7A0B\u56FE ")]):t._e(),t.firstPerson&&t.firstPerson.length?e("div",{staticClass:"person-views"},t._l(t.firstPerson,function(i,s){return e("div",{staticClass:"views-items"},[e("div",{staticClass:"views-items-name"},[t._v(" "+t._s(i.name)+" "),e("span",{staticClass:"views-items-name--re"},[t._v("*")])]),e("div",{staticClass:"views-items-set"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",[t._l(t.partNode[i.id],function(r,a){return e("span",[t._v(" "+t._s(a>=3?"":a==0?r:`,${r}`)+" ")])}),t.partNode[i.id].length>3?e("span",[t._v("...\u7B49"+t._s(t.partNode[i.id].length)+"\u4EBA")]):t._e()],2):e("div"),e("div",{staticClass:"views-items-set-btn",on:{click:function(r){return t.handleOpenPerson(i)}}},[t._v(" \u8BBE\u7F6E ")])])])}),0):t._e(),t.personList&&t.personList.length?e("div",{staticClass:"person-views"},t._l(t.personList,function(i,s){return e("div",{staticClass:"views-items"},[e("div",{staticClass:"views-items-name"},[t._v(" "+t._s(i.name)+" ")]),e("div",{staticClass:"views-items-set"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",[t._l(t.partNode[i.id],function(r,a){return e("span",[t._v(" "+t._s(a>=3?"":a==0?r:`,${r}`)+" ")])}),t.partNode[i.id].length>3?e("span",[t._v("...\u7B49"+t._s(t.partNode[i.id].length)+"\u4EBA")]):t._e()],2):e("div"),e("div",{staticClass:"views-items-set-btn",on:{click:function(r){return t.handleOpenPerson(i)}}},[t._v(" \u8BBE\u7F6E ")])])])}),0):t._e(),!t.firstPerson&&!t.firstPerson.length&&!t.personList&&!t.personList.length?e("div",{staticClass:"person-views-white"},[t._v(" \u65E0\u9700\u8BBE\u7F6E ")]):t._e(),e("div",{staticClass:"person-btn"},[e("div",{staticClass:"top-button",staticStyle:{"background-color":"#3c9cff",color:"#fff"},on:{click:t.handleSumbit}},[t._v(" \u9001\u5BA1 ")])])],1),e("TopPopup",{ref:"TopPopup",attrs:{visible:t.visiblePerson,titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},on:{"update:visible":function(i){return t.visiblePerson=i}}},[e("departPerson",t._b({attrs:{visible:t.visiblePerson},on:{"update:visible":function(i){t.visiblePerson=i},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),e("PreviewImage",{attrs:{images:t.trackUrl,visible:t.taskurlshow,indexd:0,isOne:!0,isStyle:t.isStyle},on:{"update:visible":function(i){return t.taskurlshow=i}}}),e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}})],1)},ob=[];const Db="",Cp={};var cb=st(rb,ab,ob,!1,lb,"1326c8de",null,null);function lb(t){for(let n in Cp)this[n]=Cp[n]}const ub=function(){return cb.exports}();Zt.TopProcess=sb,Zt.TopSumbitPopup=ub,Zt.ViewAttchList=Mc,Zt.attchViews=me,Object.defineProperties(Zt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
67
|
+
`,document.body.appendChild(this.mainContainer)}message(n={}){let e=sessionStorage.getItem(this.sessionStorageName),i=e?JSON.parse(e):null;if(n.againBtn&&n.content&&i&&Array.isArray(i)&&i.includes(n.content))return;const s=Zy({type:n.type,content:n.content,duration:n.duration,delay:n.delay,againBtn:n.againBtn,minWidth:this.minWidth,maxWidth:this.maxWidth},this.mainContainer);this.mainContainer.appendChild(s.els),Ea(this.mainContainer),zy(s,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const Xy={components:{checked:Py,dcSwitch:jy,dcLoading:Yy},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(t,n){if(!t)return!1;this.$nextTick(()=>{this.getDetail(()=>{this.defaultBreadcrumb(),Q(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})})})}},isSon:{deep:!0,handler:function(t,n){let e=[];const i=this.checkedJson.map(s=>{const r=this.entityJson.findIndex(a=>a.id===s.id&&s.type==a.type&&s.type==2)>-1?t&&s.type==2?"4":s.type:s.orgRecordsType;return(r==4||s.type==1)&&e.push(s.id),{...s,orgRecordsType:r}});this.checkedJson=i.filter(s=>s.ancestors.split(",").findIndex(r=>e.indexOf(r)>-1)===-1)}},checkedArray:{deep:!0,immediate:!0,handler:function(t,n){if(Q(t)||!Q(this.businessId))return!1;this.getCards()}},isLoadingClose(t){t&&(this.isLoading=!1)}},computed:{queryImg(){return Wy},entityJson(){const t=this.checkedJson;return this.jsonData.map(n=>{const e=this.isQuery?this.breadcrumb_level.ancestors||"":n.ancestors,i=this.isQuery?this.breadcrumb_level.ancestorNames:n.ancestorNames,s=e+n.id+"__"+n.type,r=t.find(h=>h.uniqueId===s),a=!Q(r),o=a?!1:t.findIndex(h=>h.type===n.type&&h.id===n.id&&n.subjectId===h.subjectId)>-1,c=a?n.type==1||r.orgRecordsType==4:!1,p=Q(t)?0:c?n.counts:t.filter(h=>h.type!=1&&h.ancestors.indexOf(n.id)>-1).length,d=a?r.isNoDelete:!1;return{type:n.type,id:n.id,name:n.name,counts:Q(n.counts)?0:n.counts,num:p,phone:Ty(n.phone),uid:n.uid,iconName:ba(n.name,2),checked:a,ancestors:e,ancestorNames:i,deptName:Oy(n.ancestorNames,"/"),uniqueId:s,isDisabled:o,isLevel:c,subjectId:n.subjectId,sex:n.sex,avatar:Q(n.avatar)?"":n.avatar,isNoDelete:d}})},companyJson(){return this.entityJson.filter(t=>t.type==1)},deptJson(){return this.entityJson.filter(t=>t.type==2)},userJson(){return this.entityJson.filter(t=>t.type==3)},checkedNumber(){const t=this.checkedJson.filter(s=>s.type==1).length,n=this.checkedJson.filter(s=>s.type==2).length,e=this.checkedJson.filter(s=>s.type==3).length;let i=[];return t>0&&i.push(t+"\u4E2A\u7EC4\u7EC7"),n>0&&i.push(n+"\u4E2A\u90E8\u95E8"),e>0&&i.push(e+"\u4E2A\u6210\u5458"),Q(i)?"":"\u5DF2\u9009\u62E9"+i.join("\uFF0C")},breadcrumb_subjectId(){const t=this.breadcrumb.filter((n,e)=>n.value!=="-1");return Q(t)?"":t[0].value},breadcrumb_level(){const t=this.breadcrumb.filter((n,e)=>n.value!=="-1");return{ancestors:t.map(n=>n.value).join(","),ancestorNames:t.map(n=>n.name).join("/")}},isDept(){return this.jsonData.findIndex(t=>t.type==2)>-1&&this.isShowDept},isShowSubject(){return this.codeType.findIndex(t=>t==1)>-1},isShowDept(){return this.codeType.findIndex(t=>t==2)>-1},isNotLevel(){return this.isShowSubject&&this.codeType.length===1},isShowQuery(){return this.codeType.findIndex(t=>t==3)>-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 Q(this.checkedArray)?[]:this.checkedArray.filter(t=>t.isDeleteNo)}},mounted(){document.title=this.getTitle,this.getDetail(()=>{this.defaultBreadcrumb(),Q(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})})},methods:{handleSubmit(){if(this.isLoading)return!1;const t=Q(this.checkedJson)?[]:this.checkedJson.map(e=>({type:e.orgRecordsType,id:e.id,name:e.name,ancestors:e.ancestors,ancestorNames:e.ancestorNames,subjectId:e.subjectId,phone:Q(e.phone)?"":e.phone,sex:e.sex,uid:Q(e.uid)?"":e.uid}));if(Q(this.businessId))return this.$emit("callback",t);const n={businessId:this.businessId,orgRecords:this.checkedJson.map(e=>({type:e.orgRecordsType,bizId:e.id,ancestors:e.ancestors,ancestorNames:e.ancestorNames,uid:e.uid}))};this.isLoading=!0,this.request.post("/auth/component/org/save",n).then(e=>{e.code===200&&this.$emit("callback",t)}).finally(()=>{this.isLoadingClose&&(this.isLoading=!1)})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){this.getSearch(()=>{this.isQuery=Q(this.keyword)})},handleAllCheckbox(t){(this.isShowDept?this.entityJson:this.entityJson.filter(n=>n.type!=2)).forEach(n=>this.handleCheckbox(t,n))},handleCheckbox(t,n){if(n.isDisabled||n.isNoDelete||n.type==1&&!this.isShowSubject||n.type==2&&!this.isShowDept)return!1;if(t.currentTarget.checked){if(this.checkedJson.findIndex(a=>a.uniqueId===n.uniqueId)!=-1)return!1;const e=n.type==1?"0":n.ancestors,i=n.type==1?"":n.ancestorNames,s=this.isDept&&this.isSon&&n.type==2?"4":n.type,r={...n,ancestors:e,ancestorNames:i,orgRecordsType:s};return(n.type==1||s==4)&&(this.checkedJson=this.checkedJson.filter(a=>a.ancestors.indexOf(n.id)===-1)),this.getBoolChecked(n)?(t.currentTarget.checked=!1,!1):this.maxMultiple!==0&&this.checkedJson.length>=this.maxMultiple&&this.multiple?(t.currentTarget.checked=!1,new Ia().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(e=>e.uniqueId!==n.uniqueId)},handleBreadcrumb(t,n){if(t.disable||n+1==this.breadcrumb.length)return!1;switch(n){case 0:this.deptId=this.deptCode;break;case 1:this.deptId=0;break;default:this.deptId=t.value;break}this.subjectId=t.value==="-1"?"":this.breadcrumb_subjectId,this.keyword="",this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((e,i)=>i<n+1)})},handleLevel(t){if(t.isDisabled||t.isLevel)return!1;switch(t.type){case"1":this.deptId=0,this.subjectId=t.id,this.getSearch(()=>{this.breadcrumb.push({name:t.name,value:t.id})});break;case"2":this.deptId=t.id,this.subjectId=this.breadcrumb_subjectId,this.getSearch(()=>{this.breadcrumb.push({name:t.name,value:t.id})});break}},getBoolChecked(t){if(t.type!=3)return!1;const n=t.ancestors.split(","),e=this.checkedJson.filter(s=>s.type==2||s.type==1).find(s=>n.indexOf(s.id)>-1);let i=!1;return Q(e)||(e.type==1&&(new Ia().message({content:`\u5DF2\u9009\u7684\u7EC4\u7EC7\u3010${e.name}\u3011\u5B58\u5728${t.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),i=!0),e.type==4&&(new Ia().message({content:`\u5DF2\u9009\u7684\u90E8\u95E8\u3010${e.name}\u3011\u5B58\u5728${t.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),i=!0)),i},defaultBreadcrumb(){this.deptId=this.deptCode,this.subjectId="",Q(this.deptCode)&&(this.breadcrumb=[{name:"\u7EC4\u7EC7",value:"-1"}]),this.isSon=!1,this.jsonData=[],this.keyword="",this.isQuery=!0,this.isLoading=!1},getIsSon(){const t=this.entityJson.filter(e=>e.type==2),n=this.checkedJson.filter(e=>e.type==2);this.isSon=n.findIndex(e=>t.findIndex(i=>i.id===e.id&&e.orgRecordsType==4)>-1)>-1},getCheckedAll(){const t=this.entityJson.findIndex(n=>this.checkedJson.findIndex(e=>e.type===n.type&&e.id===n.id&&n.subjectId===e.subjectId)===-1);this.checkedAll=t===-1},getSearch(t=()=>{}){const n=this.codeType.findIndex(i=>i==3)>-1?3:this.codeType.findIndex(i=>i==2)>-1?2:1,e={source:this.source,type:this.type,deptId:this.deptId,subjectId:this.subjectId,keyword:this.keyword,showType:n};Q(e.deptId)&&delete e.deptId,Q(e.subjectId)&&delete e.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:e}).then(i=>{t(),this.jsonData=Q(i.data)||i.code!==200?[]:i.data;const s=this.breadcrumb.filter(r=>r.value!=="-1");if(!Q(this.jsonData)&&Q(s)&&(!Q(this.deptCode)||!Q(this.subjectName))){const r=i.data[0],a=r.ancestors.split(",");this.breadcrumb=a.map((o,c)=>({value:o,name:r.ancestorNames.split("/")[c],disable:c!==a.length-1&&a.length!==0}))}this.getIsSon(),this.getCheckedAll()}).finally(()=>{this.isLoading=!1})},getDetail(t=()=>{}){if(Q(this.businessId))return t(),!1;const n={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:n}).then(e=>{this.checkedJson=Q(e.data)||e.code!==200?[]:e.data.map(i=>{const s=i.type==4?"2":i.type,r=i.type==1?"":i.ancestors,a=r+i.bizId+"__"+s,o=this.isNoDelete.findIndex(c=>c.id===i.id||c.uid===i.uid)>-1;return{...i,ancestors:r,id:i.bizId,type:s,uniqueId:a,orgRecordsType:i.type,iconName:ba(i.name,2),sex:i.sex,uid:Q(i.uid)?"":i.uid,avatar:Q(i.avatar)?"":i.avatar,isNoDelete:o}}),t()})},getCards(){if(Q(this.checkedArray))return this.checkedJson=[];const t=this.checkedArray.map(n=>({type:n.type,id:Q(n.id)?null:n.id,uid:Q(n.uid)?null:n.uid,subjectId:Q(n.subjectId)?null:n.subjectId,deptId:Q(n.deptId)?null:n.deptId}));this.request.post("/auth/component/org/cards",{params:t}).then(n=>{this.checkedJson=Q(n.data)||n.code!==200?[]:n.data.map(e=>{const i=e.type==4?"2":e.type,s=e.type==1?"":e.ancestors,r=e.type==1?"":e.ancestorNames,a=s+e.id+"__"+i,o=this.isNoDelete.findIndex(c=>c.id===e.id||c.uid===e.uid)>-1;return{...e,ancestors:s,ancestorNames:r,id:e.id,type:i,uniqueId:a,orgRecordsType:e.type,iconName:ba(e.name,2),sex:e.sex,uid:Q(e.uid)?"":e.uid,avatar:Q(e.avatar)?"":e.avatar,isNoDelete:o}})})},getByName(t=()=>{}){const n={name:this.subjectName};this.request.get("/auth/component/org/subject/getByName",{params:n}).then(e=>{console.log("getByName",e),e.code===200&&(this.subjectId=e.data,t())})}}};var $y=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("main",{staticClass:"departPerson-main"},[e("div",{staticClass:"deper-top"},[t._e(),e("div",{directives:[{name:"show",rawName:"v-show",value:t.isShowQuery,expression:"isShowQuery"}],staticClass:"deper-query"},[e("form",{staticClass:"form",attrs:{action:"javascript: void(0);"},on:{submit:function(i){i.preventDefault()}}},[e("i",{staticClass:"icon-chaxun iconfont chaxun"}),e("input",{directives:[{name:"model",rawName:"v-model",value:t.keyword,expression:"keyword"}],staticClass:"input",attrs:{type:"search",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u3001\u624B\u673A\u53F7\u7801"},domProps:{value:t.keyword},on:{keyup:function(i){return!i.type.indexOf("key")&&t._k(i.keyCode,"enter",13,i.key,"Enter")?null:t.handleQuery.apply(null,arguments)},input:function(i){i.target.composing||(t.keyword=i.target.value)}}}),t.keyword.length>0?e("i",{staticClass:"icon-error-fill iconfont close",on:{click:t.handleEmpty}}):t._e()])]),t.isQuery?e("div",{staticClass:"deper-breadcrumb"},t._l(t.breadcrumb,function(i,s){return e("div",{key:i.value,staticClass:"deper-b-item",class:{disable:i.disable},on:{click:function(r){return t.handleBreadcrumb(i,s)}}},[e("span",[t._v(t._s(i.name))]),e("i",{staticClass:"icon-jiantouyou iconfont"})])}),0):t._e(),t.isQuery?e("div",{staticClass:"deper-all"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.checkedAll,expression:"checkedAll"}],staticClass:"deper-checkbox",attrs:{type:"checkbox",name:"deper-all",id:"deper-all"},domProps:{checked:Array.isArray(t.checkedAll)?t._i(t.checkedAll,null)>-1:t.checkedAll},on:{change:[function(i){var s=t.checkedAll,r=i.target,a=!!r.checked;if(Array.isArray(s)){var o=null,c=t._i(s,o);r.checked?c<0&&(t.checkedAll=s.concat([o])):c>-1&&(t.checkedAll=s.slice(0,c).concat(s.slice(c+1)))}else t.checkedAll=a},t.handleAllCheckbox]}}),e("label",{staticClass:"label",attrs:{for:"deper-all"}},[t._v("\u5168\u9009")])]):t._e()]),t.isQuery?e("div",{staticClass:"deper-center",class:t.getHight},[t.companyJson.length>0?e("div",{staticClass:"deper-c-depart"},t._l(t.companyJson,function(i){return e("div",{key:i.uniqueId,staticClass:"depart-item"},[e("label",{staticClass:"depart-left",class:{width:t.isNotLevel,isNoDelete:i.isNoDelete}},[e("input",{directives:[{name:"show",rawName:"v-show",value:t.isShowSubject,expression:"isShowSubject"},{name:"model",rawName:"v-model",value:i.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:i.isDisabled||i.isNoDelete,type:"checkbox"},domProps:{checked:Array.isArray(i.checked)?t._i(i.checked,null)>-1:i.checked},on:{change:[function(s){var r=i.checked,a=s.target,o=!!a.checked;if(Array.isArray(r)){var c=null,p=t._i(r,c);a.checked?p<0&&t.$set(i,"checked",r.concat([c])):p>-1&&t.$set(i,"checked",r.slice(0,p).concat(r.slice(p+1)))}else t.$set(i,"checked",o)},function(s){return t.handleCheckbox(s,i)}]}}),e("div",{staticClass:"depart-name"},[e("div",{staticClass:"name"},[t._v(t._s(i.name))]),i.num>0?e("div",{staticClass:"number"},[t._v("("),e("label",{staticClass:"label"},[t._v(t._s(i.num)+"/"+t._s(i.counts))]),t._v(")")]):e("div",{staticClass:"number"},[t._v("("+t._s(i.counts)+")")])])]),!t.isNotLevel&&i.counts>0?e("div",{staticClass:"depart-right",class:{isdisabled:i.isLevel},on:{click:function(s){return t.handleLevel(i)}}},[e("i",{staticClass:"icon-pedigree iconfont"}),e("span",[t._v("\u4E0B\u7EA7")])]):t._e()])}),0):t._e(),t.deptJson.length>0?e("div",{staticClass:"deper-c-depart"},t._l(t.deptJson,function(i){return e("div",{key:i.uniqueId,staticClass:"depart-item"},[e("label",{staticClass:"depart-left",class:{isNoDelete:i.isNoDelete}},[e("input",{directives:[{name:"show",rawName:"v-show",value:t.isShowDept,expression:"isShowDept"},{name:"model",rawName:"v-model",value:i.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:i.isDisabled||i.isNoDelete,type:"checkbox"},domProps:{checked:Array.isArray(i.checked)?t._i(i.checked,null)>-1:i.checked},on:{change:[function(s){var r=i.checked,a=s.target,o=!!a.checked;if(Array.isArray(r)){var c=null,p=t._i(r,c);a.checked?p<0&&t.$set(i,"checked",r.concat([c])):p>-1&&t.$set(i,"checked",r.slice(0,p).concat(r.slice(p+1)))}else t.$set(i,"checked",o)},function(s){return t.handleCheckbox(s,i)}]}}),e("div",{staticClass:"depart-name"},[e("div",{staticClass:"name"},[t._v(t._s(i.name))]),i.num>0?e("div",{staticClass:"number"},[t._v("("),e("label",[t._v(t._s(i.num)+"/"+t._s(i.counts))]),t._v(")")]):e("div",{staticClass:"number"},[t._v("("+t._s(i.counts)+")")])])]),i.counts>0?e("div",{staticClass:"depart-right",class:{isdisabled:i.isLevel},on:{click:function(s){return t.handleLevel(i)}}},[e("i",{staticClass:"icon-pedigree iconfont"}),e("span",[t._v("\u4E0B\u7EA7")])]):t._e()])}),0):t._e(),t.userJson.length>0?e("div",{staticClass:"deper-c-user"},t._l(t.userJson,function(i){return e("label",{key:i.uniqueId,staticClass:"user-item",class:{isNoDelete:i.isNoDelete}},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:i.isDisabled||i.isNoDelete,type:"checkbox"},domProps:{checked:Array.isArray(i.checked)?t._i(i.checked,null)>-1:i.checked},on:{change:[function(s){var r=i.checked,a=s.target,o=!!a.checked;if(Array.isArray(r)){var c=null,p=t._i(r,c);a.checked?p<0&&t.$set(i,"checked",r.concat([c])):p>-1&&t.$set(i,"checked",r.slice(0,p).concat(r.slice(p+1)))}else t.$set(i,"checked",o)},function(s){return t.handleCheckbox(s,i)}]}}),e("div",{staticClass:"user-icon"},[i.avatar.length<1?e("span",[t._v(t._s(i.iconName))]):e("img",{attrs:{src:i.avatar}})]),e("div",{staticClass:"user-name"},[e("div",{staticClass:"span"},[t._v(t._s(i.name))]),e("div",{staticClass:"phone"},[t._v(t._s(i.phone))])])])}),0):t._e()]):e("div",{staticClass:"deper-search"},[t._e(),e("div",{staticClass:"deper-search-section"},[t._e(),e("div",{staticClass:"search-user"},[e("div",{staticClass:"search-title"},[t._v("\u8054\u7CFB\u4EBA")]),t._l(t.userJson,function(i){return e("label",{key:i.uniqueId,staticClass:"user-item"},[e("input",{directives:[{name:"model",rawName:"v-model",value:i.checked,expression:"item.checked"}],staticClass:"deper-checkbox",attrs:{disabled:i.isDisabled,type:"checkbox"},domProps:{checked:Array.isArray(i.checked)?t._i(i.checked,null)>-1:i.checked},on:{change:[function(s){var r=i.checked,a=s.target,o=!!a.checked;if(Array.isArray(r)){var c=null,p=t._i(r,c);a.checked?p<0&&t.$set(i,"checked",r.concat([c])):p>-1&&t.$set(i,"checked",r.slice(0,p).concat(r.slice(p+1)))}else t.$set(i,"checked",o)},function(s){return t.handleCheckbox(s,i)}]}}),e("div",{staticClass:"user-icon"},[e("span",[t._v(t._s(i.iconName))])]),e("div",{staticClass:"user-name"},[e("div",{staticClass:"span"},[t._v(t._s(i.name))]),e("div",{staticClass:"phone"},[t._v(t._s(i.phone))]),e("div",{staticClass:"txt"},[t._v(t._s(i.ancestorNames))])])])})],2)])]),t.isDept?e("div",{staticClass:"deper-son"},[e("span",[t._v("\u5305\u542B\u5B50\u7EA7")]),e("dc-switch",{attrs:{modelValue:t.isSon,name:"isSone"},on:{"update:modelValue":function(i){t.isSon=i},"update:model-value":function(i){t.isSon=i}}})],1):t._e(),e("div",{staticClass:"deper-bottom"},[e("div",{staticClass:"deper-b-checked",on:{click:function(i){t.isShowChecked=!0}}},[e("span",[t._v(t._s(t.checkedNumber))]),t.checkedNumber.length>0?e("i",{staticClass:"icon-jiantouyou iconfont"}):t._e()]),e("div",{staticClass:"deper-b-btn",on:{click:t.handleSubmit}},[t._v("\u786E\u5B9A")])]),e("checked",{attrs:{visible:t.isShowChecked,checkedJson:t.checkedJson},on:{"update:visible":function(i){t.isShowChecked=i},"update:checkedJson":function(i){t.checkedJson=i},"update:checked-json":function(i){t.checkedJson=i}},scopedSlots:t._u([{key:"user",fn:function(i){var s=i.item;return[t._t("checkedUser",null,{item:s})]}}],null,!0)}),t.isLoading?e("dcLoading"):t._e()],1)},tC=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"depart-item"},[e("label",{staticClass:"depart-left"},[e("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),e("div",{staticClass:"depart-name"},[e("div",{staticClass:"name"},[t._v("\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8")]),e("div",{staticClass:"number"},[t._v("("),e("label",[t._v("100/100")]),t._v(")")])])])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"depart-item"},[e("label",{staticClass:"depart-left"},[e("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),e("div",{staticClass:"depart-name"},[e("div",{staticClass:"name"},[t._v("\u6280\u672F\u90E8")]),e("div",{staticClass:"number"},[t._v("(80)")])])])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"depart-item"},[e("label",{staticClass:"depart-left"},[e("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),e("div",{staticClass:"depart-name"},[e("div",{staticClass:"name"},[t._v("\u5F00\u53D1\u90E8")]),e("div",{staticClass:"number"},[t._v("("),e("label",[t._v("100/100")]),t._v(")")])])])])}];const lp={};var eC=as(Xy,$y,tC,!1,nC,null,null,null);function nC(t){for(let n in lp)this[n]=lp[n]}const Ie=function(){return eC.exports}();var iC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-popup-content"},[t._m(0),e("div",{staticClass:"process-pc-value"},[e("div",{staticClass:"process-popup-textarea"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:t.commentMsg},on:{input:function(i){i.target.composing||(t.commentMsg=i.target.value)}}})])]),t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&t.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[e("div",[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),e("div",{staticClass:"process-pc-value",on:{click:function(a){return t.handleOpenPopup(i.id)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[i.id],function(a,o){return e("span",[t._v(" "+t._s(o==0?a:`,${a}`)+" ")])}),0):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(i){return[i.type!="endEvent"&&t.isOption(i.humanPerformerName)?[e("div",{staticClass:"process-pc-label"},[t._v(" "+t._s(i.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),e("div",{staticClass:"process-pc-value",on:{click:function(s){return t.handleOpenPopup(i.id)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[i.id],function(s,r){return e("span",[t._v(" "+t._s(r==0?s:`,${s}`)+" ")])}),0):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t._e()]:t._e(),e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),e("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return t.visible=i}}},[e("departPerson",t._b({attrs:{visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(i){t.visible=i},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),t.labels=="5"?e("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},sC=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-pc-label"},[t._v(" \u52A0\u7B7E\u7406\u7531\uFF1A"),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const Ab="",rC={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:me,TopPopup:Qt,departPerson:Ie},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(t,n){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel,t.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":t.outGatewayUserTaskModel.length&&(t.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):t.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(t){this.visible=!0,this.partObjId=t},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let t="";this.multiNodeParticipant[this.partObjId].map((n,e)=>{e==0?t=n:t=`${t} ${n}`}),this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/createDynamicTask",{title:this.param.formData.title||this.param.formData.reason||this.param.formData.meetingTheme,participant:t,processInstId:this.param.processInstId,adHocType:2,parentTaskInstId:this.param.taskInstId,reason:this.commentMsg}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((n,e)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(t){this.attchLists=t},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((e,i)=>{e.size=e.fileSize,e.format=e.originFileName.substring(e.originFileName.lastIndexOf(".")+1),e.uploadTime=e.createTime,e.processInstId=this.param.processInstId,e.taskInstId=this.param.taskInstId,e.name=e.originFileName});let t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},up={};var aC=st(rC,iC,sC,!1,oC,"b04c3b72",null,null);function oC(t){for(let n in up)this[n]=up[n]}const cC=function(){return aC.exports}();var lC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-popup-content"},[t._m(0),e("div",{staticClass:"process-pc-value"},[e("div",{staticClass:"process-popup-textarea"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:t.commentMsg},on:{input:function(i){i.target.composing||(t.commentMsg=i.target.value)}}})])]),t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&t.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[e("div",[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),e("div",{staticClass:"process-pc-value",on:{click:function(a){return t.handleOpenPopup(i.id)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[i.id],function(a,o){return e("span",[t._v(" "+t._s(o==0?a:`,${a}`)+" ")])}),0):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(i){return[i.type!="endEvent"&&t.isOption(i.humanPerformerName)?[e("div",{staticClass:"process-pc-label"},[t._v(" "+t._s(i.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),e("div",{staticClass:"process-pc-value",on:{click:function(s){return t.handleOpenPopup(i.id)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[i.id],function(s,r){return e("span",[t._v(" "+t._s(r==0?s:`,${s}`)+" ")])}),0):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t._e()]:t._e(),e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),e("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return t.visible=i}}},[e("departPerson",t._b({attrs:{visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(i){t.visible=i},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),t.labels=="1"?e("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},uC=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-pc-label"},[t._v(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const yb="",pC={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:me,TopPopup:Qt,departPerson:Ie},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(t,n){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel,t.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":t.outGatewayUserTaskModel.length&&(t.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):t.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(t){this.visible=!0,this.partObjId=t},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let t="";this.multiNodeParticipant[this.partObjId].map((n,e)=>{e==0?t=n:t=`${t} ${n}`}),this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/delegate",{delegateReason:this.commentMsg,taskInstId:this.param.taskInstId,targetUID:t}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((n,e)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(t){this.attchLists=t},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((e,i)=>{e.size=e.fileSize,e.format=e.originFileName.substring(e.originFileName.lastIndexOf(".")+1),e.uploadTime=e.createTime,e.processInstId=this.param.processInstId,e.taskInstId=this.param.taskInstId,e.name=e.originFileName});let t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},pp={};var dC=st(pC,lC,uC,!1,fC,"4e763a94",null,null);function fC(t){for(let n in pp)this[n]=pp[n]}const hC=function(){return dC.exports}(),vC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKKHDfPn3Svb2tt/z//NtvZonzZfa8UDILWUZh+fAs9gfDgzfDSzL/aw+ehzGFsNIDHdsMpUYA/Hn2b26so2j/aw+THzGJNvAMlWGP8+BX7dvbbvT3DM+aRDAiBz0sCaOgrc796b2fmV6tbe03Xr7tai6L8DSFQ57Moq8MvuT9vY65DTrb3JGtwBJJQRjIopMM0bG/schmN/kLQuAiDFMo0jtwK+eeOy+519td82b9z7zzAAkBkisSRBgdi8c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nAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6ikAIHo5J2KHAgDiEIulegoAiF7OidihAIA4xGKpngIAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",Cb="";var mC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-popup-content"},[t.param.isDocument?e("div",{staticClass:"process-pc-label"},[t._v(" \u5FEB\u6377\u56DE\u590D ")]):t._e(),t.param.isDocument?e("div",{staticClass:"process-pc-value",staticStyle:{display:"flex"}},[e("div",{staticClass:"process-tag",on:{click:function(){return t.commentMsg="\u540C\u610F"}}},[t._v(" \u540C\u610F ")]),e("div",{staticClass:"process-tag",on:{click:function(){return t.commentMsg="\u5982\u62DF"}}},[t._v(" \u5982\u62DF ")]),e("div",{staticClass:"process-tag",on:{click:function(){return t.commentMsg="\u5DF2\u9605"}}},[t._v(" \u5DF2\u9605 ")])]):t._e(),t._m(0),e("div",{staticClass:"process-pc-value"},[e("div",{staticClass:"process-popup-textarea"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:t.commentMsg},on:{input:function(i){i.target.composing||(t.commentMsg=i.target.value)}}})])]),t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&t.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[e("div",{staticClass:"process-pc-label"},[e("div",[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])])]),e("div",{staticClass:"process-pc-value",on:{click:function(a){return t.handleOpenPopup(i)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",{staticClass:"process-pc-value--data"},[e("span",[t._v(" "+t._s(t.partNode[i.id].join(","))+" ")])]):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:[e("div",{staticClass:"process-pc-label"},[t._v(" "+t._s(i.userTaskModelDTO.name)+" ")])]]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(i){return[e("div",{staticClass:"process-pc-label"},[t._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),e("div",{staticClass:"process-pc-value"},[e("div",{staticClass:"process-radio"},t._l(i.childNode,function(s){return e("div",{staticClass:"process-radio-item",class:s.id==t.radioCheck?"process-radio-item--check":"",on:{click:function(r){return t.handleNode(s)}}},[e("span",[s.id==t.radioCheck?e("img",{staticClass:"process-radio-item-check",attrs:{src:t.check}}):t._e()]),t._v(" "+t._s(s.nodeName)+" ")])}),0)])]}),t.radioCheck?[t.radioCheckChild&&t.radioCheckChild.length?t._l(t.radioCheckChild,function(i){return e("div",[e("div",{staticClass:"process-pc-label",on:{click:function(s){return t.handleSaveNode(i.id)}}},[e("div",{staticClass:"process-checkbox"},[t._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279:"),e("br"),e("div",{staticClass:"process-checkbox-item"},[t._v(" "+t._s(i.nodeName)+" "),e("span",[t.radioCheckNameList.includes(i.id)?e("img",{staticClass:"process-checkbox-item-check",attrs:{src:t.checkS}}):t._e()])])])]),e("div",{staticClass:"process-pc-value",on:{click:function(s){return t.handleOpenPopup(i)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",{staticClass:"process-pc-value--data"},[e("span",[t._v(" "+t._s(t.partNode[i.id].join(","))+" ")])]):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])])}):[e("div",{staticClass:"process-pc-label"},[t._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 ")]),e("div",{staticClass:"process-pc-value"},[t._v(" "+t._s(t.radioCheckName)+" ")])]]:t._e()]:t._e()]:t._e(),e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),e("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return t.visible=i}}},[e("departPerson",t._b({attrs:{visible:t.visible},on:{"update:visible":function(i){t.visible=i},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),t.labels=="1"?e("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},gC=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-pc-label"},[t._v(" \u5BA1\u6279\u610F\u89C1 "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const bb="",AC={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:me,TopPopup:Qt,departPerson:Ie},computed:{check(){return Uc},checkS(){return vC}},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(t,n){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleSaveNode(t){this.radioCheckNameList.includes(t)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(t),1):this.radioCheckNameList.push(t)},handleNode(t){this.radioCheck=t.id,this.radioCheckName=t.nodeName,this.radioCheckChild=t.childNode,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[t.incomingConditionItemList[0].itemName]=t.incomingConditionItemList[0].compareValue):this.gateVars[t.incomingConditionItemList[0].itemName]=t.incomingConditionItemList[0].compareValue)},handleOpenPopup(t){if(this.visible=!0,this.partObjId=t.id,t.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"){let n,e=[];t.routeTxt.companyIds.map((i,s)=>{n=i.name}),this.multiNodeParticipant[t.id]&&this.multiNodeParticipant[t.id].length&&this.multiNodeParticipant[t.id].map((i,s)=>{e.push({type:3,uid:i})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel",subjectName:n,checkedArray:e}}else if(t.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"){let n,e=[];t.routeTxt.companyIds.map((i,s)=>{n=i.rangeId}),this.multiNodeParticipant[t.id]&&this.multiNodeParticipant[t.id].length&&this.multiNodeParticipant[t.id].map((i,s)=>{e.push({type:3,uid:i})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel",deptCode:n,checkedArray:e}}else{let n=[];this.multiNodeParticipant[t.id]&&this.multiNodeParticipant[t.id].length&&this.multiNodeParticipant[t.id].map((e,i)=>{n.push({type:3,uid:e})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel",checkedArray:n}}},async confirm(){if(!this.commentMsg){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}let t={};if(this.radioCheckNameList&&this.radioCheckNameList.length){let n=0;if(this.radioCheckNameList.map((e,i)=>{(!this.multiNodeParticipant[e]||!this.multiNodeParticipant[e].length)&&(n+=1),t[e]=this.multiNodeParticipant[e]}),n>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}t=this.multiNodeParticipant}this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/complete",{actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskInstId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:t}).then(n=>{if(n.code==200){if(this.attchLists.length>0){this.uploadAttch();return}this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""}else this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((n,e)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(t){this.attchLists=t},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((e,i)=>{e.size=e.fileSize,e.format=e.originFileName.substring(e.originFileName.lastIndexOf(".")+1),e.uploadTime=e.createTime,e.processInstId=this.param.processInstId,e.taskInstId=this.param.taskInstId,e.name=e.originFileName});let t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},dp={};var yC=st(AC,mC,gC,!1,CC,"c5d4bcba",null,null);function CC(t){for(let n in dp)this[n]=dp[n]}const bC=function(){return yC.exports}();var EC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-popup-content"},[t._m(0),e("div",{staticClass:"process-pc-value"},[e("div",{staticClass:"process-popup-textarea"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:t.commentMsg},on:{input:function(i){i.target.composing||(t.commentMsg=i.target.value)}}})])]),t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&t.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[e("div",[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),e("div",{staticClass:"process-pc-value",on:{click:function(a){return t.handleOpenPopup(i.id)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[i.id],function(a,o){return e("span",[t._v(" "+t._s(o==0?a:`,${a}`)+" ")])}),0):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(i){return[i.type!="endEvent"&&t.isOption(i.humanPerformerName)?[e("div",{staticStyle:{"font-size":"15px"}},[t._v(" "+t._s(i.name)+" ")]),e("div",{staticClass:"process-pc-label"},[t._v(" \u5BA1\u6279\u4EBA "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),e("div",{staticClass:"process-pc-value",on:{click:t.handleOpenPopup}},[e("div",{staticClass:"process-pc-value--people"},[t._v(" "+t._s(234)+" ")])])]:t._e()]})]:t._e()]:t._e(),e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),e("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return t.visible=i}}},[e("departPerson",t._b({attrs:{visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(i){t.visible=i},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),t.labels=="\u62D2\u7EDD"?e("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},IC=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-pc-label"},[t._v(" \u62D2\u7EDD\u7406\u7531\uFF1A "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const Eb="",kC={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:me,TopPopup:Qt,departPerson:Ie},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(t){this.visible=!0,this.partObjId=t},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/reject",{commentMsg:this.commentMsg,taskInstId:this.param.taskInstId}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((n,e)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(t){this.attchLists=t},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((e,i)=>{e.size=e.fileSize,e.format=e.originFileName.substring(e.originFileName.lastIndexOf(".")+1),e.uploadTime=e.createTime,e.processInstId=this.param.processInstId,e.taskInstId=this.param.taskInstId,e.name=e.originFileName});let t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},fp={};var wC=st(kC,EC,IC,!1,NC,"03e6902a",null,null);function NC(t){for(let n in fp)this[n]=fp[n]}const xC=function(){return wC.exports}(),DC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACfVJREFUeF7tnT2S1FYYRaUCYgJ2wArYgRMIYQPGMVUQt8bDAoDRxFBFbLwBE5qEHbACdkBAbCi5HjxgGKbn6b7Wz9O7h9B8avV3rk7J6r7VtA1/IACBvQRa2EAAAvsJIAhXBwQuIYAgXB4QQBCuAQjkEeAOkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB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wDkicGsQAKOpEvd81kAuZDmBSTg6LmFiWsB5JnhnEECjsQL3ftpAFmR6AmSa/5pnhWBFfoEICuHeUTy+Wb5svJzPiuSAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBL4Csq/cvbKQGitAAAAAElFTkSuQmCC",OC={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(t,n){t&&t.length&&(this.lists=t)},immediate:!0,deep:!0},defaultValue:{handler(t,n){this.active=t;let e=this.lists.filter((i,s)=>i.id==t);this.activeItem=e[0],this.$emit("change",this.activeItem)}}},computed:{arrow(){return DC},check(){return TC}},methods:{handleExpand(){this.expand?this.expand=!1:this.expand=!0},handleClick(t,n){this.active=t.id,this.activeItem=t,this.expand=!1,this.$emit("change",this.activeItem,this.lists)}}};var SC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"top-select"},[e("div",{staticClass:"top-select-menu",class:[t.border&&"top-select-menu-border",!t.activeItem.name&&"top-select-menu-placeholder"],on:{click:t.handleExpand}},[t._v(" "+t._s(t.activeItem.name?t.activeItem.name:t.placeholder)+" "),e("img",{staticClass:"top-select-menu--arrow",class:[t.expand?"arrow-active":""],attrs:{src:t.arrow}})]),t.maskShow?e("div",{staticClass:"top-select-option-mask",style:t.expand?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"}):t._e(),t.lists&&t.lists.length?e("div",{staticClass:"top-select-option",class:[t.border&&"top-select-option-border"],style:`${t.expand?"transform: translateY(2%);visibility: visible; opacity: 1;":"transform: translateY(-50%);visibility: hidden; opacity: 0"};${t.optionStyle?t.optionStyle:""}`},t._l(t.lists,function(i,s){return e("div",{key:i.id,staticClass:"option-items",class:[t.active==i.id?"option-items-active":""],on:{click:function(r){return t.handleClick(i,s)}}},[t._v(" "+t._s(i.name)+" "),t.active==i.id?e("img",{staticClass:"option-items-check",attrs:{src:t.check}}):t._e()])}),0):t._e()])},BC=[];const Ib="",hp={};var _C=st(OC,SC,BC,!1,QC,"3b51c309",null,null);function QC(t){for(let n in hp)this[n]=hp[n]}const vp=function(){return _C.exports}();var FC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-popup-content"},[t._m(0),e("div",{staticClass:"process-pc-value",staticStyle:{display:"inline-block",width:"50%"}},[e("TopDownSelect",{attrs:{option:t.option,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},on:{change:t.handleChange}})],1),t._m(1),e("div",{staticClass:"process-pc-value"},[e("div",{staticClass:"process-popup-textarea"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},domProps:{value:t.commentMsg},on:{input:function(i){i.target.composing||(t.commentMsg=i.target.value)}}})])]),e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),t.labels=="\u9000\u56DE"?e("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],1)},PC=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-pc-label",staticStyle:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[t._v(" \u9000\u56DE\u8282\u70B9\uFF1A "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-pc-label"},[t._v(" \u9000\u56DE\u7406\u7531\uFF1A "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const kb="",MC={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:me,TopPopup:Qt,departPerson:Ie,TopDownSelect:vp},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:""}},watch:{param:{async handler(t,n){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{getReturnNode(){this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(t=>{t.code===200&&(this.option=t.data)})},handleChange(t){this.nodeId=t.id},handleOpenPopup(t){this.visible=!0,this.partObjId=t},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,isCompensation:!1,targetActivityId:this.nodeId}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((n,e)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(t){this.attchLists=t},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((e,i)=>{e.size=e.fileSize,e.format=e.originFileName.substring(e.originFileName.lastIndexOf(".")+1),e.uploadTime=e.createTime,e.processInstId=this.param.processInstId,e.taskInstId=this.param.taskInstId,e.name=e.originFileName});let t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},mp={};var VC=st(MC,FC,PC,!1,UC,"409b85c5",null,null);function UC(t){for(let n in mp)this[n]=mp[n]}const JC=function(){return VC.exports}();var LC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-popup-content"},[t.taskNode&&t.taskNode.length>0&&t.taskNode[0].taskState!=11?[t.nextNodeData.length?[t._l(t.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&t.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[e("div",[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),e("div",{staticClass:"process-pc-value",on:{click:function(a){return t.handleOpenPopup(i.id)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[i.id],function(a,o){return e("span",[t._v(" "+t._s(o==0?a:`,${a}`)+" ")])}),0):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t.outGatewayUserTaskModel.length?[t._l(t.outGatewayUserTaskModel,function(i){return[i.type!="endEvent"?[e("div",[t._v(" \u5BA1\u6279\u4EBA "),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])]),e("div",{staticClass:"process-pc-value",on:{click:function(s){return t.handleOpenPopup(i.id)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[i.id],function(s,r){return e("span",[t._v(" "+t._s(r==0?s:`,${s}`)+" ")])}),0):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:t._e()]})]:t._e()]:t._e(),e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),e("TopPopup",{ref:"TopPopup",attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return t.visible=i}}},[e("departPerson",t._b({attrs:{visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(i){t.visible=i},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),t.labels=="2"?e("attchViews",{attrs:{limit:t.limit?t.limit:-1,requires:t.requires,request:t.param.request,linkUrl:t.param.linkUrl},on:{getValue:t.getValues}}):t._e()],2)},jC=[];const wb="",GC={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:me,TopPopup:Qt,departPerson:Ie},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(t,n){this.nextNodeData=t.nextNodeData,this.taskNode=t.taskNode,this.outGatewayUserTaskModel=t.outGatewayUserTaskModel,t.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":t.outGatewayUserTaskModel.length&&(t.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):t.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(t){this.visible=!0,this.partObjId=t},async confirm(){this.handleTips("",!0,"loading");let t="";this.multiNodeParticipant[this.partObjId].map((n,e)=>{e==0?t=n:t=`${t} ${n}`}),await this.param.request.post("/aws/tis/createCCTask",{processInstId:this.param.processInstId,title:this.param.formData.title||this.param.formData.reason||this.param.formData.meetingTheme,parentTaskInstId:this.param.taskInstId,participant:t}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal()):this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0]}},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((n,e)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(t){this.attchLists=t},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((e,i)=>{e.size=e.fileSize,e.format=e.originFileName.substring(e.originFileName.lastIndexOf(".")+1),e.uploadTime=e.createTime,e.processInstId=this.param.processInstId,e.taskInstId=this.param.taskInstId,e.name=e.originFileName});let t=this.attchLists;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},gp={};var RC=st(GC,LC,jC,!1,qC,"4423f9f0",null,null);function qC(t){for(let n in gp)this[n]=gp[n]}const KC=function(){return RC.exports}();var HC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"process-popup-content"},[[e("div",{staticClass:"process-pc-label"},[e("div",[t._v(" "+t._s(t.getFirstProcessNode.name)+" "),e("br"),t._m(0)])]),e("div",{staticClass:"process-pc-value",on:{click:function(i){return t.handleOpenPopup(t.getFirstProcessNode.id)}}},[e("div",{staticClass:"process-pc-value--people"},[t.partNode[t.getFirstProcessNode.id]&&t.partNode[t.getFirstProcessNode.id].length?e("div",{staticClass:"process-pc-value--data"},t._l(t.partNode[t.getFirstProcessNode.id],function(i,s){return e("span",[t._v(" "+t._s(s==0?i:`,${i}`)+" ")])}),0):e("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[e("span",[t._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])],e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),e("TopPopup",{attrs:{visible:t.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return t.visible=i}}},[e("departPerson",t._b({attrs:{visible:t.visible,request:t.param.request,businessId:t.param.formData.businessKey},on:{"update:visible":function(i){t.visible=i},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1)],2)},YC=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[t._v(" \u5BA1\u6279\u4EBA"),e("span",{staticClass:"process-pc-label--re"},[t._v("*")])])}];const Nb="",WC={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:me,TopPopup:Qt,departPerson:Ie},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},getFirstProcessNode:{}}},watch:{param:{handler(t,n){console.log("handler::::",t),this.getFirstProcessNode=t.getFirstProcessNode,t.getFirstProcessNode&&this.getFirstProcessNode&&(t.getFirstProcessNode.type=="userTask"||t.getFirstProcessNode.type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):t.getFirstProcessNode.type=="ExclusiveGatewayModel"||t.getFirstProcessNode.type=="InclusiveGatewayModel")},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param)},methods:{handleOpenPopup(t){this.visible=!0,this.partObjId=t},async confirm(){let t={isClearHistory:!1,processInstId:this.param.processInstId,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant};this.handleTips("",!0,"loading"),await this.param.request.post("/aws/pis/reactivate",t).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal()):this.handleTips(n.msg,!0,"error")})},handleCallback(t){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],t.map((n,e)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),console.log("callback_OK",t,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},isOption(t){return t=="\u4EFB\u610F\u6307\u5B9A"||t=="\u56FA\u5B9A\u90E8\u95E8"||t=="\u56FA\u5B9A\u5355\u4F4D"||t=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||t=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Ap={};var ZC=st(WC,HC,YC,!1,zC,"0f1b413c",null,null);function zC(t){for(let n in Ap)this[n]=Ap[n]}const XC=function(){return ZC.exports}(),$C={name:"TopProcess",components:{TopTab:bv,TopPopup:Qt,TopTips:Kt},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(t,n){this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,t&&(this.request.get("/aws/repository/getTrackUrl",{params:{processInstId:this.processIntId,type:"mobile"}}).then(e=>{e.code==200&&(this.trackUrl=e.data)}),this.request.get("/aws/pis/findNodeParticipantRows",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200&&(this.trackList=e.data)}),this.request.get("/aws/tis/getTaskCommentList",{params:{processInstId:this.processInstId,processBusinessKey:this.formData.businessKey}}).then(e=>{e.code==200&&(this.taskCommentList=e.data)}),this.getUserInfo(),this.request.get("/aws/pis/getProcessInstanceById",{params:{processInstId:this.processInstId}}).then(e=>{e.code==200&&(this.ProcessInsObj=e.data)}),await this.request.get("/aws/repository/queryTaskNodeList",{params:{processInstId:this.processInstId}}).then(e=>{if(e.code==200)if(this.taskNode=e.data,this.taskNodeList=e.data,this.taskNodeList.length==1){if(this.taskNodeList[0].taskState==4)return this.taskState=4,!1;this.taskNodeList[0].taskState==11&&(this.taskState=11),this.taskNodeList[0].taskId,this.handleGetProcessStatus(),this.handleGetUserTaskModel()}else this.taskNodeList.length>1?(this.taskNodeList.forEach(i=>{i.name=i.nodeName}),this.taskNodeShow=!0,this.actionShow=!0):(this.handleGetProcessStatus(),this.handleGetUserTaskModel())}))},immediate:!0,deep:!0}},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){var e,i;let t=[],n=this.taskNode&&this.taskNode[0]&&this.taskNode[0].taskState!=4;if(n&&!this.isView&&this.taskObj.completeButtonLabel){let s={};s.name=this.taskObj.completeButtonLabel,s.btnProps={type:"primary"},t.push(s),s.click=r=>{this.handleActionClose(),this.showOperation(bC,r,this.request,this.taskObj.completeButtonAnnex)}}if(n&&!this.isView&&this.processStatus.currUserName){let s={};s.name="\u62D2\u7EDD",s.btnProps={type:"danger"},t.push(s),s.click=r=>{this.handleActionClose(),this.showOperation(xC,r,this.request,this.taskObj.otherButtonAnnexList)}}if(n&&!this.isView&&this.taskObj.buttons&&this.taskObj.buttons.length&&this.taskObj.buttons.forEach(s=>{if(s.label==="\u9000\u56DE"){let r={};r.name=s.label,r.btnProps={type:"danger"},t.push(r),r.click=a=>{this.handleActionClose(),this.showOperation(JC,a,this.request,this.taskObj.otherButtonAnnexList)}}}),n&&!this.isView&&this.taskObj.ccTaskButtonLabel){let s={};s.name=this.taskObj.ccTaskButtonLabel,s.btnProps={type:"default"},s.click=r=>{this.handleActionClose(),this.showOperation(KC,r,this.request,this.taskObj.ccTaskButtonAnnex)},t.push(s)}if(n&&!this.isView&&this.taskObj.delegateTaskButtonLabel){let s={};s.name=this.taskObj.delegateTaskButtonLabel,s.btnProps={type:"default"},s.click=r=>{this.handleActionClose(),this.showOperation(hC,r,this.request,this.taskObj.delegateTaskButtonAnnex)},t.push(s)}if(n&&!this.isView&&this.taskObj.counterSignLabel){let s={};s.name=this.taskObj.counterSignLabel,s.btnProps={type:"primary"},s.click=r=>{this.handleActionClose(),this.showOperation(cC,r,this.request,this.taskObj.counterSignButtonAnnex)},t.push(s)}if(this.processIntId&&this.processStatus.createTopUserId==this.userId&&((e=this.taskNode[0])==null?void 0:e.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let s={};s.name="\u50AC\u529E",s.btnProps={type:"default"},s.click=r=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=r,this.popupContext=`\u786E\u5B9A${r}\u5417?`,this.handleTipsType="\u50AC\u529E"},t.push(s)}if(this.processIntId&&this.processStatus.createTopUserId==this.userId&&((i=this.taskNode[0])==null?void 0:i.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let s={};s.name="\u64A4\u9500",s.btnProps={type:"default"},s.click=r=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=r,this.popupContext=`\u786E\u5B9A${r}\u5417?`,this.handleTipsType="\u64A4\u9500"},t.push(s)}return t},processCardHeight(){let t=210;return this.processStatus.status?this.processStatus.currUserName||(t-=40):t-=140,`calc(100vh - ${t}px)`}},methods:{handleTest(){this.visibleSong=!0},async getUserInfo(){let t=await this.request.get("/app/user/info");t.code===200&&(this.user=t.data||{})},async handleGetSimulation(t){this.handleTips("",!0,"loading");let n={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:t},e=await this.request.post("/aws/tis/simulation",n);if(e.success){this.handleTips("",!1,"success"),this.nextNodeData=e.data;for(let i=0;i<this.nextNodeData.length;i++)this.approveNode=this.nextNodeData[i]}else{let i=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(i,"")}},async getOutgoingProcessNode(t,n){let e=await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:t,processNodeId:n}});if(e.code==200){if(e.data)for(let i=0;i<e.data.length;i++){let s=e.data[i];if(s.type!="UserTaskModel"){let r=await this.getOutgoingProcessNode(t,s.id);await r.map((a,o)=>{a.nodeName=a.incomingConditionItemList[0].compareValue}),s.childNode=r}}return this.handleTips("",!1,"success"),e.data}return[]},handleGet(t){this.taskNode=[].concat(t),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.request.get("/aws/pis/getProcessStatus",{params:{processInstId:this.processInstId,taskId:this.taskNode.length?this.taskNode[0].taskId:""}}).then(t=>{t.code==200&&(this.processStatus=t.data,this.processStatus.userNodeGroup&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName]&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName].length>1?this.canCheck=!1:this.canCheck=!0)})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length&&this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(t=>{t.code==200&&(this.taskObj=t.data)})},async showOperation(t,n,e,i){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)}e&&(this.operationParam.request=e,this.annexlabel=i),this.titleText=n,this.operationCom=t,this.$refs.TopPopup1.handleOpen(),this.operationParam.annex=i,this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"",this.operationParam.actionName=n,this.operationParam.formData=this.formData,this.operationParam.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(t=>{t.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),this.endFunction()):this.handleTips(t.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.post("/aws/pis/revoke",{processInstId:this.ProcessInsObj.id,processBusinessKey:this.ProcessInsObj.processBusinessKey}).then(t=>{t.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),this.endFunction()):(this.textTips=t.msg,this.typeTips="error",this.handleTips(t.msg,!0,"error"))}))},handleTipsCancel(){},getColor(t){return t=="\u5BA1\u6838\u4E2D"?"#FFA52D":t=="\u5DF2\u9A73\u56DE"?"#F14B4C":t=="\u5DF2\u64A4\u9500"?"#CECECE":t=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(t){this.titleText=t,this.actionShow=!1},getBtnStyle(t){switch(t){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.processStatus.appId}}).then(t=>{this.processDefList=t.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(n=>{this.processBusiness=n.data,this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(e=>{this.getFirstProcessNode=e.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(XC,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(n=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()}}};var tb=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("div",{staticClass:"process-warp"},[t.formData.currentState||t.processStatus.bizStatusName||t.processStatus.status?e("div",{staticClass:"process-main"},[e("div",{staticClass:"process-ml-item border"},[e("div",{staticClass:"process-mli-name"},[t._v("\u6D41\u7A0B\u72B6\u6001")]),e("div",{staticClass:"process-mli-value"},[t.formData.currentState||t.processStatus.bizStatusName||t.processStatus.status?e("div",{staticClass:"process-mliv-dd",style:{background:t.getColor(t.formData.currentState||t.processStatus.bizStatusName||t.processStatus.status)}},[t._v(" "+t._s(t.formData.currentState||t.processStatus.bizStatusName||t.processStatus.status)+" ")]):t._e()])]),e("div",{staticClass:"process-ml-item border"},[e("div",{staticClass:"process-mli-name"},[t._v("\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4")]),e("div",{staticClass:"process-mli-value"},[e("span",[t._v(t._s(t.processStatus.createTime))])])]),t.processStatus.allUserNames&&t.processStatus.allUserNames.length?e("div",{staticClass:"process-ml-item"},[e("div",{staticClass:"process-mli-name"},[t._v("\u5BA1\u6279\u8282\u70B9")]),e("div",{staticClass:"process-mli-value"},[e("span",{staticClass:"process-mliv-jd"},[t._v(t._s(`${t.processStatus.taskState==4?t.processStatus.currUserName:t.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`))])])]):t._e()]):t._e(),e("div",{staticClass:"process-card",style:{height:t.processCardHeight}},[e("TopTab",{attrs:{tapList:t.tapList,selfTapList:t.selfTapList,processIntId:t.processIntId,track:t.trackUrl,taskComment:t.taskCommentList,trackList:t.trackList}},[t.selfTapList&&t.selfTapList.length?t._l(t.selfTapList,function(i,s){return e("div",{key:s,attrs:{slot:i.slot},slot:i.slot},[t._t(i.slot)],2)}):[e("div",{staticStyle:{},attrs:{slot:"default"},slot:"default"},[t._t("default")],2),t._l(t.tapList,function(i,s){return e("div",{key:s,staticStyle:{},attrs:{slot:i.slot},slot:i.slot},[t._t(i.slot)],2)})]],2)],1),e("div",{staticClass:"process-btn"},[t.isAdditional?e("div",{staticClass:"footBtnRow"},[t._t("btn")],2):[t.isDocument&&(t.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||t.formData.currentState=="\u76D6\u7AE0")?[e("div",{staticClass:"top-button",style:t.getBtnStyle("default")},[t._v(" \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ")])]:[t.formData.currentState!="\u5DF2\u5B8C\u6210"||t.processStatus.status!="\u5DF2\u5B8C\u6210"||t.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?[t.formData.currentState==="\u5DF2\u64A4\u9500"||t.formData.currentState==="\u5DF2\u9A73\u56DE"||t.processStatus.status==="\u5DF2\u64A4\u9500"||t.processStatus.status==="\u5DF2\u9A73\u56DE"||t.processStatus.bizStatusName==="\u5DF2\u64A4\u9500"||t.processStatus.bizStatusName==="\u5DF2\u9A73\u56DE"?e("div",{staticClass:"top-button",style:t.getBtnStyle("default"),on:{click:t.handleRestart}},[t._v(" \u91CD\u65B0\u63D0\u4EA4 ")]):t._l(t.operBtn,function(i,s){return[s<3?e("div",{key:i.name,staticClass:"top-button",style:t.getBtnStyle(i.btnProps.type.toString()),on:{click:function(r){return i.click(i.name)}}},[t._v(" "+t._s(i.name)+" ")]):t._e()]})]:t._e(),t.operBtn.length>3&&t.actionBtn&&t.actionBtn.length?e("div",{staticClass:"elips",on:{click:t.handleActionOpen}},[e("div",{staticClass:"circle"}),e("div",{staticClass:"circle"}),e("div",{staticClass:"circle"})]):t._e()]]],2)]),e("TopPopup",{ref:"TopPopup1",attrs:{cancel:t.handleCancel,comfig:t.handleComfig,titleText:t.titleText}},[e(t.operationCom,{ref:"operationRef",tag:"component",attrs:{param:t.operationParam},on:{handleClosePopup1:t.handleClosePopup1}})],1),e("TopPopup",{ref:"TopPopup2",attrs:{titleText:t.titleText,isTips:!0,context:t.popupContext,cancel:t.handleTipsCancel,comfig:t.handleTipsComfig}}),e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),t.actionBtn&&t.actionBtn.length||t.taskNodeList&&t.taskNodeList.length?e("div",{staticClass:"top-elips",style:t.actionShow?"transform: translateY(0)":"transform: translateY(100%)"},[t.taskNodeShow?t._l(t.taskNodeList,function(i){return e("div",{key:i.taskId,staticClass:"top-elips-items",on:{click:function(s){return t.handleGet(i)}}},[t._v(" "+t._s(i.name)+" ")])}):t._l(t.actionBtn,function(i){return e("div",{key:i.name,staticClass:"top-elips-items",on:{click:function(s){return i.click(i.name)}}},[t._v(" "+t._s(i.name)+" ")])}),e("div",{staticClass:"top-elips-items top-elips-items--cancel",on:{click:t.handleActionClose}},[t._v(" \u53D6\u6D88 ")])],2):t._e(),e("div",{staticClass:"top-elips-mask",style:t.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;",on:{click:t.handleActionClose}})],1)},eb=[];const xb="",yp={};var nb=st($C,tb,eb,!1,ib,"451e116a",null,null);function ib(t){for(let n in yp)this[n]=yp[n]}const sb=function(){return nb.exports}(),rb={name:"TopSubmitPopup",components:{TopPopup:Qt,TopDownSelect:vp,PreviewImage:ur,departPerson:Ie,TopTips:Kt},props:{visible:{type:Boolean,default:!1},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{},upload:()=>{}})},appId:{type:String,default:""},processName:{type:String,default:""},resubmit:{type:Boolean,default:!1},id:{type:String,default:""},businessType:{type:[String,Number]},todoParameter:{type:Object,default(){return{}}},isClearHistory:{type:Boolean,default:!1},title:{type:String,default:"\u6D4B\u8BD5"},showType:{type:String,default:"all"},beforeFunction:{type:Function,default:null},manual:{type:Boolean,default:!1}},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:"",businessTypeData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{}}},watch:{visible:{async handler(t,n){this.show=t,this.$emit("update:visible",this.show),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId,processGroupName:this.processNameData}}).then(e=>{e.code==200&&(this.option=e.data,this.option&&this.option.length&&this.processNameData&&(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},businessType:{handler(t,n){this.businessTypeData=t},immediate:!0},id:{handler(t,n){this.idData=t},immediate:!0},processName:{handler(t,n){this.processNameData=t},immediate:!0},title:{handler(t,n){this.titleData=t},immediate:!0},todoParameter:{handler(t,n){this.todoParameterData=t},immediate:!0,deep:!0}},methods:{async getProcessInstance(){this.id&&await this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.id}}).then(t=>{t.code==200&&(this.processId=t.data.id)})},async handlefirstNode(t){t&&await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:t}}).then(n=>{n.code===200&&(this.firstPerson=n.data)})},handleChange(t,n){this.handleTips("",!0,"loading"),this.checkedItem=t,this.handlefirstNode(this.checkedItem.id),this.getAfferentParticipantNodeList(),this.getProcessInstance(),this.getDiagramUrl(),this.$emit("change",t,n),this.$refs.topTips.handleClose()},getAfferentParticipantNodeList(){this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(t=>{t.code==200&&(this.firstPerson&&this.firstPerson.length&&(this.personList=t.data.filter(n=>!this.firstPerson.some(e=>e.id==n.id))),this.$emit("change",this.checkedItem,t.data))})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(t=>{t.code==200&&(this.trackUrl=[t.data])})},handleOpenPerson(t){if(this.visiblePerson=!0,this.personObjId=t.id,t.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel"};else if(t.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let n;t.routeTxt.companyIds.map((e,i)=>{n=e.rangeId}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],deptCode:n,multiple:t.type=="InclusiveGatewayModel"}}else if(t.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let n;t.routeTxt.companyIds.map((e,i)=>{n=e.name}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:t.type=="InclusiveGatewayModel",subjectName:n}}},handleCallback(t){this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],t.map((n,e)=>{this.multiNodeParticipant[this.personObjId].push(n.uid),this.partNode[this.personObjId].push(n.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.manual||await this.handleSongshen()},async handleSongshen(){if(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(t=>{t.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.handleTips(t.msg,!0,"error")});else{let t={title:this.titleData,processDefId:this.checkedItem.id,processBusinessKey:this.idData,showType:this.showType,businessType:this.businessTypeData,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameterData};console.log("\u9A8C\u8BC1\u6761\u4EF6::",t,"this:::",this),await this.request.post("/aws/pis/createAndStart",t).then(n=>{n.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):n.code==499?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")}):this.handleTips(n.msg,!0,"error")}).catch(n=>{this.handleTips(n.msg,!0,"error")})}},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()}}};var ab=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("TopPopup",{ref:"TopPopup",attrs:{visible:t.show,titleText:"\u9001\u5BA1",isDrawer:"",isIndex:99},on:{"update:visible":function(i){return t.show=i,t.$emit("update:visible",i)}}},[e("TopDownSelect",{attrs:{option:t.option,defaultValue:t.selectDefaultValue},on:{change:t.handleChange}}),t.checkedItem.id?e("div",{staticClass:"viewTrack",on:{click:function(i){t.taskurlshow=!0}}},[t._v(" \u67E5\u770B\u6D41\u7A0B\u56FE ")]):t._e(),t.firstPerson&&t.firstPerson.length?e("div",{staticClass:"person-views"},t._l(t.firstPerson,function(i,s){return e("div",{staticClass:"views-items"},[e("div",{staticClass:"views-items-name"},[t._v(" "+t._s(i.name)+" "),e("span",{staticClass:"views-items-name--re"},[t._v("*")])]),e("div",{staticClass:"views-items-set"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",[t._l(t.partNode[i.id],function(r,a){return e("span",[t._v(" "+t._s(a>=3?"":a==0?r:`,${r}`)+" ")])}),t.partNode[i.id].length>3?e("span",[t._v("...\u7B49"+t._s(t.partNode[i.id].length)+"\u4EBA")]):t._e()],2):e("div"),e("div",{staticClass:"views-items-set-btn",on:{click:function(r){return t.handleOpenPerson(i)}}},[t._v(" \u8BBE\u7F6E ")])])])}),0):t._e(),t.personList&&t.personList.length?e("div",{staticClass:"person-views"},t._l(t.personList,function(i,s){return e("div",{staticClass:"views-items"},[e("div",{staticClass:"views-items-name"},[t._v(" "+t._s(i.name)+" ")]),e("div",{staticClass:"views-items-set"},[t.partNode[i.id]&&t.partNode[i.id].length?e("div",[t._l(t.partNode[i.id],function(r,a){return e("span",[t._v(" "+t._s(a>=3?"":a==0?r:`,${r}`)+" ")])}),t.partNode[i.id].length>3?e("span",[t._v("...\u7B49"+t._s(t.partNode[i.id].length)+"\u4EBA")]):t._e()],2):e("div"),e("div",{staticClass:"views-items-set-btn",on:{click:function(r){return t.handleOpenPerson(i)}}},[t._v(" \u8BBE\u7F6E ")])])])}),0):t._e(),!t.firstPerson&&!t.firstPerson.length&&!t.personList&&!t.personList.length?e("div",{staticClass:"person-views-white"},[t._v(" \u65E0\u9700\u8BBE\u7F6E ")]):t._e(),e("div",{staticClass:"person-btn"},[e("div",{staticClass:"top-button",staticStyle:{"background-color":"#3c9cff",color:"#fff"},on:{click:t.handleSumbit}},[t._v(" \u9001\u5BA1 ")])])],1),e("TopPopup",{ref:"TopPopup",attrs:{visible:t.visiblePerson,titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},on:{"update:visible":function(i){return t.visiblePerson=i}}},[e("departPerson",t._b({attrs:{visible:t.visiblePerson},on:{"update:visible":function(i){t.visiblePerson=i},callback:t.handleCallback,cancel:t.handleCancel}},"departPerson",t.entity,!1))],1),e("PreviewImage",{attrs:{images:t.trackUrl,visible:t.taskurlshow,indexd:0,isOne:!0,isStyle:t.isStyle},on:{"update:visible":function(i){return t.taskurlshow=i}}}),e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}})],1)},ob=[];const Db="",Cp={};var cb=st(rb,ab,ob,!1,lb,"1326c8de",null,null);function lb(t){for(let n in Cp)this[n]=Cp[n]}const ub=function(){return cb.exports}();Zt.TopProcess=sb,Zt.TopSumbitPopup=ub,Zt.ViewAttchList=Mc,Zt.attchViews=me,Object.defineProperties(Zt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|