ui-process-h5 1.3.28 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/v2/style.css +1 -1
- package/v2/ui-process-h5.js +423 -434
- package/v2/ui-process-h5.umd.cjs +14 -14
- package/v2.7/style.css +1 -1
- package/v2.7/ui-process-h5.js +31 -42
- package/v2.7/ui-process-h5.umd.cjs +2 -2
- package/v3/style.css +1 -1
- package/v3/ui-process-h5.js +203 -204
- package/v3/ui-process-h5.umd.cjs +2 -2
package/v3/ui-process-h5.umd.cjs
CHANGED
|
@@ -7,7 +7,7 @@ Component that was made reactive: `,e)),Fa(e,n,o,i,l,m,d,!0)}function xa(e){retu
|
|
|
7
7
|
`),h]);else{const u=[`[Vue warn]: ${s}`,...a];h.length&&u.push(`
|
|
8
8
|
`,...nu(h)),console.warn(...u)}Eo()}function su(){let s=ze[ze.length-1];if(!s)return[];const a=[];for(;s;){const c=a[0];c&&c.vnode===s?c.recurseCount++:a.push({vnode:s,recurseCount:0});const r=s.component&&s.component.parent;s=r&&r.vnode}return a}function nu(s){const a=[];return s.forEach((c,r)=>{a.push(...r===0?[]:[`
|
|
9
9
|
`],...ou(c))}),a}function ou({vnode:s,recurseCount:a}){const c=a>0?`... (${a} recursive calls)`:"",r=s.component?s.component.parent==null:!1,h=` at <${ei(s.component,s.type,r)}`,u=">"+c;return s.props?[h,...iu(s.props),u]:[h+u]}function iu(s){const a=[],c=Object.keys(s);return c.slice(0,3).forEach(r=>{a.push(...Oo(r,s[r]))}),c.length>3&&a.push(" ..."),a}function Oo(s,a,c){return ge(a)?(a=JSON.stringify(a),c?a:[`${s}=${a}`]):typeof a=="number"||typeof a=="boolean"||a==null?c?a:[`${s}=${a}`]:_(a)?(a=Oo(s,M(a.value),!0),c?a:[`${s}=Ref<`,a,">"]):R(a)?[`${s}=fn${a.name?`<${a.name}>`:""}`]:(a=M(a),c?a:[`${s}=`,a])}const xo={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",[0]:"setup function",[1]:"render function",[2]:"watcher getter",[3]:"watcher callback",[4]:"watcher cleanup function",[5]:"native event handler",[6]:"component event handler",[7]:"vnode hook",[8]:"directive hook",[9]:"transition hook",[10]:"app errorHandler",[11]:"app warnHandler",[12]:"ref function",[13]:"async component loader",[14]:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function Ze(s,a,c,r){let h;try{h=r?s(...r):s()}catch(u){Uo(u,a,c)}return h}function Ks(s,a,c,r){if(R(s)){const u=Ze(s,a,c,r);return u&&um(u)&&u.catch(g=>{Uo(g,a,c)}),u}const h=[];for(let u=0;u<s.length;u++)h.push(Ks(s[u],a,c,r));return h}function Uo(s,a,c,r=!0){const h=a?a.vnode:null;if(a){let u=a.parent;const g=a.proxy,C=process.env.NODE_ENV!=="production"?xo[c]:c;for(;u;){const k=u.ec;if(k){for(let w=0;w<k.length;w++)if(k[w](s,g,C)===!1)return}u=u.parent}const N=a.appContext.config.errorHandler;if(N){Ze(N,null,10,[s,g,C]);return}}au(s,c,h,r)}function au(s,a,c,r=!0){if(process.env.NODE_ENV!=="production"){const h=xo[a];if(c&&eu(c),fe(`Unhandled error${h?` during execution of ${h}`:""}`),c&&tu(),r)throw s;console.error(s)}else console.error(s)}let Ht=!1,Ys=!1;const le=[];let De=0;const ot=[];let Ae=null,Qe=0;const Lo=Promise.resolve();let Hs=null;const lu=100;function cu(s){const a=Hs||Lo;return s?a.then(this?s.bind(this):s):a}function du(s){let a=De+1,c=le.length;for(;a<c;){const r=a+c>>>1;gt(le[r])<s?a=r+1:c=r}return a}function Ws(s){(!le.length||!le.includes(s,Ht&&s.allowRecurse?De+1:De))&&(s.id==null?le.push(s):le.splice(du(s.id),0,s),Jo())}function Jo(){!Ht&&!Ys&&(Ys=!0,Hs=Lo.then(Go))}function Po(s){V(s)?ot.push(...s):(!Ae||!Ae.includes(s,s.allowRecurse?Qe+1:Qe))&&ot.push(s),Jo()}function ru(s){if(ot.length){const a=[...new Set(ot)];if(ot.length=0,Ae){Ae.push(...a);return}for(Ae=a,process.env.NODE_ENV!=="production"&&(s=s||new Map),Ae.sort((c,r)=>gt(c)-gt(r)),Qe=0;Qe<Ae.length;Qe++)process.env.NODE_ENV!=="production"&&Ro(s,Ae[Qe])||Ae[Qe]();Ae=null,Qe=0}}const gt=s=>s.id==null?1/0:s.id,pu=(s,a)=>{const c=gt(s)-gt(a);if(c===0){if(s.pre&&!a.pre)return-1;if(a.pre&&!s.pre)return 1}return c};function Go(s){Ys=!1,Ht=!0,process.env.NODE_ENV!=="production"&&(s=s||new Map),le.sort(pu);const a=process.env.NODE_ENV!=="production"?c=>Ro(s,c):B;try{for(De=0;De<le.length;De++){const c=le[De];if(c&&c.active!==!1){if(process.env.NODE_ENV!=="production"&&a(c))continue;Ze(c,null,14)}}}finally{De=0,le.length=0,ru(s),Ht=!1,Hs=null,(le.length||ot.length)&&Go(s)}}function Ro(s,a){if(!s.has(a))s.set(a,1);else{const c=s.get(a);if(c>lu){const r=a.ownerInstance,h=r&&$o(r.type);return fe(`Maximum recursive updates exceeded${h?` in component <${h}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}else s.set(a,c+1)}}const ft=new Set;process.env.NODE_ENV!=="production"&&(ym().__VUE_HMR_RUNTIME__={createRecord:zs(hu),rerender:zs(mu),reload:zs(uu)});const Wt=new Map;function hu(s,a){return Wt.has(s)?!1:(Wt.set(s,{initialDef:At(a),instances:new Set}),!0)}function At(s){return ti(s)?s.__vccOpts:s}function mu(s,a){const c=Wt.get(s);!c||(c.initialDef.render=a,[...c.instances].forEach(r=>{a&&(r.render=a,At(r.type).render=a),r.renderCache=[],r.update()}))}function uu(s,a){const c=Wt.get(s);if(!c)return;a=At(a),jo(c.initialDef,a);const r=[...c.instances];for(const h of r){const u=At(h.type);ft.has(u)||(u!==c.initialDef&&jo(u,a),ft.add(u)),h.appContext.optionsCache.delete(h.type),h.ceReload?(ft.add(u),h.ceReload(a.styles),ft.delete(u)):h.parent?Ws(h.parent.update):h.appContext.reload?h.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Po(()=>{for(const h of r)ft.delete(At(h.type))})}function jo(s,a){D(s,a);for(const c in s)c!=="__file"&&!(c in a)&&delete s[c]}function zs(s){return(a,c)=>{try{return s(a,c)}catch(r){console.error(r),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let it=null,gu=null;const fu=s=>s.__isSuspense;function Au(s,a){a&&a.pendingBranch?V(s)?a.effects.push(...s):a.effects.push(s):Po(s)}const zt={};function ku(s,a,{immediate:c,deep:r,flush:h,onTrack:u,onTrigger:g}=p){process.env.NODE_ENV!=="production"&&!a&&(c!==void 0&&fe('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&fe('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const C=U=>{fe("Invalid watch source: ",U,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},N=Cm()===(Me==null?void 0:Me.scope)?Me:null;let k,w=!1,I=!1;if(_(s)?(k=()=>s.value,w=Ps(s)):He(s)?(k=()=>s,r=!0):V(s)?(I=!0,w=s.some(U=>He(U)||Ps(U)),k=()=>s.map(U=>{if(_(U))return U.value;if(He(U))return at(U);if(R(U))return Ze(U,N,2);process.env.NODE_ENV!=="production"&&C(U)})):R(s)?a?k=()=>Ze(s,N,2):k=()=>{if(!(N&&N.isUnmounted))return S&&S(),Ks(s,N,3,[O])}:(k=B,process.env.NODE_ENV!=="production"&&C(s)),a&&r){const U=k;k=()=>at(U())}let S,O=U=>{S=se.onStop=()=>{Ze(U,N,4)}},F=I?new Array(s.length).fill(zt):zt;const ee=()=>{if(se.active)if(a){const U=se.run();(r||w||(I?U.some((Of,xf)=>Ut(Of,F[xf])):Ut(U,F)))&&(S&&S(),Ks(a,N,3,[U,F===zt?void 0:I&&F[0]===zt?[]:F,O]),F=U)}else se.run()};ee.allowRecurse=!!a;let ts;h==="sync"?ts=ee:h==="post"?ts=()=>Ho(ee,N&&N.suspense):(ee.pre=!0,N&&(ee.id=N.uid),ts=()=>Ws(ee));const se=new Nm(k,ts);return process.env.NODE_ENV!=="production"&&(se.onTrack=u,se.onTrigger=g),a?c?ee():F=se.run():h==="post"?Ho(se.run.bind(se),N&&N.suspense):se.run(),()=>{se.stop(),N&&N.scope&&ue(N.scope.effects,se)}}function yu(s,a,c){const r=this.proxy,h=ge(s)?s.includes(".")?Eu(r,s):()=>r[s]:s.bind(r,r);let u;R(a)?u=a:(u=a.handler,c=a);const g=Me;qo(this);const C=ku(h,u.bind(r),c);return g?qo(g):xu(),C}function Eu(s,a){const c=a.split(".");return()=>{let r=s;for(let h=0;h<c.length&&r;h++)r=r[c[h]];return r}}function at(s,a){if(!Z(s)||s.__v_skip||(a=a||new Set,a.has(s)))return s;if(a.add(s),_(s))at(s.value,a);else if(V(s))for(let c=0;c<s.length;c++)at(s[c],a);else if(Vs(s)||we(s))s.forEach(c=>{at(c,a)});else if(fm(s))for(const c in s)at(s[c],a);return s}function Zt(s){return R(s)?{setup:s,name:s.name}:s}const Cu=Symbol(),Zs=s=>s?Uu(s)?Lu(s)||s.proxy:Zs(s.parent):null,Xs=D(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>process.env.NODE_ENV!=="production"?Yt(s.props):s.props,$attrs:s=>process.env.NODE_ENV!=="production"?Yt(s.attrs):s.attrs,$slots:s=>process.env.NODE_ENV!=="production"?Yt(s.slots):s.slots,$refs:s=>process.env.NODE_ENV!=="production"?Yt(s.refs):s.refs,$parent:s=>Zs(s.parent),$root:s=>Zs(s.root),$emit:s=>s.emit,$options:s=>Bu(s),$forceUpdate:s=>s.f||(s.f=()=>Ws(s.update)),$nextTick:s=>s.n||(s.n=cu.bind(s.proxy)),$watch:s=>yu.bind(s)});process.env.NODE_ENV;function Bu(s){const a=s.type,{mixins:c,extends:r}=a,{mixins:h,optionsCache:u,config:{optionMergeStrategies:g}}=s.appContext,C=u.get(a);let N;return C?N=C:!h.length&&!c&&!r?N=a:(N={},h.length&&h.forEach(k=>Xt(N,k,g,!0)),Xt(N,a,g)),Z(a)&&u.set(a,N),N}function Xt(s,a,c,r=!1){const{mixins:h,extends:u}=a;u&&Xt(s,u,c,!0),h&&h.forEach(g=>Xt(s,g,c,!0));for(const g in a)if(r&&g==="expose")process.env.NODE_ENV!=="production"&&fe('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const C=Iu[g]||c&&c[g];s[g]=C?C(s[g],a[g]):a[g]}return s}const Iu={data:Ko,props:Xe,emits:Xe,methods:Xe,computed:Xe,beforeCreate:Y,created:Y,beforeMount:Y,mounted:Y,beforeUpdate:Y,updated:Y,beforeDestroy:Y,beforeUnmount:Y,destroyed:Y,unmounted:Y,activated:Y,deactivated:Y,errorCaptured:Y,serverPrefetch:Y,components:Xe,directives:Xe,watch:bu,provide:Ko,inject:Nu};function Ko(s,a){return a?s?function(){return D(R(s)?s.call(this,this):s,R(a)?a.call(this,this):a)}:a:s}function Nu(s,a){return Xe(Yo(s),Yo(a))}function Yo(s){if(V(s)){const a={};for(let c=0;c<s.length;c++)a[s[c]]=s[c];return a}return s}function Y(s,a){return s?[...new Set([].concat(s,a))]:a}function Xe(s,a){return s?D(D(Object.create(null),s),a):a}function bu(s,a){if(!s)return a;if(!a)return s;const c=D(Object.create(null),s);for(const r in a)c[r]=Y(s[r],a[r]);return c}const Ho=Au,vu=s=>s.__isTeleport,Wo=Symbol(process.env.NODE_ENV!=="production"?"Fragment":void 0),wu=Symbol(process.env.NODE_ENV!=="production"?"Text":void 0),Tu=Symbol(process.env.NODE_ENV!=="production"?"Comment":void 0);Symbol(process.env.NODE_ENV!=="production"?"Static":void 0);let lt=null;function Vu(s){return s?s.__v_isVNode===!0:!1}const Su=(...s)=>Xo(...s),zo="__vInternal",Zo=({key:s})=>s!=null?s:null,_t=({ref:s,ref_key:a,ref_for:c})=>s!=null?ge(s)||_(s)||R(s)?{i:it,r:s,k:a,f:!!c}:s:null;function Du(s,a=null,c=null,r=0,h=null,u=s===Wo?0:1,g=!1,C=!1){const N={__v_isVNode:!0,__v_skip:!0,type:s,props:a,key:a&&Zo(a),ref:a&&_t(a),scopeId:gu,slotScopeIds:null,children:c,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:u,patchFlag:r,dynamicProps:h,dynamicChildren:null,appContext:null,ctx:it};return C?(_s(N,c),u&128&&s.normalize(N)):c&&(N.shapeFlag|=ge(c)?8:16),process.env.NODE_ENV!=="production"&&N.key!==N.key&&fe("VNode created with invalid key (NaN). VNode type:",N.type),!g&<&&(N.patchFlag>0||u&6)&&N.patchFlag!==32&<.push(N),N}const Qu=process.env.NODE_ENV!=="production"?Su:Xo;function Xo(s,a=null,c=null,r=0,h=null,u=!1){if((!s||s===Cu)&&(process.env.NODE_ENV!=="production"&&!s&&fe(`Invalid vnode type when creating vnode: ${s}.`),s=Tu),Vu(s)){const C=qt(s,a,!0);return c&&_s(C,c),!u&<&&(C.shapeFlag&6?lt[lt.indexOf(s)]=C:lt.push(C)),C.patchFlag|=-2,C}if(ti(s)&&(s=s.__vccOpts),a){a=Mu(a);let{class:C,style:N}=a;C&&!ge(C)&&(a.class=y(C)),Z(N)&&(Gs(N)&&!V(N)&&(N=D({},N)),a.style=d(N))}const g=ge(s)?1:fu(s)?128:vu(s)?64:Z(s)?4:R(s)?2:0;return process.env.NODE_ENV!=="production"&&g&4&&Gs(s)&&(s=M(s),fe("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.",`
|
|
10
|
-
Component that was made reactive: `,s)),Du(s,a,c,r,h,g,u,!0)}function Mu(s){return s?Gs(s)||zo in s?D({},s):s:null}function qt(s,a,c=!1){const{props:r,ref:h,patchFlag:u,children:g}=s,C=a?Ou(r||{},a):r;return{__v_isVNode:!0,__v_skip:!0,type:s.type,props:C,key:C&&Zo(C),ref:a&&a.ref?c&&h?V(h)?h.concat(_t(a)):[h,_t(a)]:_t(a):h,scopeId:s.scopeId,slotScopeIds:s.slotScopeIds,children:process.env.NODE_ENV!=="production"&&u===-1&&V(g)?g.map(_o):g,target:s.target,targetAnchor:s.targetAnchor,staticCount:s.staticCount,shapeFlag:s.shapeFlag,patchFlag:a&&s.type!==Wo?u===-1?16:u|16:u,dynamicProps:s.dynamicProps,dynamicChildren:s.dynamicChildren,appContext:s.appContext,dirs:s.dirs,transition:s.transition,component:s.component,suspense:s.suspense,ssContent:s.ssContent&&qt(s.ssContent),ssFallback:s.ssFallback&&qt(s.ssFallback),el:s.el,anchor:s.anchor,ctx:s.ctx,ce:s.ce}}function _o(s){const a=qt(s);return V(s.children)&&(a.children=s.children.map(_o)),a}function Fu(s=" ",a=0){return Qu(wu,null,s,a)}function _s(s,a){let c=0;const{shapeFlag:r}=s;if(a==null)a=null;else if(V(a))c=16;else if(typeof a=="object")if(r&65){const h=a.default;h&&(h._c&&(h._d=!1),_s(s,h()),h._c&&(h._d=!0));return}else{c=32;const h=a._;!h&&!(zo in a)?a._ctx=it:h===3&&it&&(it.slots._===1?a._=1:(a._=2,s.patchFlag|=1024))}else R(a)?(a={default:a,_ctx:it},c=32):(a=String(a),r&64?(c=16,a=[Fu(a)]):c=8);s.children=a,s.shapeFlag|=c}function Ou(...s){const a={};for(let c=0;c<s.length;c++){const r=s[c];for(const h in r)if(h==="class")a.class!==r.class&&(a.class=y([a.class,r.class]));else if(h==="style")a.style=d([a.style,r.style]);else if(T(h)){const u=a[h],g=r[h];g&&u!==g&&!(V(u)&&u.includes(g))&&(a[h]=u?[].concat(u,g):g)}else h!==""&&(a[h]=r[h])}return a}let Me=null;const qo=s=>{Me=s,s.scope.on()},xu=()=>{Me&&Me.scope.off(),Me=null};function Uu(s){return s.vnode.shapeFlag&4}function Lu(s){if(s.exposed)return s.exposeProxy||(s.exposeProxy=new Proxy($m(Xm(s.exposed)),{get(a,c){if(c in a)return a[c];if(c in Xs)return Xs[c](s)},has(a,c){return c in a||c in Xs}}))}const Ju=/(?:^|[-_])(\w)/g,Pu=s=>s.replace(Ju,a=>a.toUpperCase()).replace(/[-_]/g,"");function $o(s,a=!0){return R(s)?s.displayName||s.name:s.name||a&&s.__name}function ei(s,a,c=!1){let r=$o(a);if(!r&&a.__file){const h=a.__file.match(/([^/\\]+)\.\w+$/);h&&(r=h[1])}if(!r&&s&&s.parent){const h=u=>{for(const g in u)if(u[g]===a)return g};r=h(s.components||s.parent.type.components)||h(s.appContext.components)}return r?Pu(r):c?"App":"Anonymous"}function ti(s){return R(s)&&"__vccOpts"in s}Symbol(process.env.NODE_ENV!=="production"?"ssrContext":"");function qs(s){return!!(s&&s.__v_isShallow)}function Gu(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const s={style:"color:#3ba776"},a={style:"color:#0b1bc9"},c={style:"color:#b62e24"},r={style:"color:#9d288c"},h={header(I){return Z(I)?I.__isVue?["div",s,"VueInstance"]:_(I)?["div",{},["span",s,w(I)],"<",C(I.value),">"]:He(I)?["div",{},["span",s,qs(I)?"ShallowReactive":"Reactive"],"<",C(I),`>${We(I)?" (readonly)":""}`]:We(I)?["div",{},["span",s,qs(I)?"ShallowReadonly":"Readonly"],"<",C(I),">"]:null:null},hasBody(I){return I&&I.__isVue},body(I){if(I&&I.__isVue)return["div",{},...u(I.$)]}};function u(I){const S=[];I.type.props&&I.props&&S.push(g("props",M(I.props))),I.setupState!==p&&S.push(g("setup",I.setupState)),I.data!==p&&S.push(g("data",M(I.data)));const O=N(I,"computed");O&&S.push(g("computed",O));const F=N(I,"inject");return F&&S.push(g("injected",F)),S.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:I}]]),S}function g(I,S){return S=D({},S),Object.keys(S).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},I],["div",{style:"padding-left:1.25em"},...Object.keys(S).map(O=>["div",{},["span",r,O+": "],C(S[O],!1)])]]:["span",{}]}function C(I,S=!0){return typeof I=="number"?["span",a,I]:typeof I=="string"?["span",c,JSON.stringify(I)]:typeof I=="boolean"?["span",r,I]:Z(I)?["object",{object:S?M(I):I}]:["span",c,String(I)]}function N(I,S){const O=I.type;if(R(O))return;const F={};for(const ee in I.ctx)k(O,ee,S)&&(F[ee]=I.ctx[ee]);return F}function k(I,S,O){const F=I[O];if(V(F)&&F.includes(S)||Z(F)&&S in F||I.extends&&k(I.extends,S,O)||I.mixins&&I.mixins.some(ee=>k(ee,S,O)))return!0}function w(I){return qs(I)?"ShallowRef":I.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(h):window.devtoolsFormatters=[h]}function Ru(){Gu()}process.env.NODE_ENV!=="production"&&Ru();function b(s){return s==null||s==="null"||s==="NaN"||s==="undefined"||s.length===0}function ju(s){return b(s)?"":s?(s+"").replace(/^(\d{3})\d{4}(\d{4})$/,"$1****$2"):void 0}function $s(s,a){return b(s)?"":s.substring(s.length-a)}function Ku(s,a,c){return b(s)?"":c==="last"?s.slice(s.lastIndexOf(a)+1):s.slice(0,s.indexOf(a))}const Yu=Zt({name:"checked",props:{visible:{type:Boolean,default:!1},checkedJson:{type:Array,default:()=>[]}},data(){return{}},watch:{visible:{deep:!0,immediate:!0,handler:function(s,a){if(!s)return!1;this.$nextTick(()=>{})}}},computed:{dialogVisible:{get(){return this.visible},set(s){this.$emit("update:visible",s)}},jsonData:{get(){return this.checkedJson},set(s){this.$emit("update:checkedJson",s)}},checkedNumber(){const s=this.jsonData.filter(u=>u.type==1).length,a=this.jsonData.filter(u=>u.type==2).length,c=this.jsonData.filter(u=>u.type==3||u.type==6).length,r=this.jsonData.filter(u=>u.type==5).length;let h=[];return s>0&&h.push(`\u7EC4\u7EC7(${s})`),r>0&&h.push(`\u7FA4\u7EC4(${r})`),a>0&&h.push(`\u90E8\u95E8(${a})`),c>0&&h.push(`\u4EBA\u5458(${c})`),b(h)?"":"\u5DF2\u9009\u62E9"+h.join("\uFF0C")},companyJson(){return this.jsonData.filter(s=>s.type==1||s.type==5)},deptJson(){return this.jsonData.filter(s=>s.type==2)},userJson(){return this.jsonData.filter(s=>s.type==3||s.type==6)}},mounted(){},methods:{handleRemove(s){this.jsonData=this.jsonData.filter(a=>a.uniqueId!==s.uniqueId||a.isNoDelete)},handleSlotUser(s){return{id:s.id,name:s.name,uid:s.uid}},isBool(s){return b(s)}}}),$t=(s,a)=>{const c=s.__vccOpts||s;for(const[r,h]of a)c[r]=h;return c},Hu={key:0,class:"checked-main"},Wu={class:"checked-content"},zu={class:"checked-title"},Zu={class:"checked-name"},Xu={class:"checked-section"},_u={class:"checked-depart"},qu={class:"checked-departItem-content"},$u={class:"name"},eg=["onClick"],tg={class:"checked-departItem-content"},sg={class:"name"},ng={key:0},og={class:"content"},ig=["onClick"],ag={class:"checked-user"},lg={class:"checked-userItem-icon"},cg={key:0},dg=["src"],rg={class:"checked-userItem-content"},pg={class:"checked-userItem-left"},hg={class:"checked-userItem-name"},mg={class:"checked-userItem-phone"},ug={key:0,class:"checked-userItem-txt"},gg={class:"deper-person-slot"},fg=["onClick"];function Ag(s,a,c,r,h,u){return s.dialogVisible?(i.openBlock(),i.createElementBlock("main",Hu,[i.createElementVNode("div",{onClick:a[0]||(a[0]=g=>s.dialogVisible=!1),class:"checked-mask"}),i.createElementVNode("div",Wu,[i.createElementVNode("div",zu,[i.createElementVNode("div",Zu,i.toDisplayString(s.checkedNumber),1),i.createElementVNode("div",{onClick:a[1]||(a[1]=g=>s.dialogVisible=!1),class:"checked-btn"},"\u5173\u95ED")]),i.createElementVNode("section",Xu,[i.createElementVNode("div",_u,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.companyJson,g=>(i.openBlock(),i.createElementBlock("div",{key:g.uniqueId,class:"checked-depart-item"},[i.createElementVNode("div",qu,[i.createElementVNode("div",$u,[i.createElementVNode("span",null,i.toDisplayString(g.name),1)])]),g.isNoDelete?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,onClick:C=>s.handleRemove(g),class:"checked-remove"},"\u79FB\u9664",8,eg))]))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.deptJson,g=>(i.openBlock(),i.createElementBlock("div",{key:g.uniqueId,class:"checked-depart-item"},[i.createElementVNode("div",tg,[i.createElementVNode("div",sg,[i.createElementVNode("span",{class:i.normalizeClass({width:g.orgRecordsType==4})},i.toDisplayString(g.name),3),g.orgRecordsType==4?(i.openBlock(),i.createElementBlock("label",ng,"\u5305\u542B\u5B50\u7EA7")):i.createCommentVNode("",!0)]),i.createElementVNode("div",og,i.toDisplayString(g.ancestorNames),1)]),g.isNoDelete?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,onClick:C=>s.handleRemove(g),class:"checked-remove"},"\u79FB\u9664",8,ig))]))),128))]),i.createElementVNode("div",ag,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.userJson,g=>(i.openBlock(),i.createElementBlock("div",{key:g.uniqueId,class:"checked-user-item"},[i.createElementVNode("div",lg,[g.avatar.length<1?(i.openBlock(),i.createElementBlock("span",cg,i.toDisplayString(g.iconName),1)):(i.openBlock(),i.createElementBlock("img",{key:1,src:g.avatar},null,8,dg))]),i.createElementVNode("div",rg,[i.createElementVNode("div",pg,[i.createElementVNode("div",hg,i.toDisplayString(g.name),1),i.createElementVNode("div",mg,i.toDisplayString(g.phone),1),s.isBool(g.ancestorNamesList)?(i.openBlock(),i.createElementBlock("div",ug,i.toDisplayString(g.ancestorNames),1)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(g.ancestorNamesList,(C,N)=>(i.openBlock(),i.createElementBlock("div",{key:N,class:"checked-userItem-txt"},i.toDisplayString(C),1))),128)),i.createElementVNode("div",gg,[i.renderSlot(s.$slots,"user",{item:s.handleSlotUser(g)},void 0,!0)])]),g.isNoDelete?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,onClick:C=>s.handleRemove(g),class:"checked-remove"},"\u79FB\u9664",8,fg))])]))),128))])])])])):i.createCommentVNode("",!0)}const kg=$t(Yu,[["render",Ag],["__scopeId","data-v-6f85806a"]]),yg=Zt({name:"dcSwitch",props:{modelValue:{type:Boolean,default:!1},name:{type:String,default:""},activeColor:{type:String,default:"#409EFF"},inactiveColor:{type:String,default:"#c9c9c9"}},watch:{modelValue:{deep:!0,immediate:!0,handler:function(s,a){this.setColor()}}},computed:{contentCss(){let s=this.width>30?"px":"rem";return{width:this.width+s,height:this.height+s}}},methods:{switchClick(){this.$emit("update:modelValue",!this.modelValue),this.$nextTick(()=>{this.setColor()})},setColor(){this.$nextTick(()=>{if(this.activeColor||this.inactiveColor){let s=this.modelValue?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=s,this.$refs.core.style.backgroundColor=s}this.$refs.input.checked=this.modelValue})}}}),Eg=s=>(i.pushScopeId("data-v-ca60242b"),s=s(),i.popScopeId(),s),Cg={class:"x_switch_core",ref:"core"},Bg=[Eg(()=>i.createElementVNode("span",{class:"x_switch_btn"},null,-1))],Ig=["name"];function Ng(s,a,c,r,h,u){return i.openBlock(),i.createElementBlock("div",{onClick:a[0]||(a[0]=(...g)=>s.switchClick&&s.switchClick(...g)),class:i.normalizeClass(["x_switch",{"x-switch-checked":s.modelValue}])},[i.createElementVNode("span",Cg,Bg,512),i.createElementVNode("input",{type:"checkbox",class:"x-switch-input",name:s.name,ref:"input"},null,8,Ig)],2)}const bg=$t(yg,[["render",Ng],["__scopeId","data-v-ca60242b"]]),vg=Zt({name:"dcLoading"}),wg={role:"dialog",tabindex:"0",class:"dc-loading"},Tg=[i.createStaticVNode('<div class="dc-loading-section" data-v-789cc72a><div class="dc-loading-spinner" aria-live="polite" aria-busy="true" data-v-789cc72a><span data-v-789cc72a><i class="dc-loading-line dc-loading-line-1" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-2" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-3" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-4" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-5" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-6" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-7" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-8" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-9" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-10" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-11" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-12" data-v-789cc72a></i></span></div><div class="dc-loading-text" data-v-789cc72a>\u52A0\u8F7D\u4E2D...</div></div>',1)];function Vg(s,a,c,r,h,u){return i.openBlock(),i.createElementBlock("div",wg,Tg)}const Sg=$t(vg,[["render",Vg],["__scopeId","data-v-789cc72a"]]),Dg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAEpYSURBVHhe7b33nxzHdS/6/oT3bvrx3fv52O9K9pWvaFlPtmXdp2tLlCyLCpaoQImWKdqikiXLIsUgUYG2EpNIihECSTCDBEAEIpEECQJEjou42MVi8+5smg2TO82e9/1Wdc3U9PTMLoDFYgD3Ab7bPV256nzrnOr4f0giiSTSUBKCJJJIE0kIkkgiTSQhSCKJNJGEIIkk0kQSgiSSSBNJCJJIIk0kIUgiiTSRhCCJJNJEEoIkkkgTSQiSSCJNJCFII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NkEQ0Igg1V+XhyQESaSp2ERohMtZEoIkkkgTSQiSSCJNJCFIIok0kYQgiSTSRBKCJJJIE0kIkkgiTSQhSCKJNJGEIIkk0kQSgiSSSBNJCJJIIk0kIUgiiTSRhCCJJNJEEoIkkkgTSQiSSCJNJCFIIok0kYQgiSTSRBKCJJJIE0kIkkgiTSQhSCKJNJGEIIkk0kQSgiSSSBNJCJJIIk0kIUgiiTSRhCCJJNJEEoIkkkgTSQiSSCJNJCFIIok0kYQgiSTSRBKCJJJIE0kIkkgiTaRlCRL3in1uy+Vy3fFGYuKejTB+EAQ16RqVxWMsI1YQvWFYROz848pZCDFl2PnPp8xGYc3SXD4i8v8DZd42b536QnwAAAAASUVORK5CYII=",es=({isId:s=!1,name:a="",tag:c="div"})=>{if(!c)return null;const r=document.createElement(c);return a&&(s?r.id=a:r.className=a),r},Qg=({type:s,content:a,duration:c,delay:r,againBtn:h,minWidth:u,maxWidth:g},C)=>{if(!C){console.error("\u4E3B\u5BB9\u5668\u4E0D\u5B58\u5728\uFF0C\u67E5\u770B\u8C03\u7528\u6D41\u7A0B\uFF0C\u786E\u4FDDdoucument.body\u5DF2\u751F\u6210!");return}const N=Math.floor(Math.random()*(99999-10002))+10002,k={isRemove:!1,content:a||"",duration:c||3e3,delay:r||0,timeout:null,againBtn:h||!1},w=es({name:`message-${N}`,tag:"div"});if(w.style=`
|
|
10
|
+
Component that was made reactive: `,s)),Du(s,a,c,r,h,g,u,!0)}function Mu(s){return s?Gs(s)||zo in s?D({},s):s:null}function qt(s,a,c=!1){const{props:r,ref:h,patchFlag:u,children:g}=s,C=a?Ou(r||{},a):r;return{__v_isVNode:!0,__v_skip:!0,type:s.type,props:C,key:C&&Zo(C),ref:a&&a.ref?c&&h?V(h)?h.concat(_t(a)):[h,_t(a)]:_t(a):h,scopeId:s.scopeId,slotScopeIds:s.slotScopeIds,children:process.env.NODE_ENV!=="production"&&u===-1&&V(g)?g.map(_o):g,target:s.target,targetAnchor:s.targetAnchor,staticCount:s.staticCount,shapeFlag:s.shapeFlag,patchFlag:a&&s.type!==Wo?u===-1?16:u|16:u,dynamicProps:s.dynamicProps,dynamicChildren:s.dynamicChildren,appContext:s.appContext,dirs:s.dirs,transition:s.transition,component:s.component,suspense:s.suspense,ssContent:s.ssContent&&qt(s.ssContent),ssFallback:s.ssFallback&&qt(s.ssFallback),el:s.el,anchor:s.anchor,ctx:s.ctx,ce:s.ce}}function _o(s){const a=qt(s);return V(s.children)&&(a.children=s.children.map(_o)),a}function Fu(s=" ",a=0){return Qu(wu,null,s,a)}function _s(s,a){let c=0;const{shapeFlag:r}=s;if(a==null)a=null;else if(V(a))c=16;else if(typeof a=="object")if(r&65){const h=a.default;h&&(h._c&&(h._d=!1),_s(s,h()),h._c&&(h._d=!0));return}else{c=32;const h=a._;!h&&!(zo in a)?a._ctx=it:h===3&&it&&(it.slots._===1?a._=1:(a._=2,s.patchFlag|=1024))}else R(a)?(a={default:a,_ctx:it},c=32):(a=String(a),r&64?(c=16,a=[Fu(a)]):c=8);s.children=a,s.shapeFlag|=c}function Ou(...s){const a={};for(let c=0;c<s.length;c++){const r=s[c];for(const h in r)if(h==="class")a.class!==r.class&&(a.class=y([a.class,r.class]));else if(h==="style")a.style=d([a.style,r.style]);else if(T(h)){const u=a[h],g=r[h];g&&u!==g&&!(V(u)&&u.includes(g))&&(a[h]=u?[].concat(u,g):g)}else h!==""&&(a[h]=r[h])}return a}let Me=null;const qo=s=>{Me=s,s.scope.on()},xu=()=>{Me&&Me.scope.off(),Me=null};function Uu(s){return s.vnode.shapeFlag&4}function Lu(s){if(s.exposed)return s.exposeProxy||(s.exposeProxy=new Proxy($m(Xm(s.exposed)),{get(a,c){if(c in a)return a[c];if(c in Xs)return Xs[c](s)},has(a,c){return c in a||c in Xs}}))}const Ju=/(?:^|[-_])(\w)/g,Pu=s=>s.replace(Ju,a=>a.toUpperCase()).replace(/[-_]/g,"");function $o(s,a=!0){return R(s)?s.displayName||s.name:s.name||a&&s.__name}function ei(s,a,c=!1){let r=$o(a);if(!r&&a.__file){const h=a.__file.match(/([^/\\]+)\.\w+$/);h&&(r=h[1])}if(!r&&s&&s.parent){const h=u=>{for(const g in u)if(u[g]===a)return g};r=h(s.components||s.parent.type.components)||h(s.appContext.components)}return r?Pu(r):c?"App":"Anonymous"}function ti(s){return R(s)&&"__vccOpts"in s}Symbol(process.env.NODE_ENV!=="production"?"ssrContext":"");function qs(s){return!!(s&&s.__v_isShallow)}function Gu(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const s={style:"color:#3ba776"},a={style:"color:#0b1bc9"},c={style:"color:#b62e24"},r={style:"color:#9d288c"},h={header(I){return Z(I)?I.__isVue?["div",s,"VueInstance"]:_(I)?["div",{},["span",s,w(I)],"<",C(I.value),">"]:He(I)?["div",{},["span",s,qs(I)?"ShallowReactive":"Reactive"],"<",C(I),`>${We(I)?" (readonly)":""}`]:We(I)?["div",{},["span",s,qs(I)?"ShallowReadonly":"Readonly"],"<",C(I),">"]:null:null},hasBody(I){return I&&I.__isVue},body(I){if(I&&I.__isVue)return["div",{},...u(I.$)]}};function u(I){const S=[];I.type.props&&I.props&&S.push(g("props",M(I.props))),I.setupState!==p&&S.push(g("setup",I.setupState)),I.data!==p&&S.push(g("data",M(I.data)));const O=N(I,"computed");O&&S.push(g("computed",O));const F=N(I,"inject");return F&&S.push(g("injected",F)),S.push(["div",{},["span",{style:r.style+";opacity:0.66"},"$ (internal): "],["object",{object:I}]]),S}function g(I,S){return S=D({},S),Object.keys(S).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},I],["div",{style:"padding-left:1.25em"},...Object.keys(S).map(O=>["div",{},["span",r,O+": "],C(S[O],!1)])]]:["span",{}]}function C(I,S=!0){return typeof I=="number"?["span",a,I]:typeof I=="string"?["span",c,JSON.stringify(I)]:typeof I=="boolean"?["span",r,I]:Z(I)?["object",{object:S?M(I):I}]:["span",c,String(I)]}function N(I,S){const O=I.type;if(R(O))return;const F={};for(const ee in I.ctx)k(O,ee,S)&&(F[ee]=I.ctx[ee]);return F}function k(I,S,O){const F=I[O];if(V(F)&&F.includes(S)||Z(F)&&S in F||I.extends&&k(I.extends,S,O)||I.mixins&&I.mixins.some(ee=>k(ee,S,O)))return!0}function w(I){return qs(I)?"ShallowRef":I.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(h):window.devtoolsFormatters=[h]}function Ru(){Gu()}process.env.NODE_ENV!=="production"&&Ru();function b(s){return s==null||s==="null"||s==="NaN"||s==="undefined"||s.length===0}function ju(s){return b(s)?"":s?(s+"").replace(/^(\d{3})\d{4}(\d{4})$/,"$1****$2"):void 0}function $s(s,a){return b(s)?"":s.substring(s.length-a)}function Ku(s,a,c){return b(s)?"":c==="last"?s.slice(s.lastIndexOf(a)+1):s.slice(0,s.indexOf(a))}const Yu=Zt({name:"checked",props:{},data(){return{dialogVisible:!1,jsonData:[]}},watch:{visible:{deep:!0,immediate:!0,handler:function(s,a){if(!s)return!1;this.$nextTick(()=>{})}}},computed:{checkedNumber(){const s=this.jsonData.filter(u=>u.type==1).length,a=this.jsonData.filter(u=>u.type==2).length,c=this.jsonData.filter(u=>u.type==3||u.type==6).length,r=this.jsonData.filter(u=>u.type==5).length;let h=[];return s>0&&h.push(`\u7EC4\u7EC7(${s})`),r>0&&h.push(`\u7FA4\u7EC4(${r})`),a>0&&h.push(`\u90E8\u95E8(${a})`),c>0&&h.push(`\u4EBA\u5458(${c})`),b(h)?"":"\u5DF2\u9009\u62E9"+h.join("\uFF0C")},companyJson(){return this.jsonData.filter(s=>s.type==1||s.type==5)},deptJson(){return this.jsonData.filter(s=>s.type==2)},userJson(){return this.jsonData.filter(s=>s.type==3||s.type==6)}},mounted(){},methods:{init(s,a){this.dialogVisible=s,this.jsonData=a},handleRemove(s){this.jsonData=this.jsonData.filter(a=>a.uniqueId!==s.uniqueId||a.isNoDelete),this.$emit("callback",this.jsonData)},handleSlotUser(s){return{id:s.id,name:s.name,uid:s.uid}},isBool(s){return b(s)},handleClose(){this.init(!1,this.jsonData)}}}),$t=(s,a)=>{const c=s.__vccOpts||s;for(const[r,h]of a)c[r]=h;return c},Hu={key:0,class:"checked-main"},Wu={class:"checked-content"},zu={class:"checked-title"},Zu={class:"checked-name"},Xu={class:"checked-section"},_u={class:"checked-depart"},qu={class:"checked-departItem-content"},$u={class:"name"},eg=["onClick"],tg={class:"checked-departItem-content"},sg={class:"name"},ng={key:0},og={class:"content"},ig=["onClick"],ag={class:"checked-user"},lg={class:"checked-userItem-icon"},cg={key:0},dg=["src"],rg={class:"checked-userItem-content"},pg={class:"checked-userItem-left"},hg={class:"checked-userItem-name"},mg={class:"checked-userItem-phone"},ug={key:0,class:"checked-userItem-txt"},gg={class:"deper-person-slot"},fg=["onClick"];function Ag(s,a,c,r,h,u){return s.dialogVisible?(i.openBlock(),i.createElementBlock("main",Hu,[i.createElementVNode("div",{onClick:a[0]||(a[0]=(...g)=>s.handleClose&&s.handleClose(...g)),class:"checked-mask"}),i.createElementVNode("div",Wu,[i.createElementVNode("div",zu,[i.createElementVNode("div",Zu,i.toDisplayString(s.checkedNumber),1),i.createElementVNode("div",{onClick:a[1]||(a[1]=(...g)=>s.handleClose&&s.handleClose(...g)),class:"checked-btn"},"\u5173\u95ED")]),i.createElementVNode("section",Xu,[i.createElementVNode("div",_u,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.companyJson,g=>(i.openBlock(),i.createElementBlock("div",{key:g.uniqueId,class:"checked-depart-item"},[i.createElementVNode("div",qu,[i.createElementVNode("div",$u,[i.createElementVNode("span",null,i.toDisplayString(g.name),1)])]),g.isNoDelete?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,onClick:C=>s.handleRemove(g),class:"checked-remove"},"\u79FB\u9664",8,eg))]))),128)),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.deptJson,g=>(i.openBlock(),i.createElementBlock("div",{key:g.uniqueId,class:"checked-depart-item"},[i.createElementVNode("div",tg,[i.createElementVNode("div",sg,[i.createElementVNode("span",{class:i.normalizeClass({width:g.orgRecordsType==4})},i.toDisplayString(g.name),3),g.orgRecordsType==4?(i.openBlock(),i.createElementBlock("label",ng,"\u5305\u542B\u5B50\u7EA7")):i.createCommentVNode("",!0)]),i.createElementVNode("div",og,i.toDisplayString(g.ancestorNames),1)]),g.isNoDelete?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,onClick:C=>s.handleRemove(g),class:"checked-remove"},"\u79FB\u9664",8,ig))]))),128))]),i.createElementVNode("div",ag,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.userJson,g=>(i.openBlock(),i.createElementBlock("div",{key:g.uniqueId,class:"checked-user-item"},[i.createElementVNode("div",lg,[g.avatar.length<1?(i.openBlock(),i.createElementBlock("span",cg,i.toDisplayString(g.iconName),1)):(i.openBlock(),i.createElementBlock("img",{key:1,src:g.avatar},null,8,dg))]),i.createElementVNode("div",rg,[i.createElementVNode("div",pg,[i.createElementVNode("div",hg,i.toDisplayString(g.name),1),i.createElementVNode("div",mg,i.toDisplayString(g.phone),1),s.isBool(g.ancestorNamesList)?(i.openBlock(),i.createElementBlock("div",ug,i.toDisplayString(g.ancestorNames),1)):(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(g.ancestorNamesList,(C,N)=>(i.openBlock(),i.createElementBlock("div",{key:N,class:"checked-userItem-txt"},i.toDisplayString(C),1))),128)),i.createElementVNode("div",gg,[i.renderSlot(s.$slots,"user",{item:s.handleSlotUser(g)},void 0,!0)])]),g.isNoDelete?i.createCommentVNode("",!0):(i.openBlock(),i.createElementBlock("div",{key:0,onClick:C=>s.handleRemove(g),class:"checked-remove"},"\u79FB\u9664",8,fg))])]))),128))])])])])):i.createCommentVNode("",!0)}const kg=$t(Yu,[["render",Ag],["__scopeId","data-v-0472994d"]]),yg=Zt({name:"dcSwitch",props:{modelValue:{type:Boolean,default:!1},name:{type:String,default:""},activeColor:{type:String,default:"#409EFF"},inactiveColor:{type:String,default:"#c9c9c9"}},watch:{modelValue:{deep:!0,immediate:!0,handler:function(s,a){this.setColor()}}},computed:{contentCss(){let s=this.width>30?"px":"rem";return{width:this.width+s,height:this.height+s}}},methods:{switchClick(){this.$emit("update:modelValue",!this.modelValue),this.$nextTick(()=>{this.setColor()})},setColor(){this.$nextTick(()=>{if(this.activeColor||this.inactiveColor){let s=this.modelValue?this.activeColor:this.inactiveColor;this.$refs.core.style.borderColor=s,this.$refs.core.style.backgroundColor=s}this.$refs.input.checked=this.modelValue})}}}),Eg=s=>(i.pushScopeId("data-v-ca60242b"),s=s(),i.popScopeId(),s),Cg={class:"x_switch_core",ref:"core"},Bg=[Eg(()=>i.createElementVNode("span",{class:"x_switch_btn"},null,-1))],Ig=["name"];function Ng(s,a,c,r,h,u){return i.openBlock(),i.createElementBlock("div",{onClick:a[0]||(a[0]=(...g)=>s.switchClick&&s.switchClick(...g)),class:i.normalizeClass(["x_switch",{"x-switch-checked":s.modelValue}])},[i.createElementVNode("span",Cg,Bg,512),i.createElementVNode("input",{type:"checkbox",class:"x-switch-input",name:s.name,ref:"input"},null,8,Ig)],2)}const bg=$t(yg,[["render",Ng],["__scopeId","data-v-ca60242b"]]),vg=Zt({name:"dcLoading"}),wg={role:"dialog",tabindex:"0",class:"dc-loading"},Tg=[i.createStaticVNode('<div class="dc-loading-section" data-v-789cc72a><div class="dc-loading-spinner" aria-live="polite" aria-busy="true" data-v-789cc72a><span data-v-789cc72a><i class="dc-loading-line dc-loading-line-1" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-2" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-3" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-4" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-5" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-6" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-7" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-8" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-9" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-10" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-11" data-v-789cc72a></i><i class="dc-loading-line dc-loading-line-12" data-v-789cc72a></i></span></div><div class="dc-loading-text" data-v-789cc72a>\u52A0\u8F7D\u4E2D...</div></div>',1)];function Vg(s,a,c,r,h,u){return i.openBlock(),i.createElementBlock("div",wg,Tg)}const Sg=$t(vg,[["render",Vg],["__scopeId","data-v-789cc72a"]]),Dg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAAEpYSURBVHhe7b33nxzHdS/6/oT3bvrx3fv52O9K9pWvaFlPtmXdp2tLlCyLCpaoQImWKdqikiXLIsUgUYG2EpNIihECSTCDBEAEIpEECQJEjou42MVi8+5smg2TO82e9/1Wdc3U9PTMLoDFYgD3Ab7bPV256nzrnOr4f0giiSTSUBKCJJJIE0kIkkgiTSQhSCKJNJGEIIkk0kQSgiSSSBNJCJJIIk0kIUgiiTSRhCCJJNJEEoIkkkgTSQiSSCJNJCFIIok0kYQgiSTSRBKCJJJIE0kIkkgiTSQhSCKJNJGEIIkk0kQSgiSSSBNJCJJIIk0kIUgiiTSRhCCJJNJEEoIkkkgTSQiSSCJNJCFIIok0kYQgiSTSRBKCJJJIE0kIkkgiTSQhSCKJNJGEIIkk0kQSgiSSSBNJCJJIIk0kIUgiiTSRhCAXXWYjsCUapsP5t6z2ErnQkhDkogjVG5glAsDXKGO/DPVXxxkHxxRcwMExT5EDsRKCLJIkBGkVMQaCCDckARHgVzkMUMfxJ4yWyAWWhCAXUbxgVvKeBVcjh30iS/izkvHLass4JdeXIKCFSSiyGPLviyDUKYMWkOGMKweGPDkw6AOBHLRwYAgY9mQ/sC/EwSFXjvTnJJ1zalwsY2mMJNRZOLnMCUL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,name:a="",tag:c="div"})=>{if(!c)return null;const r=document.createElement(c);return a&&(s?r.id=a:r.className=a),r},Qg=({type:s,content:a,duration:c,delay:r,againBtn:h,minWidth:u,maxWidth:g},C)=>{if(!C){console.error("\u4E3B\u5BB9\u5668\u4E0D\u5B58\u5728\uFF0C\u67E5\u770B\u8C03\u7528\u6D41\u7A0B\uFF0C\u786E\u4FDDdoucument.body\u5DF2\u751F\u6210!");return}const N=Math.floor(Math.random()*(99999-10002))+10002,k={isRemove:!1,content:a||"",duration:c||3e3,delay:r||0,timeout:null,againBtn:h||!1},w=es({name:`message-${N}`,tag:"div"});if(w.style=`
|
|
11
11
|
min-width: 100px;
|
|
12
12
|
max-width:70%;
|
|
13
13
|
padding: 8px 12px;
|
|
@@ -39,4 +39,4 @@ Component that was made reactive: `,s)),Du(s,a,c,r,h,g,u,!0)}function Mu(s){retu
|
|
|
39
39
|
left:0;
|
|
40
40
|
right:0;
|
|
41
41
|
margin: 0 auto;
|
|
42
|
-
`,document.body.appendChild(this.mainContainer)}message(a={}){let c=sessionStorage.getItem(this.sessionStorageName),r=c?JSON.parse(c):null;if(a.againBtn&&a.content&&r&&Array.isArray(r)&&r.includes(a.content))return;const h=Qg({type:a.type,content:a.content,duration:a.duration,delay:a.delay,againBtn:a.againBtn,minWidth:this.minWidth,maxWidth:this.maxWidth},this.mainContainer);this.mainContainer.appendChild(h.els),en(this.mainContainer),Mg(h,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const Fg=Zt({components:{checked:kg,dcSwitch:bg,dcLoading:Sg},name:"departPerson",props:{visible:{type:Boolean,default:!1},isTitle:{type:Boolean,default:!0},source:{type:String,default:"0"},type:{type:String,default:"0"},request:{type:Function,default:()=>({get:()=>{},post:()=>{}})},businessId:{type:String,default:""},orgType:{type:Array,default:()=>[0]},codeType:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},deptCode:{type:String,default:""},itemCode:{type:String,default:""},subjectName:{type:String,default:""},checkedArray:{type:Array,default:()=>[]},maxMultiple:{type:Number,default:0},businessCallack:{type:Function,default:()=>new Promise((s,a)=>{s(!0)})}},data(){return{isSon:!1,deptId:"",subjectId:"",jsonData:[],breadcrumb:[],checkedJson:[],keyword:"",isQuery:!0,isLoading:!1,checkedAll:!1,isShowChecked:!1,activeOrgType:0}},watch:{visible:{deep:!0,immediate:!0,handler:function(s,a){if(!s)return!1;b(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})}},isSon:{deep:!0,handler:function(s,a){let c=[];const r=this.checkedJson.map(h=>{const u=this.entityJson.findIndex(g=>g.id===h.id&&h.type==g.type&&h.type==2)>-1?s&&h.type==2?"4":h.type:h.orgRecordsType;return(u==4||h.type==1)&&c.push(h.id),{...h,orgRecordsType:u}});this.checkedJson=r.filter(h=>h.ancestors.split(",").findIndex(u=>c.indexOf(u)>-1)===-1)}},checkedArray:{deep:!0,immediate:!0,handler:function(s,a){b(this.businessId)&&this.getCards()}}},computed:{queryImg(){return Dg},entityJson(){const s=this.checkedJson;return this.jsonData.map(a=>{const c=b(a.ancestors)?"":a.ancestors,r=b(a.ancestorNames)?"":a.ancestorNames,h=c+a.id+"__"+a.type,u=s.find(I=>I.uniqueId===h),g=!b(u),C=g?!1:s.findIndex(I=>I.id===a.id&&a.subjectId===I.subjectId)>-1,N=g?a.type==1||u.orgRecordsType==4:!1,k=b(s)?0:N?a.counts:s.filter(I=>I.type!=1&&I.ancestors.indexOf(a.id)>-1).length,w=g?u.isNoDelete:!1;return{type:a.type,id:a.id,name:a.name,counts:b(a.counts)?0:a.counts,num:k,phone:ju(a.phone),uid:a.uid,iconName:$s(a.name,2),checked:g,ancestors:c,ancestorNames:r,deptName:Ku(a.ancestorNames,"/",this.activeOrgType==0?"last":"find"),uniqueId:h,isDisabled:C,isLevel:N,subjectId:a.subjectId,sex:a.sex,avatar:b(a.avatar)?"":a.avatar,isNoDelete:w}})},companyJson(){return this.entityJson.filter(s=>s.type==1||s.type==5)},deptJson(){return this.entityJson.filter(s=>s.type==2)},userJson(){return this.entityJson.filter(s=>s.type==3||s.type==6)},checkedNumber(){const s=this.checkedJson.filter(u=>u.type==1).length,a=this.checkedJson.filter(u=>u.type==2).length,c=this.checkedJson.filter(u=>u.type==3||u.type==6).length,r=this.checkedJson.filter(u=>u.type==5).length;let h=[];return s>0&&h.push(s+"\u4E2A\u7EC4\u7EC7"),r>0&&h.push(r+"\u4E2A\u7FA4\u7EC4"),a>0&&h.push(a+"\u4E2A\u90E8\u95E8"),c>0&&h.push(c+"\u4E2A\u6210\u5458"),b(h)?"":"\u5DF2\u9009\u62E9"+h.join("\uFF0C")},breadcrumb_subjectId(){const s=this.breadcrumb.filter((a,c)=>a.value!=="-1");return b(s)?"":s[0].value},breadcrumb_level(){const s=this.breadcrumb.filter((a,c)=>a.value!=="-1");return{ancestors:s.map(a=>a.value).join(","),ancestorNames:s.map(a=>a.name).join("/")}},isDept(){return this.jsonData.findIndex(s=>s.type==2)>-1&&this.isShowDept},isShowSubject(){return this.codeType.findIndex(s=>s==1||s==5)>-1},isShowDept(){return this.codeType.findIndex(s=>s==2)>-1},isNotLevel(){return this.isShowSubject&&this.codeType.length===1},isShowQuery(){return this.codeType.findIndex(s=>s==3||s==6)>-1},getHight(){let s=194;return this.isShowQuery&&(s+=55),this.isDept&&(s+=45),this.orgType.length>1&&(s+=45),`calc(100% - ${s}px)`},getSearchHight(){let s=136;return this.orgType.length>1&&(s+=45),`calc(100% - ${s}px)`},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":this.codeType.length==1&&this.codeType[0]==5?"\u9009\u62E9\u7FA4\u7EC4":"\u9009\u62E9\u7EC4\u7EC7"},isNoDelete(){return b(this.checkedArray)?[]:this.checkedArray.filter(s=>s.isDeleteNo)},isOrgType(){return!!(b(this.orgType)||this.orgType.findIndex(s=>s===0)>-1)},isOrgGroup(){return this.orgType.findIndex(s=>s===1)>-1},showType(){if(this.activeOrgType===0)return this.codeType.findIndex(s=>s==3)>-1?3:this.codeType.findIndex(s=>s==2)>-1?2:this.codeType.findIndex(s=>s==1)>-1?1:-1;if(this.activeOrgType===1)return this.codeType.findIndex(s=>s==6)>-1?6:this.codeType.findIndex(s=>s==5)>-1?5:-1}},mounted(){this.isTitle&&(document.title=this.getTitle),b(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})},methods:{handleSubmit(){if(this.isLoading)return!1;const s=b(this.checkedJson)?[]:this.checkedJson.map(c=>({type:c.orgRecordsType,id:c.id,name:c.name,ancestors:c.ancestors,ancestorNames:c.ancestorNames,subjectId:c.subjectId,phone:b(c.phone)?"":c.phone,sex:c.sex,avatar:c.avatar,uid:b(c.uid)?"":c.uid}));if(b(this.businessId))return this.$emit("callback",s);const a={businessId:this.businessId,orgRecords:this.checkedJson.map(c=>({type:c.orgRecordsType,bizId:c.id,ancestors:c.ancestors,ancestorNames:c.ancestorNames,uid:c.uid}))};this.isLoading=!0,this.businessCallack(s).then(c=>{c&&this.request.post("/auth/component/org/save",a).then(r=>{r.code===200&&this.$emit("callback",s)}).finally(()=>{this.isLoading=!1})}).catch(c=>{this.isLoading=!1})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){switch(this.activeOrgType){case 0:this.itemId="";break;case 1:this.deptId=0,this.subjectId="";break}this.getSearch(()=>{this.isQuery=b(this.keyword)})},handleOrgType(s){this.activeOrgType=s,this.keyword="",this.handleQuery(),this.defaultBreadcrumb()},handleAllCheckbox(s){(this.isShowDept?this.entityJson:this.entityJson.filter(a=>a.type!=2)).forEach(a=>this.handleCheckbox(s,a))},handleCheckbox(s,a){if(a.isDisabled||a.isNoDelete||(a.type==1||a.type==5)&&!this.isShowSubject||a.type==2&&!this.isShowDept)return!1;if(s.currentTarget.checked){if(this.checkedJson.findIndex(g=>g.uniqueId===a.uniqueId)!=-1)return!1;const c=a.type==1?"0":a.ancestors,r=a.type==1?"":a.ancestorNames,h=this.isDept&&this.isSon&&a.type==2?"4":a.type,u={...a,ancestors:c,ancestorNames:r,orgRecordsType:h};return(a.type==1||h==4)&&(this.checkedJson=this.checkedJson.filter(g=>g.ancestors.indexOf(a.id)===-1)),this.getBoolChecked(a)?(s.currentTarget.checked=!1,!1):this.maxMultiple!==0&&this.checkedJson.length>=this.maxMultiple&&this.multiple?(s.currentTarget.checked=!1,new tn().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(u):this.checkedJson=[u],!1)}this.checkedJson=this.checkedJson.filter(c=>c.uniqueId!==a.uniqueId)},handleBreadcrumb(s,a){if(s.disable||a+1==this.breadcrumb.length)return!1;switch(this.activeOrgType){case 0:this.deptId=a===0?this.deptCode:a===1&&b(this.deptCode)?0:s.value,this.itemId="",this.subjectId=s.value==="-1"?"":this.breadcrumb_subjectId;break;case 1:this.itemId=b(this.itemCode)?s.value==="-1"?"":s.value:itemCode,this.deptId=0,this.subjectId="";break}this.keyword="",this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((c,r)=>r<a+1)})},handleLevel(s){if(s.isDisabled||s.isLevel)return!1;switch(s.type){case"1":this.deptId=0,this.subjectId=s.id,this.itemId="",this.getSearch(()=>{this.breadcrumb.push({name:s.name,value:s.id})});break;case"2":this.deptId=s.id,this.subjectId=this.breadcrumb_subjectId,this.itemId="",this.getSearch(()=>{this.breadcrumb.push({name:s.name,value:s.id})});break;case"5":this.deptId=0,this.subjectId="",this.itemId=s.id,this.getSearch(()=>{this.breadcrumb.push({name:s.name,value:s.id})});break}},getBoolChecked(s){if(s.type!=3)return!1;const a=s.ancestors.split(","),c=this.checkedJson.filter(h=>h.type==2||h.type==1).find(h=>a.indexOf(h.id)>-1);let r=!1;return b(c)||(c.type==1&&(new tn().message({content:`\u5DF2\u9009\u7684\u7EC4\u7EC7\u3010${c.name}\u3011\u5B58\u5728${s.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),r=!0),c.type==4&&(new tn().message({content:`\u5DF2\u9009\u7684\u90E8\u95E8\u3010${c.name}\u3011\u5B58\u5728${s.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),r=!0)),r},defaultData(){this.deptId=this.deptCode,this.subjectId="",this.itemId=this.itemCode,this.isSon=!1,this.jsonData=[],this.keyword="",this.isQuery=!0,this.isLoading=!1,this.activeOrgType=this.isOrgType?0:this.isOrgGroup?1:"",this.defaultBreadcrumb()},defaultBreadcrumb(){const s=this.activeOrgType===0?"\u7EC4\u7EC7":this.activeOrgType===1?"\u7FA4\u7EC4":"";this.breadcrumb=b(this.deptCode)&&b(this.itemCode)?[{name:s,value:"-1"}]:[]},defaultGet(){this.defaultData(),b(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})},getIsSon(){const s=this.entityJson.filter(c=>c.type==2),a=this.checkedJson.filter(c=>c.type==2);this.isSon=a.findIndex(c=>s.findIndex(r=>r.id===c.id&&c.orgRecordsType==4)>-1)>-1},getCheckedAll(){const s=this.entityJson.findIndex(a=>this.checkedJson.findIndex(c=>c.type===a.type&&c.id===a.id&&a.subjectId===c.subjectId)===-1);this.checkedAll=s===-1},getSearch(s=()=>{}){const a={source:this.source,type:this.type,deptId:this.deptId,subjectId:this.subjectId,keyword:this.keyword,showType:this.showType,orgType:this.activeOrgType,itemId:this.itemId};b(a.deptId)&&delete a.deptId,b(a.subjectId)&&delete a.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:a}).then(c=>{s(),this.jsonData=b(c.data)||c.code!==200?[]:c.data;const r=this.breadcrumb.filter(h=>h.value!=="-1");if(!b(this.jsonData)&&b(r)&&(!b(this.deptCode)||!b(this.itemCode)||!b(this.subjectName))){const h=c.data[0];let u=h.ancestors.split(",");b(this.itemCode)||u.pop(),this.breadcrumb=u.map((g,C)=>({value:g,name:h.ancestorNames.split("/")[C],disable:C!==u.length-1&&u.length!==0}))}this.getIsSon(),this.getCheckedAll()}).finally(()=>{this.isLoading=!1})},getDetail(s=()=>{}){if(b(this.businessId))return s(),!1;const a={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:a}).then(c=>{this.checkedJson=b(c.data)||c.code!==200?[]:c.data.map(r=>{const h=r.type==4?"2":r.type,u=r.type==1?"":r.ancestors,g=u+r.bizId+"__"+h,C=this.isNoDelete.findIndex(N=>N.id===r.id||N.uid===r.uid)>-1;return{...r,ancestors:u,id:r.bizId,type:h,uniqueId:g,orgRecordsType:r.type,iconName:$s(r.name,2),sex:r.sex,uid:b(r.uid)?"":r.uid,avatar:b(r.avatar)?"":r.avatar,isNoDelete:C}}),s()})},getCards(s=()=>{}){if(b(this.checkedArray))return s(),this.checkedJson=[];const a=this.checkedArray.map(c=>({type:c.type,id:b(c.id)?null:c.id,uid:b(c.uid)?null:c.uid,subjectId:b(c.subjectId)?null:c.subjectId,deptId:b(c.deptId)?null:c.deptId,itemId:b(c.itemId)?null:c.itemId,orgIds:b(this.orgType)?[0]:this.orgType}));this.request.post("/auth/component/org/cards",{params:a}).then(c=>{this.checkedJson=b(c.data)||c.code!==200?[]:c.data.map(r=>{const h=r.type==4?"2":r.type,u=r.type==1?"":r.ancestors,g=r.type==1?"":r.ancestorNames,C=u+r.id+"__"+h,N=this.isNoDelete.findIndex(k=>k.id===r.id||k.uid===r.uid)>-1;return{...r,ancestors:u,ancestorNames:g,id:r.id,type:h,uniqueId:C,orgRecordsType:r.type,iconName:$s(r.name,2),sex:r.sex,uid:b(r.uid)?"":r.uid,avatar:b(r.avatar)?"":r.avatar,isNoDelete:N}}),s()})},getByName(s=()=>{}){const a={name:this.subjectName};this.request.get("/auth/component/org/subject/getByName",{params:a}).then(c=>{console.log("getByName",c),c.code===200&&(this.subjectId=c.data,s())})}}}),Og={class:"departPerson-main"},xg={class:"deper-top"},Ug={key:0,class:"deper-nav"},Lg={class:"deper-query"},Jg=i.createElementVNode("i",{class:"icon-chaxun iconfont chaxun"},null,-1),Pg={key:1,class:"deper-breadcrumb"},Gg=["onClick"],Rg=i.createElementVNode("i",{class:"icon-jiantouyou iconfont"},null,-1),jg={key:2,class:"deper-all"},Kg=i.createElementVNode("label",{class:"label",for:"deper-all"},"\u5168\u9009",-1),Yg={key:0,class:"deper-c-depart"},Hg=["disabled","onUpdate:modelValue","onChange"],Wg={class:"depart-name"},zg={class:"name"},Zg={key:0,class:"number"},Xg={class:"label"},_g={key:1,class:"number"},qg=["onClick"],$g=[i.createElementVNode("i",{class:"icon-pedigree iconfont"},null,-1),i.createElementVNode("span",null,"\u4E0B\u7EA7",-1)],ef={key:1,class:"deper-c-depart"},tf=["disabled","onUpdate:modelValue","onChange"],sf={class:"depart-name"},nf={class:"name"},of={key:0,class:"number"},af={class:"label"},lf={key:1,class:"number"},cf=["onClick"],df=[i.createElementVNode("i",{class:"icon-pedigree iconfont"},null,-1),i.createElementVNode("span",null,"\u4E0B\u7EA7",-1)],rf={key:2,class:"deper-c-user"},pf=["disabled","onUpdate:modelValue","onChange"],hf={class:"user-icon"},mf={key:0},uf=["src"],gf={class:"user-name"},ff={class:"span"},Af={class:"phone"},kf={class:"deper-search-section"},yf={class:"search-user"},Ef=i.createElementVNode("div",{class:"search-title"},"\u8054\u7CFB\u4EBA",-1),Cf=["onUpdate:modelValue","disabled","onChange"],Bf={class:"user-icon"},If={key:0},Nf=["src"],bf={class:"user-name"},vf={class:"span"},wf={class:"phone"},Tf={class:"txt"},Vf={key:2,class:"deper-son"},Sf=i.createElementVNode("span",null,"\u5305\u542B\u5B50\u7EA7",-1),Df={class:"deper-bottom"},Qf={key:0,class:"icon-jiantouyou iconfont"};function Mf(s,a,c,r,h,u){const g=i.resolveComponent("dc-switch"),C=i.resolveComponent("checked"),N=i.resolveComponent("dcLoading");return i.openBlock(),i.createElementBlock("main",Og,[i.createElementVNode("div",xg,[s.orgType.length>1?(i.openBlock(),i.createElementBlock("div",Ug,[s.isOrgType?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:a[0]||(a[0]=k=>s.handleOrgType(0)),class:i.normalizeClass([{active:s.activeOrgType===0},"deper-n-item"])},"\u7EC4\u7EC7",2)):i.createCommentVNode("",!0),s.isOrgGroup?(i.openBlock(),i.createElementBlock("div",{key:1,onClick:a[1]||(a[1]=k=>s.handleOrgType(1)),class:i.normalizeClass([{active:s.activeOrgType===1},"deper-n-item"])},"\u7FA4\u7EC4",2)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",Lg,[i.createElementVNode("form",{class:"form",onSubmit:a[5]||(a[5]=i.withModifiers(()=>{},["prevent"])),action:"javascript: void(0);"},[Jg,i.withDirectives(i.createElementVNode("input",{class:"input",onKeyup:a[2]||(a[2]=i.withKeys((...k)=>s.handleQuery&&s.handleQuery(...k),["enter"])),"onUpdate:modelValue":a[3]||(a[3]=k=>s.keyword=k),type:"search",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u3001\u624B\u673A\u53F7\u7801"},null,544),[[i.vModelText,s.keyword]]),s.keyword.length>0?(i.openBlock(),i.createElementBlock("i",{key:0,onClick:a[4]||(a[4]=(...k)=>s.handleEmpty&&s.handleEmpty(...k)),class:"icon-error-fill iconfont close"})):i.createCommentVNode("",!0)],32)],512),[[i.vShow,s.isShowQuery]]),s.isQuery?(i.openBlock(),i.createElementBlock("div",Pg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.breadcrumb,(k,w)=>(i.openBlock(),i.createElementBlock("div",{onClick:I=>s.handleBreadcrumb(k,w),key:k.value,class:i.normalizeClass([{disable:k.disable},"deper-b-item"])},[i.createElementVNode("span",null,i.toDisplayString(k.name),1),Rg],10,Gg))),128))])):i.createCommentVNode("",!0),s.isQuery?(i.openBlock(),i.createElementBlock("div",jg,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":a[6]||(a[6]=k=>s.checkedAll=k),onChange:a[7]||(a[7]=(...k)=>s.handleAllCheckbox&&s.handleAllCheckbox(...k)),class:"deper-checkbox",type:"checkbox",name:"deper-all",id:"deper-all"},null,544),[[i.vModelCheckbox,s.checkedAll]]),Kg])):i.createCommentVNode("",!0)]),s.isQuery?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle({height:s.getHight}),class:"deper-center"},[s.companyJson.length>0?(i.openBlock(),i.createElementBlock("div",Yg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.companyJson,k=>(i.openBlock(),i.createElementBlock("div",{key:k.uniqueId,class:"depart-item"},[i.createElementVNode("label",{class:i.normalizeClass([{width:s.isNotLevel,isNoDelete:k.isNoDelete},"depart-left"])},[i.withDirectives(i.createElementVNode("input",{disabled:k.isDisabled||k.isNoDelete,"onUpdate:modelValue":w=>k.checked=w,onChange:w=>s.handleCheckbox(w,k),class:"deper-checkbox",type:"checkbox"},null,40,Hg),[[i.vShow,s.isShowSubject],[i.vModelCheckbox,k.checked]]),i.createElementVNode("div",Wg,[i.createElementVNode("div",zg,i.toDisplayString(k.name),1),k.num>0?(i.openBlock(),i.createElementBlock("div",Zg,[i.createTextVNode("("),i.createElementVNode("label",Xg,i.toDisplayString(k.num)+"/"+i.toDisplayString(k.counts),1),i.createTextVNode(")")])):(i.openBlock(),i.createElementBlock("div",_g,"("+i.toDisplayString(k.counts)+")",1))])],2),!s.isNotLevel&&k.counts>0?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:w=>s.handleLevel(k),class:i.normalizeClass([{isdisabled:k.isLevel},"depart-right"])},$g,10,qg)):i.createCommentVNode("",!0)]))),128))])):i.createCommentVNode("",!0),s.deptJson.length>0?(i.openBlock(),i.createElementBlock("div",ef,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.deptJson,k=>(i.openBlock(),i.createElementBlock("div",{key:k.uniqueId,class:"depart-item"},[i.createElementVNode("label",{class:i.normalizeClass([{isNoDelete:k.isNoDelete},"depart-left"])},[i.withDirectives(i.createElementVNode("input",{disabled:k.isDisabled||k.isNoDelete,"onUpdate:modelValue":w=>k.checked=w,onChange:w=>s.handleCheckbox(w,k),class:"deper-checkbox",type:"checkbox"},null,40,tf),[[i.vShow,s.isShowDept],[i.vModelCheckbox,k.checked]]),i.createElementVNode("div",sf,[i.createElementVNode("div",nf,i.toDisplayString(k.name),1),k.num>0?(i.openBlock(),i.createElementBlock("div",of,[i.createTextVNode("("),i.createElementVNode("label",af,i.toDisplayString(k.num)+"/"+i.toDisplayString(k.counts),1),i.createTextVNode(")")])):(i.openBlock(),i.createElementBlock("div",lf,"("+i.toDisplayString(k.counts)+")",1))])],2),k.counts>0?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:w=>s.handleLevel(k),class:i.normalizeClass([{isdisabled:k.isLevel},"depart-right"])},df,10,cf)):i.createCommentVNode("",!0)]))),128))])):i.createCommentVNode("",!0),s.userJson.length>0?(i.openBlock(),i.createElementBlock("div",rf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.userJson,k=>(i.openBlock(),i.createElementBlock("label",{key:k.uniqueId,class:i.normalizeClass([{isNoDelete:k.isNoDelete},"user-item"])},[i.withDirectives(i.createElementVNode("input",{disabled:k.isDisabled||k.isNoDelete,"onUpdate:modelValue":w=>k.checked=w,onChange:w=>s.handleCheckbox(w,k),class:"deper-checkbox",type:"checkbox"},null,40,pf),[[i.vModelCheckbox,k.checked]]),i.createElementVNode("div",hf,[k.avatar.length<1?(i.openBlock(),i.createElementBlock("span",mf,i.toDisplayString(k.iconName),1)):(i.openBlock(),i.createElementBlock("img",{key:1,src:k.avatar},null,8,uf))]),i.createElementVNode("div",gf,[i.createElementVNode("div",ff,i.toDisplayString(k.name),1),i.createElementVNode("div",Af,i.toDisplayString(k.phone),1)])],2))),128))])):i.createCommentVNode("",!0)],4)):(i.openBlock(),i.createElementBlock("div",{key:1,style:i.normalizeStyle({height:s.getSearchHight}),class:"deper-search"},[i.createCommentVNode("",!0),i.createElementVNode("div",kf,[i.createCommentVNode("",!0),i.createElementVNode("div",yf,[Ef,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.userJson,k=>(i.openBlock(),i.createElementBlock("label",{key:k.uniqueId,class:"user-item"},[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":w=>k.checked=w,disabled:k.isDisabled,onChange:w=>s.handleCheckbox(w,k),class:"deper-checkbox",type:"checkbox"},null,40,Cf),[[i.vModelCheckbox,k.checked]]),i.createElementVNode("div",Bf,[k.avatar.length<1?(i.openBlock(),i.createElementBlock("span",If,i.toDisplayString(k.iconName),1)):(i.openBlock(),i.createElementBlock("img",{key:1,src:k.avatar},null,8,Nf))]),i.createElementVNode("div",bf,[i.createElementVNode("div",vf,i.toDisplayString(k.name),1),i.createElementVNode("div",wf,i.toDisplayString(k.phone),1),i.createElementVNode("div",Tf,i.toDisplayString(k.ancestorNames),1)])]))),128))])])],4)),s.isDept?(i.openBlock(),i.createElementBlock("div",Vf,[Sf,i.createVNode(g,{modelValue:s.isSon,name:"isSone"},null,8,["modelValue"])])):i.createCommentVNode("",!0),i.createElementVNode("div",Df,[i.createElementVNode("div",{onClick:a[8]||(a[8]=k=>s.isShowChecked=!0),class:"deper-b-checked"},[i.createElementVNode("span",null,i.toDisplayString(s.checkedNumber),1),s.checkedNumber.length>0?(i.openBlock(),i.createElementBlock("i",Qf)):i.createCommentVNode("",!0)]),i.createElementVNode("div",{onClick:a[9]||(a[9]=(...k)=>s.handleSubmit&&s.handleSubmit(...k)),class:"deper-b-btn"},"\u786E\u5B9A")]),i.createVNode(C,{visible:s.isShowChecked,checkedJson:s.checkedJson},{user:i.withCtx(({item:k})=>[i.renderSlot(s.$slots,"checkedUser",{item:k})]),_:3},8,["visible","checkedJson"]),s.isLoading?(i.openBlock(),i.createBlock(N,{key:3})):i.createCommentVNode("",!0)])}const Ff=$t(Fg,[["render",Mf]]);o.departPerson=Ff,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(me,me.exports);const Hc=pe({name:"TopSubmitPopup",components:{TopPopup:$,TopDownSelect:lo,PreviewImage:ws,departPerson:me.exports.departPerson,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},selfList:{type:Array,default:()=>[]}},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,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:"",btnLoading:!1}},watch:{visible:{async handler(e,n){this.show=e,this.$emit("update:visible",this.show),e&&this.handleOption()}},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},selfList:{handler(e,n){e&&e.length&&(this.option=e,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option))},immediate:!0,deep:!0},resubmit:{handler(e,n){e&&this.getProcessInstance()}}},methods:{async handleOption(){this.checkedItem={},this.firstPerson=[],this.personList=[],!(this.selfList&&this.selfList.length)&&(this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId,processGroupName:this.processNameData}}).then(e=>{e.code==200&&(this.option=e.data,e.data&&e.data.length?(this.handleTips("",!0,"success"),this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getProcessInstance(),this.getDiagramUrl()):(this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",!0,"error"),this.option=[]))}))},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,this.processId&&this.option.map((n,o)=>{n.id===e.data.processDefId&&(this.checkedItem=n,this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl())}))})},async handlefirstNode(e){e&&await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:e}}).then(n=>{n.code===200?(this.firstPerson=n.data,this.getAfferentParticipantNodeList()):(this.firstPerson=[],this.getAfferentParticipantNodeList())}).catch(n=>{this.firstPerson=[],this.getAfferentParticipantNodeList()})},async handleChange(e,n){this.handleTips("",!0,"loading"),console.log("\u5F53\u524D\u9009\u62E9::::",e,n),this.checkedItem=e,this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl(),this.$emit("change",e,n),this.$refs.topTips.handleClose()},async getAfferentParticipantNodeList(){await this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.firstPerson&&this.firstPerson.length&&(console.log("\u9009\u4E2D\u8282\u70B9L::",this.personList,this.firstPerson),this.personList=e.data.filter(n=>!this.firstPerson.some(o=>o.id==n.id))),this.$emit("change",this.checkedItem,this.option)),this.$refs.topTips.handleClose()})},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,this.humanPerformerName=e.humanPerformerName,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),checkedArray:[]},console.log(this.multiNodeParticipant[e.id]),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(n=>({uid:n.uid,type:n.type,deptId:this.handleLastStr(n.ancestors,n.subjectId)})):this.entity.checkedArray=[];else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let n;e.routeTxt.departmentIds.map((o,i)=>{n=o.rangeId}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],deptCode:n,multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality)},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(o=>({uid:o.uid,type:o.type,deptId:n})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let n;e.routeTxt.companyIds.map((o,i)=>{n=o.name}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),subjectName:n},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(o=>({uid:o.uid,type:o.type,deptId:this.handleLastStr(o.ancestors,o.subjectId),subjectName:o.ancestorNames.slice(0,o.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]}},handleCallback(e){console.log("\u53C2\u6570::::",e),this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(n=>({uid:n.uid,type:n.type,deptId:this.handleLastStr(n.ancestors,n.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?n.ancestorNames.slice(0,n.ancestorNames.indexOf("/")):""})),this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.personObjId].push(n.uid),this.partNode[this.personObjId].push(n.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,n){return e.split(",")[e.split(",").length-1]!==n?e.split(",")[e.split(",").length-1]:""},async handleSumbit(){if(!this.btnLoading){if(this.btnLoading=!0,this.firstPerson&&this.firstPerson.length&&!this.firstPerson[0].routeTxt.userNames&&this.firstPerson[0].humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&this.firstPerson[0].humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"&&(!this.multiNodeParticipant[this.firstPerson[0].id]||!this.multiNodeParticipant[this.firstPerson[0].id].length)){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error"),this.btnLoading=!1;return}this.beforeFunction&&(await this.beforeFunction(),this.manual&&(this.btnLoading=!1)),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})}},handleSongshen(){if(this.btnLoading=!0,this.resubmit)this.handleTips("",!0,"loading"),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.btnLoading=!1):(this.handleTips(e.msg,!0,"error"),this.btnLoading=!1)}).catch(e=>{this.handleTips(e.msg,!0,"error"),this.btnLoading=!1});else{this.handleTips("",!0,"loading");let e={title:this.titleData,processDefId:this.checkedItem.id,processBusinessKey:this.idData,showType:this.showType,businessType:this.businessTypeData,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameterData};if(!this.checkedItem.id){this.$refs.topTips.handleClose(),this.btnLoading=!1;return}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"),this.btnLoading=!1):n.code==499?this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(o=>{o.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(o.msg,!0,"error"),this.btnLoading=!1)}).catch(o=>{this.handleTips(o.msg,!0,"error"),this.btnLoading=!1}):(this.handleTips(n.msg,!0,"error"),this.btnLoading=!1)}).catch(n=>{this.handleTips(n.msg,!0,"error"),this.btnLoading=!1})}},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips&&this.$refs.topTips.handleOpen()}}}),Zf="",Wc=e=>(t.pushScopeId("data-v-7570a556"),e=e(),t.popScopeId(),e),zc={key:1,class:"person-views"},Zc={class:"views-items"},Xc={class:"views-items-name"},_c=Wc(()=>t.createElementVNode("span",{class:"views-items-name--re"},"*",-1)),qc={class:"views-items-set"},$c={key:0},ed={key:0},td={key:1},sd={key:2},nd=["onClick"],od={key:2,class:"person-views"},id={class:"views-items"},ad={class:"views-items-name"},ld={class:"views-items-set"},cd={key:0},dd={key:0},rd={key:1},pd=["onClick"],hd={key:3,class:"person-views-white"},md={class:"person-btn"};function ud(e,n,o,i,l,d){const m=t.resolveComponent("TopDownSelect"),A=t.resolveComponent("TopPopup"),f=t.resolveComponent("departPerson"),E=t.resolveComponent("PreviewImage"),y=t.resolveComponent("TopTips");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(A,{visible:e.show,"onUpdate:visible":n[2]||(n[2]=p=>(e.show=p,e.$emit("update:visible",p))),ref:"TopPopup",titleText:"\u9001\u5BA1",isDrawer:"",isIndex:99,className:"sumbmitPopup-index sumbmitPopup-index-sumbit"},{default:t.withCtx(()=>[t.createVNode(m,{option:e.option,onChange:e.handleChange,defaultValue:e.selectDefaultValue},null,8,["option","onChange","defaultValue"]),e.checkedItem.id?(t.openBlock(),t.createElementBlock("div",{key:0,class:"viewTrack",onClick:n[0]||(n[0]=p=>e.taskurlshow=!0)}," \u67E5\u770B\u6D41\u7A0B\u56FE ")):t.createCommentVNode("",!0),e.firstPerson&&e.firstPerson.length?(t.openBlock(),t.createElementBlock("div",zc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.firstPerson,(p,B)=>(t.openBlock(),t.createElementBlock("div",Zc,[t.createElementVNode("div",Xc,[t.createTextVNode(t.toDisplayString(p.name)+" ",1),_c]),t.createElementVNode("div",qc,[e.partNode[p.id]&&e.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",$c,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.partNode[p.id],(v,T)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(T>=3?"":T==0?v:`,${v}`),1))),256)),e.partNode[p.id].length>3?(t.openBlock(),t.createElementBlock("span",ed,"...\u7B49"+t.toDisplayString(e.partNode[p.id].length)+"\u4EBA",1)):t.createCommentVNode("",!0)])):p.routeTxt&&p.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",td,t.toDisplayString(p.routeTxt.userNames),1)):t.createCommentVNode("",!0),p.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||p.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",sd)):(t.openBlock(),t.createElementBlock("div",{key:3,class:"views-items-set-btn",onClick:v=>e.handleOpenPerson(p)}," \u8BBE\u7F6E ",8,nd))])]))),256))])):t.createCommentVNode("",!0),e.personList&&e.personList.length?(t.openBlock(),t.createElementBlock("div",od,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.personList,(p,B)=>(t.openBlock(),t.createElementBlock("div",id,[t.createElementVNode("div",ad,t.toDisplayString(p.name),1),t.createElementVNode("div",ld,[e.partNode[p.id]&&e.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",cd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.partNode[p.id],(v,T)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(T>=3?"":T==0?v:`,${v}`),1))),256)),e.partNode[p.id].length>3?(t.openBlock(),t.createElementBlock("span",dd,"...\u7B49"+t.toDisplayString(e.partNode[p.id].length)+"\u4EBA",1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("div",rd)),t.createElementVNode("div",{class:"views-items-set-btn",onClick:v=>e.handleOpenPerson(p)}," \u8BBE\u7F6E ",8,pd)])]))),256))])):t.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(t.openBlock(),t.createElementBlock("div",hd," \u65E0\u9700\u8BBE\u7F6E ")):t.createCommentVNode("",!0),t.createElementVNode("div",md,[t.createElementVNode("div",{class:"top-button",style:{"background-color":"#3c9cff",color:"#fff"},onClick:n[1]||(n[1]=(...p)=>e.handleSumbit&&e.handleSumbit(...p))}," \u9001\u5BA1 ")])]),_:1},8,["visible"]),t.createVNode(A,{visible:e.visiblePerson,"onUpdate:visible":n[3]||(n[3]=p=>e.visiblePerson=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},{default:t.withCtx(()=>[t.createVNode(f,t.mergeProps({isTitle:!1,visible:e.visiblePerson},e.entity,{onCallback:e.handleCallback,onCancel:e.handleCancel}),null,16,["visible","onCallback","onCancel"])]),_:1},8,["visible"]),t.createVNode(E,{images:e.trackUrl,visible:e.taskurlshow,"onUpdate:visible":n[4]||(n[4]=p=>e.taskurlshow=p),indexd:0,isOne:!0,isStyle:e.isStyle},null,8,["images","visible","isStyle"]),t.createVNode(y,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"])])}const co=J(Hc,[["render",ud],["__scopeId","data-v-7570a556"]]),gd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXRVnGqq2o7PtvB1hl0fFun6ji+xhfgzCioq5WA2hFxptUOY23VqlNf06laW7VrVUfs8gEqgmBFRZ4hIRBIcu85e8/69j4HriEJAYLiY691181Ncs/Z+3/++/u+/b0U3T1mWM0AAlZhmaEirFUoZZlus+WlDM8ZJqKpsJZhCiYAxmgC5T8Pk+lYWG4Vy7UhBrSF15ViOYaNrZr5TVt4lxtUfuu1Z9iQAShWETNDme5ckuqWiwkIdxGyEsUMCg6QOTbXazMDAs1wYD9jGKk1gwJFX6UIUZQrS7W7v0AI5fJKAGqy0IQVrMAq6rE0WUsUW9YZwwqtWQq8FRve3VDGKi5TrQ6wGWRQGKYTu3ns5tg9gGRCD6NZ5Njinlz1HFtBK/thOUwZJmjNKGCcggoDthChYguRvIqetTFCJb8arf0rHaGGUEGgIBNiNcjKNwKLjOEdq3kdxUvkeKv+MiW/B2HyOBSTMbsD1O4BlK5AKA706UE/AyeguBrLGAVxbAksWGMwGmwuRAWyYI3KaLbeX36Xfi4YbFwEnnyOkt+1RlgDSmu0AhUoBO8AxWIst2h4sq6Z1R6k3d9uuwaQMOcG2U5+An1vtiNizWlYJivFMKUoExIIvwvGM6U1gqoSOHwIDKyAYb1gdDXIBYQZ+1TA0EqP+PuN8NFG3MqFSEvqYfkGWLkRXvgAGlogFzqQBVSHshDQWjZbeB/DPF3CL+uuUK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ELDUgyLopB3++ZYuWyvbPLW0XbrpE1gFg5DUYFvC3iQy+U0rp3XMKUZ6hSmL9Nejnb5nfK315A2gZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",fd=pe({name:"attchViews",components:{TopTips:he,PreviewImage:ws,PreView:Xn,TopPopup:$},props:{request:{type:Function,defalut:()=>{}},limit:{type:Number|String,default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(e,n){e&&(this.filesArr=[].concat(e),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return gd},del(){return _n},doc(){return qn},file(){return $n},image(){return eo},pdf(){return to},xls(){return so},zip(){return no}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;width:100%;height:100%;visibility: hidden;",e.multiple=!0,e.id="fileUp",e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e)})},methods:{handleClick(){if(typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${props.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}document.getElementById("fileUp").click()},async handleSelect(e,n){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const o=Array.from(e.target.files);document.getElementById("fileUp").value="";let i=0,l=this.haveCount>o.length?o.length:this.haveCount;try{for(let d=0;d<l;d++)if(this.extension.includes(o[d].name.substring(o[d].name.lastIndexOf(".")+1))){const m=new FormData;m.append("file",o[d]);const A=await this.request.post("/file/upload",m,{headers:{"Content-Type":"multipart/form-data"}});if(A.code===200){if(this.filesArr.length>0){for(let f=0;f<this.filesArr.length;f++)if(A.originFileName==this.filesArr[f].originFileName&&i++,this.filesArr[f].originFileName.includes(`(${i})`)&&i++,i>0){let E=A.originFileName.lastIndexOf(".");A.originFileName=`${A.originFileName.substring(0,E)} (${i}) .${A.originFileName.substring(A.originFileName.lastIndexOf(".")+1)}`}}this.filesArr.push(A.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${o[d].name}\u683C\u5F0F\u9519\u8BEF,\u8BF7\u91CD\u65B0\u4E0A\u4F20`,!0,"error");return}this.handleTips("\u4E0A\u4F20\u6210\u529F",!0,"success"),this.viewImage(),this.emitView()}catch{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.emitView()}},handleDel(e,n){if(this.deletFn){if(this.deletFn(n)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(e,1),this.emitView()}else this.filesArr.splice(e,1),this.emitView()},viewFile(e,n){this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1))?(this.indexd=this.lists.indexOf(e.url),this.visible=!0):e.url&&(this.fileUrl=e.url,this.visibleS=!0)},viewImage(){this.lists=[];let e=[];this.filesArr.map((n,o)=>{this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1))}),e=this.filesArr.filter(n=>this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1))),e.forEach((n,o)=>{this.lists.push(n.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()}}}),Xf="",Ad={class:"attch-upload"},kd={key:0,class:"attch-upload-mask"},yd={class:"attch-upload-body"},Ed={class:"upload-header"},Cd={class:"upload-header-title"},Bd={key:0,class:"upload-header-title--re"},Id={class:"upload-header-upload"},Nd=["src"],bd={class:"upload-body"},vd={key:0,class:"upload-list"},wd={class:"list-items-icon"},Td=["src"],Vd=["src"],Sd=["src"],Dd=["src"],Qd=["src"],Md=["src"],Fd={class:"list-items-info"},Od={class:"info-name"},xd={class:"info-attribute"},Ud={class:"info-attribute-size"},Ld=["onClick"],Jd={key:0,class:"list-items-operation"},Pd=["onClick"],Gd=["src"];function Rd(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("PreviewImage"),f=t.resolveComponent("PreView"),E=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",Ad,[e.buttonLoading?(t.openBlock(),t.createElementBlock("div",kd)):t.createCommentVNode("",!0),t.createElementVNode("div",yd,[t.createElementVNode("div",Ed,[t.createElementVNode("div",Cd,[t.createTextVNode(" \u9644\u4EF6 "),e.requires?(t.openBlock(),t.createElementBlock("span",Bd,"*")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Id,[e.onlyShow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"upload-header-upload--item",id:"inputfile",onClick:n[0]||(n[0]=(...y)=>e.handleClick&&e.handleClick(...y))},[t.createElementVNode("img",{src:e.addFile},null,8,Nd),t.createTextVNode("\u4E0A\u4F20\u9644\u4EF6 ")]))])]),t.createElementVNode("div",bd,[e.filesArr.length>0?(t.openBlock(),t.createElementBlock("div",vd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filesArr,(y,p)=>(t.openBlock(),t.createElementBlock("div",{class:"list-items",key:y.uuid},[t.createElementVNode("div",wd,[e.xlsIcon.includes(y.name.substring(y.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,Td)):e.imgIcon.includes(y.name.substring(y.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,Vd)):y.name.substring(y.name.lastIndexOf(".")+1)=="pdf"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,Sd)):e.docIcon.includes(y.name.substring(y.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,Dd)):e.zipIcon.includes(y.name.substring(y.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,Qd)):(t.openBlock(),t.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,Md))]),t.createElementVNode("div",Fd,[t.createElementVNode("div",Od,t.toDisplayString(y.originFileName),1),t.createElementVNode("div",xd,[t.createElementVNode("span",Ud,t.toDisplayString(y.fileSize<1024?y.fileSize:y.fileSize/1024>1024?parseFloat((y.fileSize/1024/1024).toFixed(2)):parseFloat((y.fileSize/1024).toFixed(2)))+t.toDisplayString(y.fileSize<1024?"b":parseFloat((y.fileSize/1024).toFixed(2))<1024?"kb":"M"),1),t.createElementVNode("span",{class:"info-attribute-views",onClick:B=>e.viewFile(y,p)}," \u9884\u89C8 ",8,Ld)])]),e.onlyShow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Jd,[t.createElementVNode("div",{onClick:B=>e.handleDel(p,y),class:"list-items-operation-img"},[t.createElementVNode("img",{src:e.del},null,8,Gd)],8,Pd)]))]))),128))])):t.createCommentVNode("",!0)])]),t.createVNode(m,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),t.createVNode(A,{images:e.lists,visible:e.visible,"onUpdate:visible":n[1]||(n[1]=y=>e.visible=y),indexd:e.indexd},null,8,["images","visible","indexd"]),t.createVNode(E,{visible:e.visibleS,"onUpdate:visible":n[2]||(n[2]=y=>e.visibleS=y),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:t.withCtx(()=>[t.createVNode(f,{file:e.fileUrl},null,8,["file"])]),_:1},8,["visible"])])}const ve=J(fd,[["render",Rd],["__scopeId","data-v-2fb31c81"]]),jd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADG5JREFUeF7tnVFaGzcXhjUD16WsoLCSwl1qsoeElRRWEroHcLkL/0rqfwUpvS6jPuPYiXGw0ZE+4TOel6s8T6Rj6T36pE/yWNME/iAAgY0EGthAAAKbCSAQRgcEthBAIAwPCCAQxgAE8giwguRxo9ZICCAQR4n+8u7dybfmHB5+/fe//86O7+9njpo5qqYgkB2kuxfCQduexRB+ibE5a5rQi+G7OF5u01IkDyHEWde2/zu+vX3YQfNH9ZEI5I3S3YuibdsPITRXwo+cxRhmbRP/+Gk6vRHGJdSCAAKpOBQqiWJji2MMD/GguWZl0SUVgehYfov01sJ4oQuzEOLN0XR6XaF7owqJQITpdiCM9d7MmhCvsV/5SUYg+eye1fzy/v1Z28XPonDSMHPrFZ8uOQ2zY0UgdmbPhfHu3UnTHHxqmnBWGKp2dWxXBmEEkgFtWcXzqrG5W/GKvUl60hFIOqvBWKqELs267ukcy/U6KQTyOqMfSvwzmXyMofmUUdVTFUSSkA0EkgBptcieiGPZJUTySv4RiEEgeyYORJKQewSSAKkvMswNeWLnQpgdTe9Ok0uPqCACSUj21y8AD/5KKFpSZP5cVdOE/jh28WBiM3+AMcavDzJWPkq+OZreXZZ0YB/rIpCErP7928XnCoNz/r2E5anc708BN7+GED4mNN1YhCPgdWAI5JUhVEEcksc/Kj3WMuva5pKHHb8PCgSyRSDifUeVwVdBKOxHVsYEAtkikMfJRb/veO2HTAk2pr51WeyT+mfBBtHeBGguiiCQDWl4nEx+F/y4qcqqsWnkCFcTvh9ZQEYgGwVyEUumsP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xN08yH5hNwN1x7mBXkNWGsy/JHpBeKr7JexGVnR3ECrLe4Q3v3lNyIZaWgOt3OW7r6iAFsro/OWjbs8WLKvuNPJt57cDOjTZ/UWjTxIeh/wxh0AJ5KXvzF1bytxMCx/f3e/cE9d4JZCcjgw/dWwIIZG9TS8cUBBCIgiIx9pYAAtnb1NIxBQEEoqBIjL0lgED2NrV0TEHgP1VLsH2X3+jEAAAAAElFTkSuQmCC",_f="",Kd={name:"msgList",components:{TopPopup:$},props:{visible:{type:Boolean,default:!1},request:{default:null},useInfo:{type:Object,default:()=>{}}},data(){return{listData:[],visibleListMsg:!1,opinion:{},textTips:"",statusTips:!1,typeTips:""}},computed:{Del(){return jd}},watch:{visible:{handler(e,n){e&&this.request.get("/auth/user/opinion/my").then(o=>{o.code===200&&(this.listData=o.data)})}}},methods:{handleMsg(e){this.$emit("handleMsg",e.opinionName)},handleOpenMsg(e){this.opinion=e,this.visibleListMsg=!0},handleTipsCancel(){this.visibleListMsg=!1},async handleDel(){this.opinion.opinionId&&(this.visibleListMsg=!1,this.$emit("handleTips","",!0,"loading"),await this.request.get(`/auth/user/opinion/del/${this.opinion.opinionId}`).then(e=>{e.code===200?(this.$emit("handleTips","\u5220\u9664\u6210\u529F",!0,"success"),this.request.get("/auth/user/opinion/my").then(n=>{n.code===200&&(this.listData=n.data)})):this.$emit("handleTips",e.msg,!0,"error")}).catch(e=>{this.$emit("handleTips",e.msg,!0,"error")}))}}},Yd={key:0,class:"top-msg"},Hd=["onClick"],Wd={class:"top-msg-items-text"},zd=["onClick"],Zd=["src"];function Xd(e,n,o,i,l,d){const m=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",null,[o.visible?(t.openBlock(),t.createElementBlock("div",Yd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.listData,A=>(t.openBlock(),t.createElementBlock("div",{class:"top-msg-items",onClick:f=>d.handleMsg(A)},[t.createElementVNode("div",Wd,t.toDisplayString(A.opinionName),1),t.createElementVNode("div",{class:"top-msg-items-del",onClick:t.withModifiers(f=>d.handleOpenMsg(A),["stop"])},[t.createElementVNode("img",{src:d.Del},null,8,Zd)],8,zd)],8,Hd))),256))])):t.createCommentVNode("",!0),t.createVNode(m,{isIndex:2299,titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06\u5E38\u7528\u610F\u89C1'${l.opinion.opinionName}'\u5220\u9664`,cancel:d.handleTipsCancel,comfig:d.handleDel,visible:l.visibleListMsg,"onUpdate:visible":n[0]||(n[0]=A=>l.visibleListMsg=A)},null,8,["context","cancel","comfig","visible"])])}const mt=J(Kd,[["render",Xd],["__scopeId","data-v-87fc3e49"]]),qf="",_d={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:$,departPerson:me.exports.departPerson,MsgList:mt},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,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,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.entity.checkedArray=[]):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",this.entity.checkedArray=[]):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.checkedArray=[],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},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,o)=>{o==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){console.log("111:::",e),this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.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,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("counterSign")}}},tt=e=>(t.pushScopeId("data-v-c118ba0e"),e=e(),t.popScopeId(),e),qd={class:"process-popup-content"},$d={key:0},er=tt(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),tr={class:"process-pc-value"},sr={class:"process-popup-textarea"},nr={key:0,class:"msg-btn"},or=tt(()=>t.createElementVNode("div",null,[t.createElementVNode("br"),t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),ir=["onClick"],ar={class:"process-pc-value--people"},lr={key:0,class:"process-pc-value--data"},cr={key:1,class:"process-pc-value--data",style:{color:"#888"}},dr=[tt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],rr={class:"process-pc-label"},pr=tt(()=>t.createElementVNode("br",null,null,-1)),hr=tt(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),mr=["onClick"],ur={class:"process-pc-value--people"},gr={key:0,class:"process-pc-value--data"},fr={key:1,class:"process-pc-value--data",style:{color:"#888"}},Ar=[tt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function kr(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),f=t.resolveComponent("TopPopup"),E=t.resolveComponent("attchViews"),y=t.resolveComponent("MsgList");return t.openBlock(),t.createElementBlock("div",qd,[o.param.isMsg?(t.openBlock(),t.createElementBlock("div",$d,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=p=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),er,t.createElementVNode("div",tr,[t.createElementVNode("div",sr,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=p=>l.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",nr,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=p=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,p=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.type!="endEvent"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[or,t.createElementVNode("div",{class:"process-pc-value",onClick:B=>d.handleOpenPopup(p.id)},[t.createElementVNode("div",ar,[l.partNode[p.id]&&l.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",lr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[p.id],(B,v)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(v==0?B:`,${B}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",cr,dr))])],8,ir)],64)):t.createCommentVNode("",!0)],64))),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,p=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.type!="endEvent"&&d.isOption(p.humanPerformerName)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",rr,[t.createTextVNode(t.toDisplayString(p.name)+" ",1),pr,t.createTextVNode(" \u5BA1\u6279\u4EBA "),hr]),t.createElementVNode("div",{class:"process-pc-value",onClick:B=>d.handleOpenPopup(p.id)},[t.createElementVNode("div",ur,[l.partNode[p.id]&&l.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",gr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[p.id],(B,v)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(v==0?B:`,${B}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",fr,Ar))])],8,mr)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(f,{visible:l.visible,"onUpdate:visible":n[3]||(n[3]=p=>l.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(A,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="5"?(t.openBlock(),t.createBlock(E,{key:2,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0),t.createVNode(f,{visible:l.visibleListMsg,"onUpdate:visible":n[4]||(n[4]=p=>l.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(y,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(f,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[5]||(n[5]=p=>l.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const yr=J(_d,[["render",kr],["__scopeId","data-v-c118ba0e"]]),tA="",Er={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:$,departPerson:me.exports.departPerson,MsgList:mt},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,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,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.entity.checkedArray=[]):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",this.entity.checkedArray=[]):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",this.entity.checkedArray=[]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},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,o)=>{o==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){console.log("111:::",e),this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.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,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("delegateTask")}}},Re=e=>(t.pushScopeId("data-v-407adfe7"),e=e(),t.popScopeId(),e),Cr={class:"process-popup-content"},Br={key:0},Ir=Re(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Nr={class:"process-pc-value"},br={class:"process-popup-textarea"},vr={key:0,class:"msg-btn"},wr=Re(()=>t.createElementVNode("br",null,null,-1)),Tr=Re(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Vr=["onClick"],Sr={class:"process-pc-value--people"},Dr={key:0,class:"process-pc-value--data"},Qr={key:1,class:"process-pc-value--data",style:{color:"#888"}},Mr=[Re(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Fr={class:"process-pc-label"},Or=Re(()=>t.createElementVNode("br",null,null,-1)),xr=Re(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Ur=["onClick"],Lr={class:"process-pc-value--people"},Jr={key:0,class:"process-pc-value--data"},Pr={key:1,class:"process-pc-value--data",style:{color:"#888"}},Gr=[Re(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Rr(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),f=t.resolveComponent("TopPopup"),E=t.resolveComponent("attchViews"),y=t.resolveComponent("MsgList");return t.openBlock(),t.createElementBlock("div",Cr,[o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Br,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=p=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),Ir,t.createElementVNode("div",Nr,[t.createElementVNode("div",br,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=p=>l.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",vr,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=p=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,p=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.type!="endEvent"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(p.userTaskModelDTO.name)+" ",1),wr,t.createTextVNode(" \u5BA1\u6279\u4EBA "),Tr]),t.createElementVNode("div",{class:"process-pc-value",onClick:B=>d.handleOpenPopup(p.id)},[t.createElementVNode("div",Sr,[l.partNode[p.id]&&l.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",Dr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[p.id],(B,v)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(v==0?B:`,${B}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Qr,Mr))])],8,Vr)],64)):t.createCommentVNode("",!0)],64))),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,p=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.type!="endEvent"&&d.isOption(p.humanPerformerName)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Fr,[t.createTextVNode(t.toDisplayString(p.name)+" ",1),Or,t.createTextVNode(" \u5BA1\u6279\u4EBA "),xr]),t.createElementVNode("div",{class:"process-pc-value",onClick:B=>d.handleOpenPopup(p.id)},[t.createElementVNode("div",Lr,[l.partNode[p.id]&&l.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",Jr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[p.id],(B,v)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(v==0?B:`,${B}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Pr,Gr))])],8,Ur)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(f,{visible:l.visible,"onUpdate:visible":n[3]||(n[3]=p=>l.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(A,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="1"?(t.openBlock(),t.createBlock(E,{key:2,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0),t.createVNode(f,{visible:l.visibleListMsg,"onUpdate:visible":n[4]||(n[4]=p=>l.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(y,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(f,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[5]||(n[5]=p=>l.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const jr=J(Er,[["render",Rr],["__scopeId","data-v-407adfe7"]]),Kr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKKHDfPn3Svb2tt/z//NtvZonzZfa8UDILWUZh+fAs9gfDgzfDSzL/aw+ehzGFsNIDH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B7/3fJ5n7R3K+2MPmrm6q2K2FAgByrvr97p2ZvTez/V+WOv082tbunv7yFB8JBQDkUpr3HeW1mf1gZt9sa4+AIcHESZAAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6ikAIHo5J2KHAgDiEIulegoAiF7OidihAIA4xGKpngIAopdzInYoACAOsViqpwCA6OWciB0KAIhDLJbqKQAgejknYocCAOIQi6V6CgCIXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",oA="",iA="",Yr={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:$,departPerson:me.exports.departPerson,MsgList:mt},computed:{check(){return ao},checkS(){return Kr}},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:{},personMake:[],personMakeList:{},visibleListMsg:!1,visibleMsgComfig:!1,msgCheck:"",msgCheckList:["\u540C\u610F","\u5982\u62DF","\u5DF2\u9605"],actionName:""}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,console.log("param:::",e),this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map(o=>{o.type!=="endEvent"&&(o.userTaskModelDTO={name:o.name,humanPerformer:{name:o.humanPerformerName}},o.humanPerformer={name:o.humanPerformerName})}),this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((o,i)=>{o.type!=="endEvent"&&(o.userTaskModelDTO.participantList&&o.userTaskModelDTO.participantList.length&&o.userTaskModelDTO.participantList.map(l=>{this.multiNodeParticipant[o.id]||(this.multiNodeParticipant[o.id]=[]),this.partNode[o.id]||(this.partNode[o.id]=[]),this.multiNodeParticipant[o.id].includes(l.id)||this.multiNodeParticipant[o.id].push(l.id),this.partNode[o.id].includes(l.name)||this.partNode[o.id].push(l.name)}),(o.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||o.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(o.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(o=>{o.code==200&&(this.personMakeList=o.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((o,i)=>{o.type!=="endEvent"&&o.participantList&&o.participantList.length&&o.participantList.map(l=>{this.multiNodeParticipant[o.id]||(this.multiNodeParticipant[o.id]=[]),this.partNode[o.id]||(this.partNode[o.id]=[]),this.multiNodeParticipant[o.id].includes(l.id)||this.multiNodeParticipant[o.id].push(l.id),this.partNode[o.id].includes(l.name)||this.partNode[o.id].push(l.name)})}),console.log("userTaskModelDTO",this.multiNodeParticipant),console.log("outGatewayUserTaskModel",this.outGatewayUserTaskModel)},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},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&&e.childNode.length?e.childNode:[e],console.log("\u5F53\u524D\u9009\u4E2D",e,this.radioCheckChild),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,this.nextNodeData&&this.nextNodeData.length&&(e={...e,...e.userTaskModelDTO}),console.log("partNode",this.partObjId,e),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let n,o=[];e.routeTxt.companyIds.map((i,l)=>{n=i.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,l)=>{o.push({type:3,uid:i})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),subjectName:n,checkedArray:o}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let n,o=[];e.routeTxt.departmentIds.map((i,l)=>{n=i.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,l)=>{o.push({type:3,uid:i,deptId:n})}),console.log("multiNodeParticipant",this.multiNodeParticipant[e.id],o),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),deptCode:n,checkedArray:o}}else{let n=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((o,i)=>{n.push({type:3,uid:o})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),checkedArray:n},console.log("\u4EFB\u610F\u9009\u4EBA\u8282\u70B9\u53C2\u6570",this.entity)}},handleOpenMsg(){this.visibleListMsg=!0},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((o,i)=>{(!this.multiNodeParticipant[o]||!this.multiNodeParticipant[o].length)&&(n+=1),e[o]=this.multiNodeParticipant[o]}),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,o)=>{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((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.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,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("complete")}}},ae=e=>(t.pushScopeId("data-v-013d27d0"),e=e(),t.popScopeId(),e),Hr={class:"process-popup-content"},Wr={key:0,class:"process-pc-label"},zr={key:1,class:"process-pc-value",style:{display:"flex"}},Zr={class:"process-radio",style:{width:"100%"}},Xr=["onClick"],_r=["src"],qr={key:2},$r=ae(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u610F\u89C1 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),ep={class:"process-pc-value"},tp={class:"process-popup-textarea"},sp={key:0,class:"msg-btn"},np={class:"process-pc-label"},op=ae(()=>t.createElementVNode("br",null,null,-1)),ip=ae(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),ap=["onClick"],lp={class:"process-pc-value--people"},cp={key:0,class:"process-pc-value--data"},dp={key:1,class:"process-pc-value--data",style:{color:"#888"}},rp=[ae(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],pp={key:2,class:"process-pc-value--data"},hp={key:1,class:"process-pc-label"},mp={key:0},up={class:"process-pc-label"},gp=ae(()=>t.createElementVNode("br",null,null,-1)),fp=ae(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Ap=["onClick"],kp={class:"process-pc-value--people"},yp={key:0,class:"process-pc-value--data"},Ep={key:1,class:"process-pc-value--data",style:{color:"#888"}},Cp=[ae(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Bp={key:1,class:"process-pc-label"},Ip=ae(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Np={class:"process-pc-value"},bp={class:"process-radio"},vp=["onClick"],wp=["src"],Tp=["onClick"],Vp={class:"process-checkbox"},Sp=ae(()=>t.createElementVNode("br",null,null,-1)),Dp={class:"process-checkbox-item"},Qp=["src"],Mp=["onClick"],Fp={class:"process-pc-value--people"},Op={key:0,class:"process-pc-value--data"},xp={key:1,class:"process-pc-value--data",style:{color:"#888"}},Up=[ae(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Lp=ae(()=>t.createElementVNode("div",{class:"process-pc-label"}," \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 ",-1)),Jp={class:"process-pc-value"};function Pp(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),f=t.resolveComponent("TopPopup"),E=t.resolveComponent("MsgList"),y=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",Hr,[o.param.isDocument?(t.openBlock(),t.createElementBlock("div",Wr," \u5FEB\u6377\u56DE\u590D ")):t.createCommentVNode("",!0),o.param.isDocument?(t.openBlock(),t.createElementBlock("div",zr,[t.createElementVNode("div",Zr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.msgCheckList,p=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["process-radio-item",p==l.commentMsg?"process-radio-item--check":""]),onClick:()=>l.commentMsg=p},[t.createElementVNode("span",null,[p==l.commentMsg?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-radio-item-check",src:d.check},null,8,_r)):t.createCommentVNode("",!0)]),t.createTextVNode(" "+t.toDisplayString(p),1)],10,Xr))),256)),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",{key:0,class:"process-radio-item",onClick:n[0]||(n[0]=p=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px","margin-left":"auto"}}," \u5E38\u7528\u610F\u89C1 ")):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),o.param.isMsg&&!o.param.isDocument?(t.openBlock(),t.createElementBlock("div",qr,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[1]||(n[1]=p=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),$r,t.createElementVNode("div",ep,[t.createElementVNode("div",tp,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[2]||(n[2]=p=>l.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",sp,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[3]||(n[3]=p=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,p=>{var B,v;return t.openBlock(),t.createElementBlock(t.Fragment,null,[p.type!="endEvent"&&d.isOption((v=(B=p==null?void 0:p.userTaskModelDTO)==null?void 0:B.humanPerformer)==null?void 0:v.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",np,[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(p.userTaskModelDTO.name)+" ",1),op,t.createTextVNode(" \u5BA1\u6279\u4EBA "),ip])]),t.createElementVNode("div",{class:"process-pc-value",onClick:T=>d.handleOpenPopup(p)},[t.createElementVNode("div",lp,[l.partNode[p.id]&&l.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",cp,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[p.id].join(",")),1)])):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",dp,rp)):p.routeTxt&&p.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",pp,t.toDisplayString(p.routeTxt.userNames),1)):t.createCommentVNode("",!0)])],8,ap)],64)):p.type!="endEvent"?(t.openBlock(),t.createElementBlock("div",hp,[t.createTextVNode(t.toDisplayString(p.userTaskModelDTO.name)+" ",1),l.personMakeList[p.id]?(t.openBlock(),t.createElementBlock("span",mp,"\uFF1A"+t.toDisplayString(l.personMakeList[p.id]),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],64)}),256)):l.outGatewayUserTaskModel.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.outGatewayUserTaskModel,p=>{var B,v;return t.openBlock(),t.createElementBlock(t.Fragment,null,[l.outGatewayUserTaskModel.childNode&&l.outGatewayUserTaskModel.childNode.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[p.type!="endEvent"&&d.isOption((v=(B=p==null?void 0:p.userTaskModelDTO)==null?void 0:B.humanPerformer)==null?void 0:v.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",up,[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(p.userTaskModelDTO.name)+" ",1),gp,t.createTextVNode(" \u5BA1\u6279\u4EBA "),fp])]),t.createElementVNode("div",{class:"process-pc-value",onClick:T=>d.handleOpenPopup(p)},[t.createElementVNode("div",kp,[l.partNode[p.id]&&l.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",yp,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[p.id].join(",")),1)])):(t.openBlock(),t.createElementBlock("div",Ep,Cp))])],8,Ap)],64)):p.type!="endEvent"?(t.openBlock(),t.createElementBlock("div",Bp,t.toDisplayString(p.userTaskModelDTO.name),1)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Ip,t.createElementVNode("div",Np,[t.createElementVNode("div",bp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.childNode,T=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["process-radio-item",T.id==l.radioCheck?"process-radio-item--check":""]),onClick:D=>d.handleNode(T)},[t.createElementVNode("span",null,[T.id==l.radioCheck?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-radio-item-check",src:d.check},null,8,wp)):t.createCommentVNode("",!0)]),t.createTextVNode(" "+t.toDisplayString(T.nodeName),1)],10,vp))),256))])])],64))],64)}),256)),l.radioCheck?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[l.radioCheckChild&&l.radioCheckChild.length&&l.radioCheckChild[0].type!=="EndEventModel"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.radioCheckChild,p=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:"process-pc-label",onClick:B=>d.handleSaveNode(p.id)},[t.createElementVNode("div",Vp,[t.createTextVNode(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279:"),Sp,t.createElementVNode("div",Dp,[t.createTextVNode(t.toDisplayString(p.nodeName)+" ",1),t.createElementVNode("span",null,[l.radioCheckNameList.includes(p.id)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-checkbox-item-check",src:d.checkS},null,8,Qp)):t.createCommentVNode("",!0)])])])],8,Tp),t.createElementVNode("div",{class:"process-pc-value",onClick:B=>d.handleOpenPopup(p)},[t.createElementVNode("div",Fp,[l.partNode[p.id]&&l.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",Op,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[p.id].join(",")),1)])):(t.openBlock(),t.createElementBlock("div",xp,Up))])],8,Mp)]))),256)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Lp,t.createElementVNode("div",Jp,t.toDisplayString(l.radioCheckChild[0].type==="EndEventModel"?"\u7ED3\u675F\u4E8B\u4EF6":l.radioCheckName),1)],64))],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(f,{visible:l.visible,"onUpdate:visible":n[4]||(n[4]=p=>l.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(A,t.mergeProps({isTitle:!1,visible:l.visible},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","onCallback","onCancel"])]),_:1},8,["visible"]),t.createVNode(f,{visible:l.visibleListMsg,"onUpdate:visible":n[5]||(n[5]=p=>l.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(E,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(f,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[6]||(n[6]=p=>l.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"]),l.labels=="1"?(t.openBlock(),t.createBlock(y,{key:4,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const Gp=J(Yr,[["render",Pp],["__scopeId","data-v-013d27d0"]]),dA="",Rp={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:$,departPerson:me.exports.departPerson,MsgList:mt},watch:{param:{async handler(e,n){this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},data(){return{commentMsg:"",actionName:"",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,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},visibleListMsg:!1,visibleMsgComfig:!1}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},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,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.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,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u62D2\u7EDD")}}},st=e=>(t.pushScopeId("data-v-a6b9a57c"),e=e(),t.popScopeId(),e),jp={class:"process-popup-content"},Kp={key:0},Yp=st(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Hp={class:"process-pc-value"},Wp={class:"process-popup-textarea"},zp={key:0,class:"msg-btn"},Zp=st(()=>t.createElementVNode("br",null,null,-1)),Xp=st(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),_p=["onClick"],qp={class:"process-pc-value--people"},$p={key:0,class:"process-pc-value--data"},eh={key:1,class:"process-pc-value--data",style:{color:"#888"}},th=[st(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],sh={style:{"font-size":"15px"}},nh=st(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),oh=[st(()=>t.createElementVNode("div",{class:"process-pc-value--people"},t.toDisplayString(234),-1))];function ih(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),f=t.resolveComponent("TopPopup"),E=t.resolveComponent("attchViews"),y=t.resolveComponent("MsgList");return t.openBlock(),t.createElementBlock("div",jp,[o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Kp,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=p=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),Yp,t.createElementVNode("div",Hp,[t.createElementVNode("div",Wp,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=p=>l.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",zp,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=p=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,p=>{var B,v;return t.openBlock(),t.createElementBlock(t.Fragment,null,[p.type!="endEvent"&&d.isOption((v=(B=p==null?void 0:p.userTaskModelDTO)==null?void 0:B.humanPerformer)==null?void 0:v.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(p.userTaskModelDTO.name)+" ",1),Zp,t.createTextVNode(" \u5BA1\u6279\u4EBA "),Xp]),t.createElementVNode("div",{class:"process-pc-value",onClick:T=>d.handleOpenPopup(p.id)},[t.createElementVNode("div",qp,[l.partNode[p.id]&&l.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",$p,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[p.id],(T,D)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(D==0?T:`,${T}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",eh,th))])],8,_p)],64)):t.createCommentVNode("",!0)],64)}),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,p=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.type!="endEvent"&&d.isOption(p.humanPerformerName)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",sh,t.toDisplayString(p.name),1),nh,t.createElementVNode("div",{class:"process-pc-value",onClick:n[3]||(n[3]=(...B)=>d.handleOpenPopup&&d.handleOpenPopup(...B))},oh)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(f,{visible:l.visible,"onUpdate:visible":n[4]||(n[4]=p=>l.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(A,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="\u62D2\u7EDD"?(t.openBlock(),t.createBlock(E,{key:2,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0),t.createVNode(f,{visible:l.visibleListMsg,"onUpdate:visible":n[5]||(n[5]=p=>l.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(y,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(f,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[6]||(n[6]=p=>l.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const ah=J(Rp,[["render",ih],["__scopeId","data-v-a6b9a57c"]]),hA="",lh={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:$,departPerson:me.exports.departPerson,TopDownSelect:lo,MsgList:mt},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,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:"",actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{async handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},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,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.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,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u9000\u56DE")}}},ro=e=>(t.pushScopeId("data-v-df9c0840"),e=e(),t.popScopeId(),e),ch={class:"process-popup-content"},dh=ro(()=>t.createElementVNode("div",{class:"process-pc-label",style:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[t.createTextVNode(" \u9000\u56DE\u8282\u70B9\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),rh={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},ph={key:0},hh=ro(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),mh={class:"process-pc-value"},uh={class:"process-popup-textarea"},gh={key:0,class:"msg-btn"};function fh(e,n,o,i,l,d){const m=t.resolveComponent("TopDownSelect"),A=t.resolveComponent("TopTips"),f=t.resolveComponent("MsgList"),E=t.resolveComponent("TopPopup"),y=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",ch,[dh,t.createElementVNode("div",rh,[t.createVNode(m,{option:l.option,onChange:d.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",ph,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=p=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),hh,t.createElementVNode("div",mh,[t.createElementVNode("div",uh,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=p=>l.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",gh,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=p=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),t.createVNode(A,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(E,{visible:l.visibleListMsg,"onUpdate:visible":n[3]||(n[3]=p=>l.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(f,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(E,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[4]||(n[4]=p=>l.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"]),l.labels=="\u9000\u56DE"?(t.openBlock(),t.createBlock(y,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const Ah=J(lh,[["render",fh],["__scopeId","data-v-df9c0840"]]),mA="",kh={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:$,departPerson:me.exports.departPerson},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,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:""}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,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.entity.checkedArray=[]):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",this.entity.checkedArray=[]):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.checkedArray=[],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,o)=>{o==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,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.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,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("ccTask")}}},Ot=e=>(t.pushScopeId("data-v-598da188"),e=e(),t.popScopeId(),e),yh={class:"process-popup-content"},Eh=Ot(()=>t.createElementVNode("div",null,[t.createTextVNode(" \u6284\u9001\u4EBA\u5458 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Ch=["onClick"],Bh={class:"process-pc-value--people"},Ih={key:0,class:"process-pc-value--data"},Nh={key:1,class:"process-pc-value--data",style:{color:"#888"}},bh=[Ot(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458 ",-1))],vh=Ot(()=>t.createElementVNode("div",null,[t.createTextVNode(" \u6284\u9001\u4EBA\u5458 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),wh=["onClick"],Th={class:"process-pc-value--people"},Vh={key:0,class:"process-pc-value--data"},Sh={key:1,class:"process-pc-value--data",style:{color:"#888"}},Dh=[Ot(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458 ",-1))];function Qh(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),f=t.resolveComponent("TopPopup"),E=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",yh,[l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,y=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[y.type!="endEvent"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Eh,t.createElementVNode("div",{class:"process-pc-value",onClick:p=>d.handleOpenPopup(y.id)},[t.createElementVNode("div",Bh,[l.partNode[y.id]&&l.partNode[y.id].length?(t.openBlock(),t.createElementBlock("div",Ih,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[y.id],(p,B)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(B==0?p:`,${p}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Nh,bh))])],8,Ch)],64)):t.createCommentVNode("",!0)],64))),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,y=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[y.type!="endEvent"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[vh,t.createElementVNode("div",{class:"process-pc-value",onClick:p=>d.handleOpenPopup(y.id)},[t.createElementVNode("div",Th,[l.partNode[y.id]&&l.partNode[y.id].length?(t.openBlock(),t.createElementBlock("div",Vh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[y.id],(p,B)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(B==0?p:`\uFF1B${p}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Sh,Dh))])],8,wh)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(f,{visible:l.visible,"onUpdate:visible":n[0]||(n[0]=y=>l.visible=y),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(A,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="2"?(t.openBlock(),t.createBlock(E,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const Mh=J(kh,[["render",Qh],["__scopeId","data-v-598da188"]]),fA="",Fh={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:$,departPerson:me.exports.departPerson},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,o)=>{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,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Ts=e=>(t.pushScopeId("data-v-7c6d9221"),e=e(),t.popScopeId(),e),Oh={class:"process-popup-content"},xh={class:"process-pc-label"},Uh=Ts(()=>t.createElementVNode("br",null,null,-1)),Lh=Ts(()=>t.createElementVNode("div",null,[t.createTextVNode("\u5BA1\u6279\u4EBA"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Jh={class:"process-pc-value--people"},Ph={key:0,class:"process-pc-value--data"},Gh={key:1,class:"process-pc-value--data",style:{color:"#888"}},Rh=[Ts(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function jh(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),f=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",Oh,[t.createElementVNode("template",null,[t.createElementVNode("div",xh,[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(l.getFirstProcessNode.name)+" ",1),Uh,Lh])]),t.createElementVNode("div",{class:"process-pc-value",onClick:n[0]||(n[0]=E=>d.handleOpenPopup(l.getFirstProcessNode.id))},[t.createElementVNode("div",Jh,[l.partNode[l.getFirstProcessNode.id]&&l.partNode[l.getFirstProcessNode.id].length?(t.openBlock(),t.createElementBlock("div",Ph,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[l.getFirstProcessNode.id],(E,y)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(y==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Gh,Rh))])])]),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(f,{visible:l.visible,"onUpdate:visible":n[1]||(n[1]=E=>l.visible=E),titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(A,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request,businessId:o.param.formData.businessKey},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"])])}const Kh=J(Fh,[["render",jh],["__scopeId","data-v-7c6d9221"]]),Yh=pe({name:"TopProcess",components:{TopTab:Cc,TopPopup:$,TopTips:he,TopSumbitPopup:co},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},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:!1},restartData:{type:Object,default:{businessType:"",showType:"",processName:""}},selfList:{type:Array,default:()=>[]},selfBtn:{type:Array,default:()=>[]},uid:{type:String,default:""},isMsg:{type:Boolean,default:!1}},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:{},restartDataS:{},selfBtnList:[],topNum:144,bottomNum:70,userIdData:"",TopPopup1:!1}},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(o=>{o.code==200&&(this.trackUrl=o.data)}),this.request.get("/aws/pis/findNodeParticipantRows",{params:{processInstId:this.processIntId}}).then(o=>{o.code==200&&(this.trackList=o.data)}),this.request.get("/aws/tis/getTaskCommentList",{params:{processInstId:this.processInstId,processBusinessKey:this.formData.businessKey}}).then(o=>{o.code==200&&(this.taskCommentList=o.data)}),this.getUserInfo(),this.request.get("/aws/pis/getProcessInstanceById",{params:{processInstId:this.processInstId}}).then(o=>{o.code==200&&(this.ProcessInsObj=o.data)}),await this.request.get("/aws/repository/queryTaskNodeList",{params:{processInstId:this.processInstId}}).then(o=>{if(o.code==200)if(this.taskNode=o.data,this.taskNodeList=o.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},restartData:{handler(e,n){this.restartDataS=e},immediate:!0,deep:!0},selfBtn:{handler(e,n){e&&e.length&&(this.selfBtnList=e)},immediate:!0,deep:!0},uid:{handler(e,n){e&&(this.userIdData=e)},immediate:!0,deep:!0}},mounted(){},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){var o,i;let e=[],n=this.taskNode&&this.taskNode[0]&&this.taskNode[0].taskState!=4;if(this.formData.currentState==="\u5DF2\u64A4\u9500"||this.formData.currentState==="\u5DF2\u9A73\u56DE"||this.processStatus.status==="\u5DF2\u64A4\u9500"||this.processStatus.status==="\u5DF2\u9A73\u56DE"||this.processStatus.bizStatusName==="\u5DF2\u64A4\u9500"||this.processStatus.bizStatusName==="\u5DF2\u9A73\u56DE"){let l={};l.name="\u91CD\u65B0\u63D0\u4EA4",l.btnProps={type:"default"},e.push(l),l.click=this.handleTest}if(n&&!this.isView&&this.taskObj.completeButtonLabel){let l={};l.name=this.taskObj.completeButtonLabel,l.btnProps={type:"primary"},e.push(l),l.click=d=>{this.handleActionClose(),this.showOperation(Gp,d,this.request,this.taskObj.completeButtonAnnex)}}if(n&&!this.isView&&this.processStatus.currUserName){let l={};l.name="\u62D2\u7EDD",l.btnProps={type:"danger"},e.push(l),l.click=d=>{this.handleActionClose(),this.showOperation(ah,d,this.request,this.taskObj.otherButtonAnnexList)}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(l=>{let d={};d.name=l.name,d.btnProps={type:l.type},e.push(d),d.click=l.click}),n&&!this.isView&&this.taskObj.buttons&&this.taskObj.buttons.length&&this.taskObj.buttons.forEach(l=>{if(l.label==="\u9000\u56DE"){let d={};d.name=l.label,d.btnProps={type:"danger"},e.push(d),d.click=m=>{this.handleActionClose(),this.showOperation(Ah,m,this.request,this.taskObj.otherButtonAnnexList)}}}),n&&!this.isView&&this.taskObj.ccTaskButtonLabel){let l={};l.name=this.taskObj.ccTaskButtonLabel,l.btnProps={type:"default"},l.click=d=>{this.handleActionClose(),this.showOperation(Mh,d,this.request,this.taskObj.ccTaskButtonAnnex)},e.push(l)}if(n&&!this.isView&&this.taskObj.delegateTaskButtonLabel){let l={};l.name=this.taskObj.delegateTaskButtonLabel,l.btnProps={type:"default"},l.click=d=>{this.handleActionClose(),this.showOperation(jr,d,this.request,this.taskObj.delegateTaskButtonAnnex)},e.push(l)}if(n&&!this.isView&&this.taskObj.counterSignLabel){let l={};l.name=this.taskObj.counterSignLabel,l.btnProps={type:"primary"},l.click=d=>{this.handleActionClose(),this.showOperation(yr,d,this.request,this.taskObj.counterSignButtonAnnex)},e.push(l)}if(this.processIntId&&this.processStatus.createUid==this.userIdData&&((o=this.taskNode[0])==null?void 0:o.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let l={};l.name="\u50AC\u529E",l.btnProps={type:"default"},l.click=d=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=d,this.popupContext=`\u786E\u5B9A${d}\u5417?`,this.handleTipsType="\u50AC\u529E"},e.push(l)}if(this.processIntId&&this.processStatus.createUid==this.userIdData&&((i=this.taskNode[0])==null?void 0:i.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let l={};l.name="\u64A4\u9500",l.btnProps={type:"default"},l.click=d=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=d,this.popupContext=`\u786E\u5B9A${d}\u5417?`,this.handleTipsType="\u64A4\u9500"},e.push(l)}return e},processCardHeight(){console.log("btnList",this.operBtn);let e=this.topNum+this.bottomNum-10;return this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end&&(e-=this.bottomNum),`calc(100vh - ${e}px)`},processBtn(){if(console.log("btnList",this.operBtn),this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end)return`-${this.bottomNum}px`}},methods:{handleTestsss(e,n){console.log("==========:::",e,n)},handleTestS(){this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")},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,errorTip:!1},o=await this.request.post("/aws/tis/simulation",n);if(o.success){this.handleTips("",!1,"success"),this.nextNodeData=o.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 o=await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:e,processNodeId:n}});if(o.code==200){if(o.data&&o.data.length){for(let i=0;i<o.data.length;i++){let l=o.data[i];if(l.type!="UserTaskModel"){let d=await this.getOutgoingProcessNode(e,l.id);d&&d.length&&(await d.map((m,A)=>{m.nodeName=m.incomingConditionItemList&&m.incomingConditionItemList.length?m.incomingConditionItemList[0].compareValue:""}),l.childNode=d)}}return this.handleTips("",!1,"success"),o.data}return this.handleTips("",!1,"success"),[]}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.handleTips("",!0,"loading"),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.$emit("processStatus",this.processStatus),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,this.$nextTick(()=>{setTimeout(()=>{let n=document.getElementById("process-header"),o=document.getElementById("process-footer");this.bottomNum=o?o.scrollHeight+10:70,this.topNum=n?n.scrollHeight+10:144,console.log(this.bottomNum,"diss::",this.topNum)},1e3)}),this.$refs.topTips.handleClose())})},async showOperation(e,n,o,i){if(this.beforeFunction&&!this.beforeFunction())return;if(this.processStatus.allUserNames&&this.processStatus.allUserNames.length==1&&this.taskNode[0]&&this.taskNode[0].nodeId){let d;this.getVars&&(d=this.getVars()),await this.handleGetSimulation(d)}o&&(this.operationParam.request=o,this.annexlabel=i),this.titleText=n,this.operationCom=e,this.TopPopup1=!0,this.operationParam.visible=this.TopPopup1,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.userInfo=this.user,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.isMsg=this.isMsg,this.operationParam.canCheck=this.canCheck,this.taskObj.commentModels.some(d=>this.operationParam.actionComplete=d!=null&&d.isDefault?d.actionName:"")},handleCancel(){},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.TopPopup1=!1},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("\u50AC\u529E")):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("\u64A4\u9500")):(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(o=>{this.getFirstProcessNode=o.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(Kh,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(o=>{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,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()}}}),kA="",nt=e=>(t.pushScopeId("data-v-2afd59e8"),e=e(),t.popScopeId(),e),Hh={class:"process-warp"},Wh={key:0,class:"process-main",id:"process-header",ref:"processheader"},zh={class:"process-ml-item border"},Zh=nt(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),Xh={class:"process-mli-value"},_h={class:"process-ml-item border"},qh=nt(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),$h={class:"process-mli-value"},em={key:0,class:"process-ml-item"},tm=nt(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),sm={class:"process-mli-value",style:{width:"50%","text-align":"right"}},nm={class:"process-mliv-jd"},om=["slot"],im={slot:"default",style:{}},am=["slot"],lm={key:0,class:"footBtnRow"},cm=["onClick"],dm=[nt(()=>t.createElementVNode("div",{class:"circle"},null,-1)),nt(()=>t.createElementVNode("div",{class:"circle"},null,-1)),nt(()=>t.createElementVNode("div",{class:"circle"},null,-1))],rm=["onClick"],pm=["onClick"];function hm(e,n,o,i,l,d){const m=t.resolveComponent("TopTab"),A=t.resolveComponent("TopPopup"),f=t.resolveComponent("TopTips"),E=t.resolveComponent("TopSumbitPopup");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Hh,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(t.openBlock(),t.createElementBlock("div",Wh,[t.createElementVNode("div",zh,[Zh,t.createElementVNode("div",Xh,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(t.openBlock(),t.createElementBlock("div",{key:0,class:"process-mliv-dd",style:t.normalizeStyle({background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)})},t.toDisplayString(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status),5)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",_h,[qh,t.createElementVNode("div",$h,[t.createElementVNode("span",null,t.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(t.openBlock(),t.createElementBlock("div",em,[tm,t.createElementVNode("div",sm,[t.createElementVNode("span",nm,t.toDisplayString(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`),1)])])):t.createCommentVNode("",!0)],512)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"process-card",style:t.normalizeStyle({height:e.processCardHeight})},[t.createVNode(m,{tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList},{default:t.withCtx(()=>[e.selfTapList&&e.selfTapList.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.selfTapList,(y,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,slot:y.slot},[t.renderSlot(e.$slots,y.slot,{},void 0,!0)],8,om))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",im,[t.renderSlot(e.$slots,"default",{},void 0,!0)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tapList,(y,p)=>(t.openBlock(),t.createElementBlock("div",{style:{},key:p,slot:y.slot},[t.renderSlot(e.$slots,y.slot,{},void 0,!0)],8,am))),128))],64))]),_:3},8,["tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),e.isView?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:1,class:"process-btn",id:"process-footer",style:t.normalizeStyle({bottom:e.processBtn})},[e.isAdditional?(t.openBlock(),t.createElementBlock("div",lm,[t.renderSlot(e.$slots,"btn",{data:e.processStatus},void 0,!0)])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?(t.openBlock(),t.createElementBlock("div",{key:0,class:"top-button",style:t.normalizeStyle(e.getBtnStyle("default"))}," \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ",4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.operBtn,(y,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p<3?(t.openBlock(),t.createElementBlock("div",{class:"top-button",style:t.normalizeStyle(e.getBtnStyle(y.btnProps.type.toString())),key:y.name,onClick:B=>y.click(y.name)},t.toDisplayString(y.name),13,cm)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?(t.openBlock(),t.createElementBlock("div",{key:1,class:"elips",onClick:n[0]||(n[0]=(...y)=>e.handleActionOpen&&e.handleActionOpen(...y))},dm)):t.createCommentVNode("",!0)],64))],64))],4))]),t.createVNode(A,{ref:"TopPopup1",cancel:e.handleCancel,comfig:e.handleComfig,titleText:e.titleText,visible:e.TopPopup1},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.operationCom),{ref:"operationRef",param:e.operationParam,onHandleClosePopup1:e.handleClosePopup1},null,40,["param","onHandleClosePopup1"]))]),_:1},8,["cancel","comfig","titleText","visible"]),t.createVNode(A,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),t.createVNode(f,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:"top-elips",style:t.normalizeStyle(e.actionShow?"transform: translateY(0)":"transform: translateY(100%)")},[e.taskNodeShow?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.taskNodeList,y=>(t.openBlock(),t.createElementBlock("div",{class:"top-elips-items",onClick:p=>e.handleGet(y),key:y.taskId},t.toDisplayString(y.name),9,rm))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.actionBtn,y=>(t.openBlock(),t.createElementBlock("div",{class:"top-elips-items",onClick:p=>y.click(y.name),key:y.name},t.toDisplayString(y.name),9,pm))),128)),t.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:n[1]||(n[1]=(...y)=>e.handleActionClose&&e.handleActionClose(...y))}," \u53D6\u6D88 ")],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"top-elips-mask",onClick:n[2]||(n[2]=(...y)=>e.handleActionClose&&e.handleActionClose(...y)),style:t.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4),t.createVNode(E,t.mergeProps({visible:e.visibleSong,ref:"actionPop",request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0},e.restartDataS,{onSuccessFn:e.endFunction,selfList:e.selfList,onChange:e.handleTestsss}),null,16,["visible","request","appId","id","onSuccessFn","selfList","onChange"])])}const mm=J(Yh,[["render",hm],["__scopeId","data-v-2afd59e8"]]);ce.TopProcess=mm,ce.TopSumbitPopup=co,ce.ViewAttchList=io,ce.attchViews=ve,Object.defineProperties(ce,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
42
|
+
`,document.body.appendChild(this.mainContainer)}message(a={}){let c=sessionStorage.getItem(this.sessionStorageName),r=c?JSON.parse(c):null;if(a.againBtn&&a.content&&r&&Array.isArray(r)&&r.includes(a.content))return;const h=Qg({type:a.type,content:a.content,duration:a.duration,delay:a.delay,againBtn:a.againBtn,minWidth:this.minWidth,maxWidth:this.maxWidth},this.mainContainer);this.mainContainer.appendChild(h.els),en(this.mainContainer),Mg(h,this)}beforeDestory(){this.mainContainer&&this.mainContainer.remove?this.mainContainer.remove():document.body.removeChild(this.mainContainer),this.mainContainer=null}}const Fg=Zt({components:{checked:kg,dcSwitch:bg,dcLoading:Sg},name:"departPerson",props:{visible:{type:Boolean,default:!1},isTitle:{type:Boolean,default:!0},source:{type:String,default:"0"},type:{type:String,default:"0"},request:{type:Function,default:()=>({get:()=>{},post:()=>{}})},businessId:{type:String,default:""},orgType:{type:Array,default:()=>[0]},codeType:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!1},deptCode:{type:String,default:""},itemCode:{type:String,default:""},subjectName:{type:String,default:""},checkedArray:{type:Array,default:()=>[]},maxMultiple:{type:Number,default:0},businessCallack:{type:Function,default:()=>new Promise((s,a)=>{s(!0)})}},data(){return{isSon:!1,deptId:"",subjectId:"",jsonData:[],breadcrumb:[],checkedJson:[],keyword:"",isQuery:!0,isLoading:!1,checkedAll:!1,isShowChecked:!1,activeOrgType:0}},watch:{visible:{deep:!0,immediate:!0,handler:function(s,a){if(!s)return!1;b(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})}},isSon:{deep:!0,handler:function(s,a){let c=[];const r=this.checkedJson.map(h=>{const u=this.entityJson.findIndex(g=>g.id===h.id&&h.type==g.type&&h.type==2)>-1?s&&h.type==2?"4":h.type:h.orgRecordsType;return(u==4||h.type==1)&&c.push(h.id),{...h,orgRecordsType:u}});this.checkedJson=r.filter(h=>h.ancestors.split(",").findIndex(u=>c.indexOf(u)>-1)===-1)}},checkedArray:{deep:!0,immediate:!0,handler:function(s,a){b(this.businessId)&&this.getCards()}}},computed:{queryImg(){return Dg},entityJson(){const s=this.checkedJson;return this.jsonData.map(a=>{const c=b(a.ancestors)?"":a.ancestors,r=b(a.ancestorNames)?"":a.ancestorNames,h=c+a.id+"__"+a.type,u=s.find(I=>I.uniqueId===h),g=!b(u),C=g?!1:s.findIndex(I=>I.id===a.id&&a.subjectId===I.subjectId)>-1,N=g?a.type==1||u.orgRecordsType==4:!1,k=b(s)?0:N?a.counts:s.filter(I=>I.type!=1&&I.ancestors.indexOf(a.id)>-1).length,w=g?u.isNoDelete:!1;return{type:a.type,id:a.id,name:a.name,counts:b(a.counts)?0:a.counts,num:k,phone:ju(a.phone),uid:a.uid,iconName:$s(a.name,2),checked:g,ancestors:c,ancestorNames:r,deptName:Ku(a.ancestorNames,"/",this.activeOrgType==0?"last":"find"),uniqueId:h,isDisabled:C,isLevel:N,subjectId:a.subjectId,sex:a.sex,avatar:b(a.avatar)?"":a.avatar,isNoDelete:w}})},companyJson(){return this.entityJson.filter(s=>s.type==1||s.type==5)},deptJson(){return this.entityJson.filter(s=>s.type==2)},userJson(){return this.entityJson.filter(s=>s.type==3||s.type==6)},checkedNumber(){const s=this.checkedJson.filter(u=>u.type==1).length,a=this.checkedJson.filter(u=>u.type==2).length,c=this.checkedJson.filter(u=>u.type==3||u.type==6).length,r=this.checkedJson.filter(u=>u.type==5).length;let h=[];return s>0&&h.push(s+"\u4E2A\u7EC4\u7EC7"),r>0&&h.push(r+"\u4E2A\u7FA4\u7EC4"),a>0&&h.push(a+"\u4E2A\u90E8\u95E8"),c>0&&h.push(c+"\u4E2A\u6210\u5458"),b(h)?"":"\u5DF2\u9009\u62E9"+h.join("\uFF0C")},breadcrumb_subjectId(){const s=this.breadcrumb.filter((a,c)=>a.value!=="-1");return b(s)?"":s[0].value},breadcrumb_level(){const s=this.breadcrumb.filter((a,c)=>a.value!=="-1");return{ancestors:s.map(a=>a.value).join(","),ancestorNames:s.map(a=>a.name).join("/")}},isDept(){return this.jsonData.findIndex(s=>s.type==2)>-1&&this.isShowDept},isShowSubject(){return this.codeType.findIndex(s=>s==1||s==5)>-1},isShowDept(){return this.codeType.findIndex(s=>s==2)>-1},isNotLevel(){return this.isShowSubject&&this.codeType.length===1},isShowQuery(){return this.codeType.findIndex(s=>s==3||s==6)>-1},getHight(){let s=194;return this.isShowQuery&&(s+=55),this.isDept&&(s+=45),this.orgType.length>1&&(s+=45),`calc(100% - ${s}px)`},getSearchHight(){let s=136;return this.orgType.length>1&&(s+=45),`calc(100% - ${s}px)`},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":this.codeType.length==1&&this.codeType[0]==5?"\u9009\u62E9\u7FA4\u7EC4":"\u9009\u62E9\u7EC4\u7EC7"},isNoDelete(){return b(this.checkedArray)?[]:this.checkedArray.filter(s=>s.isDeleteNo)},isOrgType(){return!!(b(this.orgType)||this.orgType.findIndex(s=>s===0)>-1)},isOrgGroup(){return this.orgType.findIndex(s=>s===1)>-1},showType(){if(this.activeOrgType===0)return this.codeType.findIndex(s=>s==3)>-1?3:this.codeType.findIndex(s=>s==2)>-1?2:this.codeType.findIndex(s=>s==1)>-1?1:-1;if(this.activeOrgType===1)return this.codeType.findIndex(s=>s==6)>-1?6:this.codeType.findIndex(s=>s==5)>-1?5:-1}},mounted(){this.isTitle&&(document.title=this.getTitle),b(this.businessId)?this.getCards(()=>{this.defaultGet()}):this.getDetail(()=>{this.defaultGet()})},methods:{handleSubmit(){if(this.isLoading)return!1;const s=b(this.checkedJson)?[]:this.checkedJson.map(c=>({type:c.orgRecordsType,id:c.id,name:c.name,ancestors:c.ancestors,ancestorNames:c.ancestorNames,subjectId:c.subjectId,phone:b(c.phone)?"":c.phone,sex:c.sex,avatar:c.avatar,uid:b(c.uid)?"":c.uid}));if(b(this.businessId))return this.$emit("callback",s);const a={businessId:this.businessId,orgRecords:this.checkedJson.map(c=>({type:c.orgRecordsType,bizId:c.id,ancestors:c.ancestors,ancestorNames:c.ancestorNames,uid:c.uid}))};this.isLoading=!0,this.businessCallack(s).then(c=>{c&&this.request.post("/auth/component/org/save",a).then(r=>{r.code===200&&this.$emit("callback",s)}).finally(()=>{this.isLoading=!1})}).catch(c=>{this.isLoading=!1})},handleEmpty(){this.keyword="",this.handleQuery()},handleQuery(){switch(this.activeOrgType){case 0:this.itemId="";break;case 1:this.deptId=0,this.subjectId="";break}this.getSearch(()=>{this.isQuery=b(this.keyword)})},handleOrgType(s){this.activeOrgType=s,this.keyword="",this.handleQuery(),this.defaultBreadcrumb()},handleAllCheckbox(s){(this.isShowDept?this.entityJson:this.entityJson.filter(a=>a.type!=2)).forEach(a=>this.handleCheckbox(s,a))},handleCheckbox(s,a){if(a.isDisabled||a.isNoDelete||(a.type==1||a.type==5)&&!this.isShowSubject||a.type==2&&!this.isShowDept)return!1;if(s.currentTarget.checked){if(this.checkedJson.findIndex(g=>g.uniqueId===a.uniqueId)!=-1)return!1;const c=a.type==1?"0":a.ancestors,r=a.type==1?"":a.ancestorNames,h=this.isDept&&this.isSon&&a.type==2?"4":a.type,u={...a,ancestors:c,ancestorNames:r,orgRecordsType:h};return(a.type==1||h==4)&&(this.checkedJson=this.checkedJson.filter(g=>g.ancestors.indexOf(a.id)===-1)),this.getBoolChecked(a)?(s.currentTarget.checked=!1,!1):this.maxMultiple!==0&&this.checkedJson.length>=this.maxMultiple&&this.multiple?(s.currentTarget.checked=!1,new tn().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(u):this.checkedJson=[u],!1)}this.checkedJson=this.checkedJson.filter(c=>c.uniqueId!==a.uniqueId)},handleBreadcrumb(s,a){if(s.disable||a+1==this.breadcrumb.length)return!1;switch(this.activeOrgType){case 0:this.deptId=a===0?this.deptCode:a===1&&b(this.deptCode)?0:s.value,this.itemId="",this.subjectId=s.value==="-1"?"":this.breadcrumb_subjectId;break;case 1:this.itemId=b(this.itemCode)?s.value==="-1"?"":s.value:itemCode,this.deptId=0,this.subjectId="";break}this.keyword="",this.getSearch(()=>{this.breadcrumb=this.breadcrumb.filter((c,r)=>r<a+1)})},handleLevel(s){if(s.isDisabled||s.isLevel)return!1;switch(s.type){case"1":this.deptId=0,this.subjectId=s.id,this.itemId="",this.getSearch(()=>{this.breadcrumb.push({name:s.name,value:s.id})});break;case"2":this.deptId=s.id,this.subjectId=this.breadcrumb_subjectId,this.itemId="",this.getSearch(()=>{this.breadcrumb.push({name:s.name,value:s.id})});break;case"5":this.deptId=0,this.subjectId="",this.itemId=s.id,this.getSearch(()=>{this.breadcrumb.push({name:s.name,value:s.id})});break}},handleChecked(s,a){this.$refs.checkedDp.init(s,a)},handleCallback(s){this.checkedJson=s},getBoolChecked(s){if(s.type!=3)return!1;const a=s.ancestors.split(","),c=this.checkedJson.filter(h=>h.type==2||h.type==1).find(h=>a.indexOf(h.id)>-1);let r=!1;return b(c)||(c.type==1&&(new tn().message({content:`\u5DF2\u9009\u7684\u7EC4\u7EC7\u3010${c.name}\u3011\u5B58\u5728${s.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),r=!0),c.type==4&&(new tn().message({content:`\u5DF2\u9009\u7684\u90E8\u95E8\u3010${c.name}\u3011\u5B58\u5728${s.name}\u4EBA\u5458\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`}),r=!0)),r},defaultData(){this.deptId=this.deptCode,this.subjectId="",this.itemId=this.itemCode,this.isSon=!1,this.jsonData=[],this.keyword="",this.isQuery=!0,this.isLoading=!1,this.activeOrgType=this.isOrgType?0:this.isOrgGroup?1:"",this.defaultBreadcrumb()},defaultBreadcrumb(){const s=this.activeOrgType===0?"\u7EC4\u7EC7":this.activeOrgType===1?"\u7FA4\u7EC4":"";this.breadcrumb=b(this.deptCode)&&b(this.itemCode)?[{name:s,value:"-1"}]:[]},defaultGet(){this.defaultData(),b(this.subjectName)?this.getSearch():this.getByName(()=>{this.getSearch()})},getIsSon(){const s=this.entityJson.filter(c=>c.type==2),a=this.checkedJson.filter(c=>c.type==2);this.isSon=a.findIndex(c=>s.findIndex(r=>r.id===c.id&&c.orgRecordsType==4)>-1)>-1},getCheckedAll(){const s=this.entityJson.findIndex(a=>this.checkedJson.findIndex(c=>c.type===a.type&&c.id===a.id&&a.subjectId===c.subjectId)===-1);this.checkedAll=s===-1},getSearch(s=()=>{}){const a={source:this.source,type:this.type,deptId:this.deptId,subjectId:this.subjectId,keyword:this.keyword,showType:this.showType,orgType:this.activeOrgType,itemId:this.itemId};b(a.deptId)&&delete a.deptId,b(a.subjectId)&&delete a.subjectId,this.isLoading=!0,this.request.get("/auth/component/org/search",{params:a}).then(c=>{s(),this.jsonData=b(c.data)||c.code!==200?[]:c.data;const r=this.breadcrumb.filter(h=>h.value!=="-1");if(!b(this.jsonData)&&b(r)&&(!b(this.deptCode)||!b(this.itemCode)||!b(this.subjectName))){const h=c.data[0];let u=h.ancestors.split(",");b(this.itemCode)||u.pop(),this.breadcrumb=u.map((g,C)=>({value:g,name:h.ancestorNames.split("/")[C],disable:C!==u.length-1&&u.length!==0}))}this.getIsSon(),this.getCheckedAll()}).finally(()=>{this.isLoading=!1})},getDetail(s=()=>{}){if(b(this.businessId))return s(),!1;const a={businessId:this.businessId};this.request.get("/auth/component/org/detail",{params:a}).then(c=>{this.checkedJson=b(c.data)||c.code!==200?[]:c.data.map(r=>{const h=r.type==4?"2":r.type,u=r.type==1?"":r.ancestors,g=u+r.bizId+"__"+h,C=this.isNoDelete.findIndex(N=>N.id===r.id||N.uid===r.uid)>-1;return{...r,ancestors:u,id:r.bizId,type:h,uniqueId:g,orgRecordsType:r.type,iconName:$s(r.name,2),sex:r.sex,uid:b(r.uid)?"":r.uid,avatar:b(r.avatar)?"":r.avatar,isNoDelete:C}}),s()})},getCards(s=()=>{}){if(b(this.checkedArray))return s(),this.checkedJson=[];const a=this.checkedArray.map(c=>({type:c.type,id:b(c.id)?null:c.id,uid:b(c.uid)?null:c.uid,subjectId:b(c.subjectId)?null:c.subjectId,deptId:b(c.deptId)?null:c.deptId,itemId:b(c.itemId)?null:c.itemId,orgIds:b(this.orgType)?[0]:this.orgType}));this.request.post("/auth/component/org/cards",{params:a}).then(c=>{this.checkedJson=b(c.data)||c.code!==200?[]:c.data.map(r=>{const h=r.type==4?"2":r.type,u=r.type==1?"":r.ancestors,g=r.type==1?"":r.ancestorNames,C=u+r.id+"__"+h,N=this.isNoDelete.findIndex(k=>k.id===r.id||k.uid===r.uid)>-1;return{...r,ancestors:u,ancestorNames:g,id:r.id,type:h,uniqueId:C,orgRecordsType:r.type,iconName:$s(r.name,2),sex:r.sex,uid:b(r.uid)?"":r.uid,avatar:b(r.avatar)?"":r.avatar,isNoDelete:N}}),s()})},getByName(s=()=>{}){const a={name:this.subjectName};this.request.get("/auth/component/org/subject/getByName",{params:a}).then(c=>{console.log("getByName",c),c.code===200&&(this.subjectId=c.data,s())})}}}),Og={class:"departPerson-main"},xg={class:"deper-top"},Ug={key:0,class:"deper-nav"},Lg={class:"deper-query"},Jg=i.createElementVNode("i",{class:"icon-chaxun iconfont chaxun"},null,-1),Pg={key:1,class:"deper-breadcrumb"},Gg=["onClick"],Rg=i.createElementVNode("i",{class:"icon-jiantouyou iconfont"},null,-1),jg={key:2,class:"deper-all"},Kg=i.createElementVNode("label",{class:"label",for:"deper-all"},"\u5168\u9009",-1),Yg={key:0,class:"deper-c-depart"},Hg=["disabled","onUpdate:modelValue","onChange"],Wg={class:"depart-name"},zg={class:"name"},Zg={key:0,class:"number"},Xg={class:"label"},_g={key:1,class:"number"},qg=["onClick"],$g=[i.createElementVNode("i",{class:"icon-pedigree iconfont"},null,-1),i.createElementVNode("span",null,"\u4E0B\u7EA7",-1)],ef={key:1,class:"deper-c-depart"},tf=["disabled","onUpdate:modelValue","onChange"],sf={class:"depart-name"},nf={class:"name"},of={key:0,class:"number"},af={class:"label"},lf={key:1,class:"number"},cf=["onClick"],df=[i.createElementVNode("i",{class:"icon-pedigree iconfont"},null,-1),i.createElementVNode("span",null,"\u4E0B\u7EA7",-1)],rf={key:2,class:"deper-c-user"},pf=["disabled","onUpdate:modelValue","onChange"],hf={class:"user-icon"},mf={key:0},uf=["src"],gf={class:"user-name"},ff={class:"span"},Af={class:"phone"},kf={class:"deper-search-section"},yf={class:"search-user"},Ef=i.createElementVNode("div",{class:"search-title"},"\u8054\u7CFB\u4EBA",-1),Cf=["onUpdate:modelValue","disabled","onChange"],Bf={class:"user-icon"},If={key:0},Nf=["src"],bf={class:"user-name"},vf={class:"span"},wf={class:"phone"},Tf={class:"txt"},Vf={key:2,class:"deper-son"},Sf=i.createElementVNode("span",null,"\u5305\u542B\u5B50\u7EA7",-1),Df={class:"deper-bottom"},Qf={key:0,class:"icon-jiantouyou iconfont"};function Mf(s,a,c,r,h,u){const g=i.resolveComponent("dc-switch"),C=i.resolveComponent("checked"),N=i.resolveComponent("dcLoading");return i.openBlock(),i.createElementBlock("main",Og,[i.createElementVNode("div",xg,[s.orgType.length>1?(i.openBlock(),i.createElementBlock("div",Ug,[s.isOrgType?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:a[0]||(a[0]=k=>s.handleOrgType(0)),class:i.normalizeClass([{active:s.activeOrgType===0},"deper-n-item"])},"\u7EC4\u7EC7",2)):i.createCommentVNode("",!0),s.isOrgGroup?(i.openBlock(),i.createElementBlock("div",{key:1,onClick:a[1]||(a[1]=k=>s.handleOrgType(1)),class:i.normalizeClass([{active:s.activeOrgType===1},"deper-n-item"])},"\u7FA4\u7EC4",2)):i.createCommentVNode("",!0)])):i.createCommentVNode("",!0),i.withDirectives(i.createElementVNode("div",Lg,[i.createElementVNode("form",{class:"form",onSubmit:a[5]||(a[5]=i.withModifiers(()=>{},["prevent"])),action:"javascript: void(0);"},[Jg,i.withDirectives(i.createElementVNode("input",{class:"input",onKeyup:a[2]||(a[2]=i.withKeys((...k)=>s.handleQuery&&s.handleQuery(...k),["enter"])),"onUpdate:modelValue":a[3]||(a[3]=k=>s.keyword=k),type:"search",placeholder:"\u8BF7\u8F93\u5165\u4EBA\u5458\u59D3\u540D\u3001\u624B\u673A\u53F7\u7801"},null,544),[[i.vModelText,s.keyword]]),s.keyword.length>0?(i.openBlock(),i.createElementBlock("i",{key:0,onClick:a[4]||(a[4]=(...k)=>s.handleEmpty&&s.handleEmpty(...k)),class:"icon-error-fill iconfont close"})):i.createCommentVNode("",!0)],32)],512),[[i.vShow,s.isShowQuery]]),s.isQuery?(i.openBlock(),i.createElementBlock("div",Pg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.breadcrumb,(k,w)=>(i.openBlock(),i.createElementBlock("div",{onClick:I=>s.handleBreadcrumb(k,w),key:k.value,class:i.normalizeClass([{disable:k.disable},"deper-b-item"])},[i.createElementVNode("span",null,i.toDisplayString(k.name),1),Rg],10,Gg))),128))])):i.createCommentVNode("",!0),s.isQuery?(i.openBlock(),i.createElementBlock("div",jg,[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":a[6]||(a[6]=k=>s.checkedAll=k),onChange:a[7]||(a[7]=(...k)=>s.handleAllCheckbox&&s.handleAllCheckbox(...k)),class:"deper-checkbox",type:"checkbox",name:"deper-all",id:"deper-all"},null,544),[[i.vModelCheckbox,s.checkedAll]]),Kg])):i.createCommentVNode("",!0)]),s.isQuery?(i.openBlock(),i.createElementBlock("div",{key:0,style:i.normalizeStyle({height:s.getHight}),class:"deper-center"},[s.companyJson.length>0?(i.openBlock(),i.createElementBlock("div",Yg,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.companyJson,k=>(i.openBlock(),i.createElementBlock("div",{key:k.uniqueId,class:"depart-item"},[i.createElementVNode("label",{class:i.normalizeClass([{width:s.isNotLevel,isNoDelete:k.isNoDelete},"depart-left"])},[i.withDirectives(i.createElementVNode("input",{disabled:k.isDisabled||k.isNoDelete,"onUpdate:modelValue":w=>k.checked=w,onChange:w=>s.handleCheckbox(w,k),class:"deper-checkbox",type:"checkbox"},null,40,Hg),[[i.vShow,s.isShowSubject],[i.vModelCheckbox,k.checked]]),i.createElementVNode("div",Wg,[i.createElementVNode("div",zg,i.toDisplayString(k.name),1),k.num>0?(i.openBlock(),i.createElementBlock("div",Zg,[i.createTextVNode("("),i.createElementVNode("label",Xg,i.toDisplayString(k.num)+"/"+i.toDisplayString(k.counts),1),i.createTextVNode(")")])):(i.openBlock(),i.createElementBlock("div",_g,"("+i.toDisplayString(k.counts)+")",1))])],2),!s.isNotLevel&&k.counts>0?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:w=>s.handleLevel(k),class:i.normalizeClass([{isdisabled:k.isLevel},"depart-right"])},$g,10,qg)):i.createCommentVNode("",!0)]))),128))])):i.createCommentVNode("",!0),s.deptJson.length>0?(i.openBlock(),i.createElementBlock("div",ef,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.deptJson,k=>(i.openBlock(),i.createElementBlock("div",{key:k.uniqueId,class:"depart-item"},[i.createElementVNode("label",{class:i.normalizeClass([{isNoDelete:k.isNoDelete},"depart-left"])},[i.withDirectives(i.createElementVNode("input",{disabled:k.isDisabled||k.isNoDelete,"onUpdate:modelValue":w=>k.checked=w,onChange:w=>s.handleCheckbox(w,k),class:"deper-checkbox",type:"checkbox"},null,40,tf),[[i.vShow,s.isShowDept],[i.vModelCheckbox,k.checked]]),i.createElementVNode("div",sf,[i.createElementVNode("div",nf,i.toDisplayString(k.name),1),k.num>0?(i.openBlock(),i.createElementBlock("div",of,[i.createTextVNode("("),i.createElementVNode("label",af,i.toDisplayString(k.num)+"/"+i.toDisplayString(k.counts),1),i.createTextVNode(")")])):(i.openBlock(),i.createElementBlock("div",lf,"("+i.toDisplayString(k.counts)+")",1))])],2),k.counts>0?(i.openBlock(),i.createElementBlock("div",{key:0,onClick:w=>s.handleLevel(k),class:i.normalizeClass([{isdisabled:k.isLevel},"depart-right"])},df,10,cf)):i.createCommentVNode("",!0)]))),128))])):i.createCommentVNode("",!0),s.userJson.length>0?(i.openBlock(),i.createElementBlock("div",rf,[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.userJson,k=>(i.openBlock(),i.createElementBlock("label",{key:k.uniqueId,class:i.normalizeClass([{isNoDelete:k.isNoDelete},"user-item"])},[i.withDirectives(i.createElementVNode("input",{disabled:k.isDisabled||k.isNoDelete,"onUpdate:modelValue":w=>k.checked=w,onChange:w=>s.handleCheckbox(w,k),class:"deper-checkbox",type:"checkbox"},null,40,pf),[[i.vModelCheckbox,k.checked]]),i.createElementVNode("div",hf,[k.avatar.length<1?(i.openBlock(),i.createElementBlock("span",mf,i.toDisplayString(k.iconName),1)):(i.openBlock(),i.createElementBlock("img",{key:1,src:k.avatar},null,8,uf))]),i.createElementVNode("div",gf,[i.createElementVNode("div",ff,i.toDisplayString(k.name),1),i.createElementVNode("div",Af,i.toDisplayString(k.phone),1)])],2))),128))])):i.createCommentVNode("",!0)],4)):(i.openBlock(),i.createElementBlock("div",{key:1,style:i.normalizeStyle({height:s.getSearchHight}),class:"deper-search"},[i.createCommentVNode("",!0),i.createElementVNode("div",kf,[i.createCommentVNode("",!0),i.createElementVNode("div",yf,[Ef,(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(s.userJson,k=>(i.openBlock(),i.createElementBlock("label",{key:k.uniqueId,class:"user-item"},[i.withDirectives(i.createElementVNode("input",{"onUpdate:modelValue":w=>k.checked=w,disabled:k.isDisabled,onChange:w=>s.handleCheckbox(w,k),class:"deper-checkbox",type:"checkbox"},null,40,Cf),[[i.vModelCheckbox,k.checked]]),i.createElementVNode("div",Bf,[k.avatar.length<1?(i.openBlock(),i.createElementBlock("span",If,i.toDisplayString(k.iconName),1)):(i.openBlock(),i.createElementBlock("img",{key:1,src:k.avatar},null,8,Nf))]),i.createElementVNode("div",bf,[i.createElementVNode("div",vf,i.toDisplayString(k.name),1),i.createElementVNode("div",wf,i.toDisplayString(k.phone),1),i.createElementVNode("div",Tf,i.toDisplayString(k.ancestorNames),1)])]))),128))])])],4)),s.isDept?(i.openBlock(),i.createElementBlock("div",Vf,[Sf,i.createVNode(g,{modelValue:s.isSon,name:"isSone"},null,8,["modelValue"])])):i.createCommentVNode("",!0),i.createElementVNode("div",Df,[i.createElementVNode("div",{onClick:a[8]||(a[8]=k=>s.handleChecked(!0,s.checkedJson)),class:"deper-b-checked"},[i.createElementVNode("span",null,i.toDisplayString(s.checkedNumber),1),s.checkedNumber.length>0?(i.openBlock(),i.createElementBlock("i",Qf)):i.createCommentVNode("",!0)]),i.createElementVNode("div",{onClick:a[9]||(a[9]=(...k)=>s.handleSubmit&&s.handleSubmit(...k)),class:"deper-b-btn"},"\u786E\u5B9A")]),i.createVNode(C,{ref:"checkedDp",onCallback:s.handleCallback},{user:i.withCtx(({item:k})=>[i.renderSlot(s.$slots,"checkedUser",{item:k})]),_:3},8,["onCallback"]),s.isLoading?(i.openBlock(),i.createBlock(N,{key:3})):i.createCommentVNode("",!0)])}const Ff=$t(Fg,[["render",Mf]]);o.departPerson=Ff,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(me,me.exports);const Hc=pe({name:"TopSubmitPopup",components:{TopPopup:$,TopDownSelect:lo,PreviewImage:ws,departPerson:me.exports.departPerson,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},selfList:{type:Array,default:()=>[]}},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,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:"",btnLoading:!1}},watch:{visible:{async handler(e,n){this.show=e,this.$emit("update:visible",this.show),e&&this.handleOption()}},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},selfList:{handler(e,n){e&&e.length&&(this.option=e,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option))},immediate:!0,deep:!0},resubmit:{handler(e,n){e&&this.getProcessInstance()}}},methods:{async handleOption(){this.checkedItem={},this.firstPerson=[],this.personList=[],!(this.selfList&&this.selfList.length)&&(this.handleTips("",!0,"loading"),await this.request.get("/aws/repository/getProcessDefList",{params:{appId:this.appId,processGroupName:this.processNameData}}).then(e=>{e.code==200&&(this.option=e.data,e.data&&e.data.length?(this.handleTips("",!0,"success"),this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getProcessInstance(),this.getDiagramUrl()):(this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",!0,"error"),this.option=[]))}))},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,this.processId&&this.option.map((n,o)=>{n.id===e.data.processDefId&&(this.checkedItem=n,this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl())}))})},async handlefirstNode(e){e&&await this.request.get("/aws/repository/getFirstProcessNode",{params:{processDefId:e}}).then(n=>{n.code===200?(this.firstPerson=n.data,this.getAfferentParticipantNodeList()):(this.firstPerson=[],this.getAfferentParticipantNodeList())}).catch(n=>{this.firstPerson=[],this.getAfferentParticipantNodeList()})},async handleChange(e,n){this.handleTips("",!0,"loading"),console.log("\u5F53\u524D\u9009\u62E9::::",e,n),this.checkedItem=e,this.handlefirstNode(this.checkedItem.id),this.getDiagramUrl(),this.$emit("change",e,n),this.$refs.topTips.handleClose()},async getAfferentParticipantNodeList(){await this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.firstPerson&&this.firstPerson.length&&(console.log("\u9009\u4E2D\u8282\u70B9L::",this.personList,this.firstPerson),this.personList=e.data.filter(n=>!this.firstPerson.some(o=>o.id==n.id))),this.$emit("change",this.checkedItem,this.option)),this.$refs.topTips.handleClose()})},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,this.humanPerformerName=e.humanPerformerName,e.humanPerformerName==="\u4EFB\u610F\u6307\u5B9A")this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),checkedArray:[]},console.log(this.multiNodeParticipant[e.id]),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(n=>({uid:n.uid,type:n.type,deptId:this.handleLastStr(n.ancestors,n.subjectId)})):this.entity.checkedArray=[];else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let n;e.routeTxt.departmentIds.map((o,i)=>{n=o.rangeId}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],deptCode:n,multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality)},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(o=>({uid:o.uid,type:o.type,deptId:n})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let n;e.routeTxt.companyIds.map((o,i)=>{n=o.name}),this.entity={source:"1",type:"0",request:this.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),subjectName:n},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(o=>({uid:o.uid,type:o.type,deptId:this.handleLastStr(o.ancestors,o.subjectId),subjectName:o.ancestorNames.slice(0,o.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]}},handleCallback(e){console.log("\u53C2\u6570::::",e),this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(n=>({uid:n.uid,type:n.type,deptId:this.handleLastStr(n.ancestors,n.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?n.ancestorNames.slice(0,n.ancestorNames.indexOf("/")):""})),this.multiNodeParticipant[this.personObjId]=[],this.partNode[this.personObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.personObjId].push(n.uid),this.partNode[this.personObjId].push(n.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,n){return e.split(",")[e.split(",").length-1]!==n?e.split(",")[e.split(",").length-1]:""},async handleSumbit(){if(!this.btnLoading){if(this.btnLoading=!0,this.firstPerson&&this.firstPerson.length&&!this.firstPerson[0].routeTxt.userNames&&this.firstPerson[0].humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&this.firstPerson[0].humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"&&(!this.multiNodeParticipant[this.firstPerson[0].id]||!this.multiNodeParticipant[this.firstPerson[0].id].length)){this.handleTips(`${this.firstPerson[0].name}\u8282\u70B9\u672A\u9009\u62E9\u5BA1\u6279\u4EBA`,!0,"error"),this.btnLoading=!1;return}this.beforeFunction&&(await this.beforeFunction(),this.manual&&(this.btnLoading=!1)),this.manual||this.$nextTick(async()=>{await this.handleSongshen()})}},handleSongshen(){if(this.btnLoading=!0,this.resubmit)this.handleTips("",!0,"loading"),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.btnLoading=!1):(this.handleTips(e.msg,!0,"error"),this.btnLoading=!1)}).catch(e=>{this.handleTips(e.msg,!0,"error"),this.btnLoading=!1});else{this.handleTips("",!0,"loading");let e={title:this.titleData,processDefId:this.checkedItem.id,processBusinessKey:this.idData,showType:this.showType,businessType:this.businessTypeData,multiNodeParticipant:this.multiNodeParticipant,todoParameter:this.todoParameterData};if(!this.checkedItem.id){this.$refs.topTips.handleClose(),this.btnLoading=!1;return}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"),this.btnLoading=!1):n.code==499?this.request.post("/aws/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(o=>{o.code==200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):(this.handleTips(o.msg,!0,"error"),this.btnLoading=!1)}).catch(o=>{this.handleTips(o.msg,!0,"error"),this.btnLoading=!1}):(this.handleTips(n.msg,!0,"error"),this.btnLoading=!1)}).catch(n=>{this.handleTips(n.msg,!0,"error"),this.btnLoading=!1})}},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips&&this.$refs.topTips.handleOpen()}}}),Zf="",Wc=e=>(t.pushScopeId("data-v-7570a556"),e=e(),t.popScopeId(),e),zc={key:1,class:"person-views"},Zc={class:"views-items"},Xc={class:"views-items-name"},_c=Wc(()=>t.createElementVNode("span",{class:"views-items-name--re"},"*",-1)),qc={class:"views-items-set"},$c={key:0},ed={key:0},td={key:1},sd={key:2},nd=["onClick"],od={key:2,class:"person-views"},id={class:"views-items"},ad={class:"views-items-name"},ld={class:"views-items-set"},cd={key:0},dd={key:0},rd={key:1},pd=["onClick"],hd={key:3,class:"person-views-white"},md={class:"person-btn"};function ud(e,n,o,i,l,d){const m=t.resolveComponent("TopDownSelect"),A=t.resolveComponent("TopPopup"),f=t.resolveComponent("departPerson"),E=t.resolveComponent("PreviewImage"),y=t.resolveComponent("TopTips");return t.openBlock(),t.createElementBlock("div",null,[t.createVNode(A,{visible:e.show,"onUpdate:visible":n[2]||(n[2]=p=>(e.show=p,e.$emit("update:visible",p))),ref:"TopPopup",titleText:"\u9001\u5BA1",isDrawer:"",isIndex:99,className:"sumbmitPopup-index sumbmitPopup-index-sumbit"},{default:t.withCtx(()=>[t.createVNode(m,{option:e.option,onChange:e.handleChange,defaultValue:e.selectDefaultValue},null,8,["option","onChange","defaultValue"]),e.checkedItem.id?(t.openBlock(),t.createElementBlock("div",{key:0,class:"viewTrack",onClick:n[0]||(n[0]=p=>e.taskurlshow=!0)}," \u67E5\u770B\u6D41\u7A0B\u56FE ")):t.createCommentVNode("",!0),e.firstPerson&&e.firstPerson.length?(t.openBlock(),t.createElementBlock("div",zc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.firstPerson,(p,B)=>(t.openBlock(),t.createElementBlock("div",Zc,[t.createElementVNode("div",Xc,[t.createTextVNode(t.toDisplayString(p.name)+" ",1),_c]),t.createElementVNode("div",qc,[e.partNode[p.id]&&e.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",$c,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.partNode[p.id],(v,T)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(T>=3?"":T==0?v:`,${v}`),1))),256)),e.partNode[p.id].length>3?(t.openBlock(),t.createElementBlock("span",ed,"...\u7B49"+t.toDisplayString(e.partNode[p.id].length)+"\u4EBA",1)):t.createCommentVNode("",!0)])):p.routeTxt&&p.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",td,t.toDisplayString(p.routeTxt.userNames),1)):t.createCommentVNode("",!0),p.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||p.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",sd)):(t.openBlock(),t.createElementBlock("div",{key:3,class:"views-items-set-btn",onClick:v=>e.handleOpenPerson(p)}," \u8BBE\u7F6E ",8,nd))])]))),256))])):t.createCommentVNode("",!0),e.personList&&e.personList.length?(t.openBlock(),t.createElementBlock("div",od,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.personList,(p,B)=>(t.openBlock(),t.createElementBlock("div",id,[t.createElementVNode("div",ad,t.toDisplayString(p.name),1),t.createElementVNode("div",ld,[e.partNode[p.id]&&e.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",cd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.partNode[p.id],(v,T)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(T>=3?"":T==0?v:`,${v}`),1))),256)),e.partNode[p.id].length>3?(t.openBlock(),t.createElementBlock("span",dd,"...\u7B49"+t.toDisplayString(e.partNode[p.id].length)+"\u4EBA",1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("div",rd)),t.createElementVNode("div",{class:"views-items-set-btn",onClick:v=>e.handleOpenPerson(p)}," \u8BBE\u7F6E ",8,pd)])]))),256))])):t.createCommentVNode("",!0),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?(t.openBlock(),t.createElementBlock("div",hd," \u65E0\u9700\u8BBE\u7F6E ")):t.createCommentVNode("",!0),t.createElementVNode("div",md,[t.createElementVNode("div",{class:"top-button",style:{"background-color":"#3c9cff",color:"#fff"},onClick:n[1]||(n[1]=(...p)=>e.handleSumbit&&e.handleSumbit(...p))}," \u9001\u5BA1 ")])]),_:1},8,["visible"]),t.createVNode(A,{visible:e.visiblePerson,"onUpdate:visible":n[3]||(n[3]=p=>e.visiblePerson=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},{default:t.withCtx(()=>[t.createVNode(f,t.mergeProps({isTitle:!1,visible:e.visiblePerson},e.entity,{onCallback:e.handleCallback,onCancel:e.handleCancel}),null,16,["visible","onCallback","onCancel"])]),_:1},8,["visible"]),t.createVNode(E,{images:e.trackUrl,visible:e.taskurlshow,"onUpdate:visible":n[4]||(n[4]=p=>e.taskurlshow=p),indexd:0,isOne:!0,isStyle:e.isStyle},null,8,["images","visible","isStyle"]),t.createVNode(y,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"])])}const co=J(Hc,[["render",ud],["__scopeId","data-v-7570a556"]]),gd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXRVnGqq2o7PtvB1hl0fFun6ji+xhfgzCioq5WA2hFxptUOY23VqlNf06laW7VrVUfs8gEqgmBFRZ4hIRBIcu85e8/69j4HriEJAYLiY691181Ncs/Z+3/++/u+/b0U3T1mWM0AAlZhmaEirFUoZZlus+WlDM8ZJqKpsJZhCiYAxmgC5T8Pk+lYWG4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cpFfba01h+Mi1pihwV+N1SWuKnWyZs/PWS9vmJopTrOJ4kUsiwIVRzQXXx8M1Nxlfg9rfNzdRkhg6oKcvt5QjS1WPpLlJOzX2aS28a27S7GvLJL1m1SaQhMvFddg312AXrvHNTcqkuUkGLYyR5ibW8or6RJubtN1uxe1xZtn+seF0FOcpGKIUpZJkKvaIa48T+8QGSac7fHBRe5zeSbmltMfp2aY9zqYk9C3tcdYXtcf50KftSU6TyLii9jixtWyx8AGWeYHm/nVTVNJHyOqdaWhSvNSdZ1B7UjfpqtKnB/2N4UQUVwFjlEoaLFmMa7CknH2iXEcp7d633r+zBkvSXCl5SaWQdSFxabCkXJcXAUbUgTRYulVrfvPpN1hKQWqnRVfVTFupDOMIOSwwTLAwWmnGttuiqyhVRhb9sRZdRY9OmNJeiy5reFvBklhadEW8ZDWLGqapxq3G307Km/aeffcwyPcWChB1mjR5GzHH5ta1MjCMGI5mnIGRGgYFmr4KpHawp1JJkzd/5tm+yVsyY2uRcu1N0vYsNqwzsELDUgyLopB3++ZYuWyvbPLW0XbrpE1gFg5DUYFvC3iQy+U0rp3XMKUZ6hSmL9Nejnb5nfK315A2gZaNeXjpk2wT+P9KELohNtx5+AAAAABJRU5ErkJggg==",fd=pe({name:"attchViews",components:{TopTips:he,PreviewImage:ws,PreView:Xn,TopPopup:$},props:{request:{type:Function,defalut:()=>{}},limit:{type:Number|String,default:4},changeFn:{type:Function,default:null},requires:{default:!1},inComing:{type:Array,defalut:()=>[]},deletFn:{type:Function},onlyShow:{type:Boolean,default:!1},linkUrl:{type:Function,defalut:null}},data(){return{lists:[],filesArr:[],imgIcon:["jpg","jpeg","png","gif"],docIcon:["doc","docx"],xlsIcon:["xls","xlsx"],zipIcon:["zip","rar","7z"],extension:["bmp","gif","jpg","jpeg","png","doc","docx","xls","xlsx","ppt","pptx","html","htm","txt","wps","rar","zip","gz","bz2","mp4","avi","rmvb","pdf"],current:"",buttonLoading:!1,handleCloseType:!0,uploadState:!0,textTips:"",statusTips:!1,typeTips:"success",visible:!1,indexd:0,visibleS:!1,fileUrl:""}},watch:{inComing:{handler(e,n){e&&(this.filesArr=[].concat(e),this.emitView())},immediate:!0,deep:!0}},computed:{haveCount(){return this.limit==-1?100:this.limit-this.filesArr.length},addFile(){return gd},del(){return _n},doc(){return qn},file(){return $n},image(){return eo},pdf(){return to},xls(){return so},zip(){return no}},mounted(){this.$nextTick(()=>{let e=document.createElement("input");e.type="file",e.className="upload-input",e.style="opacity: 0;position: absolute;width:100%;height:100%;visibility: hidden;",e.multiple=!0,e.id="fileUp",e.addEventListener("change",this.handleSelect),document.getElementById("inputfile").appendChild(e)})},methods:{handleClick(){if(typeof nativeMethod<"u"&&nativeMethod.vueSelectFile&&nativeMethod.vueSelectFile(2,"*",this.limit||1),this.haveCount<=0){this.handleTips(`\u6700\u591A\u4E0A\u4F20${props.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}document.getElementById("fileUp").click()},async handleSelect(e,n){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const o=Array.from(e.target.files);document.getElementById("fileUp").value="";let i=0,l=this.haveCount>o.length?o.length:this.haveCount;try{for(let d=0;d<l;d++)if(this.extension.includes(o[d].name.substring(o[d].name.lastIndexOf(".")+1))){const m=new FormData;m.append("file",o[d]);const A=await this.request.post("/file/upload",m,{headers:{"Content-Type":"multipart/form-data"}});if(A.code===200){if(this.filesArr.length>0){for(let f=0;f<this.filesArr.length;f++)if(A.originFileName==this.filesArr[f].originFileName&&i++,this.filesArr[f].originFileName.includes(`(${i})`)&&i++,i>0){let E=A.originFileName.lastIndexOf(".");A.originFileName=`${A.originFileName.substring(0,E)} (${i}) .${A.originFileName.substring(A.originFileName.lastIndexOf(".")+1)}`}}this.filesArr.push(A.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${o[d].name}\u683C\u5F0F\u9519\u8BEF,\u8BF7\u91CD\u65B0\u4E0A\u4F20`,!0,"error");return}this.handleTips("\u4E0A\u4F20\u6210\u529F",!0,"success"),this.viewImage(),this.emitView()}catch{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.emitView()}},handleDel(e,n){if(this.deletFn){if(this.deletFn(n)===!1){this.handleTips("\u5220\u9664\u5931\u8D25",!0,"error");return}this.filesArr.splice(e,1),this.emitView()}else this.filesArr.splice(e,1),this.emitView()},viewFile(e,n){this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1))?(this.indexd=this.lists.indexOf(e.url),this.visible=!0):e.url&&(this.fileUrl=e.url,this.visibleS=!0)},viewImage(){this.lists=[];let e=[];this.filesArr.map((n,o)=>{this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1))}),e=this.filesArr.filter(n=>this.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1))),e.forEach((n,o)=>{this.lists.push(n.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(e,n,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()}}}),Xf="",Ad={class:"attch-upload"},kd={key:0,class:"attch-upload-mask"},yd={class:"attch-upload-body"},Ed={class:"upload-header"},Cd={class:"upload-header-title"},Bd={key:0,class:"upload-header-title--re"},Id={class:"upload-header-upload"},Nd=["src"],bd={class:"upload-body"},vd={key:0,class:"upload-list"},wd={class:"list-items-icon"},Td=["src"],Vd=["src"],Sd=["src"],Dd=["src"],Qd=["src"],Md=["src"],Fd={class:"list-items-info"},Od={class:"info-name"},xd={class:"info-attribute"},Ud={class:"info-attribute-size"},Ld=["onClick"],Jd={key:0,class:"list-items-operation"},Pd=["onClick"],Gd=["src"];function Rd(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("PreviewImage"),f=t.resolveComponent("PreView"),E=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",Ad,[e.buttonLoading?(t.openBlock(),t.createElementBlock("div",kd)):t.createCommentVNode("",!0),t.createElementVNode("div",yd,[t.createElementVNode("div",Ed,[t.createElementVNode("div",Cd,[t.createTextVNode(" \u9644\u4EF6 "),e.requires?(t.openBlock(),t.createElementBlock("span",Bd,"*")):t.createCommentVNode("",!0)]),t.createElementVNode("div",Id,[e.onlyShow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"upload-header-upload--item",id:"inputfile",onClick:n[0]||(n[0]=(...y)=>e.handleClick&&e.handleClick(...y))},[t.createElementVNode("img",{src:e.addFile},null,8,Nd),t.createTextVNode("\u4E0A\u4F20\u9644\u4EF6 ")]))])]),t.createElementVNode("div",bd,[e.filesArr.length>0?(t.openBlock(),t.createElementBlock("div",vd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filesArr,(y,p)=>(t.openBlock(),t.createElementBlock("div",{class:"list-items",key:y.uuid},[t.createElementVNode("div",wd,[e.xlsIcon.includes(y.name.substring(y.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon-img",src:e.xls},null,8,Td)):e.imgIcon.includes(y.name.substring(y.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:1,class:"icon-img",src:e.image},null,8,Vd)):y.name.substring(y.name.lastIndexOf(".")+1)=="pdf"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon-img",src:e.pdf},null,8,Sd)):e.docIcon.includes(y.name.substring(y.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:3,class:"icon-img",src:e.doc},null,8,Dd)):e.zipIcon.includes(y.name.substring(y.name.lastIndexOf(".")+1))?(t.openBlock(),t.createElementBlock("img",{key:4,class:"icon-img",src:e.zip},null,8,Qd)):(t.openBlock(),t.createElementBlock("img",{key:5,class:"icon-img",src:e.file},null,8,Md))]),t.createElementVNode("div",Fd,[t.createElementVNode("div",Od,t.toDisplayString(y.originFileName),1),t.createElementVNode("div",xd,[t.createElementVNode("span",Ud,t.toDisplayString(y.fileSize<1024?y.fileSize:y.fileSize/1024>1024?parseFloat((y.fileSize/1024/1024).toFixed(2)):parseFloat((y.fileSize/1024).toFixed(2)))+t.toDisplayString(y.fileSize<1024?"b":parseFloat((y.fileSize/1024).toFixed(2))<1024?"kb":"M"),1),t.createElementVNode("span",{class:"info-attribute-views",onClick:B=>e.viewFile(y,p)}," \u9884\u89C8 ",8,Ld)])]),e.onlyShow?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Jd,[t.createElementVNode("div",{onClick:B=>e.handleDel(p,y),class:"list-items-operation-img"},[t.createElementVNode("img",{src:e.del},null,8,Gd)],8,Pd)]))]))),128))])):t.createCommentVNode("",!0)])]),t.createVNode(m,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),t.createVNode(A,{images:e.lists,visible:e.visible,"onUpdate:visible":n[1]||(n[1]=y=>e.visible=y),indexd:e.indexd},null,8,["images","visible","indexd"]),t.createVNode(E,{visible:e.visibleS,"onUpdate:visible":n[2]||(n[2]=y=>e.visibleS=y),ref:"TopPopup",titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},{default:t.withCtx(()=>[t.createVNode(f,{file:e.fileUrl},null,8,["file"])]),_:1},8,["visible"])])}const ve=J(fd,[["render",Rd],["__scopeId","data-v-2fb31c81"]]),jd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADG5JREFUeF7tnVFaGzcXhjUD16WsoLCSwl1qsoeElRRWEroHcLkL/0rqfwUpvS6jPuPYiXGw0ZE+4TOel6s8T6Rj6T36pE/yWNME/iAAgY0EGthAAAKbCSAQRgcEthBAIAwPCCAQxgAE8giwguRxo9ZICCAQR4n+8u7dybfmHB5+/fe//86O7+9njpo5qqYgkB2kuxfCQduexRB+ibE5a5rQi+G7OF5u01IkDyHEWde2/zu+vX3YQfNH9ZEI5I3S3YuibdsPITRXwo+cxRhmbR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FFCEIgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsIgEFFCEIgIpLMwCESUEAQiAuksDAIRJQSBiEA6C4NARAlBICKQzsLk5JVbTV5I4tBnGmfj0k1zHicX0doYT7/xd3MvVqZAgoerdqwDYCzlrVcQrXBxc0OMG4Hk3oXrabYZy8BP7WfupBdCQCDrkPsbOGJo+ut1Mv7i1dF0ep1RkSqVCJTks+ZVqNbuullBjJe0vdBPRGJNfq3yuW5g2Z7al9lZ+u1GIH2jC5bkZZ/7+2UXV3/GKnfNWuCOrWyMzVnGRdXPMHmzzK4EUjrzjG1A7ml/3ew/er6uBFJus/Z0yIyoW57slTuB9A2yXLw8onEzlq66Wj1cCoRVZCxa+LGf3lYPlwLpG1VyRDje4TX0nvs8hXS1B1lNMRv2oQ/49PZ7O7labblbgfRWq2kOPpUeG6aniZK7IOBZHG4t1jJRi/1I/yJN00spd5FoPjOLgJt3EW5qvdsVZE0kv6e+UiwrTVR6cwLeV44lEPcC6Rua+EqxN08yH5hNwN1x7mBXkNWGsy/JHpBeKr7JexGVnR3ECrLe4Q3v3lNyIZaWgOt3OW7r6iAFsro/OWjbs8WLKvuNPJt57cDOjTZ/UWjTxIeh/wxh0AJ5KXvzF1bytxMCx/f3e/cE9d4JZCcjgw/dWwIIZG9TS8cUBBCIgiIx9pYAAtnb1NIxBQEEoqBIjL0lgED2NrV0TEHgP1VLsH2X3+jEAAAAAElFTkSuQmCC",_f="",Kd={name:"msgList",components:{TopPopup:$},props:{visible:{type:Boolean,default:!1},request:{default:null},useInfo:{type:Object,default:()=>{}}},data(){return{listData:[],visibleListMsg:!1,opinion:{},textTips:"",statusTips:!1,typeTips:""}},computed:{Del(){return jd}},watch:{visible:{handler(e,n){e&&this.request.get("/auth/user/opinion/my").then(o=>{o.code===200&&(this.listData=o.data)})}}},methods:{handleMsg(e){this.$emit("handleMsg",e.opinionName)},handleOpenMsg(e){this.opinion=e,this.visibleListMsg=!0},handleTipsCancel(){this.visibleListMsg=!1},async handleDel(){this.opinion.opinionId&&(this.visibleListMsg=!1,this.$emit("handleTips","",!0,"loading"),await this.request.get(`/auth/user/opinion/del/${this.opinion.opinionId}`).then(e=>{e.code===200?(this.$emit("handleTips","\u5220\u9664\u6210\u529F",!0,"success"),this.request.get("/auth/user/opinion/my").then(n=>{n.code===200&&(this.listData=n.data)})):this.$emit("handleTips",e.msg,!0,"error")}).catch(e=>{this.$emit("handleTips",e.msg,!0,"error")}))}}},Yd={key:0,class:"top-msg"},Hd=["onClick"],Wd={class:"top-msg-items-text"},zd=["onClick"],Zd=["src"];function Xd(e,n,o,i,l,d){const m=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",null,[o.visible?(t.openBlock(),t.createElementBlock("div",Yd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.listData,A=>(t.openBlock(),t.createElementBlock("div",{class:"top-msg-items",onClick:f=>d.handleMsg(A)},[t.createElementVNode("div",Wd,t.toDisplayString(A.opinionName),1),t.createElementVNode("div",{class:"top-msg-items-del",onClick:t.withModifiers(f=>d.handleOpenMsg(A),["stop"])},[t.createElementVNode("img",{src:d.Del},null,8,Zd)],8,zd)],8,Hd))),256))])):t.createCommentVNode("",!0),t.createVNode(m,{isIndex:2299,titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06\u5E38\u7528\u610F\u89C1'${l.opinion.opinionName}'\u5220\u9664`,cancel:d.handleTipsCancel,comfig:d.handleDel,visible:l.visibleListMsg,"onUpdate:visible":n[0]||(n[0]=A=>l.visibleListMsg=A)},null,8,["context","cancel","comfig","visible"])])}const mt=J(Kd,[["render",Xd],["__scopeId","data-v-87fc3e49"]]),qf="",_d={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:$,departPerson:me.exports.departPerson,MsgList:mt},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,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,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.entity.checkedArray=[]):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",this.entity.checkedArray=[]):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.checkedArray=[],this.entity.source="1"))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},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,o)=>{o==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){console.log("111:::",e),this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.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,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("counterSign")}}},tt=e=>(t.pushScopeId("data-v-c118ba0e"),e=e(),t.popScopeId(),e),qd={class:"process-popup-content"},$d={key:0},er=tt(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u52A0\u7B7E\u7406\u7531\uFF1A"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),tr={class:"process-pc-value"},sr={class:"process-popup-textarea"},nr={key:0,class:"msg-btn"},or=tt(()=>t.createElementVNode("div",null,[t.createElementVNode("br"),t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),ir=["onClick"],ar={class:"process-pc-value--people"},lr={key:0,class:"process-pc-value--data"},cr={key:1,class:"process-pc-value--data",style:{color:"#888"}},dr=[tt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],rr={class:"process-pc-label"},pr=tt(()=>t.createElementVNode("br",null,null,-1)),hr=tt(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),mr=["onClick"],ur={class:"process-pc-value--people"},gr={key:0,class:"process-pc-value--data"},fr={key:1,class:"process-pc-value--data",style:{color:"#888"}},Ar=[tt(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function kr(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),f=t.resolveComponent("TopPopup"),E=t.resolveComponent("attchViews"),y=t.resolveComponent("MsgList");return t.openBlock(),t.createElementBlock("div",qd,[o.param.isMsg?(t.openBlock(),t.createElementBlock("div",$d,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=p=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),er,t.createElementVNode("div",tr,[t.createElementVNode("div",sr,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=p=>l.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",nr,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=p=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,p=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.type!="endEvent"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[or,t.createElementVNode("div",{class:"process-pc-value",onClick:B=>d.handleOpenPopup(p.id)},[t.createElementVNode("div",ar,[l.partNode[p.id]&&l.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",lr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[p.id],(B,v)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(v==0?B:`,${B}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",cr,dr))])],8,ir)],64)):t.createCommentVNode("",!0)],64))),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,p=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.type!="endEvent"&&d.isOption(p.humanPerformerName)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",rr,[t.createTextVNode(t.toDisplayString(p.name)+" ",1),pr,t.createTextVNode(" \u5BA1\u6279\u4EBA "),hr]),t.createElementVNode("div",{class:"process-pc-value",onClick:B=>d.handleOpenPopup(p.id)},[t.createElementVNode("div",ur,[l.partNode[p.id]&&l.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",gr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[p.id],(B,v)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(v==0?B:`,${B}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",fr,Ar))])],8,mr)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(f,{visible:l.visible,"onUpdate:visible":n[3]||(n[3]=p=>l.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(A,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="5"?(t.openBlock(),t.createBlock(E,{key:2,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0),t.createVNode(f,{visible:l.visibleListMsg,"onUpdate:visible":n[4]||(n[4]=p=>l.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(y,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(f,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[5]||(n[5]=p=>l.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const yr=J(_d,[["render",kr],["__scopeId","data-v-c118ba0e"]]),tA="",Er={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:$,departPerson:me.exports.departPerson,MsgList:mt},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,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,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.entity.checkedArray=[]):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",this.entity.checkedArray=[]):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",this.entity.checkedArray=[]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},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,o)=>{o==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){console.log("111:::",e),this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((n,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.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,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("delegateTask")}}},Re=e=>(t.pushScopeId("data-v-407adfe7"),e=e(),t.popScopeId(),e),Cr={class:"process-popup-content"},Br={key:0},Ir=Re(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Nr={class:"process-pc-value"},br={class:"process-popup-textarea"},vr={key:0,class:"msg-btn"},wr=Re(()=>t.createElementVNode("br",null,null,-1)),Tr=Re(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Vr=["onClick"],Sr={class:"process-pc-value--people"},Dr={key:0,class:"process-pc-value--data"},Qr={key:1,class:"process-pc-value--data",style:{color:"#888"}},Mr=[Re(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Fr={class:"process-pc-label"},Or=Re(()=>t.createElementVNode("br",null,null,-1)),xr=Re(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Ur=["onClick"],Lr={class:"process-pc-value--people"},Jr={key:0,class:"process-pc-value--data"},Pr={key:1,class:"process-pc-value--data",style:{color:"#888"}},Gr=[Re(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function Rr(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),f=t.resolveComponent("TopPopup"),E=t.resolveComponent("attchViews"),y=t.resolveComponent("MsgList");return t.openBlock(),t.createElementBlock("div",Cr,[o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Br,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=p=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),Ir,t.createElementVNode("div",Nr,[t.createElementVNode("div",br,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=p=>l.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",vr,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=p=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,p=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.type!="endEvent"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(p.userTaskModelDTO.name)+" ",1),wr,t.createTextVNode(" \u5BA1\u6279\u4EBA "),Tr]),t.createElementVNode("div",{class:"process-pc-value",onClick:B=>d.handleOpenPopup(p.id)},[t.createElementVNode("div",Sr,[l.partNode[p.id]&&l.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",Dr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[p.id],(B,v)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(v==0?B:`,${B}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Qr,Mr))])],8,Vr)],64)):t.createCommentVNode("",!0)],64))),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,p=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.type!="endEvent"&&d.isOption(p.humanPerformerName)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Fr,[t.createTextVNode(t.toDisplayString(p.name)+" ",1),Or,t.createTextVNode(" \u5BA1\u6279\u4EBA "),xr]),t.createElementVNode("div",{class:"process-pc-value",onClick:B=>d.handleOpenPopup(p.id)},[t.createElementVNode("div",Lr,[l.partNode[p.id]&&l.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",Jr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[p.id],(B,v)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(v==0?B:`,${B}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Pr,Gr))])],8,Ur)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(f,{visible:l.visible,"onUpdate:visible":n[3]||(n[3]=p=>l.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(A,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="1"?(t.openBlock(),t.createBlock(E,{key:2,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0),t.createVNode(f,{visible:l.visibleListMsg,"onUpdate:visible":n[4]||(n[4]=p=>l.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(y,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(f,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[5]||(n[5]=p=>l.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const jr=J(Er,[["render",Rr],["__scopeId","data-v-407adfe7"]]),Kr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2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SuQmCC",oA="",iA="",Yr={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:$,departPerson:me.exports.departPerson,MsgList:mt},computed:{check(){return ao},checkS(){return Kr}},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:{},personMake:[],personMakeList:{},visibleListMsg:!1,visibleMsgComfig:!1,msgCheck:"",msgCheckList:["\u540C\u610F","\u5982\u62DF","\u5DF2\u9605"],actionName:""}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,console.log("param:::",e),this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map(o=>{o.type!=="endEvent"&&(o.userTaskModelDTO={name:o.name,humanPerformer:{name:o.humanPerformerName}},o.humanPerformer={name:o.humanPerformerName})}),this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((o,i)=>{o.type!=="endEvent"&&(o.userTaskModelDTO.participantList&&o.userTaskModelDTO.participantList.length&&o.userTaskModelDTO.participantList.map(l=>{this.multiNodeParticipant[o.id]||(this.multiNodeParticipant[o.id]=[]),this.partNode[o.id]||(this.partNode[o.id]=[]),this.multiNodeParticipant[o.id].includes(l.id)||this.multiNodeParticipant[o.id].push(l.id),this.partNode[o.id].includes(l.name)||this.partNode[o.id].push(l.name)}),(o.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||o.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(o.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(o=>{o.code==200&&(this.personMakeList=o.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((o,i)=>{o.type!=="endEvent"&&o.participantList&&o.participantList.length&&o.participantList.map(l=>{this.multiNodeParticipant[o.id]||(this.multiNodeParticipant[o.id]=[]),this.partNode[o.id]||(this.partNode[o.id]=[]),this.multiNodeParticipant[o.id].includes(l.id)||this.multiNodeParticipant[o.id].push(l.id),this.partNode[o.id].includes(l.name)||this.partNode[o.id].push(l.name)})}),console.log("userTaskModelDTO",this.multiNodeParticipant),console.log("outGatewayUserTaskModel",this.outGatewayUserTaskModel)},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},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&&e.childNode.length?e.childNode:[e],console.log("\u5F53\u524D\u9009\u4E2D",e,this.radioCheckChild),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,this.nextNodeData&&this.nextNodeData.length&&(e={...e,...e.userTaskModelDTO}),console.log("partNode",this.partObjId,e),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let n,o=[];e.routeTxt.companyIds.map((i,l)=>{n=i.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,l)=>{o.push({type:3,uid:i})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),subjectName:n,checkedArray:o}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let n,o=[];e.routeTxt.departmentIds.map((i,l)=>{n=i.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,l)=>{o.push({type:3,uid:i,deptId:n})}),console.log("multiNodeParticipant",this.multiNodeParticipant[e.id],o),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),deptCode:n,checkedArray:o}}else{let n=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((o,i)=>{n.push({type:3,uid:o})}),this.entity={source:"1",type:"0",request:this.param.request,codeType:[3],multiple:e.type=="InclusiveGatewayModel"||e.loopCardinality>1,maxMultiple:(e.loopCardinality,e.loopCardinality),checkedArray:n},console.log("\u4EFB\u610F\u9009\u4EBA\u8282\u70B9\u53C2\u6570",this.entity)}},handleOpenMsg(){this.visibleListMsg=!0},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((o,i)=>{(!this.multiNodeParticipant[o]||!this.multiNodeParticipant[o].length)&&(n+=1),e[o]=this.multiNodeParticipant[o]}),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,o)=>{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((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.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,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("complete")}}},ae=e=>(t.pushScopeId("data-v-013d27d0"),e=e(),t.popScopeId(),e),Hr={class:"process-popup-content"},Wr={key:0,class:"process-pc-label"},zr={key:1,class:"process-pc-value",style:{display:"flex"}},Zr={class:"process-radio",style:{width:"100%"}},Xr=["onClick"],_r=["src"],qr={key:2},$r=ae(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u610F\u89C1 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),ep={class:"process-pc-value"},tp={class:"process-popup-textarea"},sp={key:0,class:"msg-btn"},np={class:"process-pc-label"},op=ae(()=>t.createElementVNode("br",null,null,-1)),ip=ae(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),ap=["onClick"],lp={class:"process-pc-value--people"},cp={key:0,class:"process-pc-value--data"},dp={key:1,class:"process-pc-value--data",style:{color:"#888"}},rp=[ae(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],pp={key:2,class:"process-pc-value--data"},hp={key:1,class:"process-pc-label"},mp={key:0},up={class:"process-pc-label"},gp=ae(()=>t.createElementVNode("br",null,null,-1)),fp=ae(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),Ap=["onClick"],kp={class:"process-pc-value--people"},yp={key:0,class:"process-pc-value--data"},Ep={key:1,class:"process-pc-value--data",style:{color:"#888"}},Cp=[ae(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Bp={key:1,class:"process-pc-label"},Ip=ae(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Np={class:"process-pc-value"},bp={class:"process-radio"},vp=["onClick"],wp=["src"],Tp=["onClick"],Vp={class:"process-checkbox"},Sp=ae(()=>t.createElementVNode("br",null,null,-1)),Dp={class:"process-checkbox-item"},Qp=["src"],Mp=["onClick"],Fp={class:"process-pc-value--people"},Op={key:0,class:"process-pc-value--data"},xp={key:1,class:"process-pc-value--data",style:{color:"#888"}},Up=[ae(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],Lp=ae(()=>t.createElementVNode("div",{class:"process-pc-label"}," \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279 ",-1)),Jp={class:"process-pc-value"};function Pp(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),f=t.resolveComponent("TopPopup"),E=t.resolveComponent("MsgList"),y=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",Hr,[o.param.isDocument?(t.openBlock(),t.createElementBlock("div",Wr," \u5FEB\u6377\u56DE\u590D ")):t.createCommentVNode("",!0),o.param.isDocument?(t.openBlock(),t.createElementBlock("div",zr,[t.createElementVNode("div",Zr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.msgCheckList,p=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["process-radio-item",p==l.commentMsg?"process-radio-item--check":""]),onClick:()=>l.commentMsg=p},[t.createElementVNode("span",null,[p==l.commentMsg?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-radio-item-check",src:d.check},null,8,_r)):t.createCommentVNode("",!0)]),t.createTextVNode(" "+t.toDisplayString(p),1)],10,Xr))),256)),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",{key:0,class:"process-radio-item",onClick:n[0]||(n[0]=p=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px","margin-left":"auto"}}," \u5E38\u7528\u610F\u89C1 ")):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),o.param.isMsg&&!o.param.isDocument?(t.openBlock(),t.createElementBlock("div",qr,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[1]||(n[1]=p=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),$r,t.createElementVNode("div",ep,[t.createElementVNode("div",tp,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[2]||(n[2]=p=>l.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",sp,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[3]||(n[3]=p=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,p=>{var B,v;return t.openBlock(),t.createElementBlock(t.Fragment,null,[p.type!="endEvent"&&d.isOption((v=(B=p==null?void 0:p.userTaskModelDTO)==null?void 0:B.humanPerformer)==null?void 0:v.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",np,[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(p.userTaskModelDTO.name)+" ",1),op,t.createTextVNode(" \u5BA1\u6279\u4EBA "),ip])]),t.createElementVNode("div",{class:"process-pc-value",onClick:T=>d.handleOpenPopup(p)},[t.createElementVNode("div",lp,[l.partNode[p.id]&&l.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",cp,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[p.id].join(",")),1)])):p.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&p.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?(t.openBlock(),t.createElementBlock("div",dp,rp)):p.routeTxt&&p.routeTxt.userNames?(t.openBlock(),t.createElementBlock("div",pp,t.toDisplayString(p.routeTxt.userNames),1)):t.createCommentVNode("",!0)])],8,ap)],64)):p.type!="endEvent"?(t.openBlock(),t.createElementBlock("div",hp,[t.createTextVNode(t.toDisplayString(p.userTaskModelDTO.name)+" ",1),l.personMakeList[p.id]?(t.openBlock(),t.createElementBlock("span",mp,"\uFF1A"+t.toDisplayString(l.personMakeList[p.id]),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],64)}),256)):l.outGatewayUserTaskModel.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.outGatewayUserTaskModel,p=>{var B,v;return t.openBlock(),t.createElementBlock(t.Fragment,null,[l.outGatewayUserTaskModel.childNode&&l.outGatewayUserTaskModel.childNode.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[p.type!="endEvent"&&d.isOption((v=(B=p==null?void 0:p.userTaskModelDTO)==null?void 0:B.humanPerformer)==null?void 0:v.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",up,[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(p.userTaskModelDTO.name)+" ",1),gp,t.createTextVNode(" \u5BA1\u6279\u4EBA "),fp])]),t.createElementVNode("div",{class:"process-pc-value",onClick:T=>d.handleOpenPopup(p)},[t.createElementVNode("div",kp,[l.partNode[p.id]&&l.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",yp,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[p.id].join(",")),1)])):(t.openBlock(),t.createElementBlock("div",Ep,Cp))])],8,Ap)],64)):p.type!="endEvent"?(t.openBlock(),t.createElementBlock("div",Bp,t.toDisplayString(p.userTaskModelDTO.name),1)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Ip,t.createElementVNode("div",Np,[t.createElementVNode("div",bp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(p.childNode,T=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["process-radio-item",T.id==l.radioCheck?"process-radio-item--check":""]),onClick:D=>d.handleNode(T)},[t.createElementVNode("span",null,[T.id==l.radioCheck?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-radio-item-check",src:d.check},null,8,wp)):t.createCommentVNode("",!0)]),t.createTextVNode(" "+t.toDisplayString(T.nodeName),1)],10,vp))),256))])])],64))],64)}),256)),l.radioCheck?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[l.radioCheckChild&&l.radioCheckChild.length&&l.radioCheckChild[0].type!=="EndEventModel"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.radioCheckChild,p=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",{class:"process-pc-label",onClick:B=>d.handleSaveNode(p.id)},[t.createElementVNode("div",Vp,[t.createTextVNode(" \u4E0B\u4E00\u8282\u70B9\u5BA1\u6279:"),Sp,t.createElementVNode("div",Dp,[t.createTextVNode(t.toDisplayString(p.nodeName)+" ",1),t.createElementVNode("span",null,[l.radioCheckNameList.includes(p.id)?(t.openBlock(),t.createElementBlock("img",{key:0,class:"process-checkbox-item-check",src:d.checkS},null,8,Qp)):t.createCommentVNode("",!0)])])])],8,Tp),t.createElementVNode("div",{class:"process-pc-value",onClick:B=>d.handleOpenPopup(p)},[t.createElementVNode("div",Fp,[l.partNode[p.id]&&l.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",Op,[t.createElementVNode("span",null,t.toDisplayString(l.partNode[p.id].join(",")),1)])):(t.openBlock(),t.createElementBlock("div",xp,Up))])],8,Mp)]))),256)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Lp,t.createElementVNode("div",Jp,t.toDisplayString(l.radioCheckChild[0].type==="EndEventModel"?"\u7ED3\u675F\u4E8B\u4EF6":l.radioCheckName),1)],64))],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(f,{visible:l.visible,"onUpdate:visible":n[4]||(n[4]=p=>l.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(A,t.mergeProps({isTitle:!1,visible:l.visible},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","onCallback","onCancel"])]),_:1},8,["visible"]),t.createVNode(f,{visible:l.visibleListMsg,"onUpdate:visible":n[5]||(n[5]=p=>l.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(E,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(f,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[6]||(n[6]=p=>l.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"]),l.labels=="1"?(t.openBlock(),t.createBlock(y,{key:4,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const Gp=J(Yr,[["render",Pp],["__scopeId","data-v-013d27d0"]]),dA="",Rp={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:$,departPerson:me.exports.departPerson,MsgList:mt},watch:{param:{async handler(e,n){this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},data(){return{commentMsg:"",actionName:"",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,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},visibleListMsg:!1,visibleMsgComfig:!1}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},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,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.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,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u62D2\u7EDD")}}},st=e=>(t.pushScopeId("data-v-a6b9a57c"),e=e(),t.popScopeId(),e),jp={class:"process-popup-content"},Kp={key:0},Yp=st(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u62D2\u7EDD\u7406\u7531\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Hp={class:"process-pc-value"},Wp={class:"process-popup-textarea"},zp={key:0,class:"msg-btn"},Zp=st(()=>t.createElementVNode("br",null,null,-1)),Xp=st(()=>t.createElementVNode("span",{class:"process-pc-label--re"},"*",-1)),_p=["onClick"],qp={class:"process-pc-value--people"},$p={key:0,class:"process-pc-value--data"},eh={key:1,class:"process-pc-value--data",style:{color:"#888"}},th=[st(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))],sh={style:{"font-size":"15px"}},nh=st(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u5BA1\u6279\u4EBA "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),oh=[st(()=>t.createElementVNode("div",{class:"process-pc-value--people"},t.toDisplayString(234),-1))];function ih(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),f=t.resolveComponent("TopPopup"),E=t.resolveComponent("attchViews"),y=t.resolveComponent("MsgList");return t.openBlock(),t.createElementBlock("div",jp,[o.param.isMsg?(t.openBlock(),t.createElementBlock("div",Kp,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=p=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),Yp,t.createElementVNode("div",Hp,[t.createElementVNode("div",Wp,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=p=>l.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",zp,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=p=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,p=>{var B,v;return t.openBlock(),t.createElementBlock(t.Fragment,null,[p.type!="endEvent"&&d.isOption((v=(B=p==null?void 0:p.userTaskModelDTO)==null?void 0:B.humanPerformer)==null?void 0:v.name)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(p.userTaskModelDTO.name)+" ",1),Zp,t.createTextVNode(" \u5BA1\u6279\u4EBA "),Xp]),t.createElementVNode("div",{class:"process-pc-value",onClick:T=>d.handleOpenPopup(p.id)},[t.createElementVNode("div",qp,[l.partNode[p.id]&&l.partNode[p.id].length?(t.openBlock(),t.createElementBlock("div",$p,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[p.id],(T,D)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(D==0?T:`,${T}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",eh,th))])],8,_p)],64)):t.createCommentVNode("",!0)],64)}),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,p=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p.type!="endEvent"&&d.isOption(p.humanPerformerName)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",sh,t.toDisplayString(p.name),1),nh,t.createElementVNode("div",{class:"process-pc-value",onClick:n[3]||(n[3]=(...B)=>d.handleOpenPopup&&d.handleOpenPopup(...B))},oh)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(f,{visible:l.visible,"onUpdate:visible":n[4]||(n[4]=p=>l.visible=p),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(A,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="\u62D2\u7EDD"?(t.openBlock(),t.createBlock(E,{key:2,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0),t.createVNode(f,{visible:l.visibleListMsg,"onUpdate:visible":n[5]||(n[5]=p=>l.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(y,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(f,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[6]||(n[6]=p=>l.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"])])}const ah=J(Rp,[["render",ih],["__scopeId","data-v-a6b9a57c"]]),hA="",lh={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:$,departPerson:me.exports.departPerson,TopDownSelect:lo,MsgList:mt},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,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:"",actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{async handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.entity.checkedArray=[],this.actionName=e.actionName},immediate:!0,deep:!0}},created(){this.getReturnNode()},methods:{handleMakeMsg(){this.commentMsg==""&&!this.commentMsg.length?(this.handleTips("\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1!",!1,"success"),this.visibleMsgComfig=!1):this.visibleMsgComfig=!0},handleOpenMsg(){this.visibleListMsg=!0},handleTipsCancel(){this.visibleMsgComfig=!1},handleTipsComfig(){this.handleTips("",!0,"loading"),this.visibleMsgComfig=!1,this.param.request.post("/auth//user/opinion/save",{opinionName:this.commentMsg}).then(e=>{e.code===200?this.handleTips("\u8BBE\u7F6E\u6210\u529F!",!0,"success"):this.handleTips(e.msg,!0,"error")}).catch(e=>{this.handleTips(e.msg,!0,"error")})},handleMsg(e){this.commentMsg=e,this.visibleListMsg=!1},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,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.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,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u9000\u56DE")}}},ro=e=>(t.pushScopeId("data-v-df9c0840"),e=e(),t.popScopeId(),e),ch={class:"process-popup-content"},dh=ro(()=>t.createElementVNode("div",{class:"process-pc-label",style:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[t.createTextVNode(" \u9000\u56DE\u8282\u70B9\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),rh={class:"process-pc-value",style:{display:"inline-block",width:"50%"}},ph={key:0},hh=ro(()=>t.createElementVNode("div",{class:"process-pc-label"},[t.createTextVNode(" \u9000\u56DE\u7406\u7531\uFF1A "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),mh={class:"process-pc-value"},uh={class:"process-popup-textarea"},gh={key:0,class:"msg-btn"};function fh(e,n,o,i,l,d){const m=t.resolveComponent("TopDownSelect"),A=t.resolveComponent("TopTips"),f=t.resolveComponent("MsgList"),E=t.resolveComponent("TopPopup"),y=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",ch,[dh,t.createElementVNode("div",rh,[t.createVNode(m,{option:l.option,onChange:d.handleChange,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},null,8,["option","onChange"])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",ph,[t.createElementVNode("div",{class:"process-radio-item",onClick:n[0]||(n[0]=p=>d.handleOpenMsg()),style:{color:"#1389ff","font-size":"14px"}}," \u5E38\u7528\u610F\u89C1 ")])):t.createCommentVNode("",!0),hh,t.createElementVNode("div",mh,[t.createElementVNode("div",uh,[t.withDirectives(t.createElementVNode("textarea",{"onUpdate:modelValue":n[1]||(n[1]=p=>l.commentMsg=p),class:"textarea-item",name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200"},null,512),[[t.vModelText,l.commentMsg]])]),o.param.isMsg?(t.openBlock(),t.createElementBlock("div",gh,[t.createElementVNode("span",{class:"msg-btn-click",onClick:n[2]||(n[2]=p=>d.handleMakeMsg())},"\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])):t.createCommentVNode("",!0)]),t.createVNode(A,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(E,{visible:l.visibleListMsg,"onUpdate:visible":n[3]||(n[3]=p=>l.visibleListMsg=p),ref:"TopPopup",titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(f,{visible:l.visibleListMsg,request:o.param.request,useInfo:o.param.userInfo,onHandleTips:d.handleTips,onHandleMsg:d.handleMsg},null,8,["visible","request","useInfo","onHandleTips","onHandleMsg"])]),_:1},8,["visible"]),t.createVNode(E,{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${l.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:d.handleTipsCancel,comfig:d.handleTipsComfig,visible:l.visibleMsgComfig,"onUpdate:visible":n[4]||(n[4]=p=>l.visibleMsgComfig=p)},null,8,["context","cancel","comfig","visible"]),l.labels=="\u9000\u56DE"?(t.openBlock(),t.createBlock(y,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const Ah=J(lh,[["render",fh],["__scopeId","data-v-df9c0840"]]),mA="",kh={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:$,departPerson:me.exports.departPerson},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,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:""}},watch:{param:{handler(e,n){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,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.entity.checkedArray=[]):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",this.entity.checkedArray=[]):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.checkedArray=[],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,o)=>{o==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,o)=>{this.multiNodeParticipant[this.partObjId].push(n.uid),this.partNode[this.partObjId].push(n.name),this.entity.checkedArray.push({type:3,uid:n.uid})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((o,i)=>{o.size=o.fileSize,o.format=o.originFileName.substring(o.originFileName.lastIndexOf(".")+1),o.uploadTime=o.createTime,o.processInstId=this.param.processInstId,o.taskInstId=this.param.taskInstId,o.name=o.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,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("ccTask")}}},Ot=e=>(t.pushScopeId("data-v-598da188"),e=e(),t.popScopeId(),e),yh={class:"process-popup-content"},Eh=Ot(()=>t.createElementVNode("div",null,[t.createTextVNode(" \u6284\u9001\u4EBA\u5458 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Ch=["onClick"],Bh={class:"process-pc-value--people"},Ih={key:0,class:"process-pc-value--data"},Nh={key:1,class:"process-pc-value--data",style:{color:"#888"}},bh=[Ot(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458 ",-1))],vh=Ot(()=>t.createElementVNode("div",null,[t.createTextVNode(" \u6284\u9001\u4EBA\u5458 "),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),wh=["onClick"],Th={class:"process-pc-value--people"},Vh={key:0,class:"process-pc-value--data"},Sh={key:1,class:"process-pc-value--data",style:{color:"#888"}},Dh=[Ot(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u6284\u9001\u4EBA\u5458 ",-1))];function Qh(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),f=t.resolveComponent("TopPopup"),E=t.resolveComponent("attchViews");return t.openBlock(),t.createElementBlock("div",yh,[l.taskNode&&l.taskNode.length>0&&l.taskNode[0].taskState!=11?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[l.nextNodeData.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(l.nextNodeData,y=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[y.type!="endEvent"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Eh,t.createElementVNode("div",{class:"process-pc-value",onClick:p=>d.handleOpenPopup(y.id)},[t.createElementVNode("div",Bh,[l.partNode[y.id]&&l.partNode[y.id].length?(t.openBlock(),t.createElementBlock("div",Ih,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[y.id],(p,B)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(B==0?p:`,${p}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Nh,bh))])],8,Ch)],64)):t.createCommentVNode("",!0)],64))),256)):l.outGatewayUserTaskModel.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(l.outGatewayUserTaskModel,y=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[y.type!="endEvent"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[vh,t.createElementVNode("div",{class:"process-pc-value",onClick:p=>d.handleOpenPopup(y.id)},[t.createElementVNode("div",Th,[l.partNode[y.id]&&l.partNode[y.id].length?(t.openBlock(),t.createElementBlock("div",Vh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[y.id],(p,B)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(B==0?p:`\uFF1B${p}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Sh,Dh))])],8,wh)],64)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(f,{visible:l.visible,"onUpdate:visible":n[0]||(n[0]=y=>l.visible=y),ref:"TopPopup",titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(A,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","onCallback","onCancel"])]),_:1},8,["visible"]),l.labels=="2"?(t.openBlock(),t.createBlock(E,{key:1,limit:l.limit?l.limit:-1,requires:l.requires,request:o.param.request,linkUrl:o.param.linkUrl,onGetValue:d.getValues},null,8,["limit","requires","request","linkUrl","onGetValue"])):t.createCommentVNode("",!0)])}const Mh=J(kh,[["render",Qh],["__scopeId","data-v-598da188"]]),fA="",Fh={name:"restart",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:he,attchViews:ve,TopPopup:$,departPerson:me.exports.departPerson},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,o)=>{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,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction()}}},Ts=e=>(t.pushScopeId("data-v-7c6d9221"),e=e(),t.popScopeId(),e),Oh={class:"process-popup-content"},xh={class:"process-pc-label"},Uh=Ts(()=>t.createElementVNode("br",null,null,-1)),Lh=Ts(()=>t.createElementVNode("div",null,[t.createTextVNode("\u5BA1\u6279\u4EBA"),t.createElementVNode("span",{class:"process-pc-label--re"},"*")],-1)),Jh={class:"process-pc-value--people"},Ph={key:0,class:"process-pc-value--data"},Gh={key:1,class:"process-pc-value--data",style:{color:"#888"}},Rh=[Ts(()=>t.createElementVNode("span",null," \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ",-1))];function jh(e,n,o,i,l,d){const m=t.resolveComponent("TopTips"),A=t.resolveComponent("departPerson"),f=t.resolveComponent("TopPopup");return t.openBlock(),t.createElementBlock("div",Oh,[t.createElementVNode("template",null,[t.createElementVNode("div",xh,[t.createElementVNode("div",null,[t.createTextVNode(t.toDisplayString(l.getFirstProcessNode.name)+" ",1),Uh,Lh])]),t.createElementVNode("div",{class:"process-pc-value",onClick:n[0]||(n[0]=E=>d.handleOpenPopup(l.getFirstProcessNode.id))},[t.createElementVNode("div",Jh,[l.partNode[l.getFirstProcessNode.id]&&l.partNode[l.getFirstProcessNode.id].length?(t.openBlock(),t.createElementBlock("div",Ph,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l.partNode[l.getFirstProcessNode.id],(E,y)=>(t.openBlock(),t.createElementBlock("span",null,t.toDisplayString(y==0?E:`,${E}`),1))),256))])):(t.openBlock(),t.createElementBlock("div",Gh,Rh))])])]),t.createVNode(m,{ref:"topTips",text:l.textTips,statusTips:l.statusTips,type:l.typeTips},null,8,["text","statusTips","type"]),t.createVNode(f,{visible:l.visible,"onUpdate:visible":n[1]||(n[1]=E=>l.visible=E),titleText:"\u9009\u4EBA",isDrawer:!0},{default:t.withCtx(()=>[t.createVNode(A,t.mergeProps({isTitle:!1,visible:l.visible,request:o.param.request,businessId:o.param.formData.businessKey},l.entity,{onCallback:d.handleCallback,onCancel:d.handleCancel}),null,16,["visible","request","businessId","onCallback","onCancel"])]),_:1},8,["visible"])])}const Kh=J(Fh,[["render",jh],["__scopeId","data-v-7c6d9221"]]),Yh=pe({name:"TopProcess",components:{TopTab:Cc,TopPopup:$,TopTips:he,TopSumbitPopup:co},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},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:!1},restartData:{type:Object,default:{businessType:"",showType:"",processName:""}},selfList:{type:Array,default:()=>[]},selfBtn:{type:Array,default:()=>[]},uid:{type:String,default:""},isMsg:{type:Boolean,default:!1}},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:{},restartDataS:{},selfBtnList:[],topNum:144,bottomNum:70,userIdData:"",TopPopup1:!1}},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(o=>{o.code==200&&(this.trackUrl=o.data)}),this.request.get("/aws/pis/findNodeParticipantRows",{params:{processInstId:this.processIntId}}).then(o=>{o.code==200&&(this.trackList=o.data)}),this.request.get("/aws/tis/getTaskCommentList",{params:{processInstId:this.processInstId,processBusinessKey:this.formData.businessKey}}).then(o=>{o.code==200&&(this.taskCommentList=o.data)}),this.getUserInfo(),this.request.get("/aws/pis/getProcessInstanceById",{params:{processInstId:this.processInstId}}).then(o=>{o.code==200&&(this.ProcessInsObj=o.data)}),await this.request.get("/aws/repository/queryTaskNodeList",{params:{processInstId:this.processInstId}}).then(o=>{if(o.code==200)if(this.taskNode=o.data,this.taskNodeList=o.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},restartData:{handler(e,n){this.restartDataS=e},immediate:!0,deep:!0},selfBtn:{handler(e,n){e&&e.length&&(this.selfBtnList=e)},immediate:!0,deep:!0},uid:{handler(e,n){e&&(this.userIdData=e)},immediate:!0,deep:!0}},mounted(){},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){var o,i;let e=[],n=this.taskNode&&this.taskNode[0]&&this.taskNode[0].taskState!=4;if(this.formData.currentState==="\u5DF2\u64A4\u9500"||this.formData.currentState==="\u5DF2\u9A73\u56DE"||this.processStatus.status==="\u5DF2\u64A4\u9500"||this.processStatus.status==="\u5DF2\u9A73\u56DE"||this.processStatus.bizStatusName==="\u5DF2\u64A4\u9500"||this.processStatus.bizStatusName==="\u5DF2\u9A73\u56DE"){let l={};l.name="\u91CD\u65B0\u63D0\u4EA4",l.btnProps={type:"default"},e.push(l),l.click=this.handleTest}if(n&&!this.isView&&this.taskObj.completeButtonLabel){let l={};l.name=this.taskObj.completeButtonLabel,l.btnProps={type:"primary"},e.push(l),l.click=d=>{this.handleActionClose(),this.showOperation(Gp,d,this.request,this.taskObj.completeButtonAnnex)}}if(n&&!this.isView&&this.processStatus.currUserName){let l={};l.name="\u62D2\u7EDD",l.btnProps={type:"danger"},e.push(l),l.click=d=>{this.handleActionClose(),this.showOperation(ah,d,this.request,this.taskObj.otherButtonAnnexList)}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(l=>{let d={};d.name=l.name,d.btnProps={type:l.type},e.push(d),d.click=l.click}),n&&!this.isView&&this.taskObj.buttons&&this.taskObj.buttons.length&&this.taskObj.buttons.forEach(l=>{if(l.label==="\u9000\u56DE"){let d={};d.name=l.label,d.btnProps={type:"danger"},e.push(d),d.click=m=>{this.handleActionClose(),this.showOperation(Ah,m,this.request,this.taskObj.otherButtonAnnexList)}}}),n&&!this.isView&&this.taskObj.ccTaskButtonLabel){let l={};l.name=this.taskObj.ccTaskButtonLabel,l.btnProps={type:"default"},l.click=d=>{this.handleActionClose(),this.showOperation(Mh,d,this.request,this.taskObj.ccTaskButtonAnnex)},e.push(l)}if(n&&!this.isView&&this.taskObj.delegateTaskButtonLabel){let l={};l.name=this.taskObj.delegateTaskButtonLabel,l.btnProps={type:"default"},l.click=d=>{this.handleActionClose(),this.showOperation(jr,d,this.request,this.taskObj.delegateTaskButtonAnnex)},e.push(l)}if(n&&!this.isView&&this.taskObj.counterSignLabel){let l={};l.name=this.taskObj.counterSignLabel,l.btnProps={type:"primary"},l.click=d=>{this.handleActionClose(),this.showOperation(yr,d,this.request,this.taskObj.counterSignButtonAnnex)},e.push(l)}if(this.processIntId&&this.processStatus.createUid==this.userIdData&&((o=this.taskNode[0])==null?void 0:o.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let l={};l.name="\u50AC\u529E",l.btnProps={type:"default"},l.click=d=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=d,this.popupContext=`\u786E\u5B9A${d}\u5417?`,this.handleTipsType="\u50AC\u529E"},e.push(l)}if(this.processIntId&&this.processStatus.createUid==this.userIdData&&((i=this.taskNode[0])==null?void 0:i.taskState)!=2&&this.processStatus.status!=="\u5DF2\u9A73\u56DE"&&this.processStatus.status!=="\u5DF2\u64A4\u9500"){let l={};l.name="\u64A4\u9500",l.btnProps={type:"default"},l.click=d=>{this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText=d,this.popupContext=`\u786E\u5B9A${d}\u5417?`,this.handleTipsType="\u64A4\u9500"},e.push(l)}return e},processCardHeight(){console.log("btnList",this.operBtn);let e=this.topNum+this.bottomNum-10;return this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end&&(e-=this.bottomNum),`calc(100vh - ${e}px)`},processBtn(){if(console.log("btnList",this.operBtn),this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end)return`-${this.bottomNum}px`}},methods:{handleGetHeight(){this.$nextTick(()=>{setTimeout(()=>{let e=document.getElementById("process-header"),n=document.getElementById("process-footer");this.bottomNum=n?n.scrollHeight+10:70,this.topNum=e?e.scrollHeight+10:144,console.log(this.bottomNum,"diss::",this.topNum)},1e3)})},handleTestsss(e,n){console.log("==========:::",e,n)},handleTestS(){this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success")},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,errorTip:!1},o=await this.request.post("/aws/tis/simulation",n);if(o.success){this.handleTips("",!1,"success"),this.nextNodeData=o.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 o=await this.request.get("/aws/repository/getOutgoingProcessNode",{params:{taskId:e,processNodeId:n}});if(o.code==200){if(o.data&&o.data.length){for(let i=0;i<o.data.length;i++){let l=o.data[i];if(l.type!="UserTaskModel"){let d=await this.getOutgoingProcessNode(e,l.id);d&&d.length&&(await d.map((m,A)=>{m.nodeName=m.incomingConditionItemList&&m.incomingConditionItemList.length?m.incomingConditionItemList[0].compareValue:""}),l.childNode=d)}}return this.handleTips("",!1,"success"),o.data}return this.handleTips("",!1,"success"),[]}return[]},handleGet(e){this.taskNode=[].concat(e),this.taskNodeShow=!1,this.actionShow=!1,this.handleGetProcessStatus(),this.handleGetUserTaskModel()},handleGetProcessStatus(){this.handleTips("",!0,"loading"),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.$emit("processStatus",this.processStatus),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),this.handleGetHeight()}).catch(e=>{this.handleGetHeight()})},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),this.handleGetHeight(),this.$refs.topTips.handleClose()}).catch(e=>{this.handleGetHeight()})},async showOperation(e,n,o,i){if(this.beforeFunction&&!this.beforeFunction())return;if(this.processStatus.allUserNames&&this.processStatus.allUserNames.length==1&&this.taskNode[0]&&this.taskNode[0].nodeId){let d;this.getVars&&(d=this.getVars()),await this.handleGetSimulation(d)}o&&(this.operationParam.request=o,this.annexlabel=i),this.titleText=n,this.operationCom=e,this.TopPopup1=!0,this.operationParam.visible=this.TopPopup1,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.userInfo=this.user,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.isMsg=this.isMsg,this.operationParam.canCheck=this.canCheck,this.taskObj.commentModels.some(d=>this.operationParam.actionComplete=d!=null&&d.isDefault?d.actionName:"")},handleCancel(){},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.TopPopup1=!1},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("\u50AC\u529E")):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("\u64A4\u9500")):(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(o=>{this.getFirstProcessNode=o.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(Kh,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(o=>{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,o){this.textTips=e,this.statusTips=n,this.typeTips=o,this.$refs.topTips.handleOpen()}}}),kA="",nt=e=>(t.pushScopeId("data-v-2afd59e8"),e=e(),t.popScopeId(),e),Hh={class:"process-warp"},Wh={key:0,class:"process-main",id:"process-header",ref:"processheader"},zh={class:"process-ml-item border"},Zh=nt(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u72B6\u6001",-1)),Xh={class:"process-mli-value"},_h={class:"process-ml-item border"},qh=nt(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4",-1)),$h={class:"process-mli-value"},em={key:0,class:"process-ml-item"},tm=nt(()=>t.createElementVNode("div",{class:"process-mli-name"},"\u5BA1\u6279\u8282\u70B9",-1)),sm={class:"process-mli-value",style:{width:"50%","text-align":"right"}},nm={class:"process-mliv-jd"},om=["slot"],im={slot:"default",style:{}},am=["slot"],lm={key:0,class:"footBtnRow"},cm=["onClick"],dm=[nt(()=>t.createElementVNode("div",{class:"circle"},null,-1)),nt(()=>t.createElementVNode("div",{class:"circle"},null,-1)),nt(()=>t.createElementVNode("div",{class:"circle"},null,-1))],rm=["onClick"],pm=["onClick"];function hm(e,n,o,i,l,d){const m=t.resolveComponent("TopTab"),A=t.resolveComponent("TopPopup"),f=t.resolveComponent("TopTips"),E=t.resolveComponent("TopSumbitPopup");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Hh,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(t.openBlock(),t.createElementBlock("div",Wh,[t.createElementVNode("div",zh,[Zh,t.createElementVNode("div",Xh,[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?(t.openBlock(),t.createElementBlock("div",{key:0,class:"process-mliv-dd",style:t.normalizeStyle({background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)})},t.toDisplayString(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status),5)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",_h,[qh,t.createElementVNode("div",$h,[t.createElementVNode("span",null,t.toDisplayString(e.processStatus.createTime),1)])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?(t.openBlock(),t.createElementBlock("div",em,[tm,t.createElementVNode("div",sm,[t.createElementVNode("span",nm,t.toDisplayString(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`),1)])])):t.createCommentVNode("",!0)],512)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"process-card",style:t.normalizeStyle({height:e.processCardHeight})},[t.createVNode(m,{tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList},{default:t.withCtx(()=>[e.selfTapList&&e.selfTapList.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.selfTapList,(y,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,slot:y.slot},[t.renderSlot(e.$slots,y.slot,{},void 0,!0)],8,om))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",im,[t.renderSlot(e.$slots,"default",{},void 0,!0)]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.tapList,(y,p)=>(t.openBlock(),t.createElementBlock("div",{style:{},key:p,slot:y.slot},[t.renderSlot(e.$slots,y.slot,{},void 0,!0)],8,am))),128))],64))]),_:3},8,["tapList","selfTapList","processIntId","track","taskComment","trackList"])],4),e.isView?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:1,class:"process-btn",id:"process-footer",style:t.normalizeStyle({bottom:e.processBtn})},[e.isAdditional?(t.openBlock(),t.createElementBlock("div",lm,[t.renderSlot(e.$slots,"btn",{data:e.processStatus},void 0,!0)])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?(t.openBlock(),t.createElementBlock("div",{key:0,class:"top-button",style:t.normalizeStyle(e.getBtnStyle("default"))}," \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ",4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.operBtn,(y,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[p<3?(t.openBlock(),t.createElementBlock("div",{class:"top-button",style:t.normalizeStyle(e.getBtnStyle(y.btnProps.type.toString())),key:y.name,onClick:B=>y.click(y.name)},t.toDisplayString(y.name),13,cm)):t.createCommentVNode("",!0)],64))),256)):t.createCommentVNode("",!0),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?(t.openBlock(),t.createElementBlock("div",{key:1,class:"elips",onClick:n[0]||(n[0]=(...y)=>e.handleActionOpen&&e.handleActionOpen(...y))},dm)):t.createCommentVNode("",!0)],64))],64))],4))]),t.createVNode(A,{ref:"TopPopup1",cancel:e.handleCancel,comfig:e.handleComfig,titleText:e.titleText,visible:e.TopPopup1},{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.operationCom),{ref:"operationRef",param:e.operationParam,onHandleClosePopup1:e.handleClosePopup1},null,40,["param","onHandleClosePopup1"]))]),_:1},8,["cancel","comfig","titleText","visible"]),t.createVNode(A,{ref:"TopPopup2",titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig},null,8,["titleText","context","cancel","comfig"]),t.createVNode(f,{ref:"topTips",text:e.textTips,statusTips:e.statusTips,type:e.typeTips},null,8,["text","statusTips","type"]),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?(t.openBlock(),t.createElementBlock("div",{key:0,class:"top-elips",style:t.normalizeStyle(e.actionShow?"transform: translateY(0)":"transform: translateY(100%)")},[e.taskNodeShow?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.taskNodeList,y=>(t.openBlock(),t.createElementBlock("div",{class:"top-elips-items",onClick:p=>e.handleGet(y),key:y.taskId},t.toDisplayString(y.name),9,rm))),128)):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.actionBtn,y=>(t.openBlock(),t.createElementBlock("div",{class:"top-elips-items",onClick:p=>y.click(y.name),key:y.name},t.toDisplayString(y.name),9,pm))),128)),t.createElementVNode("div",{class:"top-elips-items top-elips-items--cancel",onClick:n[1]||(n[1]=(...y)=>e.handleActionClose&&e.handleActionClose(...y))}," \u53D6\u6D88 ")],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"top-elips-mask",onClick:n[2]||(n[2]=(...y)=>e.handleActionClose&&e.handleActionClose(...y)),style:t.normalizeStyle(e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;")},null,4),t.createVNode(E,t.mergeProps({visible:e.visibleSong,ref:"actionPop",request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0},e.restartDataS,{onSuccessFn:e.endFunction,selfList:e.selfList,onChange:e.handleTestsss}),null,16,["visible","request","appId","id","onSuccessFn","selfList","onChange"])])}const mm=J(Yh,[["render",hm],["__scopeId","data-v-2afd59e8"]]);ce.TopProcess=mm,ce.TopSumbitPopup=co,ce.ViewAttchList=io,ce.attchViews=ve,Object.defineProperties(ce,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|