ui-process-h5 1.0.22 → 1.0.23

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-process-h5",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "> app端 流程插件",
5
5
  "main": "./ui-process-h5.umd.cjs",
6
6
  "style": "./style.css",
@@ -10758,7 +10758,9 @@ const yt = /* @__PURE__ */ function() {
10758
10758
  );
10759
10759
  return;
10760
10760
  }
10761
- this.beforeFunction && await this.beforeFunction();
10761
+ this.beforeFunction && await this.beforeFunction(), this.$nextTick(() => {
10762
+ this.handleSongshen();
10763
+ });
10762
10764
  },
10763
10765
  async handleSongshen() {
10764
10766
  this.handleTips("", !0, "loading"), this.resubmit ? (console.log("\u9001\u5BA1\u91CD\u65B0\u63D0\u4EA4", this.multiNodeParticipant), await this.request.post("/aws/pis/reactivate", {
@@ -64,4 +64,4 @@ See more tips at https://vuejs.org/guide/deployment.html`)},0);var Da=function(e
64
64
  left:0;
65
65
  right:0;
66
66
  margin: 0 auto;
67
- `,document.body.appendChild(this.mainContainer)}message(n={}){let t=sessionStorage.getItem(this.sessionStorageName),i=t?JSON.parse(t):null;if(n.againBtn&&n.content&&i&&Array.isArray(i)&&i.includes(n.content))return;const s=$C({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),Ja(this.mainContainer),eb(s,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const tb={components:{checked:VC,dcSwitch:KC,dcLoading:zC},name:"departPerson",props:{visible:{type:Boolean,default:!1},source:{type:String,default:"0"},type:{type:String,default:"0"},request:{type:Function,default:()=>({get:()=>{},post:()=>{}})},businessId:{type:String,default:""},codeType:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},checkedArray:{type:Array,default:()=>[]}},data(){return{isSon:!1,deptId:"",subjectId:"",jsonData:[],breadcrumb:[],checkedJson:[],keyword:"",isQuery:!0,isLoading:!1,checkedAll:!1,isShowChecked:!1}},watch:{visible:{deep:!0,immediate:!0,handler:function(e,n){if(!e)return!1;this.$nextTick(()=>{this.getDetail(()=>{this.getSearch(),this.defaultBreadcrumb()})})}},isSon:{deep:!0,handler:function(e,n){let t=[];const i=this.checkedJson.map(s=>{const r=this.entityJson.findIndex(a=>a.id===s.id&&s.type==a.type&&s.type==2)>-1?e&&s.type==2?"4":s.type:s.orgRecordsType;return(r==4||s.type==1)&&t.push(s.id),{...s,orgRecordsType:r}});this.checkedJson=i.filter(s=>s.ancestors.split(",").findIndex(r=>t.indexOf(r)>-1)===-1)}},checkedArray:{deep:!0,immediate:!0,handler:function(e,n){if(M(e)||!M(this.businessId))return!1;this.getCards()}}},computed:{dialogVisible:{get(){return this.visible},set(e){this.$emit("update:visible",e)}},queryImg(){return XC},entityJson(){const e=this.checkedJson;return this.jsonData.map(n=>{const t=this.isQuery?this.breadcrumb_level.ancestors||"":n.ancestors,i=this.isQuery?this.breadcrumb_level.ancestorNames:n.ancestorNames,s=t+n.id+"__"+n.type,r=e.find(h=>h.uniqueId===s),a=!M(r),o=a?!1:e.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=M(e)?0:c?n.counts:e.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:M(n.counts)?0:n.counts,num:p,phone:BC(n.phone),uid:n.uid,iconName:Va(n.name,2),checked:a,ancestors:t,ancestorNames:i,deptName:_C(n.ancestorNames,"/"),uniqueId:s,isDisabled:o,isLevel:c,subjectId:n.subjectId,sex:n.sex,isNoDelete:d}})},companyJson(){return this.entityJson.filter(e=>e.type==1)},deptJson(){return this.entityJson.filter(e=>e.type==2)},userJson(){return this.entityJson.filter(e=>e.type==3)},checkedNumber(){const e=this.checkedJson.filter(s=>s.type==1).length,n=this.checkedJson.filter(s=>s.type==2).length,t=this.checkedJson.filter(s=>s.type==3).length;let i=[];return e>0&&i.push(e+"\u4E2A\u7EC4\u7EC7"),n>0&&i.push(n+"\u4E2A\u90E8\u95E8"),t>0&&i.push(t+"\u4E2A\u6210\u5458"),M(i)?"":"\u5DF2\u9009\u62E9"+i.join("\uFF0C")},breadcrumb_subjectId(){return this.breadcrumb.length>1?this.breadcrumb.find((e,n)=>n===1).value:""},breadcrumb_level(){const e=this.breadcrumb.filter((n,t)=>t!==0);return{ancestors:e.map(n=>n.value).join(","),ancestorNames:e.map(n=>n.name).join("/")}},isDept(){return this.jsonData.findIndex(e=>e.type==2)>-1},isShowSubject(){return this.codeType.findIndex(e=>e==1)>-1},isShowDept(){return this.codeType.findIndex(e=>e==2)>-1},isNotLevel(){return this.isShowSubject&&this.codeType.length===1},isShowQuery(){return this.codeType.findIndex(e=>e==3)>-1},getHight(){return!this.isShowQuery&&this.isDept?"notQuerySon":!this.isShowQuery&&!this.isDept?"notQuery":this.isDept?"nvaHeight":""},getTitle(){let e=[];return this.isShowSubject&&e.push("\u7EC4\u7EC7"),this.isShowDept&&e.push("\u90E8\u95E8"),this.isShowQuery&&e.push("\u4EBA\u5458"),"\u9009\u62E9"+e.join("\u3001")},isNoDelete(){return M(this.checkedArray)?[]:this.checkedArray.filter(e=>e.isDeleteNo)}},mounted(){document.title=this.getTitle},methods:{handleSubmit(){const e=M(this.checkedJson)?[]:this.checkedJson.map(t=>({type:t.orgRecordsType,id:t.id,name:t.name,ancestors:t.ancestors,ancestorNames:t.ancestorNames,subjectId:t.subjectId,phone:M(t.phone)?"":t.phone,sex:t.sex,uid:M(t.uid)?"":t.uid}));if(M(this.businessId))return this.dialogVisible=!1,this.$emit("callback",e);const n={businessId:this.businessId,orgRecords:this.checkedJson.map(t=>({type:t.orgRecordsType,bizId:t.id,ancestors:t.ancestors,ancestorNames:t.ancestorNames,uid:t.uid}))};this.isLoading=!0,this.request.post("/auth/component/org/save",n).then(t=>{t.code===200&&(this.dialogVisible=!1,this.$emit("callback",e))}).finally(()=>{this.isLoading=!1})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){this.getSearch(()=>{this.isQuery=M(this.keyword)})},handleAllCheckbox(e){(this.isShowDept?this.entityJson:this.entityJson.filter(n=>n.type!=2)).forEach(n=>this.handleCheckbox(e,n))},handleCheckbox(e,n){if(n.isDisabled||n.isNoDelete||n.type==1&&!this.isShowSubject||n.type==2&&!this.isShowDept)return!1;if(e.currentTarget.checked){const t=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:t,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)?(e.currentTarget.checked=!1,!1):(this.multiple?this.checkedJson.push(r):this.checkedJson=[r],!1)}this.checkedJson=this.checkedJson.filter(t=>t.uniqueId!==n.uniqueId)},handleBreadcrumb(e,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=e.value,this.subjectId=this.breadcrumb_subjectId;break}this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((t,i)=>i<n+1)})},handleLevel(e){if(e.isDisabled||e.isLevel)return!1;switch(e.type){case"1":this.deptId=0,this.subjectId=e.id,this.getSearch(()=>{this.breadcrumb.push({name:e.name,value:e.id})});break;case"2":this.deptId=e.id,this.subjectId=this.breadcrumb_subjectId,this.getSearch(()=>{this.breadcrumb.push({name:e.name,value:e.id})});break}},getBoolChecked(e){if(e.type!=3)return!1;const n=e.ancestors.split(","),t=this.checkedJson.filter(s=>s.type==2||s.type==1).find(s=>n.indexOf(s.id)>-1);let i=!1;return M(t)||(t.type==1&&(new Gp().message({content:`\u5DF2\u9009\u7684\u7EC4\u7EC7\u3010${t.name}\u3011\u5B58\u5728${e.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),i=!0),t.type==4&&(new Gp().message({content:`\u5DF2\u9009\u7684\u90E8\u95E8\u3010${t.name}\u3011\u5B58\u5728${e.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 e=this.entityJson.filter(t=>t.type==2),n=this.checkedJson.filter(t=>t.type==2);this.isSon=n.findIndex(t=>e.findIndex(i=>i.id===t.id&&t.orgRecordsType==4)>-1)>-1},getSearch(e=()=>{}){const n=this.codeType.findIndex(i=>i==3)>-1?3:this.codeType.findIndex(i=>i==2)>-1?2:1,t={source:this.source,type:this.type,deptId:this.deptId,subjectId:this.subjectId,keyword:this.keyword,showType:n};M(t.deptId)&&delete t.deptId,M(t.deptId)&&delete t.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:t}).then(i=>{e(),this.jsonData=M(i.data)||i.code!==200?[]:i.data,this.getIsSon()}).finally(()=>{this.isLoading=!1})},getDetail(e=()=>{}){if(M(this.businessId))return e(),!1;const n={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:n}).then(t=>{this.checkedJson=M(t.data)||t.code!==200?[]:t.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:Va(i.name,2),sex:i.sex,uid:M(i.uid)?"":i.uid,isNoDelete:o}}),e()})},getCards(){if(M(this.checkedArray))return this.checkedJson=[];const e=this.checkedArray.map(n=>({type:n.type,id:M(n.id)?null:n.id,uid:M(n.uid)?null:n.uid,subjectId:M(n.subjectId)?null:n.subjectId}));this.request.post("/auth/component/org/cards",{params:e}).then(n=>{this.checkedJson=M(n.data)||n.code!==200?[]:n.data.map(t=>{const i=t.type==4?"2":t.type,s=t.type==1?"":t.ancestors,r=t.type==1?"":t.ancestorNames,a=s+t.id+"__"+i,o=this.isNoDelete.findIndex(c=>c.id===t.id||c.uid===t.uid)>-1;return{...t,ancestors:s,ancestorNames:r,id:t.id,type:i,uniqueId:a,orgRecordsType:t.type,iconName:Va(t.name,2),sex:t.sex,uid:M(t.uid)?"":t.uid,isNoDelete:o}})})}}};var nb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.dialogVisible?t("main",{staticClass:"departPerson-main"},[t("div",{staticClass:"deper-top"},[e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowQuery,expression:"isShowQuery"}],staticClass:"deper-query"},[t("form",{staticClass:"form",attrs:{action:"javascript: void(0);"},on:{submit:function(i){i.preventDefault()}}},[t("i",{staticClass:"icon-chaxun iconfont chaxun"}),t("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],staticClass:"input",attrs:{type:"search",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u3001\u624B\u673A\u53F7\u7801"},domProps:{value:e.keyword},on:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.handleQuery.apply(null,arguments)},input:function(i){i.target.composing||(e.keyword=i.target.value)}}}),e.keyword.length>0?t("i",{staticClass:"icon-error-fill iconfont close",on:{click:e.handleEmpty}}):e._e()])]),e.isQuery?t("div",{staticClass:"deper-breadcrumb"},e._l(e.breadcrumb,function(i,s){return t("div",{key:i.value,staticClass:"deper-b-item",on:{click:function(r){return e.handleBreadcrumb(i,s)}}},[t("span",[e._v(e._s(i.name))]),t("i",{staticClass:"icon-jiantouyou iconfont"})])}),0):e._e(),e.isQuery?t("div",{staticClass:"deper-all"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.checkedAll,expression:"checkedAll"}],staticClass:"deper-checkbox",attrs:{type:"checkbox",name:"deper-all",id:"deper-all"},domProps:{checked:Array.isArray(e.checkedAll)?e._i(e.checkedAll,null)>-1:e.checkedAll},on:{change:[function(i){var s=e.checkedAll,r=i.target,a=!!r.checked;if(Array.isArray(s)){var o=null,c=e._i(s,o);r.checked?c<0&&(e.checkedAll=s.concat([o])):c>-1&&(e.checkedAll=s.slice(0,c).concat(s.slice(c+1)))}else e.checkedAll=a},e.handleAllCheckbox]}}),t("label",{staticClass:"label",attrs:{for:"deper-all"}},[e._v("\u5168\u9009")])]):e._e()]),e.isQuery?t("div",{staticClass:"deper-center",class:e.getHight},[e.companyJson.length>0?t("div",{staticClass:"deper-c-depart"},e._l(e.companyJson,function(i){return t("div",{key:i.uniqueId,staticClass:"depart-item"},[t("label",{staticClass:"depart-left",class:{width:e.isNotLevel,isNoDelete:i.isNoDelete}},[t("input",{directives:[{name:"show",rawName:"v-show",value:e.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)?e._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=e._i(r,c);a.checked?p<0&&e.$set(i,"checked",r.concat([c])):p>-1&&e.$set(i,"checked",r.slice(0,p).concat(r.slice(p+1)))}else e.$set(i,"checked",o)},function(s){return e.handleCheckbox(s,i)}]}}),t("div",{staticClass:"depart-name"},[t("div",{staticClass:"name"},[e._v(e._s(i.name))]),i.num>0?t("div",{staticClass:"number"},[e._v("("),t("label",{staticClass:"label"},[e._v(e._s(i.num)+"/"+e._s(i.counts))]),e._v(")")]):t("div",{staticClass:"number"},[e._v("("+e._s(i.counts)+")")])])]),!e.isNotLevel&&i.counts>0?t("div",{staticClass:"depart-right",class:{isdisabled:i.isLevel},on:{click:function(s){return e.handleLevel(i)}}},[t("i",{staticClass:"icon-pedigree iconfont"}),t("span",[e._v("\u4E0B\u7EA7")])]):e._e()])}),0):e._e(),e.deptJson.length>0?t("div",{staticClass:"deper-c-depart"},e._l(e.deptJson,function(i){return t("div",{key:i.uniqueId,staticClass:"depart-item"},[t("label",{staticClass:"depart-left",class:{isNoDelete:i.isNoDelete}},[t("input",{directives:[{name:"show",rawName:"v-show",value:e.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)?e._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=e._i(r,c);a.checked?p<0&&e.$set(i,"checked",r.concat([c])):p>-1&&e.$set(i,"checked",r.slice(0,p).concat(r.slice(p+1)))}else e.$set(i,"checked",o)},function(s){return e.handleCheckbox(s,i)}]}}),t("div",{staticClass:"depart-name"},[t("div",{staticClass:"name"},[e._v(e._s(i.name))]),i.num>0?t("div",{staticClass:"number"},[e._v("("),t("label",[e._v(e._s(i.num)+"/"+e._s(i.counts))]),e._v(")")]):t("div",{staticClass:"number"},[e._v("("+e._s(i.counts)+")")])])]),i.counts>0?t("div",{staticClass:"depart-right",class:{isdisabled:i.isLevel},on:{click:function(s){return e.handleLevel(i)}}},[t("i",{staticClass:"icon-pedigree iconfont"}),t("span",[e._v("\u4E0B\u7EA7")])]):e._e()])}),0):e._e(),e.userJson.length>0?t("div",{staticClass:"deper-c-user"},e._l(e.userJson,function(i){return t("label",{key:i.uniqueId,staticClass:"user-item",class:{isNoDelete:i.isNoDelete}},[t("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)?e._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=e._i(r,c);a.checked?p<0&&e.$set(i,"checked",r.concat([c])):p>-1&&e.$set(i,"checked",r.slice(0,p).concat(r.slice(p+1)))}else e.$set(i,"checked",o)},function(s){return e.handleCheckbox(s,i)}]}}),t("div",{staticClass:"user-icon"},[t("span",[e._v(e._s(i.iconName))])]),t("div",{staticClass:"user-name"},[t("div",{staticClass:"span"},[e._v(e._s(i.name))]),t("div",{staticClass:"phone"},[e._v(e._s(i.phone))])])])}),0):e._e()]):t("div",{staticClass:"deper-search"},[e._e(),t("div",{staticClass:"deper-search-section"},[e._e(),t("div",{staticClass:"search-user"},[t("div",{staticClass:"search-title"},[e._v("\u8054\u7CFB\u4EBA")]),e._l(e.userJson,function(i){return t("label",{key:i.uniqueId,staticClass:"user-item"},[t("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)?e._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=e._i(r,c);a.checked?p<0&&e.$set(i,"checked",r.concat([c])):p>-1&&e.$set(i,"checked",r.slice(0,p).concat(r.slice(p+1)))}else e.$set(i,"checked",o)},function(s){return e.handleCheckbox(s,i)}]}}),t("div",{staticClass:"user-icon"},[t("span",[e._v(e._s(i.iconName))])]),t("div",{staticClass:"user-name"},[t("div",{staticClass:"span"},[e._v(e._s(i.name))]),t("div",{staticClass:"phone"},[e._v(e._s(i.phone))]),t("div",{staticClass:"txt"},[e._v(e._s(i.ancestorNames))])])])})],2)])]),e.isDept?t("div",{staticClass:"deper-son"},[t("span",[e._v("\u5305\u542B\u5B50\u7EA7")]),t("dc-switch",{attrs:{modelValue:e.isSon,name:"isSone"},on:{"update:modelValue":function(i){e.isSon=i},"update:model-value":function(i){e.isSon=i}}})],1):e._e(),t("div",{staticClass:"deper-bottom"},[t("div",{staticClass:"deper-b-checked",on:{click:function(i){e.isShowChecked=!0}}},[t("span",[e._v(e._s(e.checkedNumber))]),e.checkedNumber.length>0?t("i",{staticClass:"icon-jiantouyou iconfont"}):e._e()]),t("div",{staticClass:"deper-b-btn",on:{click:e.handleSubmit}},[e._v("\u786E\u5B9A")])]),t("checked",{attrs:{visible:e.isShowChecked,checkedJson:e.checkedJson},on:{"update:visible":function(i){e.isShowChecked=i},"update:checkedJson":function(i){e.checkedJson=i},"update:checked-json":function(i){e.checkedJson=i}},scopedSlots:e._u([{key:"user",fn:function(i){var s=i.item;return[e._t("checkedUser",null,{item:s})]}}],null,!0)}),e.isLoading?t("dcLoading"):e._e()],1):e._e()},ib=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"depart-item"},[t("label",{staticClass:"depart-left"},[t("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),t("div",{staticClass:"depart-name"},[t("div",{staticClass:"name"},[e._v("\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8")]),t("div",{staticClass:"number"},[e._v("("),t("label",[e._v("100/100")]),e._v(")")])])])])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"depart-item"},[t("label",{staticClass:"depart-left"},[t("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),t("div",{staticClass:"depart-name"},[t("div",{staticClass:"name"},[e._v("\u6280\u672F\u90E8")]),t("div",{staticClass:"number"},[e._v("(80)")])])])])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"depart-item"},[t("label",{staticClass:"depart-left"},[t("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),t("div",{staticClass:"depart-name"},[t("div",{staticClass:"name"},[e._v("\u5F00\u53D1\u90E8")]),t("div",{staticClass:"number"},[e._v("("),t("label",[e._v("100/100")]),e._v(")")])])])])}];const Kp={};var sb=vs(tb,nb,ib,!1,rb,null,null,null);function rb(e){for(let n in Kp)this[n]=Kp[n]}const Ct=function(){return sb.exports}(),ab={name:"TopSubmitPopup",components:{TopPopup:Qe,TopDownSelect:El,PreviewImage:Tr,departPerson:Ct,TopTips:He},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(e,n){this.show=e,this.$emit("update:visible",this.show),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId,processGroupName:this.processName}}).then(t=>{console.log("\u83B7\u53D6\u6D41\u7A0B::",t),t.code==200&&(this.option=t.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(t=>{t.code===200&&(this.firstPerson=t.data)})},immediate:!0},appId:{handler(e,n){this.formData.appId=e},immediate:!0,deep:!0},processName:{handler(e,n){this.formData.processName=e},immediate:!0,deep:!0},resubmit:{handler(e,n){this.formData.resubmit=e},immediate:!0,deep:!0},id:{handler(e,n){this.formData.id=e},immediate:!0,deep:!0},businessType:{handler(e,n){this.formData.businessType=e},immediate:!0,deep:!0},todoParameter:{handler(e,n){this.formData.todoParameter=e},immediate:!0,deep:!0},isClearHistory:{handler(e,n){this.formData.isClearHistory=e},immediate:!0,deep:!0},title:{handler(e,n){this.formData.title=e},immediate:!0,deep:!0},showType:{handler(e,n){this.formData.showType=e},immediate:!0,deep:!0}},methods:{handleChange(e,n){console.log("\u5F53\u524D\u9009\u62E9::::",e),this.checkedItem=e,this.getAfferentParticipantNodeList(),this.getDiagramUrl(),this.$emit("change",e,n)},getAfferentParticipantNodeList(){this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.personList=e.data.slice(1),this.$emit("change",this.checkedItem,e.data))})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenPerson(e){console.log("\u9009\u4EBA\u5F39\u7A97",e),this.visiblePerson=!0,this.personObjId=e.id},handleCallback(e){this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.personObjId].push(n.uid),this.partNode[this.personObjId].push(n.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},async handleSumbit(){if(this.firstPerson&&this.firstPerson.length&&!this.multiNodeParticipant[this.firstPerson[0].id]){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error");return}this.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(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")})):(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(e=>{e.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):e.code==499?this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(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(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")}))},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()}}};var ob=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("TopPopup",{ref:"TopPopup",attrs:{visible:e.show,titleText:"\u9001\u5BA1",isDrawer:"",isIndex:99},on:{"update:visible":function(i){return e.show=i,e.$emit("update:visible",i)}}},[t("TopDownSelect",{attrs:{option:e.option},on:{change:e.handleChange}}),t("div",{staticClass:"viewTrack",on:{click:function(i){e.taskurlshow=!0}}},[e._v("\u67E5\u770B\u6D41\u7A0B\u56FE")]),e.firstPerson&&e.firstPerson.length?t("div",{staticClass:"person-views"},e._l(e.firstPerson,function(i,s){return t("div",{staticClass:"views-items"},[t("div",{staticClass:"views-items-name"},[e._v(" "+e._s(i.name)+" "),t("span",{staticClass:"views-items-name--re"},[e._v("*")])]),t("div",{staticClass:"views-items-set"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",[e._l(e.partNode[i.id],function(r,a){return t("span",[e._v(" "+e._s(a>=3?"":a==0?r:`,${r}`)+" ")])}),e.partNode[i.id].length>3?t("span",[e._v("...\u7B49"+e._s(e.partNode[i.id].length)+"\u4EBA")]):e._e()],2):t("div"),t("div",{staticClass:"views-items-set-btn",on:{click:function(r){return e.handleOpenPerson(i)}}},[e._v(" \u8BBE\u7F6E ")])])])}),0):e._e(),e.personList&&e.personList.length?t("div",{staticClass:"person-views"},e._l(e.personList,function(i,s){return t("div",{staticClass:"views-items"},[t("div",{staticClass:"views-items-name"},[e._v(" "+e._s(i.name)+" ")]),t("div",{staticClass:"views-items-set"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",[e._l(e.partNode[i.id],function(r,a){return t("span",[e._v(" "+e._s(a>=3?"":a==0?r:`,${r}`)+" ")])}),e.partNode[i.id].length>3?t("span",[e._v("...\u7B49"+e._s(e.partNode[i.id].length)+"\u4EBA")]):e._e()],2):t("div"),t("div",{staticClass:"views-items-set-btn",on:{click:function(r){return e.handleOpenPerson(i)}}},[e._v(" \u8BBE\u7F6E ")])])])}),0):e._e(),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?t("div",{staticClass:"person-views-white"},[e._v(" \u65E0\u9700\u8BBE\u7F6E ")]):e._e(),t("div",{staticClass:"person-btn"},[t("div",{staticClass:"top-button",staticStyle:{"background-color":"#3c9cff",color:"#fff"},on:{click:e.handleSumbit}},[e._v(" \u9001\u5BA1 ")])])],1),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visiblePerson,titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},on:{"update:visible":function(i){return e.visiblePerson=i}}},[t("departPerson",e._b({attrs:{visible:e.visiblePerson},on:{"update:visible":function(i){e.visiblePerson=i},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),t("PreviewImage",{attrs:{images:e.trackUrl,visible:e.taskurlshow,indexd:0,isOne:!0,isStyle:e.isStyle},on:{"update:visible":function(i){return e.taskurlshow=i}}}),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}})],1)},cb=[];const A0="",qp={};var lb=te(ab,ob,cb,!1,ub,"4846f8b8",null,null);function ub(e){for(let n in qp)this[n]=qp[n]}const Hp=function(){return lb.exports}(),pb="data:image/png;base64,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",db={name:"attchViews",components:{TopTips:He,PreviewImage:Tr,PreView:cl,TopPopup:Qe},props:{request:{type:Function,defalut:()=>{}},limit:{type:Number|String,default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(e,n){e&&(this.filesArr=[].concat(e),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return pb},del(){return ul},doc(){return pl},file(){return dl},image(){return fl},pdf(){return hl},xls(){return vl},zip(){return ml}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;",e.multiple=!0,e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e),typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1)})},methods:{handleClick(){if(console.log("\u62E6\u622A",this.haveCount,this.limit),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${props.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}},async handleSelect(e,n){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading"),console.log("formData",e.target.files);const t=Array.from(e.target.files);let i=0,s=this.haveCount>t.length?t.length:this.haveCount;try{for(let r=0;r<s;r++)if(this.extension.includes(t[r].name.substring(t[r].name.lastIndexOf(".")+1))){const a=new FormData;a.append("file",t[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${t[r].name}\u683C\u5F0F\u9519\u8BEF,\u8BF7\u91CD\u65B0\u4E0A\u4F20`,!0,"error");return}this.handleTips("\u4E0A\u4F20\u6210\u529F",!0,"success"),this.viewImage(),console.log("\u5F53\u524D\u5DF2\u4E0A\u4F20",this.filesArr),this.emitView()}catch{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.emitView()}},handleDel(e,n){if(this.deletFn){if(this.deletFn(n)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(e,1),this.emitView()}else this.filesArr.splice(e,1),this.emitView()},viewFile(e,n){console.log("data",e),this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1))?(this.visible=!0,this.indexd=this.lists.indexOf(e.url)):e.url&&(this.visibleS=!0,this.fileUrl=e.url)},viewImage(){this.lists=[];let e=[];this.filesArr.map((n,t)=>{this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1))}),e=this.filesArr.filter(n=>this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1))),e.forEach((n,t)=>{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(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()}}};var fb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"attch-upload"},[e.buttonLoading?t("div",{staticClass:"attch-upload-mask"}):e._e(),t("div",{staticClass:"attch-upload-body"},[t("div",{staticClass:"upload-header"},[t("div",{staticClass:"upload-header-title"},[e._v(" \u9644\u4EF6 "),e.requires?t("span",{staticClass:"upload-header-title--re"},[e._v("*")]):e._e()]),t("div",{staticClass:"upload-header-upload"},[e.onlyShow?e._e():t("div",{staticClass:"upload-header-upload--item",attrs:{id:"inputfile"},on:{click:e.handleClick}},[t("img",{attrs:{src:e.addFile}}),e._v("\u4E0A\u4F20\u9644\u4EF6 ")])])]),t("div",{staticClass:"upload-body"},[e.filesArr.length>0?t("div",{staticClass:"upload-list"},e._l(e.filesArr,function(i,s){return t("div",{key:i.uuid,staticClass:"list-items"},[t("div",{staticClass:"list-items-icon"},[e.xlsIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))?t("img",{staticClass:"icon-img",attrs:{src:e.xls}}):e.imgIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))?t("img",{staticClass:"icon-img",attrs:{src:e.image}}):i.name.substring(i.name.lastIndexOf(".")+1)=="pdf"?t("img",{staticClass:"icon-img",attrs:{src:e.pdf}}):e.docIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))?t("img",{staticClass:"icon-img",attrs:{src:e.doc}}):e.zipIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))?t("img",{staticClass:"icon-img",attrs:{src:e.zip}}):t("img",{staticClass:"icon-img",attrs:{src:e.file}})]),t("div",{staticClass:"list-items-info"},[t("div",{staticClass:"info-name"},[e._v(" "+e._s(i.originFileName)+" ")]),t("div",{staticClass:"info-attribute"},[t("span",{staticClass:"info-attribute-size"},[e._v(e._s(i.fileSize<1024?i.fileSize:i.fileSize/1024>1024?parseFloat((i.fileSize/1024/1024).toFixed(2)):parseFloat((i.fileSize/1024).toFixed(2)))+e._s(i.fileSize<1024?"b":parseFloat((i.fileSize/1024).toFixed(2))<1024?"kb":"M")+" ")]),t("span",{staticClass:"info-attribute-views",on:{click:function(r){return e.viewFile(i,s)}}},[e._v(" \u9884\u89C8 ")])])]),e.onlyShow?e._e():t("div",{staticClass:"list-items-operation"},[t("div",{staticClass:"list-items-operation-img",on:{click:function(r){return e.handleDel(s,i)}}},[t("img",{attrs:{src:e.del}})])])])}),0):e._e()])]),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("PreviewImage",{attrs:{images:e.lists,visible:e.visible,indexd:e.indexd},on:{"update:visible":function(i){return e.visible=i}}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleS,titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},on:{"update:visible":function(i){return e.visibleS=i}}},[t("PreView",{attrs:{file:e.fileUrl}})],1)],1)},hb=[];const y0="",Yp={};var vb=te(db,fb,hb,!1,mb,"063c09b3",null,null);function mb(e){for(let n in Yp)this[n]=Yp[n]}const bt=function(){return vb.exports}();var gb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-popup-content"},[e._m(0),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.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:e.commentMsg},on:{input:function(i){i.target.composing||(e.commentMsg=i.target.value)}}})])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&e.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.userTaskModelDTO.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA: ")]),t("div",{staticClass:"process-pc-value",on:{click:function(a){return e.handleOpenPopup(i.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[i.id],function(a,o){return t("span",[e._v(" "+e._s(o==0?a:`,${a}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(i){return[i.type!="endEvent"&&e.isOption(i.humanPerformerName)?[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:function(s){return e.handleOpenPopup(i.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[i.id],function(s,r){return t("span",[e._v(" "+e._s(r==0?s:`,${s}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e._e()]:e._e(),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return e.visible=i}}},[t("departPerson",e._b({attrs:{visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(i){e.visible=i},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="5"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},Ab=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-pc-label"},[e._v(" \u52A0\u7B7E\u7406\u7531\uFF1A"),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const C0="",yb={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:bt,TopPopup:Qe,departPerson:Ct},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e="";this.multiNodeParticipant[this.partObjId].map((n,t)=>{t==0?e=n:e=`${e} ${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:e,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 e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,i)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.originFileName});let e=this.attchLists;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});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(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Wp={};var Cb=te(yb,gb,Ab,!1,bb,"3556632c",null,null);function bb(e){for(let n in Wp)this[n]=Wp[n]}const Eb=function(){return Cb.exports}();var Ib=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-popup-content"},[e._m(0),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.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:e.commentMsg},on:{input:function(i){i.target.composing||(e.commentMsg=i.target.value)}}})])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&e.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.userTaskModelDTO.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA: ")]),t("div",{staticClass:"process-pc-value",on:{click:function(a){return e.handleOpenPopup(i.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[i.id],function(a,o){return t("span",[e._v(" "+e._s(o==0?a:`,${a}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(i){return[i.type!="endEvent"&&e.isOption(i.humanPerformerName)?[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:function(s){return e.handleOpenPopup(i.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[i.id],function(s,r){return t("span",[e._v(" "+e._s(r==0?s:`,${s}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e._e()]:e._e(),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return e.visible=i}}},[t("departPerson",e._b({attrs:{visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(i){e.visible=i},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="1"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},kb=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-pc-label"},[e._v(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const b0="",wb={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:bt,TopPopup:Qe,departPerson:Ct},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e="";this.multiNodeParticipant[this.partObjId].map((n,t)=>{t==0?e=n:e=`${e} ${n}`}),this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/delegate",{delegateReason:this.commentMsg,taskInstId:this.param.taskInstId,targetUID:e}).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 e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,i)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.originFileName});let e=this.attchLists;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});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(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Zp={};var Nb=te(wb,Ib,kb,!1,xb,"def75392",null,null);function xb(e){for(let n in Zp)this[n]=Zp[n]}const Tb=function(){return Nb.exports}();var Ob=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-popup-content"},[t("div",{staticClass:"process-pc-label"},[e._v(" \u5FEB\u6377\u56DE\u590D ")]),t("div",{staticClass:"process-pc-value",staticStyle:{display:"flex"}},[t("div",{staticClass:"process-tag",on:{click:function(){return e.commentMsg="\u540C\u610F"}}},[e._v(" \u540C\u610F ")]),t("div",{staticClass:"process-tag",on:{click:function(){return e.commentMsg="\u5982\u62DF"}}},[e._v(" \u5982\u62DF ")]),t("div",{staticClass:"process-tag",on:{click:function(){return e.commentMsg="\u5DF2\u9605"}}},[e._v(" \u5DF2\u9605 ")])]),e._m(0),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.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:e.commentMsg},on:{input:function(i){i.target.composing||(e.commentMsg=i.target.value)}}})])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&e.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.userTaskModelDTO.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA: ")]),t("div",{staticClass:"process-pc-value",on:{click:function(a){return e.handleOpenPopup(i.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[i.id],function(a,o){return t("span",[e._v(" "+e._s(o==0?a:`,${a}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(i){return[i.type!="endEvent"&&e.isOption(i.humanPerformerName)?[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:function(s){return e.handleOpenPopup(i.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[i.id],function(s,r){return t("span",[e._v(" "+e._s(r==0?s:`,${s}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e._e()]:e._e(),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return e.visible=i}}},[t("departPerson",e._b({attrs:{visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(i){e.visible=i},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="1"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},Db=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u610F\u89C1 "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const E0="",Sb={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:bt,TopPopup:Qe,departPerson:Ct},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel")},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/complete",{actionName:"\u63D0\u4EA4",commentMsg:this.commentMsg,taskInstId:this.param.taskInstId,vars:this.param.vars,multiNodeParticipant:this.multiNodeParticipant}).then(e=>{if(e.code==200){if(this.attchLists.length>0){this.uploadAttch();return}this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""}else this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,i)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.originFileName});let e=this.attchLists;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});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(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},zp={};var Bb=te(Sb,Ob,Db,!1,_b,"519beb5d",null,null);function _b(e){for(let n in zp)this[n]=zp[n]}const Qb=function(){return Bb.exports}();var Fb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-popup-content"},[e._m(0),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.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:e.commentMsg},on:{input:function(i){i.target.composing||(e.commentMsg=i.target.value)}}})])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&e.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.userTaskModelDTO.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA: ")]),t("div",{staticClass:"process-pc-value",on:{click:function(a){return e.handleOpenPopup(i.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[i.id],function(a,o){return t("span",[e._v(" "+e._s(o==0?a:`,${a}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(i){return[i.type!="endEvent"&&e.isOption(i.humanPerformerName)?[t("div",{staticStyle:{"font-size":"15px"}},[e._v(" "+e._s(i.name)+" ")]),t("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:e.handleOpenPopup}},[t("div",{staticClass:"process-pc-value--people"},[e._v(" "+e._s(234)+" ")])])]:e._e()]})]:e._e()]:e._e(),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return e.visible=i}}},[t("departPerson",e._b({attrs:{visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(i){e.visible=i},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="\u62D2\u7EDD"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},Pb=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-pc-label"},[e._v(" \u62D2\u7EDD\u7406\u7531\uFF1A "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const I0="",Mb={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:bt,TopPopup:Qe,departPerson:Ct},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/reject",{commentMsg:this.commentMsg,taskInstId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,i)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.originFileName});let e=this.attchLists;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});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(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Xp={};var Ub=te(Mb,Fb,Pb,!1,Vb,"5b0d9bba",null,null);function Vb(e){for(let n in Xp)this[n]=Xp[n]}const Jb=function(){return Ub.exports}();var Lb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-popup-content"},[e._m(0),t("div",{staticClass:"process-pc-value",staticStyle:{display:"inline-block",width:"50%"}},[t("TopDownSelect",{attrs:{option:e.option,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},on:{change:e.handleChange}})],1),e._m(1),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.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:e.commentMsg},on:{input:function(i){i.target.composing||(e.commentMsg=i.target.value)}}})])]),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),e.labels=="\u9000\u56DE"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],1)},jb=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-pc-label",staticStyle:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[e._v(" \u9000\u56DE\u8282\u70B9\uFF1A "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-pc-label"},[e._v(" \u9000\u56DE\u7406\u7531\uFF1A "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const k0="",Rb={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:bt,TopPopup:Qe,departPerson:Ct,TopDownSelect:El},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:""}},watch:{param:{async handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{getReturnNode(){console.log("this.param.taskInstId",this.param.taskInstId),this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=e.data)})},handleChange(e){console.log("\u9000\u56DE\u8282\u70B9,",e),this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,isCompensation:!1,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,i)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.originFileName});let e=this.attchLists;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});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(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},$p={};var Gb=te(Rb,Lb,jb,!1,Kb,"06b954f3",null,null);function Kb(e){for(let n in $p)this[n]=$p[n]}const qb=function(){return Gb.exports}();var Hb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-popup-content"},[e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&e.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.userTaskModelDTO.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA: ")]),t("div",{staticClass:"process-pc-value",on:{click:function(a){return e.handleOpenPopup(i.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[i.id],function(a,o){return t("span",[e._v(" "+e._s(o==0?a:`,${a}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(i){return[i.type!="endEvent"&&e.isOption(i.humanPerformerName)?[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:function(s){return e.handleOpenPopup(i.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[i.id],function(s,r){return t("span",[e._v(" "+e._s(r==0?s:`,${s}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e._e()]:e._e(),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return e.visible=i}}},[t("departPerson",e._b({attrs:{visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(i){e.visible=i},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="2"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},Yb=[];const w0="",Wb={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:bt,TopPopup:Qe,departPerson:Ct},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){this.handleTips("",!0,"loading");let e="";this.multiNodeParticipant[this.partObjId].map((n,t)=>{t==0?e=n:e=`${e} ${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:e}).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 e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,i)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.originFileName});let e=this.attchLists;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});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(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},ed={};var Zb=te(Wb,Hb,Yb,!1,zb,"25a39390",null,null);function zb(e){for(let n in ed)this[n]=ed[n]}const Xb=function(){return Zb.exports}();var $b=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-popup-content"},[[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(e.getFirstProcessNode.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA: ")]),t("div",{staticClass:"process-pc-value",on:{click:function(i){return e.handleOpenPopup(e.getFirstProcessNode.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[e.getFirstProcessNode.id]&&e.partNode[e.getFirstProcessNode.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[e.getFirstProcessNode.id],function(i,s){return t("span",[e._v(" "+e._s(s==0?i:`,${i}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])],t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return e.visible=i}}},[t("departPerson",e._b({attrs:{visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(i){e.visible=i},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1)],2)},e0=[];const N0="",t0={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:bt,TopPopup:Qe,departPerson:Ct},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},getFirstProcessNode:{}}},watch:{param:{handler(e,n){console.log("handler::::",e),this.getFirstProcessNode=e.getFirstProcessNode,e.getFirstProcessNode&&this.getFirstProcessNode&&(e.getFirstProcessNode.type=="userTask"||e.getFirstProcessNode.type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):e.getFirstProcessNode.type=="ExclusiveGatewayModel"||e.getFirstProcessNode.type=="InclusiveGatewayModel")},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param)},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){let e={isClearHistory:!1,processInstId:this.param.processInstId,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant};this.handleTips("",!0,"loading"),await this.param.request.post("/aws/pis/reactivate",e).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal()):this.handleTips(n.msg,!0,"error")})},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},td={};var n0=te(t0,$b,e0,!1,i0,"3aa79dd5",null,null);function i0(e){for(let n in td)this[n]=td[n]}const s0=function(){return n0.exports}(),x0="",r0={name:"TopProcess",components:{TopTab:Em,TopPopup:Qe,TopTips:He,TopSumbitPopup:Hp},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(e,n){this.processIntId=this.processInstId,e&&(this.request.get("/aws/repository/getTrackUrl",{params:{processInstId:this.processIntId,type:"mobile"}}).then(t=>{t.code==200&&(this.trackUrl=t.data)}),this.request.get("/aws/pis/findNodeParticipantRows",{params:{processInstId:this.processIntId}}).then(t=>{t.code==200&&(this.trackList=t.data)}),this.request.get("/aws/tis/getTaskCommentList",{params:{processInstId:this.processInstId,processBusinessKey:this.formData.businessKey}}).then(t=>{t.code==200&&(this.taskCommentList=t.data)}),this.request.get("/aws/pis/getProcessInstanceById",{params:{processInstId:this.processInstId}}).then(t=>{t.code==200&&(this.ProcessInsObj=t.data)}),await this.request.get("/aws/repository/queryTaskNodeList",{params:{processInstId:this.processInstId}}).then(t=>{if(t.code==200)if(this.taskNode=t.data,this.taskNodeList=t.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 t,i;let e=[],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"},e.push(s),s.click=r=>{this.handleActionClose(),this.showOperation(Qb,r,this.request,this.taskObj.completeButtonAnnex)}}if(n&&!this.isView&&this.processStatus.currUserName){let s={};s.name="\u62D2\u7EDD",s.btnProps={type:"danger"},e.push(s),s.click=r=>{this.handleActionClose(),this.showOperation(Jb,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"},e.push(r),r.click=a=>{this.handleActionClose(),this.showOperation(qb,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(Xb,r,this.request,this.taskObj.ccTaskButtonAnnex)},e.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(Tb,r,this.request,this.taskObj.delegateTaskButtonAnnex)},e.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(Eb,r,this.request,this.taskObj.counterSignButtonAnnex)},e.push(s)}if(this.processIntId&&this.processStatus.createTopUserId==this.userId&&((t=this.taskNode[0])==null?void 0:t.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"},e.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"},e.push(s)}return e},processCardHeight(){let e=210;return this.processStatus.status?this.processStatus.currUserName||(e-=40):e-=140,`calc(100vh - ${e}px)`}},methods:{handleTest(){},async handleGetSimulation(e){this.handleTips("",!0,"loading");let n={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e},t=await this.request.post("/aws/tis/simulation",n);t.success?(this.handleTips("",!1,"success"),this.nextNodeData=t.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(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.request.get("/aws/pis/getProcessStatus",{params:{processInstId:this.processInstId,taskId:this.taskNode.length?this.taskNode[0].taskId:""}}).then(e=>{e.code==200&&(this.processStatus=e.data)})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length&&this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data)})},async showOperation(e,n,t,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)}t&&(this.operationParam.request=t),t&&(this.annexlabel=i),this.titleText=n,this.operationCom=e,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(e=>{e.code==200?this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.post("/aws/pis/revoke",{processInstId:this.ProcessInsObj.id,processBusinessKey:this.ProcessInsObj.processBusinessKey}).then(e=>{e.code==200?this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){console.log("handleTipsCancel")},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.processStatus.appId}}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(n=>{this.processBusiness=n.data,this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(t=>{console.log("getProcessInstanceByBusinessKey:::",t),this.getFirstProcessNode=t.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(s0,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(n=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()}}};var a0=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"process-warp"},[e.processStatus.status?t("div",{staticClass:"process-main"},[t("div",{staticClass:"process-ml-item border"},[t("div",{staticClass:"process-mli-name"},[e._v("\u6D41\u7A0B\u72B6\u6001")]),t("div",{staticClass:"process-mli-value"},[e.processStatus.status||e.processStatus.bizStatusName?t("div",{staticClass:"process-mliv-dd",style:{background:e.getColor(e.processStatus.status)}},[e._v(" "+e._s(e.processStatus.bizStatusName?e.processStatus.bizStatusName:e.processStatus.status)+" ")]):e._e()])]),t("div",{staticClass:"process-ml-item border"},[t("div",{staticClass:"process-mli-name"},[e._v("\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4")]),t("div",{staticClass:"process-mli-value"},[t("span",[e._v(e._s(e.processStatus.createTime))])])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?t("div",{staticClass:"process-ml-item"},[t("div",{staticClass:"process-mli-name"},[e._v("\u5BA1\u6279\u8282\u70B9")]),t("div",{staticClass:"process-mli-value"},[t("span",{staticClass:"process-mliv-jd"},[e._v(e._s(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`))])])]):e._e()]):e._e(),t("div",{staticClass:"process-card",style:{height:e.processCardHeight}},[t("TopTab",{attrs:{tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList}},[e.selfTapList&&e.selfTapList.length?e._l(e.selfTapList,function(i,s){return t("div",{key:s,attrs:{slot:i.slot},slot:i.slot},[e._t(i.slot)],2)}):[t("div",{staticStyle:{},attrs:{slot:"default"},slot:"default"},[e._t("default")],2),e._l(e.tapList,function(i,s){return t("div",{key:s,staticStyle:{},attrs:{slot:i.slot},slot:i.slot},[e._t(i.slot)],2)})]],2)],1),e.isAdditional?t("div",{staticClass:"process-foot"},[t("div",{staticClass:"footBtnRow"},[e._t("btn")],2)]):e._e(),t("div",{staticClass:"process-btn"},[e.processStatus.status!="\u5DF2\u5B8C\u6210"?[e.processStatus.status==="\u5DF2\u64A4\u9500"||e.processStatus.status==="\u5DF2\u9A73\u56DE"?t("div",{staticClass:"top-button",style:e.getBtnStyle("default"),on:{click:e.handleRestart}},[e._v(" \u91CD\u65B0\u63D0\u4EA4 ")]):e._l(e.operBtn,function(i,s){return[s<3?t("div",{key:i.name,staticClass:"top-button",style:e.getBtnStyle(i.btnProps.type.toString()),on:{click:function(r){return i.click(i.name)}}},[e._v(" "+e._s(i.name)+" ")]):e._e()]})]:e._e(),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?t("div",{staticClass:"elips",on:{click:e.handleActionOpen}},[t("div",{staticClass:"circle"}),t("div",{staticClass:"circle"}),t("div",{staticClass:"circle"})]):e._e()],2)]),t("TopPopup",{ref:"TopPopup1",attrs:{cancel:e.handleCancel,comfig:e.handleComfig,titleText:e.titleText}},[t(e.operationCom,{ref:"operationRef",tag:"component",attrs:{param:e.operationParam},on:{handleClosePopup1:e.handleClosePopup1}})],1),t("TopPopup",{ref:"TopPopup2",attrs:{titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig}}),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?t("div",{staticClass:"top-elips",style:e.actionShow?"transform: translateY(0)":"transform: translateY(100%)"},[e.taskNodeShow?e._l(e.taskNodeList,function(i){return t("div",{key:i.taskId,staticClass:"top-elips-items",on:{click:function(s){return e.handleGet(i)}}},[e._v(" "+e._s(i.name)+" ")])}):e._l(e.actionBtn,function(i){return t("div",{key:i.name,staticClass:"top-elips-items",on:{click:function(s){return i.click(i.name)}}},[e._v(" "+e._s(i.name)+" ")])}),t("div",{staticClass:"top-elips-items top-elips-items--cancel",on:{click:e.handleActionClose}},[e._v(" \u53D6\u6D88 ")])],2):e._e(),t("div",{staticClass:"top-elips-mask",style:e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;",on:{click:e.handleActionClose}})],1)},o0=[];const T0="",nd={};var c0=te(r0,a0,o0,!1,l0,"4b00ad89",null,null);function l0(e){for(let n in nd)this[n]=nd[n]}const u0=function(){return c0.exports}();ze.TopProcess=u0,ze.TopSumbitPopup=Hp,ze.ViewAttchList=Al,ze.attchViews=bt,Object.defineProperties(ze,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
67
+ `,document.body.appendChild(this.mainContainer)}message(n={}){let t=sessionStorage.getItem(this.sessionStorageName),i=t?JSON.parse(t):null;if(n.againBtn&&n.content&&i&&Array.isArray(i)&&i.includes(n.content))return;const s=$C({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),Ja(this.mainContainer),eb(s,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const tb={components:{checked:VC,dcSwitch:KC,dcLoading:zC},name:"departPerson",props:{visible:{type:Boolean,default:!1},source:{type:String,default:"0"},type:{type:String,default:"0"},request:{type:Function,default:()=>({get:()=>{},post:()=>{}})},businessId:{type:String,default:""},codeType:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},checkedArray:{type:Array,default:()=>[]}},data(){return{isSon:!1,deptId:"",subjectId:"",jsonData:[],breadcrumb:[],checkedJson:[],keyword:"",isQuery:!0,isLoading:!1,checkedAll:!1,isShowChecked:!1}},watch:{visible:{deep:!0,immediate:!0,handler:function(e,n){if(!e)return!1;this.$nextTick(()=>{this.getDetail(()=>{this.getSearch(),this.defaultBreadcrumb()})})}},isSon:{deep:!0,handler:function(e,n){let t=[];const i=this.checkedJson.map(s=>{const r=this.entityJson.findIndex(a=>a.id===s.id&&s.type==a.type&&s.type==2)>-1?e&&s.type==2?"4":s.type:s.orgRecordsType;return(r==4||s.type==1)&&t.push(s.id),{...s,orgRecordsType:r}});this.checkedJson=i.filter(s=>s.ancestors.split(",").findIndex(r=>t.indexOf(r)>-1)===-1)}},checkedArray:{deep:!0,immediate:!0,handler:function(e,n){if(M(e)||!M(this.businessId))return!1;this.getCards()}}},computed:{dialogVisible:{get(){return this.visible},set(e){this.$emit("update:visible",e)}},queryImg(){return XC},entityJson(){const e=this.checkedJson;return this.jsonData.map(n=>{const t=this.isQuery?this.breadcrumb_level.ancestors||"":n.ancestors,i=this.isQuery?this.breadcrumb_level.ancestorNames:n.ancestorNames,s=t+n.id+"__"+n.type,r=e.find(h=>h.uniqueId===s),a=!M(r),o=a?!1:e.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=M(e)?0:c?n.counts:e.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:M(n.counts)?0:n.counts,num:p,phone:BC(n.phone),uid:n.uid,iconName:Va(n.name,2),checked:a,ancestors:t,ancestorNames:i,deptName:_C(n.ancestorNames,"/"),uniqueId:s,isDisabled:o,isLevel:c,subjectId:n.subjectId,sex:n.sex,isNoDelete:d}})},companyJson(){return this.entityJson.filter(e=>e.type==1)},deptJson(){return this.entityJson.filter(e=>e.type==2)},userJson(){return this.entityJson.filter(e=>e.type==3)},checkedNumber(){const e=this.checkedJson.filter(s=>s.type==1).length,n=this.checkedJson.filter(s=>s.type==2).length,t=this.checkedJson.filter(s=>s.type==3).length;let i=[];return e>0&&i.push(e+"\u4E2A\u7EC4\u7EC7"),n>0&&i.push(n+"\u4E2A\u90E8\u95E8"),t>0&&i.push(t+"\u4E2A\u6210\u5458"),M(i)?"":"\u5DF2\u9009\u62E9"+i.join("\uFF0C")},breadcrumb_subjectId(){return this.breadcrumb.length>1?this.breadcrumb.find((e,n)=>n===1).value:""},breadcrumb_level(){const e=this.breadcrumb.filter((n,t)=>t!==0);return{ancestors:e.map(n=>n.value).join(","),ancestorNames:e.map(n=>n.name).join("/")}},isDept(){return this.jsonData.findIndex(e=>e.type==2)>-1},isShowSubject(){return this.codeType.findIndex(e=>e==1)>-1},isShowDept(){return this.codeType.findIndex(e=>e==2)>-1},isNotLevel(){return this.isShowSubject&&this.codeType.length===1},isShowQuery(){return this.codeType.findIndex(e=>e==3)>-1},getHight(){return!this.isShowQuery&&this.isDept?"notQuerySon":!this.isShowQuery&&!this.isDept?"notQuery":this.isDept?"nvaHeight":""},getTitle(){let e=[];return this.isShowSubject&&e.push("\u7EC4\u7EC7"),this.isShowDept&&e.push("\u90E8\u95E8"),this.isShowQuery&&e.push("\u4EBA\u5458"),"\u9009\u62E9"+e.join("\u3001")},isNoDelete(){return M(this.checkedArray)?[]:this.checkedArray.filter(e=>e.isDeleteNo)}},mounted(){document.title=this.getTitle},methods:{handleSubmit(){const e=M(this.checkedJson)?[]:this.checkedJson.map(t=>({type:t.orgRecordsType,id:t.id,name:t.name,ancestors:t.ancestors,ancestorNames:t.ancestorNames,subjectId:t.subjectId,phone:M(t.phone)?"":t.phone,sex:t.sex,uid:M(t.uid)?"":t.uid}));if(M(this.businessId))return this.dialogVisible=!1,this.$emit("callback",e);const n={businessId:this.businessId,orgRecords:this.checkedJson.map(t=>({type:t.orgRecordsType,bizId:t.id,ancestors:t.ancestors,ancestorNames:t.ancestorNames,uid:t.uid}))};this.isLoading=!0,this.request.post("/auth/component/org/save",n).then(t=>{t.code===200&&(this.dialogVisible=!1,this.$emit("callback",e))}).finally(()=>{this.isLoading=!1})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){this.getSearch(()=>{this.isQuery=M(this.keyword)})},handleAllCheckbox(e){(this.isShowDept?this.entityJson:this.entityJson.filter(n=>n.type!=2)).forEach(n=>this.handleCheckbox(e,n))},handleCheckbox(e,n){if(n.isDisabled||n.isNoDelete||n.type==1&&!this.isShowSubject||n.type==2&&!this.isShowDept)return!1;if(e.currentTarget.checked){const t=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:t,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)?(e.currentTarget.checked=!1,!1):(this.multiple?this.checkedJson.push(r):this.checkedJson=[r],!1)}this.checkedJson=this.checkedJson.filter(t=>t.uniqueId!==n.uniqueId)},handleBreadcrumb(e,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=e.value,this.subjectId=this.breadcrumb_subjectId;break}this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((t,i)=>i<n+1)})},handleLevel(e){if(e.isDisabled||e.isLevel)return!1;switch(e.type){case"1":this.deptId=0,this.subjectId=e.id,this.getSearch(()=>{this.breadcrumb.push({name:e.name,value:e.id})});break;case"2":this.deptId=e.id,this.subjectId=this.breadcrumb_subjectId,this.getSearch(()=>{this.breadcrumb.push({name:e.name,value:e.id})});break}},getBoolChecked(e){if(e.type!=3)return!1;const n=e.ancestors.split(","),t=this.checkedJson.filter(s=>s.type==2||s.type==1).find(s=>n.indexOf(s.id)>-1);let i=!1;return M(t)||(t.type==1&&(new Gp().message({content:`\u5DF2\u9009\u7684\u7EC4\u7EC7\u3010${t.name}\u3011\u5B58\u5728${e.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),i=!0),t.type==4&&(new Gp().message({content:`\u5DF2\u9009\u7684\u90E8\u95E8\u3010${t.name}\u3011\u5B58\u5728${e.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 e=this.entityJson.filter(t=>t.type==2),n=this.checkedJson.filter(t=>t.type==2);this.isSon=n.findIndex(t=>e.findIndex(i=>i.id===t.id&&t.orgRecordsType==4)>-1)>-1},getSearch(e=()=>{}){const n=this.codeType.findIndex(i=>i==3)>-1?3:this.codeType.findIndex(i=>i==2)>-1?2:1,t={source:this.source,type:this.type,deptId:this.deptId,subjectId:this.subjectId,keyword:this.keyword,showType:n};M(t.deptId)&&delete t.deptId,M(t.deptId)&&delete t.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:t}).then(i=>{e(),this.jsonData=M(i.data)||i.code!==200?[]:i.data,this.getIsSon()}).finally(()=>{this.isLoading=!1})},getDetail(e=()=>{}){if(M(this.businessId))return e(),!1;const n={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:n}).then(t=>{this.checkedJson=M(t.data)||t.code!==200?[]:t.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:Va(i.name,2),sex:i.sex,uid:M(i.uid)?"":i.uid,isNoDelete:o}}),e()})},getCards(){if(M(this.checkedArray))return this.checkedJson=[];const e=this.checkedArray.map(n=>({type:n.type,id:M(n.id)?null:n.id,uid:M(n.uid)?null:n.uid,subjectId:M(n.subjectId)?null:n.subjectId}));this.request.post("/auth/component/org/cards",{params:e}).then(n=>{this.checkedJson=M(n.data)||n.code!==200?[]:n.data.map(t=>{const i=t.type==4?"2":t.type,s=t.type==1?"":t.ancestors,r=t.type==1?"":t.ancestorNames,a=s+t.id+"__"+i,o=this.isNoDelete.findIndex(c=>c.id===t.id||c.uid===t.uid)>-1;return{...t,ancestors:s,ancestorNames:r,id:t.id,type:i,uniqueId:a,orgRecordsType:t.type,iconName:Va(t.name,2),sex:t.sex,uid:M(t.uid)?"":t.uid,isNoDelete:o}})})}}};var nb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.dialogVisible?t("main",{staticClass:"departPerson-main"},[t("div",{staticClass:"deper-top"},[e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowQuery,expression:"isShowQuery"}],staticClass:"deper-query"},[t("form",{staticClass:"form",attrs:{action:"javascript: void(0);"},on:{submit:function(i){i.preventDefault()}}},[t("i",{staticClass:"icon-chaxun iconfont chaxun"}),t("input",{directives:[{name:"model",rawName:"v-model",value:e.keyword,expression:"keyword"}],staticClass:"input",attrs:{type:"search",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u3001\u624B\u673A\u53F7\u7801"},domProps:{value:e.keyword},on:{keyup:function(i){return!i.type.indexOf("key")&&e._k(i.keyCode,"enter",13,i.key,"Enter")?null:e.handleQuery.apply(null,arguments)},input:function(i){i.target.composing||(e.keyword=i.target.value)}}}),e.keyword.length>0?t("i",{staticClass:"icon-error-fill iconfont close",on:{click:e.handleEmpty}}):e._e()])]),e.isQuery?t("div",{staticClass:"deper-breadcrumb"},e._l(e.breadcrumb,function(i,s){return t("div",{key:i.value,staticClass:"deper-b-item",on:{click:function(r){return e.handleBreadcrumb(i,s)}}},[t("span",[e._v(e._s(i.name))]),t("i",{staticClass:"icon-jiantouyou iconfont"})])}),0):e._e(),e.isQuery?t("div",{staticClass:"deper-all"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.checkedAll,expression:"checkedAll"}],staticClass:"deper-checkbox",attrs:{type:"checkbox",name:"deper-all",id:"deper-all"},domProps:{checked:Array.isArray(e.checkedAll)?e._i(e.checkedAll,null)>-1:e.checkedAll},on:{change:[function(i){var s=e.checkedAll,r=i.target,a=!!r.checked;if(Array.isArray(s)){var o=null,c=e._i(s,o);r.checked?c<0&&(e.checkedAll=s.concat([o])):c>-1&&(e.checkedAll=s.slice(0,c).concat(s.slice(c+1)))}else e.checkedAll=a},e.handleAllCheckbox]}}),t("label",{staticClass:"label",attrs:{for:"deper-all"}},[e._v("\u5168\u9009")])]):e._e()]),e.isQuery?t("div",{staticClass:"deper-center",class:e.getHight},[e.companyJson.length>0?t("div",{staticClass:"deper-c-depart"},e._l(e.companyJson,function(i){return t("div",{key:i.uniqueId,staticClass:"depart-item"},[t("label",{staticClass:"depart-left",class:{width:e.isNotLevel,isNoDelete:i.isNoDelete}},[t("input",{directives:[{name:"show",rawName:"v-show",value:e.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)?e._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=e._i(r,c);a.checked?p<0&&e.$set(i,"checked",r.concat([c])):p>-1&&e.$set(i,"checked",r.slice(0,p).concat(r.slice(p+1)))}else e.$set(i,"checked",o)},function(s){return e.handleCheckbox(s,i)}]}}),t("div",{staticClass:"depart-name"},[t("div",{staticClass:"name"},[e._v(e._s(i.name))]),i.num>0?t("div",{staticClass:"number"},[e._v("("),t("label",{staticClass:"label"},[e._v(e._s(i.num)+"/"+e._s(i.counts))]),e._v(")")]):t("div",{staticClass:"number"},[e._v("("+e._s(i.counts)+")")])])]),!e.isNotLevel&&i.counts>0?t("div",{staticClass:"depart-right",class:{isdisabled:i.isLevel},on:{click:function(s){return e.handleLevel(i)}}},[t("i",{staticClass:"icon-pedigree iconfont"}),t("span",[e._v("\u4E0B\u7EA7")])]):e._e()])}),0):e._e(),e.deptJson.length>0?t("div",{staticClass:"deper-c-depart"},e._l(e.deptJson,function(i){return t("div",{key:i.uniqueId,staticClass:"depart-item"},[t("label",{staticClass:"depart-left",class:{isNoDelete:i.isNoDelete}},[t("input",{directives:[{name:"show",rawName:"v-show",value:e.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)?e._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=e._i(r,c);a.checked?p<0&&e.$set(i,"checked",r.concat([c])):p>-1&&e.$set(i,"checked",r.slice(0,p).concat(r.slice(p+1)))}else e.$set(i,"checked",o)},function(s){return e.handleCheckbox(s,i)}]}}),t("div",{staticClass:"depart-name"},[t("div",{staticClass:"name"},[e._v(e._s(i.name))]),i.num>0?t("div",{staticClass:"number"},[e._v("("),t("label",[e._v(e._s(i.num)+"/"+e._s(i.counts))]),e._v(")")]):t("div",{staticClass:"number"},[e._v("("+e._s(i.counts)+")")])])]),i.counts>0?t("div",{staticClass:"depart-right",class:{isdisabled:i.isLevel},on:{click:function(s){return e.handleLevel(i)}}},[t("i",{staticClass:"icon-pedigree iconfont"}),t("span",[e._v("\u4E0B\u7EA7")])]):e._e()])}),0):e._e(),e.userJson.length>0?t("div",{staticClass:"deper-c-user"},e._l(e.userJson,function(i){return t("label",{key:i.uniqueId,staticClass:"user-item",class:{isNoDelete:i.isNoDelete}},[t("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)?e._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=e._i(r,c);a.checked?p<0&&e.$set(i,"checked",r.concat([c])):p>-1&&e.$set(i,"checked",r.slice(0,p).concat(r.slice(p+1)))}else e.$set(i,"checked",o)},function(s){return e.handleCheckbox(s,i)}]}}),t("div",{staticClass:"user-icon"},[t("span",[e._v(e._s(i.iconName))])]),t("div",{staticClass:"user-name"},[t("div",{staticClass:"span"},[e._v(e._s(i.name))]),t("div",{staticClass:"phone"},[e._v(e._s(i.phone))])])])}),0):e._e()]):t("div",{staticClass:"deper-search"},[e._e(),t("div",{staticClass:"deper-search-section"},[e._e(),t("div",{staticClass:"search-user"},[t("div",{staticClass:"search-title"},[e._v("\u8054\u7CFB\u4EBA")]),e._l(e.userJson,function(i){return t("label",{key:i.uniqueId,staticClass:"user-item"},[t("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)?e._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=e._i(r,c);a.checked?p<0&&e.$set(i,"checked",r.concat([c])):p>-1&&e.$set(i,"checked",r.slice(0,p).concat(r.slice(p+1)))}else e.$set(i,"checked",o)},function(s){return e.handleCheckbox(s,i)}]}}),t("div",{staticClass:"user-icon"},[t("span",[e._v(e._s(i.iconName))])]),t("div",{staticClass:"user-name"},[t("div",{staticClass:"span"},[e._v(e._s(i.name))]),t("div",{staticClass:"phone"},[e._v(e._s(i.phone))]),t("div",{staticClass:"txt"},[e._v(e._s(i.ancestorNames))])])])})],2)])]),e.isDept?t("div",{staticClass:"deper-son"},[t("span",[e._v("\u5305\u542B\u5B50\u7EA7")]),t("dc-switch",{attrs:{modelValue:e.isSon,name:"isSone"},on:{"update:modelValue":function(i){e.isSon=i},"update:model-value":function(i){e.isSon=i}}})],1):e._e(),t("div",{staticClass:"deper-bottom"},[t("div",{staticClass:"deper-b-checked",on:{click:function(i){e.isShowChecked=!0}}},[t("span",[e._v(e._s(e.checkedNumber))]),e.checkedNumber.length>0?t("i",{staticClass:"icon-jiantouyou iconfont"}):e._e()]),t("div",{staticClass:"deper-b-btn",on:{click:e.handleSubmit}},[e._v("\u786E\u5B9A")])]),t("checked",{attrs:{visible:e.isShowChecked,checkedJson:e.checkedJson},on:{"update:visible":function(i){e.isShowChecked=i},"update:checkedJson":function(i){e.checkedJson=i},"update:checked-json":function(i){e.checkedJson=i}},scopedSlots:e._u([{key:"user",fn:function(i){var s=i.item;return[e._t("checkedUser",null,{item:s})]}}],null,!0)}),e.isLoading?t("dcLoading"):e._e()],1):e._e()},ib=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"depart-item"},[t("label",{staticClass:"depart-left"},[t("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),t("div",{staticClass:"depart-name"},[t("div",{staticClass:"name"},[e._v("\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8\u6C5F\u897F\u9876\u70B9\u79D1\u6280\u53D1\u5C55\u6709\u9650\u516C\u53F8")]),t("div",{staticClass:"number"},[e._v("("),t("label",[e._v("100/100")]),e._v(")")])])])])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"depart-item"},[t("label",{staticClass:"depart-left"},[t("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),t("div",{staticClass:"depart-name"},[t("div",{staticClass:"name"},[e._v("\u6280\u672F\u90E8")]),t("div",{staticClass:"number"},[e._v("(80)")])])])])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"depart-item"},[t("label",{staticClass:"depart-left"},[t("input",{staticClass:"deper-checkbox",attrs:{type:"checkbox"}}),t("div",{staticClass:"depart-name"},[t("div",{staticClass:"name"},[e._v("\u5F00\u53D1\u90E8")]),t("div",{staticClass:"number"},[e._v("("),t("label",[e._v("100/100")]),e._v(")")])])])])}];const Kp={};var sb=vs(tb,nb,ib,!1,rb,null,null,null);function rb(e){for(let n in Kp)this[n]=Kp[n]}const Ct=function(){return sb.exports}(),ab={name:"TopSubmitPopup",components:{TopPopup:Qe,TopDownSelect:El,PreviewImage:Tr,departPerson:Ct,TopTips:He},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(e,n){this.show=e,this.$emit("update:visible",this.show),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId,processGroupName:this.processName}}).then(t=>{console.log("\u83B7\u53D6\u6D41\u7A0B::",t),t.code==200&&(this.option=t.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(t=>{t.code===200&&(this.firstPerson=t.data)})},immediate:!0},appId:{handler(e,n){this.formData.appId=e},immediate:!0,deep:!0},processName:{handler(e,n){this.formData.processName=e},immediate:!0,deep:!0},resubmit:{handler(e,n){this.formData.resubmit=e},immediate:!0,deep:!0},id:{handler(e,n){this.formData.id=e},immediate:!0,deep:!0},businessType:{handler(e,n){this.formData.businessType=e},immediate:!0,deep:!0},todoParameter:{handler(e,n){this.formData.todoParameter=e},immediate:!0,deep:!0},isClearHistory:{handler(e,n){this.formData.isClearHistory=e},immediate:!0,deep:!0},title:{handler(e,n){this.formData.title=e},immediate:!0,deep:!0},showType:{handler(e,n){this.formData.showType=e},immediate:!0,deep:!0}},methods:{handleChange(e,n){console.log("\u5F53\u524D\u9009\u62E9::::",e),this.checkedItem=e,this.getAfferentParticipantNodeList(),this.getDiagramUrl(),this.$emit("change",e,n)},getAfferentParticipantNodeList(){this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.personList=e.data.slice(1),this.$emit("change",this.checkedItem,e.data))})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenPerson(e){console.log("\u9009\u4EBA\u5F39\u7A97",e),this.visiblePerson=!0,this.personObjId=e.id},handleCallback(e){this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.personObjId].push(n.uid),this.partNode[this.personObjId].push(n.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},async handleSumbit(){if(this.firstPerson&&this.firstPerson.length&&!this.multiNodeParticipant[this.firstPerson[0].id]){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error");return}this.beforeFunction&&await this.beforeFunction(),this.$nextTick(()=>{this.handleSongshen()})},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(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")})):(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(e=>{e.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):e.code==499?this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(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(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")}))},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()}}};var ob=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("TopPopup",{ref:"TopPopup",attrs:{visible:e.show,titleText:"\u9001\u5BA1",isDrawer:"",isIndex:99},on:{"update:visible":function(i){return e.show=i,e.$emit("update:visible",i)}}},[t("TopDownSelect",{attrs:{option:e.option},on:{change:e.handleChange}}),t("div",{staticClass:"viewTrack",on:{click:function(i){e.taskurlshow=!0}}},[e._v("\u67E5\u770B\u6D41\u7A0B\u56FE")]),e.firstPerson&&e.firstPerson.length?t("div",{staticClass:"person-views"},e._l(e.firstPerson,function(i,s){return t("div",{staticClass:"views-items"},[t("div",{staticClass:"views-items-name"},[e._v(" "+e._s(i.name)+" "),t("span",{staticClass:"views-items-name--re"},[e._v("*")])]),t("div",{staticClass:"views-items-set"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",[e._l(e.partNode[i.id],function(r,a){return t("span",[e._v(" "+e._s(a>=3?"":a==0?r:`,${r}`)+" ")])}),e.partNode[i.id].length>3?t("span",[e._v("...\u7B49"+e._s(e.partNode[i.id].length)+"\u4EBA")]):e._e()],2):t("div"),t("div",{staticClass:"views-items-set-btn",on:{click:function(r){return e.handleOpenPerson(i)}}},[e._v(" \u8BBE\u7F6E ")])])])}),0):e._e(),e.personList&&e.personList.length?t("div",{staticClass:"person-views"},e._l(e.personList,function(i,s){return t("div",{staticClass:"views-items"},[t("div",{staticClass:"views-items-name"},[e._v(" "+e._s(i.name)+" ")]),t("div",{staticClass:"views-items-set"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",[e._l(e.partNode[i.id],function(r,a){return t("span",[e._v(" "+e._s(a>=3?"":a==0?r:`,${r}`)+" ")])}),e.partNode[i.id].length>3?t("span",[e._v("...\u7B49"+e._s(e.partNode[i.id].length)+"\u4EBA")]):e._e()],2):t("div"),t("div",{staticClass:"views-items-set-btn",on:{click:function(r){return e.handleOpenPerson(i)}}},[e._v(" \u8BBE\u7F6E ")])])])}),0):e._e(),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?t("div",{staticClass:"person-views-white"},[e._v(" \u65E0\u9700\u8BBE\u7F6E ")]):e._e(),t("div",{staticClass:"person-btn"},[t("div",{staticClass:"top-button",staticStyle:{"background-color":"#3c9cff",color:"#fff"},on:{click:e.handleSumbit}},[e._v(" \u9001\u5BA1 ")])])],1),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visiblePerson,titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},on:{"update:visible":function(i){return e.visiblePerson=i}}},[t("departPerson",e._b({attrs:{visible:e.visiblePerson},on:{"update:visible":function(i){e.visiblePerson=i},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),t("PreviewImage",{attrs:{images:e.trackUrl,visible:e.taskurlshow,indexd:0,isOne:!0,isStyle:e.isStyle},on:{"update:visible":function(i){return e.taskurlshow=i}}}),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}})],1)},cb=[];const A0="",qp={};var lb=te(ab,ob,cb,!1,ub,"4846f8b8",null,null);function ub(e){for(let n in qp)this[n]=qp[n]}const Hp=function(){return lb.exports}(),pb="data:image/png;base64,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",db={name:"attchViews",components:{TopTips:He,PreviewImage:Tr,PreView:cl,TopPopup:Qe},props:{request:{type:Function,defalut:()=>{}},limit:{type:Number|String,default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(e,n){e&&(this.filesArr=[].concat(e),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return pb},del(){return ul},doc(){return pl},file(){return dl},image(){return fl},pdf(){return hl},xls(){return vl},zip(){return ml}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;",e.multiple=!0,e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e),typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1)})},methods:{handleClick(){if(console.log("\u62E6\u622A",this.haveCount,this.limit),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${props.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}},async handleSelect(e,n){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading"),console.log("formData",e.target.files);const t=Array.from(e.target.files);let i=0,s=this.haveCount>t.length?t.length:this.haveCount;try{for(let r=0;r<s;r++)if(this.extension.includes(t[r].name.substring(t[r].name.lastIndexOf(".")+1))){const a=new FormData;a.append("file",t[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${t[r].name}\u683C\u5F0F\u9519\u8BEF,\u8BF7\u91CD\u65B0\u4E0A\u4F20`,!0,"error");return}this.handleTips("\u4E0A\u4F20\u6210\u529F",!0,"success"),this.viewImage(),console.log("\u5F53\u524D\u5DF2\u4E0A\u4F20",this.filesArr),this.emitView()}catch{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.emitView()}},handleDel(e,n){if(this.deletFn){if(this.deletFn(n)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(e,1),this.emitView()}else this.filesArr.splice(e,1),this.emitView()},viewFile(e,n){console.log("data",e),this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1))?(this.visible=!0,this.indexd=this.lists.indexOf(e.url)):e.url&&(this.visibleS=!0,this.fileUrl=e.url)},viewImage(){this.lists=[];let e=[];this.filesArr.map((n,t)=>{this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1))}),e=this.filesArr.filter(n=>this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1))),e.forEach((n,t)=>{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(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()}}};var fb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"attch-upload"},[e.buttonLoading?t("div",{staticClass:"attch-upload-mask"}):e._e(),t("div",{staticClass:"attch-upload-body"},[t("div",{staticClass:"upload-header"},[t("div",{staticClass:"upload-header-title"},[e._v(" \u9644\u4EF6 "),e.requires?t("span",{staticClass:"upload-header-title--re"},[e._v("*")]):e._e()]),t("div",{staticClass:"upload-header-upload"},[e.onlyShow?e._e():t("div",{staticClass:"upload-header-upload--item",attrs:{id:"inputfile"},on:{click:e.handleClick}},[t("img",{attrs:{src:e.addFile}}),e._v("\u4E0A\u4F20\u9644\u4EF6 ")])])]),t("div",{staticClass:"upload-body"},[e.filesArr.length>0?t("div",{staticClass:"upload-list"},e._l(e.filesArr,function(i,s){return t("div",{key:i.uuid,staticClass:"list-items"},[t("div",{staticClass:"list-items-icon"},[e.xlsIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))?t("img",{staticClass:"icon-img",attrs:{src:e.xls}}):e.imgIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))?t("img",{staticClass:"icon-img",attrs:{src:e.image}}):i.name.substring(i.name.lastIndexOf(".")+1)=="pdf"?t("img",{staticClass:"icon-img",attrs:{src:e.pdf}}):e.docIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))?t("img",{staticClass:"icon-img",attrs:{src:e.doc}}):e.zipIcon.includes(i.name.substring(i.name.lastIndexOf(".")+1))?t("img",{staticClass:"icon-img",attrs:{src:e.zip}}):t("img",{staticClass:"icon-img",attrs:{src:e.file}})]),t("div",{staticClass:"list-items-info"},[t("div",{staticClass:"info-name"},[e._v(" "+e._s(i.originFileName)+" ")]),t("div",{staticClass:"info-attribute"},[t("span",{staticClass:"info-attribute-size"},[e._v(e._s(i.fileSize<1024?i.fileSize:i.fileSize/1024>1024?parseFloat((i.fileSize/1024/1024).toFixed(2)):parseFloat((i.fileSize/1024).toFixed(2)))+e._s(i.fileSize<1024?"b":parseFloat((i.fileSize/1024).toFixed(2))<1024?"kb":"M")+" ")]),t("span",{staticClass:"info-attribute-views",on:{click:function(r){return e.viewFile(i,s)}}},[e._v(" \u9884\u89C8 ")])])]),e.onlyShow?e._e():t("div",{staticClass:"list-items-operation"},[t("div",{staticClass:"list-items-operation-img",on:{click:function(r){return e.handleDel(s,i)}}},[t("img",{attrs:{src:e.del}})])])])}),0):e._e()])]),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("PreviewImage",{attrs:{images:e.lists,visible:e.visible,indexd:e.indexd},on:{"update:visible":function(i){return e.visible=i}}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleS,titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},on:{"update:visible":function(i){return e.visibleS=i}}},[t("PreView",{attrs:{file:e.fileUrl}})],1)],1)},hb=[];const y0="",Yp={};var vb=te(db,fb,hb,!1,mb,"063c09b3",null,null);function mb(e){for(let n in Yp)this[n]=Yp[n]}const bt=function(){return vb.exports}();var gb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-popup-content"},[e._m(0),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.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:e.commentMsg},on:{input:function(i){i.target.composing||(e.commentMsg=i.target.value)}}})])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&e.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.userTaskModelDTO.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA: ")]),t("div",{staticClass:"process-pc-value",on:{click:function(a){return e.handleOpenPopup(i.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[i.id],function(a,o){return t("span",[e._v(" "+e._s(o==0?a:`,${a}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(i){return[i.type!="endEvent"&&e.isOption(i.humanPerformerName)?[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:function(s){return e.handleOpenPopup(i.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[i.id],function(s,r){return t("span",[e._v(" "+e._s(r==0?s:`,${s}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e._e()]:e._e(),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return e.visible=i}}},[t("departPerson",e._b({attrs:{visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(i){e.visible=i},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="5"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},Ab=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-pc-label"},[e._v(" \u52A0\u7B7E\u7406\u7531\uFF1A"),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const C0="",yb={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:bt,TopPopup:Qe,departPerson:Ct},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e="";this.multiNodeParticipant[this.partObjId].map((n,t)=>{t==0?e=n:e=`${e} ${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:e,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 e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,i)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.originFileName});let e=this.attchLists;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});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(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Wp={};var Cb=te(yb,gb,Ab,!1,bb,"3556632c",null,null);function bb(e){for(let n in Wp)this[n]=Wp[n]}const Eb=function(){return Cb.exports}();var Ib=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-popup-content"},[e._m(0),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.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:e.commentMsg},on:{input:function(i){i.target.composing||(e.commentMsg=i.target.value)}}})])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&e.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.userTaskModelDTO.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA: ")]),t("div",{staticClass:"process-pc-value",on:{click:function(a){return e.handleOpenPopup(i.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[i.id],function(a,o){return t("span",[e._v(" "+e._s(o==0?a:`,${a}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(i){return[i.type!="endEvent"&&e.isOption(i.humanPerformerName)?[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:function(s){return e.handleOpenPopup(i.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[i.id],function(s,r){return t("span",[e._v(" "+e._s(r==0?s:`,${s}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e._e()]:e._e(),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return e.visible=i}}},[t("departPerson",e._b({attrs:{visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(i){e.visible=i},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="1"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},kb=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-pc-label"},[e._v(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const b0="",wb={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:bt,TopPopup:Qe,departPerson:Ct},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e="";this.multiNodeParticipant[this.partObjId].map((n,t)=>{t==0?e=n:e=`${e} ${n}`}),this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/delegate",{delegateReason:this.commentMsg,taskInstId:this.param.taskInstId,targetUID:e}).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 e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,i)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.originFileName});let e=this.attchLists;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});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(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Zp={};var Nb=te(wb,Ib,kb,!1,xb,"def75392",null,null);function xb(e){for(let n in Zp)this[n]=Zp[n]}const Tb=function(){return Nb.exports}();var Ob=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-popup-content"},[t("div",{staticClass:"process-pc-label"},[e._v(" \u5FEB\u6377\u56DE\u590D ")]),t("div",{staticClass:"process-pc-value",staticStyle:{display:"flex"}},[t("div",{staticClass:"process-tag",on:{click:function(){return e.commentMsg="\u540C\u610F"}}},[e._v(" \u540C\u610F ")]),t("div",{staticClass:"process-tag",on:{click:function(){return e.commentMsg="\u5982\u62DF"}}},[e._v(" \u5982\u62DF ")]),t("div",{staticClass:"process-tag",on:{click:function(){return e.commentMsg="\u5DF2\u9605"}}},[e._v(" \u5DF2\u9605 ")])]),e._m(0),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.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:e.commentMsg},on:{input:function(i){i.target.composing||(e.commentMsg=i.target.value)}}})])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&e.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.userTaskModelDTO.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA: ")]),t("div",{staticClass:"process-pc-value",on:{click:function(a){return e.handleOpenPopup(i.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[i.id],function(a,o){return t("span",[e._v(" "+e._s(o==0?a:`,${a}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(i){return[i.type!="endEvent"&&e.isOption(i.humanPerformerName)?[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:function(s){return e.handleOpenPopup(i.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[i.id],function(s,r){return t("span",[e._v(" "+e._s(r==0?s:`,${s}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e._e()]:e._e(),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return e.visible=i}}},[t("departPerson",e._b({attrs:{visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(i){e.visible=i},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="1"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},Db=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u610F\u89C1 "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const E0="",Sb={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:bt,TopPopup:Qe,departPerson:Ct},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel")},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/complete",{actionName:"\u63D0\u4EA4",commentMsg:this.commentMsg,taskInstId:this.param.taskInstId,vars:this.param.vars,multiNodeParticipant:this.multiNodeParticipant}).then(e=>{if(e.code==200){if(this.attchLists.length>0){this.uploadAttch();return}this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""}else this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,i)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.originFileName});let e=this.attchLists;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});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(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},zp={};var Bb=te(Sb,Ob,Db,!1,_b,"519beb5d",null,null);function _b(e){for(let n in zp)this[n]=zp[n]}const Qb=function(){return Bb.exports}();var Fb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-popup-content"},[e._m(0),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.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:e.commentMsg},on:{input:function(i){i.target.composing||(e.commentMsg=i.target.value)}}})])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&e.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.userTaskModelDTO.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA: ")]),t("div",{staticClass:"process-pc-value",on:{click:function(a){return e.handleOpenPopup(i.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[i.id],function(a,o){return t("span",[e._v(" "+e._s(o==0?a:`,${a}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(i){return[i.type!="endEvent"&&e.isOption(i.humanPerformerName)?[t("div",{staticStyle:{"font-size":"15px"}},[e._v(" "+e._s(i.name)+" ")]),t("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:e.handleOpenPopup}},[t("div",{staticClass:"process-pc-value--people"},[e._v(" "+e._s(234)+" ")])])]:e._e()]})]:e._e()]:e._e(),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return e.visible=i}}},[t("departPerson",e._b({attrs:{visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(i){e.visible=i},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="\u62D2\u7EDD"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},Pb=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-pc-label"},[e._v(" \u62D2\u7EDD\u7406\u7531\uFF1A "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const I0="",Mb={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:bt,TopPopup:Qe,departPerson:Ct},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/reject",{commentMsg:this.commentMsg,taskInstId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,i)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.originFileName});let e=this.attchLists;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});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(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Xp={};var Ub=te(Mb,Fb,Pb,!1,Vb,"5b0d9bba",null,null);function Vb(e){for(let n in Xp)this[n]=Xp[n]}const Jb=function(){return Ub.exports}();var Lb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-popup-content"},[e._m(0),t("div",{staticClass:"process-pc-value",staticStyle:{display:"inline-block",width:"50%"}},[t("TopDownSelect",{attrs:{option:e.option,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},on:{change:e.handleChange}})],1),e._m(1),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-popup-textarea"},[t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.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:e.commentMsg},on:{input:function(i){i.target.composing||(e.commentMsg=i.target.value)}}})])]),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),e.labels=="\u9000\u56DE"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],1)},jb=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-pc-label",staticStyle:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[e._v(" \u9000\u56DE\u8282\u70B9\uFF1A "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])},function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-pc-label"},[e._v(" \u9000\u56DE\u7406\u7531\uFF1A "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const k0="",Rb={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:bt,TopPopup:Qe,departPerson:Ct,TopDownSelect:El},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:""}},watch:{param:{async handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{getReturnNode(){console.log("this.param.taskInstId",this.param.taskInstId),this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=e.data)})},handleChange(e){console.log("\u9000\u56DE\u8282\u70B9,",e),this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,isCompensation:!1,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,i)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.originFileName});let e=this.attchLists;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});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(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},$p={};var Gb=te(Rb,Lb,jb,!1,Kb,"06b954f3",null,null);function Kb(e){for(let n in $p)this[n]=$p[n]}const qb=function(){return Gb.exports}();var Hb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-popup-content"},[e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=11?[e.nextNodeData.length?[e._l(e.nextNodeData,function(i){var s,r;return[i.type!="endEvent"&&e.isOption(i==null||(s=i.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.userTaskModelDTO.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA: ")]),t("div",{staticClass:"process-pc-value",on:{click:function(a){return e.handleOpenPopup(i.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[i.id],function(a,o){return t("span",[e._v(" "+e._s(o==0?a:`,${a}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(i){return[i.type!="endEvent"&&e.isOption(i.humanPerformerName)?[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value",on:{click:function(s){return e.handleOpenPopup(i.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[i.id],function(s,r){return t("span",[e._v(" "+e._s(r==0?s:`,${s}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e._e()]:e._e(),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return e.visible=i}}},[t("departPerson",e._b({attrs:{visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(i){e.visible=i},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1),e.labels=="2"?t("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],2)},Yb=[];const w0="",Wb={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:bt,TopPopup:Qe,departPerson:Ct},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,e.nextNodeData.length?(console.log("handler::::",this.nextNodeData[0]),this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel"):e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param),this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){this.handleTips("",!0,"loading");let e="";this.multiNodeParticipant[this.partObjId].map((n,t)=>{t==0?e=n:e=`${e} ${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:e}).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 e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0],console.log("makeDelegateTaskButtonAnnex",this.otherList,this.limit,this.requires,this.labels)}},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},getValues(e){console.log("\u83B7\u53D6\u5F53\u524D\u9644\u4EF6\u4FE1\u606F::::",e),this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((t,i)=>{t.size=t.fileSize,t.format=t.originFileName.substring(t.originFileName.lastIndexOf(".")+1),t.uploadTime=t.createTime,t.processInstId=this.param.processInstId,t.taskInstId=this.param.taskInstId,t.name=t.originFileName});let e=this.attchLists;const n=await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e});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(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},ed={};var Zb=te(Wb,Hb,Yb,!1,zb,"25a39390",null,null);function zb(e){for(let n in ed)this[n]=ed[n]}const Xb=function(){return Zb.exports}();var $b=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-popup-content"},[[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(e.getFirstProcessNode.name)+" "),t("br"),e._v(" \u5BA1\u6279\u4EBA: ")]),t("div",{staticClass:"process-pc-value",on:{click:function(i){return e.handleOpenPopup(e.getFirstProcessNode.id)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[e.getFirstProcessNode.id]&&e.partNode[e.getFirstProcessNode.id].length?t("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[e.getFirstProcessNode.id],function(i,s){return t("span",[e._v(" "+e._s(s==0?i:`,${i}`)+" ")])}),0):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])],t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),t("TopPopup",{attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(i){return e.visible=i}}},[t("departPerson",e._b({attrs:{visible:e.visible,request:e.param.request,businessId:e.param.formData.businessKey},on:{"update:visible":function(i){e.visible=i},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1))],1)],2)},e0=[];const N0="",t0={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:bt,TopPopup:Qe,departPerson:Ct},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},getFirstProcessNode:{}}},watch:{param:{handler(e,n){console.log("handler::::",e),this.getFirstProcessNode=e.getFirstProcessNode,e.getFirstProcessNode&&this.getFirstProcessNode&&(e.getFirstProcessNode.type=="userTask"||e.getFirstProcessNode.type=="UserTaskModel"?(this.entity.multiple=!1,this.entity.codeType=[3],this.entity.source="1"):e.getFirstProcessNode.type=="ExclusiveGatewayModel"||e.getFirstProcessNode.type=="InclusiveGatewayModel")},immediate:!0,deep:!0}},created(){console.log("isVue2",this.param)},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){let e={isClearHistory:!1,processInstId:this.param.processInstId,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant};this.handleTips("",!0,"loading"),await this.param.request.post("/aws/pis/reactivate",e).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal()):this.handleTips(n.msg,!0,"error")})},handleCallback(e){this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)}),console.log("callback_OK",e,this.multiNodeParticipant)},handleCancel(){console.log("cancel_No")},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},td={};var n0=te(t0,$b,e0,!1,i0,"3aa79dd5",null,null);function i0(e){for(let n in td)this[n]=td[n]}const s0=function(){return n0.exports}(),x0="",r0={name:"TopProcess",components:{TopTab:Em,TopPopup:Qe,TopTips:He,TopSumbitPopup:Hp},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(e,n){this.processIntId=this.processInstId,e&&(this.request.get("/aws/repository/getTrackUrl",{params:{processInstId:this.processIntId,type:"mobile"}}).then(t=>{t.code==200&&(this.trackUrl=t.data)}),this.request.get("/aws/pis/findNodeParticipantRows",{params:{processInstId:this.processIntId}}).then(t=>{t.code==200&&(this.trackList=t.data)}),this.request.get("/aws/tis/getTaskCommentList",{params:{processInstId:this.processInstId,processBusinessKey:this.formData.businessKey}}).then(t=>{t.code==200&&(this.taskCommentList=t.data)}),this.request.get("/aws/pis/getProcessInstanceById",{params:{processInstId:this.processInstId}}).then(t=>{t.code==200&&(this.ProcessInsObj=t.data)}),await this.request.get("/aws/repository/queryTaskNodeList",{params:{processInstId:this.processInstId}}).then(t=>{if(t.code==200)if(this.taskNode=t.data,this.taskNodeList=t.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 t,i;let e=[],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"},e.push(s),s.click=r=>{this.handleActionClose(),this.showOperation(Qb,r,this.request,this.taskObj.completeButtonAnnex)}}if(n&&!this.isView&&this.processStatus.currUserName){let s={};s.name="\u62D2\u7EDD",s.btnProps={type:"danger"},e.push(s),s.click=r=>{this.handleActionClose(),this.showOperation(Jb,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"},e.push(r),r.click=a=>{this.handleActionClose(),this.showOperation(qb,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(Xb,r,this.request,this.taskObj.ccTaskButtonAnnex)},e.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(Tb,r,this.request,this.taskObj.delegateTaskButtonAnnex)},e.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(Eb,r,this.request,this.taskObj.counterSignButtonAnnex)},e.push(s)}if(this.processIntId&&this.processStatus.createTopUserId==this.userId&&((t=this.taskNode[0])==null?void 0:t.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"},e.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"},e.push(s)}return e},processCardHeight(){let e=210;return this.processStatus.status?this.processStatus.currUserName||(e-=40):e-=140,`calc(100vh - ${e}px)`}},methods:{handleTest(){},async handleGetSimulation(e){this.handleTips("",!0,"loading");let n={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e},t=await this.request.post("/aws/tis/simulation",n);t.success?(this.handleTips("",!1,"success"),this.nextNodeData=t.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(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.request.get("/aws/pis/getProcessStatus",{params:{processInstId:this.processInstId,taskId:this.taskNode.length?this.taskNode[0].taskId:""}}).then(e=>{e.code==200&&(this.processStatus=e.data)})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length&&this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data)})},async showOperation(e,n,t,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)}t&&(this.operationParam.request=t),t&&(this.annexlabel=i),this.titleText=n,this.operationCom=e,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(e=>{e.code==200?this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.post("/aws/pis/revoke",{processInstId:this.ProcessInsObj.id,processBusinessKey:this.ProcessInsObj.processBusinessKey}).then(e=>{e.code==200?this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){console.log("handleTipsCancel")},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.processStatus.appId}}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(n=>{this.processBusiness=n.data,this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(t=>{console.log("getProcessInstanceByBusinessKey:::",t),this.getFirstProcessNode=t.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(s0,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(n=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()}}};var a0=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"process-warp"},[e.processStatus.status?t("div",{staticClass:"process-main"},[t("div",{staticClass:"process-ml-item border"},[t("div",{staticClass:"process-mli-name"},[e._v("\u6D41\u7A0B\u72B6\u6001")]),t("div",{staticClass:"process-mli-value"},[e.processStatus.status||e.processStatus.bizStatusName?t("div",{staticClass:"process-mliv-dd",style:{background:e.getColor(e.processStatus.status)}},[e._v(" "+e._s(e.processStatus.bizStatusName?e.processStatus.bizStatusName:e.processStatus.status)+" ")]):e._e()])]),t("div",{staticClass:"process-ml-item border"},[t("div",{staticClass:"process-mli-name"},[e._v("\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4")]),t("div",{staticClass:"process-mli-value"},[t("span",[e._v(e._s(e.processStatus.createTime))])])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?t("div",{staticClass:"process-ml-item"},[t("div",{staticClass:"process-mli-name"},[e._v("\u5BA1\u6279\u8282\u70B9")]),t("div",{staticClass:"process-mli-value"},[t("span",{staticClass:"process-mliv-jd"},[e._v(e._s(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`))])])]):e._e()]):e._e(),t("div",{staticClass:"process-card",style:{height:e.processCardHeight}},[t("TopTab",{attrs:{tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList}},[e.selfTapList&&e.selfTapList.length?e._l(e.selfTapList,function(i,s){return t("div",{key:s,attrs:{slot:i.slot},slot:i.slot},[e._t(i.slot)],2)}):[t("div",{staticStyle:{},attrs:{slot:"default"},slot:"default"},[e._t("default")],2),e._l(e.tapList,function(i,s){return t("div",{key:s,staticStyle:{},attrs:{slot:i.slot},slot:i.slot},[e._t(i.slot)],2)})]],2)],1),e.isAdditional?t("div",{staticClass:"process-foot"},[t("div",{staticClass:"footBtnRow"},[e._t("btn")],2)]):e._e(),t("div",{staticClass:"process-btn"},[e.processStatus.status!="\u5DF2\u5B8C\u6210"?[e.processStatus.status==="\u5DF2\u64A4\u9500"||e.processStatus.status==="\u5DF2\u9A73\u56DE"?t("div",{staticClass:"top-button",style:e.getBtnStyle("default"),on:{click:e.handleRestart}},[e._v(" \u91CD\u65B0\u63D0\u4EA4 ")]):e._l(e.operBtn,function(i,s){return[s<3?t("div",{key:i.name,staticClass:"top-button",style:e.getBtnStyle(i.btnProps.type.toString()),on:{click:function(r){return i.click(i.name)}}},[e._v(" "+e._s(i.name)+" ")]):e._e()]})]:e._e(),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?t("div",{staticClass:"elips",on:{click:e.handleActionOpen}},[t("div",{staticClass:"circle"}),t("div",{staticClass:"circle"}),t("div",{staticClass:"circle"})]):e._e()],2)]),t("TopPopup",{ref:"TopPopup1",attrs:{cancel:e.handleCancel,comfig:e.handleComfig,titleText:e.titleText}},[t(e.operationCom,{ref:"operationRef",tag:"component",attrs:{param:e.operationParam},on:{handleClosePopup1:e.handleClosePopup1}})],1),t("TopPopup",{ref:"TopPopup2",attrs:{titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig}}),t("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?t("div",{staticClass:"top-elips",style:e.actionShow?"transform: translateY(0)":"transform: translateY(100%)"},[e.taskNodeShow?e._l(e.taskNodeList,function(i){return t("div",{key:i.taskId,staticClass:"top-elips-items",on:{click:function(s){return e.handleGet(i)}}},[e._v(" "+e._s(i.name)+" ")])}):e._l(e.actionBtn,function(i){return t("div",{key:i.name,staticClass:"top-elips-items",on:{click:function(s){return i.click(i.name)}}},[e._v(" "+e._s(i.name)+" ")])}),t("div",{staticClass:"top-elips-items top-elips-items--cancel",on:{click:e.handleActionClose}},[e._v(" \u53D6\u6D88 ")])],2):e._e(),t("div",{staticClass:"top-elips-mask",style:e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;",on:{click:e.handleActionClose}})],1)},o0=[];const T0="",nd={};var c0=te(r0,a0,o0,!1,l0,"4b00ad89",null,null);function l0(e){for(let n in nd)this[n]=nd[n]}const u0=function(){return c0.exports}();ze.TopProcess=u0,ze.TopSumbitPopup=Hp,ze.ViewAttchList=Al,ze.attchViews=bt,Object.defineProperties(ze,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -10135,7 +10135,9 @@ const be = /* @__PURE__ */ function() {
10135
10135
  );
10136
10136
  return;
10137
10137
  }
10138
- this.beforeFunction && await this.beforeFunction();
10138
+ this.beforeFunction && await this.beforeFunction(), this.$nextTick(() => {
10139
+ this.handleSongshen();
10140
+ });
10139
10141
  },
10140
10142
  async handleSongshen() {
10141
10143
  this.handleTips("", !0, "loading"), this.resubmit ? (console.log("\u9001\u5BA1\u91CD\u65B0\u63D0\u4EA4", this.multiNodeParticipant), await this.request.post("/aws/pis/reactivate", {