ui-process-h5 1.0.21 → 1.0.22
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 +239 -234
- package/v2/ui-process-h5.umd.cjs +1 -1
- package/v2.7/ui-process-h5.js +34 -29
- package/v2.7/ui-process-h5.umd.cjs +1 -1
- package/v3/ui-process-h5.js +34 -29
- package/v3/ui-process-h5.umd.cjs +1 -1
|
@@ -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=Xy({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),$y(s,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const tC={components:{checked:Uy,dcSwitch:Ry,dcLoading:Zy},name:"departPerson",props:{visible:{type:Boolean,default:!1},source:{type:String,default:"0"},type:{type:String,default:"0"},request:{type:Function,default:()=>({get:()=>{},post:()=>{}})},businessId:{type:String,default:""},codeType:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},checkedArray:{type:Array,default:()=>[]}},data(){return{isSon:!1,deptId:"",subjectId:"",jsonData:[],breadcrumb:[],checkedJson:[],keyword:"",isQuery:!0,isLoading:!1,checkedAll:!1,isShowChecked:!1}},watch:{visible:{deep:!0,immediate:!0,handler:function(t,n){if(!t)return!1;this.$nextTick(()=>{this.getDetail(()=>{this.getSearch(),this.defaultBreadcrumb()})})}},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(U(t)||!U(this.businessId))return!1;this.getCards()}}},computed:{dialogVisible:{get(){return this.visible},set(t){this.$emit("update:visible",t)}},queryImg(){return zy},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=!U(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=U(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:U(n.counts)?0:n.counts,num:p,phone:Sy(n.phone),uid:n.uid,iconName:ba(n.name,2),checked:a,ancestors:e,ancestorNames:i,deptName:By(n.ancestorNames,"/"),uniqueId:s,isDisabled:o,isLevel:c,subjectId:n.subjectId,sex:n.sex,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"),U(i)?"":"\u5DF2\u9009\u62E9"+i.join("\uFF0C")},breadcrumb_subjectId(){return this.breadcrumb.length>1?this.breadcrumb.find((t,n)=>n===1).value:""},breadcrumb_level(){const t=this.breadcrumb.filter((n,e)=>e!==0);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},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(){let t=[];return this.isShowSubject&&t.push("\u7EC4\u7EC7"),this.isShowDept&&t.push("\u90E8\u95E8"),this.isShowQuery&&t.push("\u4EBA\u5458"),"\u9009\u62E9"+t.join("\u3001")},isNoDelete(){return U(this.checkedArray)?[]:this.checkedArray.filter(t=>t.isDeleteNo)}},mounted(){document.title=this.getTitle},methods:{handleSubmit(){const t=U(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:U(e.phone)?"":e.phone,sex:e.sex,uid:U(e.uid)?"":e.uid}));if(U(this.businessId))return this.dialogVisible=!1,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.dialogVisible=!1,this.$emit("callback",t))}).finally(()=>{this.isLoading=!1})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){this.getSearch(()=>{this.isQuery=U(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){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.multiple?this.checkedJson.push(r):this.checkedJson=[r],!1)}this.checkedJson=this.checkedJson.filter(e=>e.uniqueId!==n.uniqueId)},handleBreadcrumb(t,n){if(n+1==this.breadcrumb.length)return!1;switch(n){case 0:this.deptId="",this.subjectId="";break;case 1:this.deptId=0,this.subjectId=this.breadcrumb_subjectId;break;default:this.deptId=t.value,this.subjectId=this.breadcrumb_subjectId;break}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 U(e)||(e.type==1&&(new cp().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 cp().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.breadcrumb=[{name:"\u7EC4\u7EC7",value:"-1"}],this.isSon=!1,this.deptId="",this.subjectId="",this.jsonData=[],this.keyword="",this.isQuery=!0,this.isLoading=!1},getIsSon(){const 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},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};U(e.deptId)&&delete e.deptId,U(e.deptId)&&delete e.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:e}).then(i=>{t(),this.jsonData=U(i.data)||i.code!==200?[]:i.data,this.getIsSon()}).finally(()=>{this.isLoading=!1})},getDetail(t=()=>{}){if(U(this.businessId))return t(),!1;const n={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:n}).then(e=>{this.checkedJson=U(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:U(i.uid)?"":i.uid,isNoDelete:o}}),t()})},getCards(){if(U(this.checkedArray))return this.checkedJson=[];const t=this.checkedArray.map(n=>({type:n.type,id:U(n.id)?null:n.id,uid:U(n.uid)?null:n.uid,subjectId:U(n.subjectId)?null:n.subjectId}));this.request.post("/auth/component/org/cards",{params:t}).then(n=>{this.checkedJson=U(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:U(e.uid)?"":e.uid,isNoDelete:o}})})}}};var eC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return t.dialogVisible?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",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"},[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))])])])}),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):t._e()},nC=[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 iC=as(tC,eC,nC,!1,sC,null,null,null);function sC(t){for(let n in lp)this[n]=lp[n]}const Ee=function(){return iC.exports}(),rC={name:"TopSubmitPopup",components:{TopPopup:Qt,TopDownSelect:Jc,PreviewImage:ur,departPerson:Ee,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}},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:[],formData:{}}},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.processName}}).then(e=>{console.log("\u83B7\u53D6\u6D41\u7A0B::",e),e.code==200&&(this.option=e.data,this.checkedItem=this.option[0],this.$emit("change",this.checkedItem,this.option),this.getAfferentParticipantNodeList(),this.getDiagramUrl())}),await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code===200&&(this.firstPerson=e.data)})},immediate:!0},appId:{handler(t,n){this.formData.appId=t},immediate:!0,deep:!0},processName:{handler(t,n){this.formData.processName=t},immediate:!0,deep:!0},resubmit:{handler(t,n){this.formData.resubmit=t},immediate:!0,deep:!0},id:{handler(t,n){this.formData.processBusinessKey=t},immediate:!0,deep:!0},businessType:{handler(t,n){this.formData.businessType=t},immediate:!0,deep:!0},todoParameter:{handler(t,n){this.formData.todoParameter=t},immediate:!0,deep:!0},isClearHistory:{handler(t,n){this.formData.isClearHistory=t},immediate:!0,deep:!0},title:{handler(t,n){this.formData.title=t},immediate:!0,deep:!0},showType:{handler(t,n){this.formData.showType=t},immediate:!0,deep:!0}},methods:{handleChange(t,n){console.log("\u5F53\u524D\u9009\u62E9::::",t),this.checkedItem=t,this.getAfferentParticipantNodeList(),this.getDiagramUrl(),this.$emit("change",t,n)},getAfferentParticipantNodeList(){this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(t=>{t.code==200&&(this.personList=t.data.slice(1),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){console.log("\u9009\u4EBA\u5F39\u7A97",t),this.visiblePerson=!0,this.personObjId=t.id},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)}),console.log("callback_OK",t,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},async handleSumbit(){if(this.firstPerson&&this.firstPerson.length&&!this.multiNodeParticipant[this.firstPerson[0].id]){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error");return}if(this.beforeFunction&&await this.beforeFunction(),this.handleTips("",!0,"loading"),this.resubmit)this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.formData.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(t=>{t.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.handleTips(t.msg,!0,"error")});else{this.formData.processDefId=this.checkedItem.id,this.formData.multiNodeParticipant=this.multiNodeParticipant;let t=this.formData;console.log("cccc:::::",this.formData,t),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.formData.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 aC=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},on:{change:t.handleChange}}),e("div",{staticClass:"viewTrack",on:{click:function(i){t.taskurlshow=!0}}},[t._v("\u67E5\u770B\u6D41\u7A0B\u56FE")]),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)},oC=[];const gb="",up={};var cC=st(rC,aC,oC,!1,lC,"4846f8b8",null,null);function lC(t){for(let n in up)this[n]=up[n]}const pp=function(){return cC.exports}(),uC="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXRVnGqq2o7PtvB1hl0fFun6ji+xhfgzCioq5WA2hFxptUOY23VqlNf06laW7VrVUfs8gEqgmBFRZ4hIRBIcu85e8/69j4HriEJAYLiY691181Ncs/Z+3/++/u+/b0U3T1mWM0AAlZhmaEirFUoZZlus+WlDM8ZJqKpsJZhCiYAxmgC5T8Pk+lYWG4Vy7UhBrSF15ViOYaNrZr5TVt4lxtUfuu1Z9iQAShWETNDme5ckuqWiwkIdxGyEsUMCg6QOTbXazMDAs1wYD9jGKk1gwJFX6UIUZQrS7W7v0AI5fJKAGqy0IQVrMAq6rE0WUsUW9YZwwqtWQq8FRve3VDGKi5TrQ6wGWRQGKYTu3ns5tg9gGRCD6NZ5Njinlz1HFtBK/thOUwZJmjNKGCcggoDthChYguRvIqetTFCJb8arf0rHaGGUEGgIBNiNcjKNwKLjOEdq3kdxUvkeKv+MiW/B2HyOBSTMbsD1O4BlK5AKA706UE/AyeguBrLGAVxbAksWGMwGmwuRAWyYI3KaLbeX36Xfi4YbFwEnnyOkt+1RlgDSmu0AhUoBO8AxWIst2h4sq6Z1R6k3d9uuwaQMOcG2U5+An1vtiNizWlYJivFMKUoExIIvwvGM6U1gqoSOHwIDKyAYb1gdDXIBYQZ+1TA0EqP+PuN8NFG3MqFSEvqYfkGWLkRXvgAGlogFzqQBVSHshDQWjZbeB/DPF3CL+uuUKu2smk6dleYtPMAPWQDFjlwosqbbVUGJhvNJA1fDRQ18libI0xTAdszCwf0Qx1QgxrTB0ZUoQSc0gxUlnjArDx+QbPNTIwFYZEIJwGksQW2FDxIyxqwi+vgjTXYN9ZiN+WhPIPqEaLd9ywfAq9geapgeajxWtWAsHwcllOUCP4uj64DlLImoW7lLDtcW85XcEaoGBRbzOYCJoqxNeUEB/VHTxwE+/WFA2pgcCXkgo7nJWwpJFPPBJ5VHY3WGD5sdADx1jqYvwJeW41Z00QcBqiyDDpQ6MiywsJ9RnF34xT1rpNLMnaCTTsHkGiFGVb3yTIiDrhKwQVygdgQaY0qCdG9e6COGgZnjodD9/FLFJbIdku3jLBCxtabt/m8VfUkP6Sf5TrplpSvpNd5+SP4xUJ4fjmsb8a2RMTGYANNRr5r4a4g5ta6PMucWEhNjy7wqGsA/cRmuFAVBJyqEr6m5Rko/kqBCTR6cx72rYK/OwBOGu3lS1bkQyeM6cLcuvwvwry88XLq8SXwyzfgvQYoy7qHJ7tOY/mdgRsaWnjRgZSuaQd36Ryg1L65UBVqZtt+UcxkFKdrxVcCRU6eVGuM/u4Y1NkT/FYaUJ4ITWGN9U95O8Z0eent/2Mxo9J7iAyT369q8lvv3tfh0cXYXIApCQliS6uxTi7dHwY8vOYatdaBdAFRZ8K7Y4CKaNin1vaMDWcpxVStGWIscVOeuKqE7LdHwaUT4cAav4XkcckQGdJW8O4mLh1+PRHM7u9yT7n3gjVwx3z49TtOyOfLswRaERjDB9ZSG2h+XjdVbUpkgLf22xkdAyQCLVHjvWvtJcAUYLAQQ7ZWaYbghBFQeyz0yoEITlG5nxQoHaElYIlpIQphQytM/S08ucxpQCcChdDgtNys9VPVXHedorW2vW77AIkqF3UoMifLX+qAWVrxtdh4w29IL7jwK3D+wZANPLW7Jsz2FIe2v246p3wMd78KP3kFPtjg2BUHmsBYXjQxUxry/J8jQrrmNpfqFKCeN9nR2Sx3asU3RStYhdmnguDyiXDqfl4IplpqV5kjC0ltnpTjMqnUNtpV4OWaqewTJfLgW3D7fGeAxsqiResay+/zeS7edJ1a0nWAxKCaoaKeP7SjwoArNJyb0ZTUN5OvKSc79Qg44wDoVQItkbdod3URe5pPArhY8CUhbGiB+96A2j/Cmiby1T3IFgwtBu6JYn606Z/VO+2BtG1tRUK54jZbHURcoyzThBlRTJQLCSeNgluOg4qcB0du3B1DtkFzwcsOGSLLemT89u2Okc51Yytc/TQ88Y4DLgoDQmGaVcyMQ2ZvvFLVtxXa2wAq2oN9brb/YGEamqFy3tnYij1jPGr2MZ45blvtptzZKiMMPLEEHn0bljf4aw+rgu+OhUmjvT3VXfeSawuTrnkG7luIrcihnEfB8L6CmXXXqh+7CRRh4QFK2TPD6l4hg4MMc7Xi2/mYKDaEJ42Byw+DQwb6Bbjj827sKzljiYwR5ggw//UazP/IneHc6BHCxH3gewd5oIRJ6Xd2lVHFc/7TSrj9JXh8sZtHIRuQMYZHcyEXrLxa1Tk8ZCiV/JDInZrZtqwQcY3WXGigP9YJZT3rGDh+hN/P2W6QOQKMLFqe5vlPwFPLIAw8MDIEqCj297x7kmdt+p1dBShlfT6Rm3LPKc84oW1Qzv30obHMKc1y54orVbM73M5QkUdqus2KC7NPrR1oLE9lAg5obKFQXUrm4kPgvIOgf7nXNruqrYoXJjaT2CnrtsDxv4CFq6FfuX8AMkTwr22C8f3hqTOhb6m3szo77HYVuHQNq5tg3mtw55+gfguFyhIyhZi3tOLYuqlqZYqJSo0ksZZNzClKc1s2pGLdZgrj+pC5f7I/kcteFXnUHUOAcCBshiPvgcVrYWDlxwFa2Qhj+sEfzoV+Zf5v8p3uGOlaxBNw+sOwqI5C3zIy+YiN1nClDnjIWdkzrBaAHJX61NqjDc7mGSuHv/Is5jtj0Dd/E3rmuofi6eKKATrqHni7A4DG9oPn9wBA6Xbd1ArX/h4eW4xpyqPlcG0sb2u4uG6qek6w2QpQ71p7mYXbhSX1W4iOH0l449FwYD/vH+6u7SUgfdoApWsRH/iCtXD9c/DUUqLqUkJhl4LL109VczxAQL9ZdrixTDdwlmgncRFcNhE9/ahEayVapzvovTcA5DRx0ZpueB7mzPeum8Rn9XOtuGHtFPWuA6i61h6jLTfFMFFsjvE1HqC/Gesh6U727C0AFa/pV297gBau8ToogPlGcV39VPWMB2imvTzQzMzHlAiy50zAXnKo9yM79Vh0rukOFn3aW6ztmsS/Pfdl7M9e9xGXbEBLbJhWP03d7gCqmmnnZjQXN0dELRHhrcfBpYduY87uWrJtQd0rAEpOAimT7ngZrnraHZ+iHiFhIWZuw7XqUlV+ix2XM/xAw3fEci4JCeedBCeO7F7V/jE7qEjNfxparHguqcr/zVI473F3xoyyckaDx6zhX1XvWntOoPl+a8QRuYD4iCEE1x8JB/bfffO+o+24NzAonVsqrBeshhv/AH/8wLmRg1zACxHME4D+JdCcvCXPwT1zmJPHoeXcNbKq62cukfzyElnlo+mdD7GKxSOwYiMccy+IDBjY01vLMsRiXrkJRAY+czYMqnAH5i5b0uIHElnSlfNiekZb2uDPZ48sIt7USlCWZX5kuF9Vz7Q/zQR8vbGVkX1LMZcdhj7nQG/ed0V77YoA/6QY1BXZma5Rjj0/WwBzXsKs24KuzLGoEPOMMOjZXMCYtZsZMKQS+2/Ho04Y6Y8VXV186s+R0ItjURcYJIxZUgcnP+jf22PQ6D7wyKkg78Korp7F5CAs0duu+JPSNYosenIp/NNT2A8aUX3LWJ03LBaAfpcLGJcC9KPjUSKgdwRQMXjigHrgDVi6HjYXduxhFAyF/jKp+mb/Lp+LXa5CfZlDdQ//Lp8787DIthJ5IvPavwbOnQB/LXklOzBTigESQX1FAlC/Mla1xixWVTPtK7mAoXVb6C0Muv0ElEQrZA93xKBif84j4s953Yd/xfcrboodDVmoXFuOMJXtAFAMYGOzT4sRADojp7tmcuPyHBy5rw8qnDjCBzA78mGla5Q1SfTjcgFoA6pPGatbhUHVM21dLqR8VRO5kdXw4GQ4KNFgsoD2nlp62JOnf8av4Ln3oCy3cy5Yua448wqRf297H1msOA8yoX/vws518Igp7B6UgRNHwY+/1bk/yQUNkmPHa6vh1Iexy+pR/ctpao2pky0m0UeXNdHV03OxkD1iHiytg0G9vF95bxg7609qV2lUeK36uQVojTjcauDps3bscOsUoOpauz4XULZqEznRFk+cBqN6+wiDRBfaG223mGRVyL7vitZIr/eZ2GIF1quqWi+k122m97Be2LsnoY4e9nGN0haktk73u16Bl1Z4SsafdSH9pFfzfUpZXYhY4tR8JmBc3RYGDKnA3noc6lsjveTvzA4qNiIfeBMeWAgrm3wW2I7Gnlbz+9XA97pLzYuhmAkYU5cYircldpBsr64aii1J4E+YlWZ3dAaSMO0zYyjKUSMX8PX6Fkb2L8dMOxwtiVASavnyqOGPGu6wujnPwZUlxGeOJ7joEBhW2TWAhCmfy8NqjpejmPu2c3ccnrg7Jnzp7vDuji8dZv6sJwdVcZiJVzUTENrUYSZbpGqWnRsqLm4pELUmLtdLvmAu17mJyzUXEpVkXPhnbsNUdal32s+ylwdQm4/Jfem0dwavKNqp9VMSp33bsM+BSdjn5C9I2Ec8EhL2WdBR2Kdt4FAKTyQudv0XJHB4YxI4lAKZ7QOHSWzehZ6tDz03NBMd9wULPT+9lKiqRxJ6VsWh5xSgm+03rOJOrRmzNXlhLPrmb3zOkxeehcfeLkpeECeZ5eL116pn0+QFlw/dNv2lTtJf+pK5728/v+kviyT95b9dQUwn6S+ixooTqODpjGZ/SaDqXUpGrOq//5wmUEnqnyRQrd+WQLVIK475eAKVAPQFTMH7X4lgPAl1zRgpnVKKD2PLHWUZ5m6fgleUxDkgZHA+SeIsSBKnTZI4J8JXPydJnOK7mv2iT+Isz1LIBWQiw6MlHSZxCouKUl97z7QXoZgK29KAzxyPkmTOz3oacGMrXPRreOBN7IBylCgkV8ZpqV0/Tf2Hc9Nslwbsg0dbK156zrW9w80ukVyqe6QS0GU8SN7y7GM/24nk1/zWpdzRIsnxAaGLpSlqozJmb7pErU8CaVux2D6qk5Yi3GRHu1KEwJUi5OpbyPeXUoTD4fTPUCmCMCRNOb5fShFecBm0+aoeZPMxrSZOShE6qNfovJjlh3ZUNuDfi4pZ7KAK9GVJMUt51vuuXRBwFxPL93Qxi0yrKSlmmTPfJUwYqX+WYhYrxSwx/9hRnYawaZfKoYYm5VDf30vLoYqTFiQpQepZ710Af25wDQq6oRzKq/5tBXWz7KVYrtmuoG4k1Irg3tsK6iTpPAQRyFM6KqhTzF4/Rd3hZM5OF9S1Edp9p9vyqJSzFa76Z3BxSaYkCEhJpgTp9qaSzFdXwy0vwrN/dkDlpULSlWRaPrQwM9zCvetuUE1thXLbYEPnkqNtUa/hFOC04qLevBT1jkWddeDeUdQrJQYSY//pK76otyKLKcsQRGlRLzwQah7a/aLeYih3UBYusbC/qPJViJPGwL5JWbgUqHwSQzJKJDfpvQ3wP0vgP1/1P0sJQ2Qwxu6psvDi1RVZ266xgOZqBecneTkFrVAlGYLepaijhn5KjQXed+cq21wgNhYbSmMB39Tg7sBwy55rLJDKpKJWOJU32eE6wwUaztCafaQ1xZai1hQHp60p+vmEpsEV3dyaYiO8Ka0p1vrcpFfba01h+Mi1pihwV+N1SWuKnWyZs/PWS9vmJopTrOJ4kUsiwIVRzQXXx8M1Nxlfg9rfNzdRkhg6oKcvt5QjS1WPpLlJOzX2aS28a27S7GvLJL1m1SaQhMvFddg312AXrvHNTcqkuUkGLYyR5ibW8or6RJubtN1uxe1xZtn+seF0FOcpGKIUpZJkKvaIa48T+8QGSac7fHBRe5zeSbmltMfp2aY9zqYk9C3tcdYXtcf50KftSU6TyLii9jixtWyx8AGWeYHm/nVTVNJHyOqdaWhSvNSdZ1B7UjfpqtKnB/2N4UQUVwFjlEoaLFmMa7CknH2iXEcp7d633r+zBkvSXCl5SaWQdSFxabCkXJcXAUbUgTRYulVrfvPpN1hKQWqnRVfVTFupDOMIOSwwTLAwWmnGttuiqyhVRhb9sRZdRY9OmNJeiy5reFvBklhadEW8ZDWLGqapxq3G307Km/aeffcwyPcWChB1mjR5GzHH5ta1MjCMGI5mnIGRGgYFmr4KpHawp1JJkzd/5tm+yVsyY2uRcu1N0vYsNqwzsELDUgyLopB3++ZYuWyvbPLW0XbrpE1gFg5DUYFvC3iQy+U0rp3XMKUZ6hSmL9Nejnb5nfK315A2gZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",pC={name:"attchViews",components:{TopTips:Kt,PreviewImage:ur,PreView:Nc,TopPopup:Qt},props:{request:{type:Function,defalut:()=>{}},limit:{type:Number|String,default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(t,n){t&&(this.filesArr=[].concat(t),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return uC},del(){return Tc},doc(){return Dc},file(){return Oc},image(){return Sc},pdf(){return Bc},xls(){return _c},zip(){return Qc}},mounted(){this.$nextTick(()=>{let t=document.createElement("input");t.type="file",t.className="upload-input",t.style="opacity: 0;position: absolute;",t.multiple=!0,t.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(t),typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1)})},methods:{handleClick(){if(console.log("\u62E6\u622A",this.haveCount,this.limit),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${props.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}},async handleSelect(t,n){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading"),console.log("formData",t.target.files);const e=Array.from(t.target.files);let i=0,s=this.haveCount>e.length?e.length:this.haveCount;try{for(let r=0;r<s;r++)if(this.extension.includes(e[r].name.substring(e[r].name.lastIndexOf(".")+1))){const a=new FormData;a.append("file",e[r]);const o=await this.request.post("/file/upload",a,{headers:{"Content-Type":"multipart/form-data"}});if(o.code===200){if(this.filesArr.length>0){for(let c=0;c<this.filesArr.length;c++)if(o.originFileName==this.filesArr[c].originFileName&&i++,this.filesArr[c].originFileName.includes(`(${i})`)&&i++,i>0){let p=o.originFileName.lastIndexOf(".");o.originFileName=`${o.originFileName.substring(0,p)} (${i}) .${o.originFileName.substring(o.originFileName.lastIndexOf(".")+1)}`}}this.filesArr.push(o.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${e[r].name}\u683C\u5F0F\u9519\u8BEF,\u8BF7\u91CD\u65B0\u4E0A\u4F20`,!0,"error");return}this.handleTips("\u4E0A\u4F20\u6210\u529F",!0,"success"),this.viewImage(),console.log("\u5F53\u524D\u5DF2\u4E0A\u4F20",this.filesArr),this.emitView()}catch{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.emitView()}},handleDel(t,n){if(this.deletFn){if(this.deletFn(n)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(t,1),this.emitView()}else this.filesArr.splice(t,1),this.emitView()},viewFile(t,n){console.log("data",t),this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1))?(this.visible=!0,this.indexd=this.lists.indexOf(t.url)):t.url&&(this.visibleS=!0,this.fileUrl=t.url)},viewImage(){this.lists=[];let t=[];this.filesArr.map((n,e)=>{this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1))}),t=this.filesArr.filter(n=>this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1))),t.forEach((n,e)=>{this.lists.push(n.url)})},emitView(){console.log("\u5DF2\u53D1\u9001\u6570\u636E:",this.filesArr),this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[],console.log("clear!!!!!")},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()}}};var dC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"attch-upload"},[t.buttonLoading?e("div",{staticClass:"attch-upload-mask"}):t._e(),e("div",{staticClass:"attch-upload-body"},[e("div",{staticClass:"upload-header"},[e("div",{staticClass:"upload-header-title"},[t._v(" \u9644\u4EF6 "),t.requires?e("span",{staticClass:"upload-header-title--re"},[t._v("*")]):t._e()]),e("div",{staticClass:"upload-header-upload"},[t.onlyShow?t._e():e("div",{staticClass:"upload-header-upload--item",attrs:{id:"inputfile"},on:{click:t.handleClick}},[e("img",{attrs:{src:t.addFile}}),t._v("\u4E0A\u4F20\u9644\u4EF6 ")])])]),e("div",{staticClass:"upload-body"},[t.filesArr.length>0?e("div",{staticClass:"upload-list"},t._l(t.filesArr,function(i,s){return e("div",{key:i.uuid,staticClass:"list-items"},[e("div",{staticClass:"list-items-icon"},[t.xlsIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))?e("img",{staticClass:"icon-img",attrs:{src:t.xls}}):t.imgIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))?e("img",{staticClass:"icon-img",attrs:{src:t.image}}):i.name.substring(i.name.lastIndexOf(".")+1)=="pdf"?e("img",{staticClass:"icon-img",attrs:{src:t.pdf}}):t.docIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))?e("img",{staticClass:"icon-img",attrs:{src:t.doc}}):t.zipIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))?e("img",{staticClass:"icon-img",attrs:{src:t.zip}}):e("img",{staticClass:"icon-img",attrs:{src:t.file}})]),e("div",{staticClass:"list-items-info"},[e("div",{staticClass:"info-name"},[t._v(" "+t._s(i.originFileName)+" ")]),e("div",{staticClass:"info-attribute"},[e("span",{staticClass:"info-attribute-size"},[t._v(t._s(i.fileSize<1024?i.fileSize:i.fileSize/1024>1024?parseFloat((i.fileSize/1024/1024).toFixed(2)):parseFloat((i.fileSize/1024).toFixed(2)))+t._s(i.fileSize<1024?"b":parseFloat((i.fileSize/1024).toFixed(2))<1024?"kb":"M")+" ")]),e("span",{staticClass:"info-attribute-views",on:{click:function(r){return t.viewFile(i,s)}}},[t._v(" \u9884\u89C8 ")])])]),t.onlyShow?t._e():e("div",{staticClass:"list-items-operation"},[e("div",{staticClass:"list-items-operation-img",on:{click:function(r){return t.handleDel(s,i)}}},[e("img",{attrs:{src:t.del}})])])])}),0):t._e()])]),e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),e("PreviewImage",{attrs:{images:t.lists,visible:t.visible,indexd:t.indexd},on:{"update:visible":function(i){return t.visible=i}}}),e("TopPopup",{ref:"TopPopup",attrs:{visible:t.visibleS,titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},on:{"update:visible":function(i){return t.visibleS=i}}},[e("PreView",{attrs:{file:t.fileUrl}})],1)],1)},fC=[];const Ab="",dp={};var hC=st(pC,dC,fC,!1,vC,"063c09b3",null,null);function vC(t){for(let n in dp)this[n]=dp[n]}const Ie=function(){return hC.exports}();var mC=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",{staticClass:"process-pc-label"},[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA: ")]),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)},gC=[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 yb="",AC={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:Ie,TopPopup:Qt,departPerson:Ee},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?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):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(){console.log("isVue2",this.param),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],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(t){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")},getValues(t){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",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;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t});console.log("asd",n),n.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 yC=st(AC,mC,gC,!1,CC,"3556632c",null,null);function CC(t){for(let n in fp)this[n]=fp[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",{staticClass:"process-pc-label"},[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA: ")]),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)},IC=[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 Cb="",kC={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:Ie,TopPopup:Qt,departPerson:Ee},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?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):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(){console.log("isVue2",this.param),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],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(t){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")},getValues(t){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",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;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t});console.log("asd",n),n.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()}}},hp={};var wC=st(kC,EC,IC,!1,NC,"def75392",null,null);function NC(t){for(let n in hp)this[n]=hp[n]}const xC=function(){return wC.exports}();var TC=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"},[t._v(" \u5FEB\u6377\u56DE\u590D ")]),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._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"},[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA: ")]),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)},DC=[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="",OC={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:Ie,TopPopup:Qt,departPerson:Ee},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?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):t.outGatewayUserTaskModel.length&&(t.outGatewayUserTaskModel[0].type=="userTask"||t.outGatewayUserTaskModel[0].type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):t.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel")},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(t){this.visible=!0,this.partObjId=t},async confirm(){if(!this.commentMsg){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/complete",{actionName:"\u63D0\u4EA4",commentMsg:this.commentMsg,taskInstId:this.param.taskInstId,vars:this.param.vars,multiNodeParticipant:this.multiNodeParticipant}).then(t=>{if(t.code==200){if(this.attchLists.length>0){this.uploadAttch();return}this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""}else this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(t){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")},getValues(t){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",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;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t});console.log("asd",n),n.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()}}},vp={};var SC=st(OC,TC,DC,!1,BC,"519beb5d",null,null);function BC(t){for(let n in vp)this[n]=vp[n]}const _C=function(){return SC.exports}();var QC=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",{staticClass:"process-pc-label"},[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA: ")]),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)},FC=[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="",PC={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:Ie,TopPopup:Qt,departPerson:Ee},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(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],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(t){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")},getValues(t){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",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;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t});console.log("asd",n),n.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 MC=st(PC,QC,FC,!1,UC,"5b0d9bba",null,null);function UC(t){for(let n in mp)this[n]=mp[n]}const VC=function(){return MC.exports}();var JC=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)},LC=[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 Ib="",jC={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:Ie,TopPopup:Qt,departPerson:Ee,TopDownSelect:Jc},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(){console.log("this.param.taskInstId",this.param.taskInstId),this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(t=>{t.code===200&&(this.option=t.data)})},handleChange(t){console.log("\u9000\u56DE\u8282\u70B9,",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],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(t){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")},getValues(t){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",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;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t});console.log("asd",n),n.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 GC=st(jC,JC,LC,!1,RC,"06b954f3",null,null);function RC(t){for(let n in gp)this[n]=gp[n]}const qC=function(){return GC.exports}();var KC=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",{staticClass:"process-pc-label"},[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA: ")]),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=="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)},HC=[];const kb="",YC={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:Ie,TopPopup:Qt,departPerson:Ee},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?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):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(){console.log("isVue2",this.param),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],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(t){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")},getValues(t){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",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;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t});console.log("asd",n),n.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()}}},Ap={};var WC=st(YC,KC,HC,!1,ZC,"25a39390",null,null);function ZC(t){for(let n in Ap)this[n]=Ap[n]}const zC=function(){return WC.exports}();var XC=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"},[t._v(" "+t._s(t.getFirstProcessNode.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA: ")]),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)},$C=[];const wb="",tb={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:Ie,TopPopup:Qt,departPerson:Ee},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.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()}}},yp={};var eb=st(tb,XC,$C,!1,nb,"3aa79dd5",null,null);function nb(t){for(let n in yp)this[n]=yp[n]}const ib=function(){return eb.exports}(),Nb="",sb={name:"TopProcess",components:{TopTab:bv,TopPopup:Qt,TopTips:Kt,TopSumbitPopup:pp},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:()=>{}})},appId:{type:String,default:""},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null}},data(){return{processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskId:"",taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,ProcessInsObj:{},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[]}},watch:{processInstId:{async handler(t,n){this.processIntId=this.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.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(_C,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(VC,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(qC,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(zC,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(xC,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(bC,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(){},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);e.success?(this.handleTips("",!1,"success"),this.nextNodeData=e.data):await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:this.taskNode.length?this.taskNode[0].taskId:"",processNodeId:""}}).then(i=>{this.handleTips("",!1,"success"),console.log("outGatewayUserTaskModel",i),this.outGatewayUserTaskModel=i.data})},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)})},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&&(console.log("this.beforeFunction"),!this.beforeFunction()))){if(this.$refs.TopPopup1.handleOpen(),this.processStatus.allUserNames&&this.processStatus.allUserNames.length==1&&this.taskNode[0]&&this.taskNode[0].nodeId){let s;this.getVars&&(s=this.getVars()),await this.handleGetSimulation(s)}e&&(this.operationParam.request=e),e&&(this.annexlabel=i),this.titleText=n,this.operationCom=t,this.operationParam.annex=i,this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=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}},handleCancel(){console.log("handleCancel")},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.$refs.TopPopup1.handleClose()},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/aws/tis/reminders",{params:{processInstId:this.processIntId}}).then(t=>{t.code==200?this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"):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.textTips=t.msg,this.typeTips="error",this.handleTips(t.msg,!0,"error"))}))},handleTipsCancel(){console.log("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=>{console.log("getProcessInstanceByBusinessKey:::",e),this.getFirstProcessNode=e.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(ib,"\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 rb=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("div",{staticClass:"process-warp"},[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.processStatus.status||t.processStatus.bizStatusName?e("div",{staticClass:"process-mliv-dd",style:{background:t.getColor(t.processStatus.status)}},[t._v(" "+t._s(t.processStatus.bizStatusName?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),t.isAdditional?e("div",{staticClass:"process-foot"},[e("div",{staticClass:"footBtnRow"},[t._t("btn")],2)]):t._e(),e("div",{staticClass:"process-btn"},[t.processStatus.status!="\u5DF2\u5B8C\u6210"?[t.processStatus.status==="\u5DF2\u64A4\u9500"||t.processStatus.status==="\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)},ab=[];const xb="",Cp={};var ob=st(sb,rb,ab,!1,cb,"4b00ad89",null,null);function cb(t){for(let n in Cp)this[n]=Cp[n]}const lb=function(){return ob.exports}();Zt.TopProcess=lb,Zt.TopSumbitPopup=pp,Zt.ViewAttchList=Pc,Zt.attchViews=Ie,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=Xy({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),$y(s,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const tC={components:{checked:Uy,dcSwitch:Ry,dcLoading:Zy},name:"departPerson",props:{visible:{type:Boolean,default:!1},source:{type:String,default:"0"},type:{type:String,default:"0"},request:{type:Function,default:()=>({get:()=>{},post:()=>{}})},businessId:{type:String,default:""},codeType:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},checkedArray:{type:Array,default:()=>[]}},data(){return{isSon:!1,deptId:"",subjectId:"",jsonData:[],breadcrumb:[],checkedJson:[],keyword:"",isQuery:!0,isLoading:!1,checkedAll:!1,isShowChecked:!1}},watch:{visible:{deep:!0,immediate:!0,handler:function(t,n){if(!t)return!1;this.$nextTick(()=>{this.getDetail(()=>{this.getSearch(),this.defaultBreadcrumb()})})}},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(U(t)||!U(this.businessId))return!1;this.getCards()}}},computed:{dialogVisible:{get(){return this.visible},set(t){this.$emit("update:visible",t)}},queryImg(){return zy},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=!U(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=U(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:U(n.counts)?0:n.counts,num:p,phone:Sy(n.phone),uid:n.uid,iconName:ba(n.name,2),checked:a,ancestors:e,ancestorNames:i,deptName:By(n.ancestorNames,"/"),uniqueId:s,isDisabled:o,isLevel:c,subjectId:n.subjectId,sex:n.sex,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"),U(i)?"":"\u5DF2\u9009\u62E9"+i.join("\uFF0C")},breadcrumb_subjectId(){return this.breadcrumb.length>1?this.breadcrumb.find((t,n)=>n===1).value:""},breadcrumb_level(){const t=this.breadcrumb.filter((n,e)=>e!==0);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},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(){let t=[];return this.isShowSubject&&t.push("\u7EC4\u7EC7"),this.isShowDept&&t.push("\u90E8\u95E8"),this.isShowQuery&&t.push("\u4EBA\u5458"),"\u9009\u62E9"+t.join("\u3001")},isNoDelete(){return U(this.checkedArray)?[]:this.checkedArray.filter(t=>t.isDeleteNo)}},mounted(){document.title=this.getTitle},methods:{handleSubmit(){const t=U(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:U(e.phone)?"":e.phone,sex:e.sex,uid:U(e.uid)?"":e.uid}));if(U(this.businessId))return this.dialogVisible=!1,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.dialogVisible=!1,this.$emit("callback",t))}).finally(()=>{this.isLoading=!1})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){this.getSearch(()=>{this.isQuery=U(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){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.multiple?this.checkedJson.push(r):this.checkedJson=[r],!1)}this.checkedJson=this.checkedJson.filter(e=>e.uniqueId!==n.uniqueId)},handleBreadcrumb(t,n){if(n+1==this.breadcrumb.length)return!1;switch(n){case 0:this.deptId="",this.subjectId="";break;case 1:this.deptId=0,this.subjectId=this.breadcrumb_subjectId;break;default:this.deptId=t.value,this.subjectId=this.breadcrumb_subjectId;break}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 U(e)||(e.type==1&&(new cp().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 cp().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.breadcrumb=[{name:"\u7EC4\u7EC7",value:"-1"}],this.isSon=!1,this.deptId="",this.subjectId="",this.jsonData=[],this.keyword="",this.isQuery=!0,this.isLoading=!1},getIsSon(){const 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},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};U(e.deptId)&&delete e.deptId,U(e.deptId)&&delete e.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:e}).then(i=>{t(),this.jsonData=U(i.data)||i.code!==200?[]:i.data,this.getIsSon()}).finally(()=>{this.isLoading=!1})},getDetail(t=()=>{}){if(U(this.businessId))return t(),!1;const n={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:n}).then(e=>{this.checkedJson=U(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:U(i.uid)?"":i.uid,isNoDelete:o}}),t()})},getCards(){if(U(this.checkedArray))return this.checkedJson=[];const t=this.checkedArray.map(n=>({type:n.type,id:U(n.id)?null:n.id,uid:U(n.uid)?null:n.uid,subjectId:U(n.subjectId)?null:n.subjectId}));this.request.post("/auth/component/org/cards",{params:t}).then(n=>{this.checkedJson=U(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:U(e.uid)?"":e.uid,isNoDelete:o}})})}}};var eC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return t.dialogVisible?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",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"},[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))])])])}),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):t._e()},nC=[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 iC=as(tC,eC,nC,!1,sC,null,null,null);function sC(t){for(let n in lp)this[n]=lp[n]}const Ee=function(){return iC.exports}(),rC={name:"TopSubmitPopup",components:{TopPopup:Qt,TopDownSelect:Jc,PreviewImage:ur,departPerson:Ee,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}},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:[],formData:{}}},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.processName}}).then(e=>{console.log("\u83B7\u53D6\u6D41\u7A0B::",e),e.code==200&&(this.option=e.data,this.checkedItem=this.option[0],this.$emit("change",this.checkedItem,this.option),this.getAfferentParticipantNodeList(),this.getDiagramUrl())}),await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code===200&&(this.firstPerson=e.data)})},immediate:!0},appId:{handler(t,n){this.formData.appId=t},immediate:!0,deep:!0},processName:{handler(t,n){this.formData.processName=t},immediate:!0,deep:!0},resubmit:{handler(t,n){this.formData.resubmit=t},immediate:!0,deep:!0},id:{handler(t,n){this.formData.id=t},immediate:!0,deep:!0},businessType:{handler(t,n){this.formData.businessType=t},immediate:!0,deep:!0},todoParameter:{handler(t,n){this.formData.todoParameter=t},immediate:!0,deep:!0},isClearHistory:{handler(t,n){this.formData.isClearHistory=t},immediate:!0,deep:!0},title:{handler(t,n){this.formData.title=t},immediate:!0,deep:!0},showType:{handler(t,n){this.formData.showType=t},immediate:!0,deep:!0}},methods:{handleChange(t,n){console.log("\u5F53\u524D\u9009\u62E9::::",t),this.checkedItem=t,this.getAfferentParticipantNodeList(),this.getDiagramUrl(),this.$emit("change",t,n)},getAfferentParticipantNodeList(){this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(t=>{t.code==200&&(this.personList=t.data.slice(1),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){console.log("\u9009\u4EBA\u5F39\u7A97",t),this.visiblePerson=!0,this.personObjId=t.id},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)}),console.log("callback_OK",t,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},async handleSumbit(){if(this.firstPerson&&this.firstPerson.length&&!this.multiNodeParticipant[this.firstPerson[0].id]){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error");return}this.beforeFunction&&await this.beforeFunction()},async handleSongshen(){this.handleTips("",!0,"loading"),this.resubmit?(console.log("\u9001\u5BA1\u91CD\u65B0\u63D0\u4EA4",this.multiNodeParticipant),await this.request.post("/aws/pis/reactivate",{processInstId:this.processId,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("\u9001\u5BA1\u9996\u6B21\u63D0\u4EA4",this.formData),await this.request.post("/aws/pis/createAndStart",{title:this.title,processDefId:this.checkedItem.id,processBusinessKey:this.id,showType:this.showType,businessType:this.businessType,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameter}).then(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 aC=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},on:{change:t.handleChange}}),e("div",{staticClass:"viewTrack",on:{click:function(i){t.taskurlshow=!0}}},[t._v("\u67E5\u770B\u6D41\u7A0B\u56FE")]),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)},oC=[];const gb="",up={};var cC=st(rC,aC,oC,!1,lC,"4846f8b8",null,null);function lC(t){for(let n in up)this[n]=up[n]}const pp=function(){return cC.exports}(),uC="data:image/png;base64,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",pC={name:"attchViews",components:{TopTips:Kt,PreviewImage:ur,PreView:Nc,TopPopup:Qt},props:{request:{type:Function,defalut:()=>{}},limit:{type:Number|String,default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(t,n){t&&(this.filesArr=[].concat(t),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return uC},del(){return Tc},doc(){return Dc},file(){return Oc},image(){return Sc},pdf(){return Bc},xls(){return _c},zip(){return Qc}},mounted(){this.$nextTick(()=>{let t=document.createElement("input");t.type="file",t.className="upload-input",t.style="opacity: 0;position: absolute;",t.multiple=!0,t.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(t),typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1)})},methods:{handleClick(){if(console.log("\u62E6\u622A",this.haveCount,this.limit),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${props.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}},async handleSelect(t,n){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading"),console.log("formData",t.target.files);const e=Array.from(t.target.files);let i=0,s=this.haveCount>e.length?e.length:this.haveCount;try{for(let r=0;r<s;r++)if(this.extension.includes(e[r].name.substring(e[r].name.lastIndexOf(".")+1))){const a=new FormData;a.append("file",e[r]);const o=await this.request.post("/file/upload",a,{headers:{"Content-Type":"multipart/form-data"}});if(o.code===200){if(this.filesArr.length>0){for(let c=0;c<this.filesArr.length;c++)if(o.originFileName==this.filesArr[c].originFileName&&i++,this.filesArr[c].originFileName.includes(`(${i})`)&&i++,i>0){let p=o.originFileName.lastIndexOf(".");o.originFileName=`${o.originFileName.substring(0,p)} (${i}) .${o.originFileName.substring(o.originFileName.lastIndexOf(".")+1)}`}}this.filesArr.push(o.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${e[r].name}\u683C\u5F0F\u9519\u8BEF,\u8BF7\u91CD\u65B0\u4E0A\u4F20`,!0,"error");return}this.handleTips("\u4E0A\u4F20\u6210\u529F",!0,"success"),this.viewImage(),console.log("\u5F53\u524D\u5DF2\u4E0A\u4F20",this.filesArr),this.emitView()}catch{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.emitView()}},handleDel(t,n){if(this.deletFn){if(this.deletFn(n)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(t,1),this.emitView()}else this.filesArr.splice(t,1),this.emitView()},viewFile(t,n){console.log("data",t),this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1))?(this.visible=!0,this.indexd=this.lists.indexOf(t.url)):t.url&&(this.visibleS=!0,this.fileUrl=t.url)},viewImage(){this.lists=[];let t=[];this.filesArr.map((n,e)=>{this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1))}),t=this.filesArr.filter(n=>this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1))),t.forEach((n,e)=>{this.lists.push(n.url)})},emitView(){console.log("\u5DF2\u53D1\u9001\u6570\u636E:",this.filesArr),this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[],console.log("clear!!!!!")},handleTips(t,n,e){this.textTips=t,this.statusTips=n,this.typeTips=e,this.$refs.topTips.handleOpen()}}};var dC=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"attch-upload"},[t.buttonLoading?e("div",{staticClass:"attch-upload-mask"}):t._e(),e("div",{staticClass:"attch-upload-body"},[e("div",{staticClass:"upload-header"},[e("div",{staticClass:"upload-header-title"},[t._v(" \u9644\u4EF6 "),t.requires?e("span",{staticClass:"upload-header-title--re"},[t._v("*")]):t._e()]),e("div",{staticClass:"upload-header-upload"},[t.onlyShow?t._e():e("div",{staticClass:"upload-header-upload--item",attrs:{id:"inputfile"},on:{click:t.handleClick}},[e("img",{attrs:{src:t.addFile}}),t._v("\u4E0A\u4F20\u9644\u4EF6 ")])])]),e("div",{staticClass:"upload-body"},[t.filesArr.length>0?e("div",{staticClass:"upload-list"},t._l(t.filesArr,function(i,s){return e("div",{key:i.uuid,staticClass:"list-items"},[e("div",{staticClass:"list-items-icon"},[t.xlsIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))?e("img",{staticClass:"icon-img",attrs:{src:t.xls}}):t.imgIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))?e("img",{staticClass:"icon-img",attrs:{src:t.image}}):i.name.substring(i.name.lastIndexOf(".")+1)=="pdf"?e("img",{staticClass:"icon-img",attrs:{src:t.pdf}}):t.docIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))?e("img",{staticClass:"icon-img",attrs:{src:t.doc}}):t.zipIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))?e("img",{staticClass:"icon-img",attrs:{src:t.zip}}):e("img",{staticClass:"icon-img",attrs:{src:t.file}})]),e("div",{staticClass:"list-items-info"},[e("div",{staticClass:"info-name"},[t._v(" "+t._s(i.originFileName)+" ")]),e("div",{staticClass:"info-attribute"},[e("span",{staticClass:"info-attribute-size"},[t._v(t._s(i.fileSize<1024?i.fileSize:i.fileSize/1024>1024?parseFloat((i.fileSize/1024/1024).toFixed(2)):parseFloat((i.fileSize/1024).toFixed(2)))+t._s(i.fileSize<1024?"b":parseFloat((i.fileSize/1024).toFixed(2))<1024?"kb":"M")+" ")]),e("span",{staticClass:"info-attribute-views",on:{click:function(r){return t.viewFile(i,s)}}},[t._v(" \u9884\u89C8 ")])])]),t.onlyShow?t._e():e("div",{staticClass:"list-items-operation"},[e("div",{staticClass:"list-items-operation-img",on:{click:function(r){return t.handleDel(s,i)}}},[e("img",{attrs:{src:t.del}})])])])}),0):t._e()])]),e("TopTips",{ref:"topTips",attrs:{text:t.textTips,statusTips:t.statusTips,type:t.typeTips}}),e("PreviewImage",{attrs:{images:t.lists,visible:t.visible,indexd:t.indexd},on:{"update:visible":function(i){return t.visible=i}}}),e("TopPopup",{ref:"TopPopup",attrs:{visible:t.visibleS,titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},on:{"update:visible":function(i){return t.visibleS=i}}},[e("PreView",{attrs:{file:t.fileUrl}})],1)],1)},fC=[];const Ab="",dp={};var hC=st(pC,dC,fC,!1,vC,"063c09b3",null,null);function vC(t){for(let n in dp)this[n]=dp[n]}const Ie=function(){return hC.exports}();var mC=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",{staticClass:"process-pc-label"},[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA: ")]),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)},gC=[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 yb="",AC={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:Ie,TopPopup:Qt,departPerson:Ee},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?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):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(){console.log("isVue2",this.param),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],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(t){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")},getValues(t){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",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;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t});console.log("asd",n),n.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 yC=st(AC,mC,gC,!1,CC,"3556632c",null,null);function CC(t){for(let n in fp)this[n]=fp[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",{staticClass:"process-pc-label"},[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA: ")]),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)},IC=[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 Cb="",kC={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:Ie,TopPopup:Qt,departPerson:Ee},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?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):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(){console.log("isVue2",this.param),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],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(t){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")},getValues(t){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",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;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t});console.log("asd",n),n.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()}}},hp={};var wC=st(kC,EC,IC,!1,NC,"def75392",null,null);function NC(t){for(let n in hp)this[n]=hp[n]}const xC=function(){return wC.exports}();var TC=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"},[t._v(" \u5FEB\u6377\u56DE\u590D ")]),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._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"},[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA: ")]),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)},DC=[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="",OC={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:Ie,TopPopup:Qt,departPerson:Ee},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?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):t.outGatewayUserTaskModel.length&&(t.outGatewayUserTaskModel[0].type=="userTask"||t.outGatewayUserTaskModel[0].type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):t.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||t.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel")},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(t){this.visible=!0,this.partObjId=t},async confirm(){if(!this.commentMsg){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/complete",{actionName:"\u63D0\u4EA4",commentMsg:this.commentMsg,taskInstId:this.param.taskInstId,vars:this.param.vars,multiNodeParticipant:this.multiNodeParticipant}).then(t=>{if(t.code==200){if(this.attchLists.length>0){this.uploadAttch();return}this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""}else this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let t=this.otherList.split(";");this.limit=t[2],this.requires=JSON.parse(t[1]),this.labels=t[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(t){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")},getValues(t){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",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;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t});console.log("asd",n),n.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()}}},vp={};var SC=st(OC,TC,DC,!1,BC,"519beb5d",null,null);function BC(t){for(let n in vp)this[n]=vp[n]}const _C=function(){return SC.exports}();var QC=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",{staticClass:"process-pc-label"},[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA: ")]),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)},FC=[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="",PC={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:Ie,TopPopup:Qt,departPerson:Ee},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(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],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(t){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")},getValues(t){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",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;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t});console.log("asd",n),n.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 MC=st(PC,QC,FC,!1,UC,"5b0d9bba",null,null);function UC(t){for(let n in mp)this[n]=mp[n]}const VC=function(){return MC.exports}();var JC=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)},LC=[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 Ib="",jC={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:Ie,TopPopup:Qt,departPerson:Ee,TopDownSelect:Jc},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(){console.log("this.param.taskInstId",this.param.taskInstId),this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(t=>{t.code===200&&(this.option=t.data)})},handleChange(t){console.log("\u9000\u56DE\u8282\u70B9,",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],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(t){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")},getValues(t){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",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;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t});console.log("asd",n),n.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 GC=st(jC,JC,LC,!1,RC,"06b954f3",null,null);function RC(t){for(let n in gp)this[n]=gp[n]}const qC=function(){return GC.exports}();var KC=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",{staticClass:"process-pc-label"},[t._v(" "+t._s(i.userTaskModelDTO.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA: ")]),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=="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)},HC=[];const kb="",YC={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:Ie,TopPopup:Qt,departPerson:Ee},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?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):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(){console.log("isVue2",this.param),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],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(t){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")},getValues(t){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",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;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:t});console.log("asd",n),n.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()}}},Ap={};var WC=st(YC,KC,HC,!1,ZC,"25a39390",null,null);function ZC(t){for(let n in Ap)this[n]=Ap[n]}const zC=function(){return WC.exports}();var XC=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"},[t._v(" "+t._s(t.getFirstProcessNode.name)+" "),e("br"),t._v(" \u5BA1\u6279\u4EBA: ")]),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)},$C=[];const wb="",tb={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Kt,attchViews:Ie,TopPopup:Qt,departPerson:Ee},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.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()}}},yp={};var eb=st(tb,XC,$C,!1,nb,"3aa79dd5",null,null);function nb(t){for(let n in yp)this[n]=yp[n]}const ib=function(){return eb.exports}(),Nb="",sb={name:"TopProcess",components:{TopTab:bv,TopPopup:Qt,TopTips:Kt,TopSumbitPopup:pp},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:()=>{}})},appId:{type:String,default:""},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null}},data(){return{processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskId:"",taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,ProcessInsObj:{},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[]}},watch:{processInstId:{async handler(t,n){this.processIntId=this.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.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(_C,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(VC,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(qC,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(zC,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(xC,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(bC,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(){},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);e.success?(this.handleTips("",!1,"success"),this.nextNodeData=e.data):await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:this.taskNode.length?this.taskNode[0].taskId:"",processNodeId:""}}).then(i=>{this.handleTips("",!1,"success"),console.log("outGatewayUserTaskModel",i),this.outGatewayUserTaskModel=i.data})},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)})},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&&(console.log("this.beforeFunction"),!this.beforeFunction()))){if(this.$refs.TopPopup1.handleOpen(),this.processStatus.allUserNames&&this.processStatus.allUserNames.length==1&&this.taskNode[0]&&this.taskNode[0].nodeId){let s;this.getVars&&(s=this.getVars()),await this.handleGetSimulation(s)}e&&(this.operationParam.request=e),e&&(this.annexlabel=i),this.titleText=n,this.operationCom=t,this.operationParam.annex=i,this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=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}},handleCancel(){console.log("handleCancel")},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.$refs.TopPopup1.handleClose()},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/aws/tis/reminders",{params:{processInstId:this.processIntId}}).then(t=>{t.code==200?this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"):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.textTips=t.msg,this.typeTips="error",this.handleTips(t.msg,!0,"error"))}))},handleTipsCancel(){console.log("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=>{console.log("getProcessInstanceByBusinessKey:::",e),this.getFirstProcessNode=e.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(ib,"\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 rb=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",[e("div",{staticClass:"process-warp"},[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.processStatus.status||t.processStatus.bizStatusName?e("div",{staticClass:"process-mliv-dd",style:{background:t.getColor(t.processStatus.status)}},[t._v(" "+t._s(t.processStatus.bizStatusName?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),t.isAdditional?e("div",{staticClass:"process-foot"},[e("div",{staticClass:"footBtnRow"},[t._t("btn")],2)]):t._e(),e("div",{staticClass:"process-btn"},[t.processStatus.status!="\u5DF2\u5B8C\u6210"?[t.processStatus.status==="\u5DF2\u64A4\u9500"||t.processStatus.status==="\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)},ab=[];const xb="",Cp={};var ob=st(sb,rb,ab,!1,cb,"4b00ad89",null,null);function cb(t){for(let n in Cp)this[n]=Cp[n]}const lb=function(){return ob.exports}();Zt.TopProcess=lb,Zt.TopSumbitPopup=pp,Zt.ViewAttchList=Pc,Zt.attchViews=Ie,Object.defineProperties(Zt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|