ui-process-h5 1.1.2 → 1.1.3
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
package/v2/ui-process-h5.js
CHANGED
|
@@ -13691,9 +13691,9 @@ const lE = /* @__PURE__ */ function() {
|
|
|
13691
13691
|
await this.handleSongshen();
|
|
13692
13692
|
});
|
|
13693
13693
|
},
|
|
13694
|
-
|
|
13694
|
+
handleSongshen() {
|
|
13695
13695
|
if (this.handleTips("", !0, "loading"), this.resubmit)
|
|
13696
|
-
|
|
13696
|
+
this.request.post("/aws/pis/reactivate", {
|
|
13697
13697
|
processInstId: this.processId,
|
|
13698
13698
|
isClearHistory: this.isClearHistory,
|
|
13699
13699
|
reactivateReason: "\u91CD\u65B0\u63D0\u4EA4",
|
|
@@ -13713,7 +13713,7 @@ const lE = /* @__PURE__ */ function() {
|
|
|
13713
13713
|
multiNodeParticipant: this.multiNodeParticipant,
|
|
13714
13714
|
todoParameter: this.todoParameterData
|
|
13715
13715
|
};
|
|
13716
|
-
console.log("\u9A8C\u8BC1\u6761\u4EF6::", e, "this:::", this),
|
|
13716
|
+
console.log("\u9A8C\u8BC1\u6761\u4EF6::", e, "this:::", this), this.request.post("/aws/pis/createAndStart", e).then((n) => {
|
|
13717
13717
|
n.code === 200 ? (this.show = !1, this.$emit("update:visible", this.show), this.handleTips("\u63D0\u4EA4\u6210\u529F!", !1, "success"), this.$emit("successFn")) : n.code == 499 ? this.request.post("/aws/pis/reactivate", {
|
|
13718
13718
|
processInstId: this.processId,
|
|
13719
13719
|
isClearHistory: this.isClearHistory,
|
package/v2/ui-process-h5.umd.cjs
CHANGED
|
@@ -64,4 +64,4 @@ See more tips at https://vuejs.org/guide/deployment.html`)},0);var Ta=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=ZC({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),XC(s,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const $C={components:{checked:PC,dcSwitch:RC,dcLoading:WC},name:"departPerson",props:{visible:{type:Boolean,default:!1},source:{type:String,default:"0"},type:{type:String,default:"0"},request:{type:Function,default:()=>({get:()=>{},post:()=>{}})},businessId:{type:String,default:""},codeType:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},deptCode:{type:String,default:""},subjectName:{type:String,default:""},checkedArray:{type:Array,default:()=>[]},isLoadingClose:{type:Boolean,default:!0},maxMultiple:{type:Number,default:0}},data(){return{isSon:!1,deptId:"",subjectId:"",jsonData:[],breadcrumb:[],checkedJson:[],keyword:"",isQuery:!0,isLoading:!1,checkedAll:!1,isShowChecked:!1}},watch:{visible:{deep:!0,immediate:!0,handler:function(e,n){if(!e)return!1;this.$nextTick(()=>{this.getDetail(()=>{this.defaultBreadcrumb(),_(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})})})}},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(_(e)||!_(this.businessId))return!1;this.getCards()}},isLoadingClose(e){e&&(this.isLoading=!1)}},computed:{queryImg(){return zC},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=!_(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=_(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:_(n.counts)?0:n.counts,num:p,phone:TC(n.phone),uid:n.uid,iconName:Ua(n.name,2),checked:a,ancestors:t,ancestorNames:i,deptName:SC(n.ancestorNames,"/"),uniqueId:s,isDisabled:o,isLevel:c,subjectId:n.subjectId,sex:n.sex,avatar:_(n.avatar)?"":n.avatar,isNoDelete:d}})},companyJson(){return this.entityJson.filter(e=>e.type==1)},deptJson(){return this.entityJson.filter(e=>e.type==2)},userJson(){return this.entityJson.filter(e=>e.type==3)},checkedNumber(){const e=this.checkedJson.filter(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"),_(i)?"":"\u5DF2\u9009\u62E9"+i.join("\uFF0C")},breadcrumb_subjectId(){const e=this.breadcrumb.filter((n,t)=>n.value!=="-1");return _(e)?"":e[0].value},breadcrumb_level(){const e=this.breadcrumb.filter((n,t)=>n.value!=="-1");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&&this.isShowDept},isShowSubject(){return this.codeType.findIndex(e=>e==1)>-1},isShowDept(){return this.codeType.findIndex(e=>e==2)>-1},isNotLevel(){return this.isShowSubject&&this.codeType.length===1},isShowQuery(){return this.codeType.findIndex(e=>e==3)>-1},getHight(){return!this.isShowQuery&&this.isDept?"notQuerySon":!this.isShowQuery&&!this.isDept?"notQuery":this.isDept?"nvaHeight":""},getTitle(){return this.codeType.length==1&&this.codeType[0]==2?"\u9009\u62E9\u90E8\u95E8":this.codeType.length==1&&this.codeType[0]==3?"\u9009\u62E9\u4EBA\u5458":"\u9009\u62E9\u7EC4\u7EC7"},isNoDelete(){return _(this.checkedArray)?[]:this.checkedArray.filter(e=>e.isDeleteNo)}},mounted(){document.title=this.getTitle,this.getDetail(()=>{this.defaultBreadcrumb(),_(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})})},methods:{handleSubmit(){if(this.isLoading)return!1;const e=_(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:_(t.phone)?"":t.phone,sex:t.sex,uid:_(t.uid)?"":t.uid}));if(_(this.businessId))return 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.$emit("callback",e)}).finally(()=>{this.isLoadingClose&&(this.isLoading=!1)})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){this.getSearch(()=>{this.isQuery=_(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){if(this.checkedJson.findIndex(a=>a.uniqueId===n.uniqueId)!=-1)return!1;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.maxMultiple!==0&&this.checkedJson.length>=this.maxMultiple&&this.multiple?(e.currentTarget.checked=!1,new La().message({content:`\u6700\u591A\u9009\u62E9${this.maxMultiple}\u9879\u3001\u8BF7\u79FB\u9664\u540E\u518D\u8FDB\u884C\u9009\u62E9`,type:"warning"}),!1):(this.multiple?this.checkedJson.push(r):this.checkedJson=[r],!1)}this.checkedJson=this.checkedJson.filter(t=>t.uniqueId!==n.uniqueId)},handleBreadcrumb(e,n){if(e.disable||n+1==this.breadcrumb.length)return!1;switch(n){case 0:this.deptId=this.deptCode;break;case 1:this.deptId=0;break;default:this.deptId=e.value;break}this.subjectId=e.value==="-1"?"":this.breadcrumb_subjectId,this.keyword="",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 _(t)||(t.type==1&&(new La().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 La().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.deptId=this.deptCode,this.subjectId="",_(this.deptCode)&&(this.breadcrumb=[{name:"\u7EC4\u7EC7",value:"-1"}]),this.isSon=!1,this.jsonData=[],this.keyword="",this.isQuery=!0,this.isLoading=!1},getIsSon(){const e=this.entityJson.filter(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},getCheckedAll(){const e=this.entityJson.findIndex(n=>this.checkedJson.findIndex(t=>t.type===n.type&&t.id===n.id&&n.subjectId===t.subjectId)===-1);this.checkedAll=e===-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};_(t.deptId)&&delete t.deptId,_(t.subjectId)&&delete t.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:t}).then(i=>{e(),this.jsonData=_(i.data)||i.code!==200?[]:i.data;const s=this.breadcrumb.filter(r=>r.value!=="-1");if(!_(this.jsonData)&&_(s)&&(!_(this.deptCode)||!_(this.subjectName))){const r=i.data[0],a=r.ancestors.split(",");this.breadcrumb=a.map((o,c)=>({value:o,name:r.ancestorNames.split("/")[c],disable:c!==a.length-1&&a.length!==0}))}this.getIsSon(),this.getCheckedAll()}).finally(()=>{this.isLoading=!1})},getDetail(e=()=>{}){if(_(this.businessId))return e(),!1;const n={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:n}).then(t=>{this.checkedJson=_(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:Ua(i.name,2),sex:i.sex,uid:_(i.uid)?"":i.uid,avatar:_(i.avatar)?"":i.avatar,isNoDelete:o}}),e()})},getCards(){if(_(this.checkedArray))return this.checkedJson=[];const e=this.checkedArray.map(n=>({type:n.type,id:_(n.id)?null:n.id,uid:_(n.uid)?null:n.uid,subjectId:_(n.subjectId)?null:n.subjectId,deptId:_(n.deptId)?null:n.deptId}));this.request.post("/auth/component/org/cards",{params:e}).then(n=>{this.checkedJson=_(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:Ua(t.name,2),sex:t.sex,uid:_(t.uid)?"":t.uid,avatar:_(t.avatar)?"":t.avatar,isNoDelete:o}})})},getByName(e=()=>{}){const n={name:this.subjectName};this.request.get("/auth/component/org/subject/getByName",{params:n}).then(t=>{console.log("getByName",t),t.code===200&&(this.subjectId=t.data,e())})}}};var eb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return 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",class:{disable:i.disable},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"},[i.avatar.length<1?t("span",[e._v(e._s(i.iconName))]):t("img",{attrs:{src:i.avatar}})]),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)},tb=[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 qp={};var nb=vs($C,eb,tb,!1,ib,null,null,null);function ib(e){for(let n in qp)this[n]=qp[n]}const bt=function(){return nb.exports}();var sb=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",[e._v(" "+e._s(i.userTaskModelDTO.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(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)},rb=[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 yE="",ab={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:ht,TopPopup:Qe,departPerson:bt},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?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e="";this.multiNodeParticipant[this.partObjId].map((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]}},handleCallback(e){this.visible=!1,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)})},handleCancel(){},getValues(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;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Kp={};var ob=te(ab,sb,rb,!1,cb,"b04c3b72",null,null);function cb(e){for(let n in Kp)this[n]=Kp[n]}const lb=function(){return ob.exports}();var ub=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",[e._v(" "+e._s(i.userTaskModelDTO.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(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)},pb=[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 CE="",db={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:ht,TopPopup:Qe,departPerson:bt},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?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e="";this.multiNodeParticipant[this.partObjId].map((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]}},handleCallback(e){this.visible=!1,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)})},handleCancel(){},getValues(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;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Hp={};var fb=te(db,ub,pb,!1,hb,"4e763a94",null,null);function hb(e){for(let n in Hp)this[n]=Hp[n]}const vb=function(){return fb.exports}(),mb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKKHDfPn3Svb2tt/z//NtvZonzZfa8UDILWUZh+fAs9gfDgzfDSzL/aw+ehzGFsNIDHdsMpUYA/Hn2b26so2j/aw+THzGJNvAMlWGP8+BX7dvbbvT3DM+aRDAiBz0sCaOgrc796b2fmV6tbe03Xr7tai6L8DSFQ57Moq8MvuT9vY65DTrb3JGtwBJJQRjIopMM0bG/schmN/kLQuAiDFMo0jtwK+eeOy+519td82b9z7zzAAkBkisSRBgdi8cekgdJCEFOGylQJL5o2XzswM0iqT7FtUgTLzxumREq9X00ZcsYpWAM4uKlBq3jjdgO9BKLkVKHC/e2dmnwtHkg4HHaRwxnD3ggL3uwmMCZCSnypwAEjJlOHrVIGMeWO/QzU4AISizlFg3suGkb2rwgEgkRRhc12BnGG8euc4BMlTLAq+nAJlv/w7Plf1zgEg5coCT5MCpb/8e1a1GRxcsSjt5Qr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MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",bE="";var gb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-popup-content"},[e.param.isDocument?t("div",{staticClass:"process-pc-label"},[e._v(" \u5FEB\u6377\u56DE\u590D ")]):e._e(),e.param.isDocument?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._e(),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"},[t("div",[e._v(" "+e._s(i.userTaskModelDTO.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(a){return e.handleOpenPopup(i)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},[t("span",[e._v(" "+e._s(e.partNode[i.id].join(","))+" ")])]):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.userTaskModelDTO.name)+" ")])]]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(i){return[t("div",{staticClass:"process-pc-label"},[e._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-radio"},e._l(i.childNode,function(s){return t("div",{staticClass:"process-radio-item",class:s.id==e.radioCheck?"process-radio-item--check":"",on:{click:function(r){return e.handleNode(s)}}},[t("span",[s.id==e.radioCheck?t("img",{staticClass:"process-radio-item-check",attrs:{src:e.check}}):e._e()]),e._v(" "+e._s(s.nodeName)+" ")])}),0)])]}),e.radioCheck?[e.radioCheckChild&&e.radioCheckChild.length?e._l(e.radioCheckChild,function(i){return t("div",[t("div",{staticClass:"process-pc-label",on:{click:function(s){return e.handleSaveNode(i.id)}}},[t("div",{staticClass:"process-checkbox"},[e._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279:"),t("br"),t("div",{staticClass:"process-checkbox-item"},[e._v(" "+e._s(i.nodeName)+" "),t("span",[e.radioCheckNameList.includes(i.id)?t("img",{staticClass:"process-checkbox-item-check",attrs:{src:e.checkS}}):e._e()])])])]),t("div",{staticClass:"process-pc-value",on:{click:function(s){return e.handleOpenPopup(i)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},[t("span",[e._v(" "+e._s(e.partNode[i.id].join(","))+" ")])]):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])])}):[t("div",{staticClass:"process-pc-label"},[e._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 ")]),t("div",{staticClass:"process-pc-value"},[e._v(" "+e._s(e.radioCheckName)+" ")])]]: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},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)},Ab=[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 EE="",yb={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:ht,TopPopup:Qe,departPerson:bt},computed:{check(){return bl},checkS(){return mb}},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],partList:[],gateVars:{}}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleSaveNode(e){this.radioCheckNameList.includes(e)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e),1):this.radioCheckNameList.push(e)},handleNode(e){this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue):this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue)},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"){let n,t=[];e.routeTxt.companyIds.map((i,s)=>{n=i.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,s)=>{t.push({type:3,uid:i})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel",subjectName:n,checkedArray:t}}else if(e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"){let n,t=[];e.routeTxt.companyIds.map((i,s)=>{n=i.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,s)=>{t.push({type:3,uid:i})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel",deptCode:n,checkedArray:t}}else{let n=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((t,i)=>{n.push({type:3,uid:t})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel",checkedArray:n}}},async confirm(){if(!this.commentMsg){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}let e={};if(this.radioCheckNameList&&this.radioCheckNameList.length){let n=0;if(this.radioCheckNameList.map((t,i)=>{(!this.multiNodeParticipant[t]||!this.multiNodeParticipant[t].length)&&(n+=1),e[t]=this.multiNodeParticipant[t]}),n>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}e=this.multiNodeParticipant}this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/complete",{actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskInstId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e}).then(n=>{if(n.code==200){if(this.attchLists.length>0){this.uploadAttch();return}this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""}else this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(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;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Yp={};var Cb=te(yb,gb,Ab,!1,bb,"c5d4bcba",null,null);function bb(e){for(let n in Yp)this[n]=Yp[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",[e._v(" "+e._s(i.userTaskModelDTO.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(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)},kb=[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 IE="",wb={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:ht,TopPopup:Qe,departPerson:bt},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/reject",{commentMsg:this.commentMsg,taskInstId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(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;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Wp={};var Nb=te(wb,Ib,kb,!1,xb,"03e6902a",null,null);function xb(e){for(let n in Wp)this[n]=Wp[n]}const Db=function(){return Nb.exports}(),Ob="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACfVJREFUeF7tnT2S1FYYRaUCYgJ2wArYgRMIYQPGMVUQt8bDAoDRxFBFbLwBE5qEHbACdkBAbCi5HjxgGKbn6b7Wz9O7h9B8avV3rk7J6r7VtA1/IACBvQRa2EAAAvsJIAhXBwQuIYAgXB4QQBCuAQjkEeAOkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hFAkDxuHGVCAEFMgmbNPAIIkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hF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uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBL4Csq/cvbKQGitAAAAAElFTkSuQmCC",Sb={name:"TopDownSelect",props:{option:{type:Array,default:[]},optionStyle:{type:String,default:""},maskShow:{type:Boolean,default:!0},border:{type:Boolean,default:!1},defaultValue:{type:String,default:""},placeholder:{type:String,default:"\u8BF7\u9009\u62E9"}},data(){return{value:{id:"",text:""},lists:[],expand:!1,active:"",activeItem:{}}},watch:{option:{handler(e,n){e&&e.length&&(this.lists=e)},immediate:!0,deep:!0},defaultValue:{handler(e,n){this.active=e;let t=this.lists.filter((i,s)=>i.id==e);this.activeItem=t[0],this.$emit("change",this.activeItem)}}},computed:{arrow(){return Ob},check(){return Tb}},methods:{handleExpand(){this.expand?this.expand=!1:this.expand=!0},handleClick(e,n){this.active=e.id,this.activeItem=e,this.expand=!1,this.$emit("change",this.activeItem,this.lists)}}};var Bb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"top-select"},[t("div",{staticClass:"top-select-menu",class:[e.border&&"top-select-menu-border",!e.activeItem.name&&"top-select-menu-placeholder"],on:{click:e.handleExpand}},[e._v(" "+e._s(e.activeItem.name?e.activeItem.name:e.placeholder)+" "),t("img",{staticClass:"top-select-menu--arrow",class:[e.expand?"arrow-active":""],attrs:{src:e.arrow}})]),e.maskShow?t("div",{staticClass:"top-select-option-mask",style:e.expand?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"}):e._e(),e.lists&&e.lists.length?t("div",{staticClass:"top-select-option",class:[e.border&&"top-select-option-border"],style:`${e.expand?"transform: translateY(2%);visibility: visible; opacity: 1;":"transform: translateY(-50%);visibility: hidden; opacity: 0"};${e.optionStyle?e.optionStyle:""}`},e._l(e.lists,function(i,s){return t("div",{key:i.id,staticClass:"option-items",class:[e.active==i.id?"option-items-active":""],on:{click:function(r){return e.handleClick(i,s)}}},[e._v(" "+e._s(i.name)+" "),e.active==i.id?t("img",{staticClass:"option-items-check",attrs:{src:e.check}}):e._e()])}),0):e._e()])},_b=[];const kE="",zp={};var Qb=te(Sb,Bb,_b,!1,Fb,"3b51c309",null,null);function Fb(e){for(let n in zp)this[n]=zp[n]}const Zp=function(){return Qb.exports}();var Mb=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)},Pb=[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 wE="",Vb={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:ht,TopPopup:Qe,departPerson:bt,TopDownSelect:Zp},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(){this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=e.data)})},handleChange(e){this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,isCompensation:!1,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(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;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,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(Vb,Mb,Pb,!1,Jb,"409b85c5",null,null);function Jb(e){for(let n in Xp)this[n]=Xp[n]}const Lb=function(){return Ub.exports}();var jb=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",[e._v(" "+e._s(i.userTaskModelDTO.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(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"?[t("div",[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)},Rb=[];const NE="",Gb={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:ht,TopPopup:Qe,departPerson:bt},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?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){this.handleTips("",!0,"loading");let e="";this.multiNodeParticipant[this.partObjId].map((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]}},handleCallback(e){this.visible=!1,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)})},handleCancel(){},getValues(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;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},$p={};var qb=te(Gb,jb,Rb,!1,Kb,"4423f9f0",null,null);function Kb(e){for(let n in $p)this[n]=$p[n]}const Hb=function(){return qb.exports}();var Yb=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"},[t("div",[e._v(" "+e._s(e.getFirstProcessNode.name)+" "),t("br"),e._m(0)])]),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)},Wb=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[e._v(" \u5BA1\u6279\u4EBA"),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const xE="",zb={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:ht,TopPopup:Qe,departPerson:bt},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.visible=!1,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()}}},ed={};var Zb=te(zb,Yb,Wb,!1,Xb,"0f1b413c",null,null);function Xb(e){for(let n in ed)this[n]=ed[n]}const $b=function(){return Zb.exports}(),eE={name:"TopProcess",components:{TopTab:Em,TopPopup:Qe,TopTips:He},props:{tapList:{require:!1,default:()=>[],type:Array},selfTapList:{require:!1,default:()=>[],type:Array},processDefId:{require:!0,default:"",type:String},processInstId:{require:!0,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean},userId:{require:!0,default:"",type:String},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!0}},data(){return{processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskId:"",taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,ProcessInsObj:{},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[],user:{},canCheck:!0,approveNode:{}}},watch:{processInstId:{async handler(e,n){this.processIntId=this.processInstId||this.formData.processId||this.formData.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.getUserInfo(),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(Eb,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(Db,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(Lb,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(Hb,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(vb,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(lb,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(){this.visibleSong=!0},async getUserInfo(){let e=await this.request.get("/app/user/info");e.code===200&&(this.user=e.data||{})},async handleGetSimulation(e){this.handleTips("",!0,"loading");let n={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e},t=await this.request.post("/aws/tis/simulation",n);if(t.success){this.handleTips("",!1,"success"),this.nextNodeData=t.data;for(let i=0;i<this.nextNodeData.length;i++)this.approveNode=this.nextNodeData[i]}else{let i=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(i,"")}},async getOutgoingProcessNode(e,n){let t=await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:e,processNodeId:n}});if(t.code==200){if(t.data)for(let i=0;i<t.data.length;i++){let s=t.data[i];if(s.type!="UserTaskModel"){let r=await this.getOutgoingProcessNode(e,s.id);await r.map((a,o)=>{a.nodeName=a.incomingConditionItemList[0].compareValue}),s.childNode=r}}return this.handleTips("",!1,"success"),t.data}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.request.get("/aws/pis/getProcessStatus",{params:{processInstId:this.processInstId,taskId:this.taskNode.length?this.taskNode[0].taskId:""}}).then(e=>{e.code==200&&(this.processStatus=e.data,this.processStatus.userNodeGroup&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName]&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName].length>1?this.canCheck=!1:this.canCheck=!0)})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length&&this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data)})},async showOperation(e,n,t,i){if(this.beforeFunction&&!this.beforeFunction())return;if(this.processStatus.allUserNames&&this.processStatus.allUserNames.length==1&&this.taskNode[0]&&this.taskNode[0].nodeId){let r;this.getVars&&(r=this.getVars()),await this.handleGetSimulation(r)}t&&(this.operationParam.request=t,this.annexlabel=i),this.titleText=n,this.operationCom=e,this.$refs.TopPopup1.handleOpen(),this.operationParam.annex=i,this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"",this.operationParam.actionName=n,this.operationParam.formData=this.formData,this.operationParam.nextNodeData=this.nextNodeData,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId,this.operationParam.endFunction=this.endFunction,this.operationParam.isDocument=this.isDocument,this.operationParam.canCheck=this.canCheck,this.taskObj.commentModels.some(r=>this.operationParam.actionComplete=r!=null&&r.isDefault?r.actionName:"")},handleCancel(){},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.$refs.TopPopup1.handleClose()},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/aws/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),this.endFunction()):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.post("/aws/pis/revoke",{processInstId:this.ProcessInsObj.id,processBusinessKey:this.ProcessInsObj.processBusinessKey}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),this.endFunction()):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.processStatus.appId}}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(n=>{this.processBusiness=n.data,this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(t=>{this.getFirstProcessNode=t.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation($b,"\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 tE=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"process-warp"},[e.formData.currentState||e.processStatus.bizStatusName||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.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?t("div",{staticClass:"process-mliv-dd",style:{background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)}},[e._v(" "+e._s(e.formData.currentState||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),t("div",{staticClass:"process-btn"},[e.isAdditional?t("div",{staticClass:"footBtnRow"},[e._t("btn")],2):[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?[t("div",{staticClass:"top-button",style:e.getBtnStyle("default")},[e._v(" \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ")])]:[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?[e.formData.currentState==="\u5DF2\u64A4\u9500"||e.formData.currentState==="\u5DF2\u9A73\u56DE"||e.processStatus.status==="\u5DF2\u64A4\u9500"||e.processStatus.status==="\u5DF2\u9A73\u56DE"||e.processStatus.bizStatusName==="\u5DF2\u64A4\u9500"||e.processStatus.bizStatusName==="\u5DF2\u9A73\u56DE"?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)},nE=[];const DE="",td={};var iE=te(eE,tE,nE,!1,sE,"451e116a",null,null);function sE(e){for(let n in td)this[n]=td[n]}const rE=function(){return iE.exports}(),aE={name:"TopSubmitPopup",components:{TopPopup:Qe,TopDownSelect:Zp,PreviewImage:Dr,departPerson:bt,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},manual:{type:Boolean,default:!1}},data(){return{show:!1,option:[],checkedItem:{},personList:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:"0",request:this.request,codeType:[3],multiple:!1},multiNodeParticipant:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{}}},watch:{visible:{async handler(e,n){this.show=e,this.$emit("update:visible",this.show),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId,processGroupName:this.processNameData}}).then(t=>{t.code==200&&(this.option=t.data,this.option&&this.option.length&&this.processNameData&&(this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.getAfferentParticipantNodeList(),this.getDiagramUrl(),this.handlefirstNode(this.checkedItem.id),this.getProcessInstance()))})},immediate:!0},businessType:{handler(e,n){this.businessTypeData=e},immediate:!0},id:{handler(e,n){this.idData=e},immediate:!0},processName:{handler(e,n){this.processNameData=e},immediate:!0},title:{handler(e,n){this.titleData=e},immediate:!0},todoParameter:{handler(e,n){this.todoParameterData=e},immediate:!0,deep:!0}},methods:{async getProcessInstance(){this.id&&await this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.id}}).then(e=>{e.code==200&&(this.processId=e.data.id)})},async handlefirstNode(e){e&&await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:e}}).then(n=>{n.code===200&&(this.firstPerson=n.data)})},handleChange(e,n){this.handleTips("",!0,"loading"),this.checkedItem=e,this.handlefirstNode(this.checkedItem.id),this.getAfferentParticipantNodeList(),this.getProcessInstance(),this.getDiagramUrl(),this.$emit("change",e,n),this.$refs.topTips.handleClose()},getAfferentParticipantNodeList(){this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.firstPerson&&this.firstPerson.length&&(this.personList=e.data.filter(n=>!this.firstPerson.some(t=>t.id==n.id))),this.$emit("change",this.checkedItem,e.data))})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenPerson(e){if(this.visiblePerson=!0,this.personObjId=e.id,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"};else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let n;e.routeTxt.companyIds.map((t,i)=>{n=t.rangeId}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],deptCode:n,multiple:e.type=="InclusiveGatewayModel"}}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let n;e.routeTxt.companyIds.map((t,i)=>{n=t.name}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel",subjectName:n}}},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)}),this.visiblePerson=!1},handleCancel(){},async handleSumbit(){if(this.firstPerson&&this.firstPerson.length&&!this.multiNodeParticipant[this.firstPerson[0].id]){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error");return}this.beforeFunction&&await this.beforeFunction(),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})},async handleSongshen(){if(this.handleTips("",!0,"loading"),this.resubmit)await this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(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")});else{let e={title:this.titleData,processDefId:this.checkedItem.id,processBusinessKey:this.idData,showType:this.showType,businessType:this.businessTypeData,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameterData};console.log("\u9A8C\u8BC1\u6761\u4EF6::",e,"this:::",this),await this.request.post("/aws/pis/createAndStart",e).then(n=>{n.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):n.code==499?this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(t=>{t.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.handleTips(t.msg,!0,"error")}):this.handleTips(n.msg,!0,"error")}).catch(n=>{this.handleTips(n.msg,!0,"error")})}},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()}}};var oE=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,defaultValue:e.selectDefaultValue},on:{change:e.handleChange}}),e.checkedItem.id?t("div",{staticClass:"viewTrack",on:{click:function(i){e.taskurlshow=!0}}},[e._v(" \u67E5\u770B\u6D41\u7A0B\u56FE ")]):e._e(),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)},cE=[];const OE="",nd={};var lE=te(aE,oE,cE,!1,uE,"1326c8de",null,null);function uE(e){for(let n in nd)this[n]=nd[n]}const pE=function(){return lE.exports}();Ze.TopProcess=rE,Ze.TopSumbitPopup=pE,Ze.ViewAttchList=yl,Ze.attchViews=ht,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=ZC({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),XC(s,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const $C={components:{checked:PC,dcSwitch:RC,dcLoading:WC},name:"departPerson",props:{visible:{type:Boolean,default:!1},source:{type:String,default:"0"},type:{type:String,default:"0"},request:{type:Function,default:()=>({get:()=>{},post:()=>{}})},businessId:{type:String,default:""},codeType:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},deptCode:{type:String,default:""},subjectName:{type:String,default:""},checkedArray:{type:Array,default:()=>[]},isLoadingClose:{type:Boolean,default:!0},maxMultiple:{type:Number,default:0}},data(){return{isSon:!1,deptId:"",subjectId:"",jsonData:[],breadcrumb:[],checkedJson:[],keyword:"",isQuery:!0,isLoading:!1,checkedAll:!1,isShowChecked:!1}},watch:{visible:{deep:!0,immediate:!0,handler:function(e,n){if(!e)return!1;this.$nextTick(()=>{this.getDetail(()=>{this.defaultBreadcrumb(),_(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})})})}},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(_(e)||!_(this.businessId))return!1;this.getCards()}},isLoadingClose(e){e&&(this.isLoading=!1)}},computed:{queryImg(){return zC},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=!_(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=_(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:_(n.counts)?0:n.counts,num:p,phone:TC(n.phone),uid:n.uid,iconName:Ua(n.name,2),checked:a,ancestors:t,ancestorNames:i,deptName:SC(n.ancestorNames,"/"),uniqueId:s,isDisabled:o,isLevel:c,subjectId:n.subjectId,sex:n.sex,avatar:_(n.avatar)?"":n.avatar,isNoDelete:d}})},companyJson(){return this.entityJson.filter(e=>e.type==1)},deptJson(){return this.entityJson.filter(e=>e.type==2)},userJson(){return this.entityJson.filter(e=>e.type==3)},checkedNumber(){const e=this.checkedJson.filter(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"),_(i)?"":"\u5DF2\u9009\u62E9"+i.join("\uFF0C")},breadcrumb_subjectId(){const e=this.breadcrumb.filter((n,t)=>n.value!=="-1");return _(e)?"":e[0].value},breadcrumb_level(){const e=this.breadcrumb.filter((n,t)=>n.value!=="-1");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&&this.isShowDept},isShowSubject(){return this.codeType.findIndex(e=>e==1)>-1},isShowDept(){return this.codeType.findIndex(e=>e==2)>-1},isNotLevel(){return this.isShowSubject&&this.codeType.length===1},isShowQuery(){return this.codeType.findIndex(e=>e==3)>-1},getHight(){return!this.isShowQuery&&this.isDept?"notQuerySon":!this.isShowQuery&&!this.isDept?"notQuery":this.isDept?"nvaHeight":""},getTitle(){return this.codeType.length==1&&this.codeType[0]==2?"\u9009\u62E9\u90E8\u95E8":this.codeType.length==1&&this.codeType[0]==3?"\u9009\u62E9\u4EBA\u5458":"\u9009\u62E9\u7EC4\u7EC7"},isNoDelete(){return _(this.checkedArray)?[]:this.checkedArray.filter(e=>e.isDeleteNo)}},mounted(){document.title=this.getTitle,this.getDetail(()=>{this.defaultBreadcrumb(),_(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})})},methods:{handleSubmit(){if(this.isLoading)return!1;const e=_(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:_(t.phone)?"":t.phone,sex:t.sex,uid:_(t.uid)?"":t.uid}));if(_(this.businessId))return 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.$emit("callback",e)}).finally(()=>{this.isLoadingClose&&(this.isLoading=!1)})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){this.getSearch(()=>{this.isQuery=_(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){if(this.checkedJson.findIndex(a=>a.uniqueId===n.uniqueId)!=-1)return!1;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.maxMultiple!==0&&this.checkedJson.length>=this.maxMultiple&&this.multiple?(e.currentTarget.checked=!1,new La().message({content:`\u6700\u591A\u9009\u62E9${this.maxMultiple}\u9879\u3001\u8BF7\u79FB\u9664\u540E\u518D\u8FDB\u884C\u9009\u62E9`,type:"warning"}),!1):(this.multiple?this.checkedJson.push(r):this.checkedJson=[r],!1)}this.checkedJson=this.checkedJson.filter(t=>t.uniqueId!==n.uniqueId)},handleBreadcrumb(e,n){if(e.disable||n+1==this.breadcrumb.length)return!1;switch(n){case 0:this.deptId=this.deptCode;break;case 1:this.deptId=0;break;default:this.deptId=e.value;break}this.subjectId=e.value==="-1"?"":this.breadcrumb_subjectId,this.keyword="",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 _(t)||(t.type==1&&(new La().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 La().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.deptId=this.deptCode,this.subjectId="",_(this.deptCode)&&(this.breadcrumb=[{name:"\u7EC4\u7EC7",value:"-1"}]),this.isSon=!1,this.jsonData=[],this.keyword="",this.isQuery=!0,this.isLoading=!1},getIsSon(){const e=this.entityJson.filter(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},getCheckedAll(){const e=this.entityJson.findIndex(n=>this.checkedJson.findIndex(t=>t.type===n.type&&t.id===n.id&&n.subjectId===t.subjectId)===-1);this.checkedAll=e===-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};_(t.deptId)&&delete t.deptId,_(t.subjectId)&&delete t.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:t}).then(i=>{e(),this.jsonData=_(i.data)||i.code!==200?[]:i.data;const s=this.breadcrumb.filter(r=>r.value!=="-1");if(!_(this.jsonData)&&_(s)&&(!_(this.deptCode)||!_(this.subjectName))){const r=i.data[0],a=r.ancestors.split(",");this.breadcrumb=a.map((o,c)=>({value:o,name:r.ancestorNames.split("/")[c],disable:c!==a.length-1&&a.length!==0}))}this.getIsSon(),this.getCheckedAll()}).finally(()=>{this.isLoading=!1})},getDetail(e=()=>{}){if(_(this.businessId))return e(),!1;const n={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:n}).then(t=>{this.checkedJson=_(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:Ua(i.name,2),sex:i.sex,uid:_(i.uid)?"":i.uid,avatar:_(i.avatar)?"":i.avatar,isNoDelete:o}}),e()})},getCards(){if(_(this.checkedArray))return this.checkedJson=[];const e=this.checkedArray.map(n=>({type:n.type,id:_(n.id)?null:n.id,uid:_(n.uid)?null:n.uid,subjectId:_(n.subjectId)?null:n.subjectId,deptId:_(n.deptId)?null:n.deptId}));this.request.post("/auth/component/org/cards",{params:e}).then(n=>{this.checkedJson=_(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:Ua(t.name,2),sex:t.sex,uid:_(t.uid)?"":t.uid,avatar:_(t.avatar)?"":t.avatar,isNoDelete:o}})})},getByName(e=()=>{}){const n={name:this.subjectName};this.request.get("/auth/component/org/subject/getByName",{params:n}).then(t=>{console.log("getByName",t),t.code===200&&(this.subjectId=t.data,e())})}}};var eb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return 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",class:{disable:i.disable},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"},[i.avatar.length<1?t("span",[e._v(e._s(i.iconName))]):t("img",{attrs:{src:i.avatar}})]),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)},tb=[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 qp={};var nb=vs($C,eb,tb,!1,ib,null,null,null);function ib(e){for(let n in qp)this[n]=qp[n]}const bt=function(){return nb.exports}();var sb=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",[e._v(" "+e._s(i.userTaskModelDTO.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(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)},rb=[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 yE="",ab={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:ht,TopPopup:Qe,departPerson:bt},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?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u52A0\u7B7E\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;let e="";this.multiNodeParticipant[this.partObjId].map((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]}},handleCallback(e){this.visible=!1,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)})},handleCancel(){},getValues(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;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Kp={};var ob=te(ab,sb,rb,!1,cb,"b04c3b72",null,null);function cb(e){for(let n in Kp)this[n]=Kp[n]}const lb=function(){return ob.exports}();var ub=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",[e._v(" "+e._s(i.userTaskModelDTO.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(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)},pb=[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 CE="",db={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:ht,TopPopup:Qe,departPerson:bt},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?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg){this.textTips="\u8BF7\u8F93\u5165\u8F6C\u5BA1\u7406\u7531!",this.$refs.topTips.handleOpen();return}let e="";this.multiNodeParticipant[this.partObjId].map((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]}},handleCallback(e){this.visible=!1,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)})},handleCancel(){},getValues(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;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Hp={};var fb=te(db,ub,pb,!1,hb,"4e763a94",null,null);function hb(e){for(let n in Hp)this[n]=Hp[n]}const vb=function(){return fb.exports}(),mb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk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yiC3sYD5C1QgIchUu7jLsxAVkbJMBRppoTvIwLyFogAY6Esi7ncmxARocEOMpVcpKn8QEZFRLgSCrpsm7XAchokABH2SpO9LYeQEaBBDgSy7m863UB0jskwFG+gpM9rg+QXiEBjuRSznG/TkB6gwQ4cqq3gtf1AtILJMBRoYzztlg3IK0hAY68yq3kef2AtIIEOCqVcO42GoDUhgQ4cqu2oncdQGpBAhwVyzd/Ky1AsiEBjvyKrbyDHiBZkABH5dKts50mIKUhAY461dpgF11ASkECHA3Ktt6W2oAshQQ46lVqo50AJAoJcDQq2brbAshB7/3fJ5n7R3K+2MPmrm6q2K2FAgByrvr97p2ZvTez/V+WOv082tbunv7yFB8JBQDkUpr3HeW1mf1gZt9sa4+AIcHESZAAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6ikAIHo5J2KHAgDiEIulegoAiF7OidihAIA4xGKpngIAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",bE="";var gb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"process-popup-content"},[e.param.isDocument?t("div",{staticClass:"process-pc-label"},[e._v(" \u5FEB\u6377\u56DE\u590D ")]):e._e(),e.param.isDocument?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._e(),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"},[t("div",[e._v(" "+e._s(i.userTaskModelDTO.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(a){return e.handleOpenPopup(i)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},[t("span",[e._v(" "+e._s(e.partNode[i.id].join(","))+" ")])]):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:[t("div",{staticClass:"process-pc-label"},[e._v(" "+e._s(i.userTaskModelDTO.name)+" ")])]]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(i){return[t("div",{staticClass:"process-pc-label"},[e._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 "),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),t("div",{staticClass:"process-pc-value"},[t("div",{staticClass:"process-radio"},e._l(i.childNode,function(s){return t("div",{staticClass:"process-radio-item",class:s.id==e.radioCheck?"process-radio-item--check":"",on:{click:function(r){return e.handleNode(s)}}},[t("span",[s.id==e.radioCheck?t("img",{staticClass:"process-radio-item-check",attrs:{src:e.check}}):e._e()]),e._v(" "+e._s(s.nodeName)+" ")])}),0)])]}),e.radioCheck?[e.radioCheckChild&&e.radioCheckChild.length?e._l(e.radioCheckChild,function(i){return t("div",[t("div",{staticClass:"process-pc-label",on:{click:function(s){return e.handleSaveNode(i.id)}}},[t("div",{staticClass:"process-checkbox"},[e._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279:"),t("br"),t("div",{staticClass:"process-checkbox-item"},[e._v(" "+e._s(i.nodeName)+" "),t("span",[e.radioCheckNameList.includes(i.id)?t("img",{staticClass:"process-checkbox-item-check",attrs:{src:e.checkS}}):e._e()])])])]),t("div",{staticClass:"process-pc-value",on:{click:function(s){return e.handleOpenPopup(i)}}},[t("div",{staticClass:"process-pc-value--people"},[e.partNode[i.id]&&e.partNode[i.id].length?t("div",{staticClass:"process-pc-value--data"},[t("span",[e._v(" "+e._s(e.partNode[i.id].join(","))+" ")])]):t("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[t("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])])}):[t("div",{staticClass:"process-pc-label"},[e._v(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 ")]),t("div",{staticClass:"process-pc-value"},[e._v(" "+e._s(e.radioCheckName)+" ")])]]: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},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)},Ab=[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 EE="",yb={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:ht,TopPopup:Qe,departPerson:bt},computed:{check(){return bl},checkS(){return mb}},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],partList:[],gateVars:{}}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleSaveNode(e){this.radioCheckNameList.includes(e)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e),1):this.radioCheckNameList.push(e)},handleNode(e){this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&(this.radioCheckChild&&this.radioCheckChild.length?(this.gateVars[this.radioCheckChild[0].incomingConditionItemList[0].itemName]=this.radioCheckChild[0].incomingConditionItemList[0].compareValue,this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue):this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue)},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"){let n,t=[];e.routeTxt.companyIds.map((i,s)=>{n=i.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,s)=>{t.push({type:3,uid:i})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel",subjectName:n,checkedArray:t}}else if(e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"){let n,t=[];e.routeTxt.companyIds.map((i,s)=>{n=i.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,s)=>{t.push({type:3,uid:i})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel",deptCode:n,checkedArray:t}}else{let n=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((t,i)=>{n.push({type:3,uid:t})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel",checkedArray:n}}},async confirm(){if(!this.commentMsg){this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success");return}if(this.requires&&this.attchLists.length<=0){this.handleTips("\u8BF7\u4E0A\u4F20\u9644\u4EF6!",!1,"success");return}let e={};if(this.radioCheckNameList&&this.radioCheckNameList.length){let n=0;if(this.radioCheckNameList.map((t,i)=>{(!this.multiNodeParticipant[t]||!this.multiNodeParticipant[t].length)&&(n+=1),e[t]=this.multiNodeParticipant[t]}),n>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}e=this.multiNodeParticipant}this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/complete",{actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskInstId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e}).then(n=>{if(n.code==200){if(this.attchLists.length>0){this.uploadAttch();return}this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""}else this.handleTips(n.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(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;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Yp={};var Cb=te(yb,gb,Ab,!1,bb,"c5d4bcba",null,null);function bb(e){for(let n in Yp)this[n]=Yp[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",[e._v(" "+e._s(i.userTaskModelDTO.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(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)},kb=[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 IE="",wb={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:ht,TopPopup:Qe,departPerson:bt},data(){return{commentMsg:"",style:{color:"#333",disableColor:"#F7F6F6"},textTips:"",statusTips:!1,typeTips:"success",limit:"",requires:"",labels:"",otherList:"",attchLists:[],nextNodeData:[],taskNode:[],outGatewayUserTaskModel:[],formData:{},visible:!1,entity:{source:"0",type:"0",request:this.param.request,businessId:this.param.businessKey,codeType:[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{}}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){if(!this.commentMsg)return this.handleTips("\u8BF7\u8F93\u5165\u62D2\u7EDD\u7406\u7531!",!1,"success"),!1;this.handleTips("",!0,"loading"),await this.param.request.post("/aws/tis/reject",{commentMsg:this.commentMsg,taskInstId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(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;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Wp={};var Nb=te(wb,Ib,kb,!1,xb,"03e6902a",null,null);function xb(e){for(let n in Wp)this[n]=Wp[n]}const Db=function(){return Nb.exports}(),Ob="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACfVJREFUeF7tnT2S1FYYRaUCYgJ2wArYgRMIYQPGMVUQt8bDAoDRxFBFbLwBE5qEHbACdkBAbCi5HjxgGKbn6b7Wz9O7h9B8avV3rk7J6r7VtA1/IACBvQRa2EAAAvsJIAhXBwQuIYAgXB4QQBCuAQjkEeAOkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hFAkDxuHGVCAEFMgmbNPAIIkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hFAkDxuHGVCAEFMgmbNPAIIkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEPhFkL7vnzZN86fJ/qwJgbMEnnVdd3z2P1x4Bzk9PX0+DMND2EHAhUDbti92u92j8/vu/V+svu//aprmvgsg9rQm8Krruj8uInDpM0jf9/80TXPXGh3L107gddd19/YteakgL1++vPbx48d/m6b5rXZK7GdJ4O3169fvPHjw4L8sQcJBT548uXH16tU3TdPcskTI0rUSePfp06fbjx8//nDZgqM+5n369OnNK1euhDvJzVppsZcVgfefP3++c3x8/D619Sh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ss8d6YBUQwIOn8UdVTUlkCpIwDFqjf3uSQtkdiTg8FvakZVTA5kVCThGrrDvXemBzIYEHL4LO7r6FEBmQQKO0evrf980QLIjAYf/skbcMBWQrEjAEbG6Y+6cDkg2JOAYs6hRt0wJJAsScESt7bh7pwUSjQQc45Y08qapgUQhAUfkyo69e3ogo5GAY+yCRt9WAsgoJEtrV621a6ehfbi/XV451aasMYEyQEYgMWa85hg41qQU8E0pIJMiAUfA4q+9shyQyZCAY+2mBn1XEsgkSMARtPRbri0LJDkScGzZ0sBvSwNJigQcgQu/9eryQJIhAcfWDQ3+XgJIEiTgCF52y/UyQIKRgMOynQnOSAEJQgKOBItufYIckMFIwGHdzCTnJIEMQgKOJEu+5xmyQJyRgGPPViY6Kw3ECQk4Ei343qfIA+mMBBx7NzLZeYD8N5AO/7EoOJItd4/nAOQkxR1IwNFjGxPWAMj/hmJAAo6Ei93rSQA5k+QGJODotYlJ6wDkicGsQAKOpEvd81kAuZDmBSTg6LmFiWsB5JnhnEECjsQL3ftpAFmR6AmSa/5pnhWBFfoEICuHeUTy+Wb5svJzPiuSAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBL4Csq/cvbKQGitAAAAAElFTkSuQmCC",Sb={name:"TopDownSelect",props:{option:{type:Array,default:[]},optionStyle:{type:String,default:""},maskShow:{type:Boolean,default:!0},border:{type:Boolean,default:!1},defaultValue:{type:String,default:""},placeholder:{type:String,default:"\u8BF7\u9009\u62E9"}},data(){return{value:{id:"",text:""},lists:[],expand:!1,active:"",activeItem:{}}},watch:{option:{handler(e,n){e&&e.length&&(this.lists=e)},immediate:!0,deep:!0},defaultValue:{handler(e,n){this.active=e;let t=this.lists.filter((i,s)=>i.id==e);this.activeItem=t[0],this.$emit("change",this.activeItem)}}},computed:{arrow(){return Ob},check(){return Tb}},methods:{handleExpand(){this.expand?this.expand=!1:this.expand=!0},handleClick(e,n){this.active=e.id,this.activeItem=e,this.expand=!1,this.$emit("change",this.activeItem,this.lists)}}};var Bb=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"top-select"},[t("div",{staticClass:"top-select-menu",class:[e.border&&"top-select-menu-border",!e.activeItem.name&&"top-select-menu-placeholder"],on:{click:e.handleExpand}},[e._v(" "+e._s(e.activeItem.name?e.activeItem.name:e.placeholder)+" "),t("img",{staticClass:"top-select-menu--arrow",class:[e.expand?"arrow-active":""],attrs:{src:e.arrow}})]),e.maskShow?t("div",{staticClass:"top-select-option-mask",style:e.expand?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"}):e._e(),e.lists&&e.lists.length?t("div",{staticClass:"top-select-option",class:[e.border&&"top-select-option-border"],style:`${e.expand?"transform: translateY(2%);visibility: visible; opacity: 1;":"transform: translateY(-50%);visibility: hidden; opacity: 0"};${e.optionStyle?e.optionStyle:""}`},e._l(e.lists,function(i,s){return t("div",{key:i.id,staticClass:"option-items",class:[e.active==i.id?"option-items-active":""],on:{click:function(r){return e.handleClick(i,s)}}},[e._v(" "+e._s(i.name)+" "),e.active==i.id?t("img",{staticClass:"option-items-check",attrs:{src:e.check}}):e._e()])}),0):e._e()])},_b=[];const kE="",zp={};var Qb=te(Sb,Bb,_b,!1,Fb,"3b51c309",null,null);function Fb(e){for(let n in zp)this[n]=zp[n]}const Zp=function(){return Qb.exports}();var Mb=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)},Pb=[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 wE="",Vb={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:ht,TopPopup:Qe,departPerson:bt,TopDownSelect:Zp},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(){this.param.request.get("/aws/tis/getReturnableNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=e.data)})},handleChange(e){this.nodeId=e.id},handleOpenPopup(e){this.visible=!0,this.partObjId=e},confirm(){if(!this.commentMsg)return this.textTips="\u8BF7\u8F93\u5165\u9000\u56DE\u7406\u7531!",this.$refs.topTips.handleOpen(),!1;if(!this.nodeId)return this.textTips="\u8BF7\u9009\u62E9\u9000\u56DE\u8282\u70B9!",this.$refs.topTips.handleOpen(),!1;this.handleTips("",!0,"loading"),this.param.request.post("/aws/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,isCompensation:!1,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=JSON.parse(e[1]),this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,t)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name)})},handleCancel(){},getValues(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;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,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(Vb,Mb,Pb,!1,Jb,"409b85c5",null,null);function Jb(e){for(let n in Xp)this[n]=Xp[n]}const Lb=function(){return Ub.exports}();var jb=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",[e._v(" "+e._s(i.userTaskModelDTO.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(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"?[t("div",[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)},Rb=[];const NE="",Gb={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:ht,TopPopup:Qe,departPerson:bt},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?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):this.nextNodeData[0].type=="ExclusiveGatewayModel"||this.nextNodeData[0].type=="InclusiveGatewayModel":e.outGatewayUserTaskModel.length&&(e.outGatewayUserTaskModel[0].type=="userTask"?(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=[3],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){this.handleTips("",!0,"loading");let e="";this.multiNodeParticipant[this.partObjId].map((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]}},handleCallback(e){this.visible=!1,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)})},handleCancel(){},getValues(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;(await this.param.request.post("/aws/meta/annex/patchSave",{saveMetaAnnexCmdList:e})).success?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),this.commentMsg=""):this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error")}},isOption(e){return e=="\u4EFB\u610F\u6307\u5B9A"||e=="\u56FA\u5B9A\u90E8\u95E8"||e=="\u56FA\u5B9A\u5355\u4F4D"||e=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u6240\u5728\u7EC4\u7EC7\u7ED3\u6784\u7684\u4F4D\u7F6E\u76F8\u5173"||e=="\u56FA\u5B9A\u7FA4\u7EC4"},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},$p={};var qb=te(Gb,jb,Rb,!1,Kb,"4423f9f0",null,null);function Kb(e){for(let n in $p)this[n]=$p[n]}const Hb=function(){return qb.exports}();var Yb=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"},[t("div",[e._v(" "+e._s(e.getFirstProcessNode.name)+" "),t("br"),e._m(0)])]),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)},Wb=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[e._v(" \u5BA1\u6279\u4EBA"),t("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const xE="",zb={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:He,attchViews:ht,TopPopup:Qe,departPerson:bt},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.visible=!1,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()}}},ed={};var Zb=te(zb,Yb,Wb,!1,Xb,"0f1b413c",null,null);function Xb(e){for(let n in ed)this[n]=ed[n]}const $b=function(){return Zb.exports}(),eE={name:"TopProcess",components:{TopTab:Em,TopPopup:Qe,TopTips:He},props:{tapList:{require:!1,default:()=>[],type:Array},selfTapList:{require:!1,default:()=>[],type:Array},processDefId:{require:!0,default:"",type:String},processInstId:{require:!0,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean},userId:{require:!0,default:"",type:String},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!0}},data(){return{processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskId:"",taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,ProcessInsObj:{},popupContext:"",operationParam:{},nextTaskNode:{},annexlabel:"",handleTipsType:"",textTips:"",statusTips:!1,typeTips:"",outGatewayUserTaskModel:[],nextNodeData:[],visibleSong:!1,trackList:[],user:{},canCheck:!0,approveNode:{}}},watch:{processInstId:{async handler(e,n){this.processIntId=this.processInstId||this.formData.processId||this.formData.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.getUserInfo(),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(Eb,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(Db,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(Lb,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(Hb,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(vb,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(lb,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(){this.visibleSong=!0},async getUserInfo(){let e=await this.request.get("/app/user/info");e.code===200&&(this.user=e.data||{})},async handleGetSimulation(e){this.handleTips("",!0,"loading");let n={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e},t=await this.request.post("/aws/tis/simulation",n);if(t.success){this.handleTips("",!1,"success"),this.nextNodeData=t.data;for(let i=0;i<this.nextNodeData.length;i++)this.approveNode=this.nextNodeData[i]}else{let i=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(i,"")}},async getOutgoingProcessNode(e,n){let t=await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:e,processNodeId:n}});if(t.code==200){if(t.data)for(let i=0;i<t.data.length;i++){let s=t.data[i];if(s.type!="UserTaskModel"){let r=await this.getOutgoingProcessNode(e,s.id);await r.map((a,o)=>{a.nodeName=a.incomingConditionItemList[0].compareValue}),s.childNode=r}}return this.handleTips("",!1,"success"),t.data}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.request.get("/aws/pis/getProcessStatus",{params:{processInstId:this.processInstId,taskId:this.taskNode.length?this.taskNode[0].taskId:""}}).then(e=>{e.code==200&&(this.processStatus=e.data,this.processStatus.userNodeGroup&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName]&&this.processStatus.userNodeGroup[this.taskNode[0].nodeName].length>1?this.canCheck=!1:this.canCheck=!0)})},handleGetUserTaskModel(){this.taskNode&&this.taskNode.length&&this.request.get("/aws/repository/getUserTaskModel",{params:{taskId:this.taskNode[0].taskId}}).then(e=>{e.code==200&&(this.taskObj=e.data)})},async showOperation(e,n,t,i){if(this.beforeFunction&&!this.beforeFunction())return;if(this.processStatus.allUserNames&&this.processStatus.allUserNames.length==1&&this.taskNode[0]&&this.taskNode[0].nodeId){let r;this.getVars&&(r=this.getVars()),await this.handleGetSimulation(r)}t&&(this.operationParam.request=t,this.annexlabel=i),this.titleText=n,this.operationCom=e,this.$refs.TopPopup1.handleOpen(),this.operationParam.annex=i,this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"",this.operationParam.actionName=n,this.operationParam.formData=this.formData,this.operationParam.nextNodeData=this.nextNodeData,this.operationParam.outGatewayUserTaskModel=this.outGatewayUserTaskModel,this.operationParam.taskNode=this.taskNode,this.operationParam.appId=this.processStatus.appId,this.operationParam.endFunction=this.endFunction,this.operationParam.isDocument=this.isDocument,this.operationParam.canCheck=this.canCheck,this.taskObj.commentModels.some(r=>this.operationParam.actionComplete=r!=null&&r.isDefault?r.actionName:"")},handleCancel(){},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.$refs.TopPopup1.handleClose()},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/aws/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),this.endFunction()):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.post("/aws/pis/revoke",{processInstId:this.ProcessInsObj.id,processBusinessKey:this.ProcessInsObj.processBusinessKey}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),this.endFunction()):(this.textTips=e.msg,this.typeTips="error",this.handleTips(e.msg,!0,"error"))}))},handleTipsCancel(){},getColor(e){return e=="\u5BA1\u6838\u4E2D"?"#FFA52D":e=="\u5DF2\u9A73\u56DE"?"#F14B4C":e=="\u5DF2\u64A4\u9500"?"#CECECE":e=="\u5DF2\u5B8C\u6210"?"#6DC743":"#1389FF"},handleActionOpen(){this.actionShow=!0},handleActionClose(){this.actionShow=!1},actionClick(e){this.titleText=e,this.actionShow=!1},getBtnStyle(e){switch(e){case"primary":return"background-color:#3c9cff;color:#fff";case"danger":return"background-color:rgb(255, 230, 230);color:rgb(255, 96, 96)";case"default":return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)";default:return"background-color:rgb(241, 241, 241);color:rgb(51, 51, 51)"}},async handleRestart(){this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.processStatus.appId}}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(n=>{this.processBusiness=n.data,this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(t=>{this.getFirstProcessNode=t.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation($b,"\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 tE=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{staticClass:"process-warp"},[e.formData.currentState||e.processStatus.bizStatusName||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.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?t("div",{staticClass:"process-mliv-dd",style:{background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)}},[e._v(" "+e._s(e.formData.currentState||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),t("div",{staticClass:"process-btn"},[e.isAdditional?t("div",{staticClass:"footBtnRow"},[e._t("btn")],2):[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?[t("div",{staticClass:"top-button",style:e.getBtnStyle("default")},[e._v(" \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ")])]:[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?[e.formData.currentState==="\u5DF2\u64A4\u9500"||e.formData.currentState==="\u5DF2\u9A73\u56DE"||e.processStatus.status==="\u5DF2\u64A4\u9500"||e.processStatus.status==="\u5DF2\u9A73\u56DE"||e.processStatus.bizStatusName==="\u5DF2\u64A4\u9500"||e.processStatus.bizStatusName==="\u5DF2\u9A73\u56DE"?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)},nE=[];const DE="",td={};var iE=te(eE,tE,nE,!1,sE,"451e116a",null,null);function sE(e){for(let n in td)this[n]=td[n]}const rE=function(){return iE.exports}(),aE={name:"TopSubmitPopup",components:{TopPopup:Qe,TopDownSelect:Zp,PreviewImage:Dr,departPerson:bt,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},manual:{type:Boolean,default:!1}},data(){return{show:!1,option:[],checkedItem:{},personList:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:"0",request:this.request,codeType:[3],multiple:!1},multiNodeParticipant:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{}}},watch:{visible:{async handler(e,n){this.show=e,this.$emit("update:visible",this.show),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId,processGroupName:this.processNameData}}).then(t=>{t.code==200&&(this.option=t.data,this.option&&this.option.length&&this.processNameData&&(this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.getAfferentParticipantNodeList(),this.getDiagramUrl(),this.handlefirstNode(this.checkedItem.id),this.getProcessInstance()))})},immediate:!0},businessType:{handler(e,n){this.businessTypeData=e},immediate:!0},id:{handler(e,n){this.idData=e},immediate:!0},processName:{handler(e,n){this.processNameData=e},immediate:!0},title:{handler(e,n){this.titleData=e},immediate:!0},todoParameter:{handler(e,n){this.todoParameterData=e},immediate:!0,deep:!0}},methods:{async getProcessInstance(){this.id&&await this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.id}}).then(e=>{e.code==200&&(this.processId=e.data.id)})},async handlefirstNode(e){e&&await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:e}}).then(n=>{n.code===200&&(this.firstPerson=n.data)})},handleChange(e,n){this.handleTips("",!0,"loading"),this.checkedItem=e,this.handlefirstNode(this.checkedItem.id),this.getAfferentParticipantNodeList(),this.getProcessInstance(),this.getDiagramUrl(),this.$emit("change",e,n),this.$refs.topTips.handleClose()},getAfferentParticipantNodeList(){this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.firstPerson&&this.firstPerson.length&&(this.personList=e.data.filter(n=>!this.firstPerson.some(t=>t.id==n.id))),this.$emit("change",this.checkedItem,e.data))})},getDiagramUrl(){this.request.get("/aws/repository/getDiagramUrl",{params:{processDefId:this.checkedItem.id,diagramType:1,type:"pc"}}).then(e=>{e.code==200&&(this.trackUrl=[e.data])})},handleOpenPerson(e){if(this.visiblePerson=!0,this.personObjId=e.id,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"};else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let n;e.routeTxt.companyIds.map((t,i)=>{n=t.rangeId}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],deptCode:n,multiple:e.type=="InclusiveGatewayModel"}}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let n;e.routeTxt.companyIds.map((t,i)=>{n=t.name}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel",subjectName:n}}},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)}),this.visiblePerson=!1},handleCancel(){},async handleSumbit(){if(this.firstPerson&&this.firstPerson.length&&!this.multiNodeParticipant[this.firstPerson[0].id]){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error");return}this.beforeFunction&&await this.beforeFunction(),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})},handleSongshen(){if(this.handleTips("",!0,"loading"),this.resubmit)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")});else{let e={title:this.titleData,processDefId:this.checkedItem.id,processBusinessKey:this.idData,showType:this.showType,businessType:this.businessTypeData,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameterData};console.log("\u9A8C\u8BC1\u6761\u4EF6::",e,"this:::",this),this.request.post("/aws/pis/createAndStart",e).then(n=>{n.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):n.code==499?this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(t=>{t.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn")):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.handleTips(t.msg,!0,"error")}):this.handleTips(n.msg,!0,"error")}).catch(n=>{this.handleTips(n.msg,!0,"error")})}},handleTips(e,n,t){this.textTips=e,this.statusTips=n,this.typeTips=t,this.$refs.topTips.handleOpen()}}};var oE=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,defaultValue:e.selectDefaultValue},on:{change:e.handleChange}}),e.checkedItem.id?t("div",{staticClass:"viewTrack",on:{click:function(i){e.taskurlshow=!0}}},[e._v(" \u67E5\u770B\u6D41\u7A0B\u56FE ")]):e._e(),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)},cE=[];const OE="",nd={};var lE=te(aE,oE,cE,!1,uE,"1326c8de",null,null);function uE(e){for(let n in nd)this[n]=nd[n]}const pE=function(){return lE.exports}();Ze.TopProcess=rE,Ze.TopSumbitPopup=pE,Ze.ViewAttchList=yl,Ze.attchViews=ht,Object.defineProperties(Ze,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|