ddy-process-h5 1.0.1-rc.3.83 → 1.0.1-rc.3.85
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.
|
@@ -27,4 +27,4 @@ See more tips at https://vuejs.org/guide/deployment.html`)},0);var Ba=function(e
|
|
|
27
27
|
`),s]);else{const r=[`[Vue warn]: ${e}`,...t];s.length&&r.push(`
|
|
28
28
|
`,...nE(s)),[...r]}Pd()}function iE(){let e=Wi[Wi.length-1];if(!e)return[];const t=[];for(;e;){const i=t[0];i&&i.vnode===e?i.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function nE(e){const t=[];return e.forEach((i,n)=>{t.push(...n===0?[]:[`
|
|
29
29
|
`],...sE(i))}),t}function sE({vnode:e,recurseCount:t}){const i=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,s=` at <${fh(e.component,e.type,n)}`,r=">"+i;return e.props?[s,...rE(e.props),r]:[s+r]}function rE(e){const t=[],i=Object.keys(e);return i.slice(0,3).forEach(n=>{t.push(...Hd(n,e[n]))}),i.length>3&&t.push(" ..."),t}function Hd(e,t,i){return Tt(t)?(t=JSON.stringify(t),i?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?i?t:[`${e}=${t}`]:tt(t)?(t=Hd(e,fe(t.value),!0),i?t:[`${e}=Ref<`,t,">"]):Je(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=fe(t),i?t:[`${e}=`,t])}const Kd={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 zi(e,t,i,n){let s;try{s=n?e(...n):e()}catch(r){Wd(r,t,i)}return s}function Wo(e,t,i,n){if(Je(e)){const r=zi(e,t,i,n);return r&&pw(r)&&r.catch(a=>{Wd(a,t,i)}),r}const s=[];for(let r=0;r<e.length;r++)s.push(Wo(e[r],t,i,n));return s}function Wd(e,t,i,n=!0){const s=t?t.vnode:null;if(t){let r=t.parent;const a=t.proxy,o=process.env.NODE_ENV!=="production"?Kd[i]:i;for(;r;){const p=r.ec;if(p){for(let h=0;h<p.length;h++)if(p[h](e,a,o)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){zi(l,null,10,[e,a,o]);return}}aE(e,i,s,n)}function aE(e,t,i,n=!0){if(process.env.NODE_ENV!=="production"){const s=Kd[t];if(i&&eE(i),He(`Unhandled error${s?` during execution of ${s}`:""}`),i&&tE(),n)throw e;console.error(e)}else console.error(e)}let Tr=!1,zo=!1;const _t=[];let pi=0;const _n=[];let Rt=null,di=0;const zd=Promise.resolve();let Yo=null;const oE=100;function lE(e){const t=Yo||zd;return e?t.then(this?e.bind(this):e):t}function cE(e){let t=pi+1,i=_t.length;for(;t<i;){const n=t+i>>>1;os(_t[n])<e?t=n+1:i=n}return t}function Xo(e){(!_t.length||!_t.includes(e,Tr&&e.allowRecurse?pi+1:pi))&&(e.id==null?_t.push(e):_t.splice(cE(e.id),0,e),Yd())}function Yd(){!Tr&&!zo&&(zo=!0,Yo=zd.then(Zd))}function Xd(e){be(e)?_n.push(...e):(!Rt||!Rt.includes(e,e.allowRecurse?di+1:di))&&_n.push(e),Yd()}function uE(e){if(_n.length){const t=[...new Set(_n)];if(_n.length=0,Rt){Rt.push(...t);return}for(Rt=t,process.env.NODE_ENV!=="production"&&(e=e||new Map),Rt.sort((i,n)=>os(i)-os(n)),di=0;di<Rt.length;di++)process.env.NODE_ENV!=="production"&&$d(e,Rt[di])||Rt[di]();Rt=null,di=0}}const os=e=>e.id==null?1/0:e.id,pE=(e,t)=>{const i=os(e)-os(t);if(i===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return i};function Zd(e){zo=!1,Tr=!0,process.env.NODE_ENV!=="production"&&(e=e||new Map),_t.sort(pE);const t=process.env.NODE_ENV!=="production"?i=>$d(e,i):So;try{for(pi=0;pi<_t.length;pi++){const i=_t[pi];if(i&&i.active!==!1){if(process.env.NODE_ENV!=="production"&&t(i))continue;zi(i,null,14)}}}finally{pi=0,_t.length=0,uE(e),Tr=!1,Yo=null,(_t.length||_n.length)&&Zd(e)}}function $d(e,t){if(!e.has(t))e.set(t,1);else{const i=e.get(t);if(i>oE){const n=t.ownerInstance,s=n&&hh(n.type);return He(`Maximum recursive updates exceeded${s?` in component <${s}>`:""}. 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 e.set(t,i+1)}}const ls=new Set;process.env.NODE_ENV!=="production"&&(Oo().__VUE_HMR_RUNTIME__={createRecord:Zo(dE),rerender:Zo(hE),reload:Zo(fE)});const _r=new Map;function dE(e,t){return _r.has(e)?!1:(_r.set(e,{initialDef:cs(t),instances:new Set}),!0)}function cs(e){return mh(e)?e.__vccOpts:e}function hE(e,t){const i=_r.get(e);!i||(i.initialDef.render=t,[...i.instances].forEach(n=>{t&&(n.render=t,cs(n.type).render=t),n.renderCache=[],n.update()}))}function fE(e,t){const i=_r.get(e);if(!i)return;t=cs(t),eh(i.initialDef,t);const n=[...i.instances];for(const s of n){const r=cs(s.type);ls.has(r)||(r!==i.initialDef&&eh(r,t),ls.add(r)),s.appContext.propsCache.delete(s.type),s.appContext.emitsCache.delete(s.type),s.appContext.optionsCache.delete(s.type),s.ceReload?(ls.add(r),s.ceReload(t.styles),ls.delete(r)):s.parent?Xo(s.parent.update):s.appContext.reload?s.appContext.reload():typeof window<"u"&&window.location.reload()}Xd(()=>{for(const s of n)ls.delete(cs(s.type))})}function eh(e,t){yt(e,t);for(const i in e)i!=="__file"&&!(i in t)&&delete e[i]}function Zo(e){return(t,i)=>{try{return e(t,i)}catch(n){console.error(n)}}}let hi=null,mE=null;function ET(){}const gE=e=>e.__isSuspense;function yE(e,t){t&&t.pendingBranch?be(e)?t.effects.push(...e):t.effects.push(e):Xd(e)}const Nr={};function vE(e,t,{immediate:i,deep:n,flush:s,onTrack:r,onTrigger:a}=Bt){var o;process.env.NODE_ENV!=="production"&&!t&&(i!==void 0&&He('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&He('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const l=E=>{He("Invalid watch source: ",E,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},p=Cw()===((o=Sn)==null?void 0:o.scope)?Sn:null;let h,d=!1,y=!1;if(tt(e)?(h=()=>e.value,d=qo(e)):Hi(e)?(h=()=>e,n=!0):be(e)?(y=!0,d=e.some(E=>Hi(E)||qo(E)),h=()=>e.map(E=>{if(tt(E))return E.value;if(Hi(E))return Nn(E);if(Je(E))return zi(E,p,2);process.env.NODE_ENV!=="production"&&l(E)})):Je(e)?t?h=()=>zi(e,p,2):h=()=>{if(!(p&&p.isUnmounted))return x&&x(),Wo(e,p,3,[M])}:(h=So,process.env.NODE_ENV!=="production"&&l(e)),t&&n){const E=h;h=()=>Nn(E())}let x,M=E=>{x=U.onStop=()=>{zi(E,p,4)}},B=y?new Array(e.length).fill(Nr):Nr;const Z=()=>{if(!!U.active)if(t){const E=U.run();(n||d||(y?E.some((P,S)=>yr(P,B[S])):yr(E,B)))&&(x&&x(),Wo(t,p,3,[E,B===Nr?void 0:y&&B[0]===Nr?[]:B,M]),B=E)}else U.run()};Z.allowRecurse=!!t;let J;s==="sync"?J=Z:s==="post"?J=()=>rh(Z,p&&p.suspense):(Z.pre=!0,p&&(Z.id=p.uid),J=()=>Xo(Z));const U=new xw(h,J);return process.env.NODE_ENV!=="production"&&(U.onTrack=r,U.onTrigger=a),t?i?Z():B=U.run():s==="post"?rh(U.run.bind(U),p&&p.suspense):U.run(),()=>{U.stop(),p&&p.scope&&lw(p.scope.effects,U)}}function AE(e,t,i){const n=this.proxy,s=Tt(e)?e.includes(".")?bE(n,e):()=>n[e]:e.bind(n,n);let r;Je(t)?r=t:(r=t.handler,i=t);const a=Sn;dh(this);const o=vE(s,r.bind(n),i);return a?dh(a):jE(),o}function bE(e,t){const i=t.split(".");return()=>{let n=e;for(let s=0;s<i.length&&n;s++)n=n[i[s]];return n}}function Nn(e,t){if(!Ze(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),tt(e))Nn(e.value,t);else if(be(e))for(let i=0;i<e.length;i++)Nn(e[i],t);else if(uw(e)||Tn(e))e.forEach(i=>{Nn(i,t)});else if(hw(e))for(const i in e)Nn(e[i],t);return e}const CE=Symbol.for("v-ndc"),$o=e=>e?UE(e)?QE(e)||e.proxy:$o(e.parent):null,us=yt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>process.env.NODE_ENV!=="production"?Ir(e.props):e.props,$attrs:e=>process.env.NODE_ENV!=="production"?Ir(e.attrs):e.attrs,$slots:e=>process.env.NODE_ENV!=="production"?Ir(e.slots):e.slots,$refs:e=>process.env.NODE_ENV!=="production"?Ir(e.refs):e.refs,$parent:e=>$o(e.parent),$root:e=>$o(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?IE(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>Xo(e.update)),$nextTick:e=>e.n||(e.n=lE.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?AE.bind(e):So}),wE=e=>e==="_"||e==="$",el=(e,t)=>e!==Bt&&!e.__isScriptSetup&&_e(e,t),EE={get({_:e},t){const{ctx:i,setupState:n,data:s,props:r,accessCache:a,type:o,appContext:l}=e;if(process.env.NODE_ENV!=="production"&&t==="__isVue")return!0;let p;if(t[0]!=="$"){const x=a[t];if(x!==void 0)switch(x){case 1:return n[t];case 2:return s[t];case 4:return i[t];case 3:return r[t]}else{if(el(n,t))return a[t]=1,n[t];if(s!==Bt&&_e(s,t))return a[t]=2,s[t];if((p=e.propsOptions[0])&&_e(p,t))return a[t]=3,r[t];if(i!==Bt&&_e(i,t))return a[t]=4,i[t];(!__VUE_OPTIONS_API__||xE)&&(a[t]=0)}}const h=us[t];let d,y;if(h)return t==="$attrs"?(et(e,"get",t),process.env.NODE_ENV!=="production"&&void 0):process.env.NODE_ENV!=="production"&&t==="$slots"&&et(e,"get",t),h(e);if((d=o.__cssModules)&&(d=d[t]))return d;if(i!==Bt&&_e(i,t))return a[t]=4,i[t];if(y=l.config.globalProperties,_e(y,t))return y[t];process.env.NODE_ENV!=="production"&&hi&&(!Tt(t)||t.indexOf("__v")!==0)&&(s!==Bt&&wE(t[0])&&_e(s,t)?He(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===hi&&He(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:e},t,i){const{data:n,setupState:s,ctx:r}=e;return el(s,t)?(s[t]=i,!0):process.env.NODE_ENV!=="production"&&s.__isScriptSetup&&_e(s,t)?(He(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==Bt&&_e(n,t)?(n[t]=i,!0):_e(e.props,t)?(process.env.NODE_ENV!=="production"&&He(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in e?(process.env.NODE_ENV!=="production"&&He(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):(process.env.NODE_ENV!=="production"&&t in e.appContext.config.globalProperties?Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:i}):r[t]=i,!0)},has({_:{data:e,setupState:t,accessCache:i,ctx:n,appContext:s,propsOptions:r}},a){let o;return!!i[a]||e!==Bt&&_e(e,a)||el(t,a)||(o=r[0])&&_e(o,a)||_e(n,a)||_e(us,a)||_e(s.config.globalProperties,a)},defineProperty(e,t,i){return i.get!=null?e._.accessCache[t]=0:_e(i,"value")&&this.set(e,t,i.value,null),Reflect.defineProperty(e,t,i)}};process.env.NODE_ENV!=="production"&&(EE.ownKeys=e=>(He("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));function th(e){return be(e)?e.reduce((t,i)=>(t[i]=null,t),{}):e}let xE=!0;function IE(e){const t=e.type,{mixins:i,extends:n}=t,{mixins:s,optionsCache:r,config:{optionMergeStrategies:a}}=e.appContext,o=r.get(t);let l;return o?l=o:!s.length&&!i&&!n?l=t:(l={},s.length&&s.forEach(p=>kr(l,p,a,!0)),kr(l,t,a)),Ze(t)&&r.set(t,l),l}function kr(e,t,i,n=!1){const{mixins:s,extends:r}=t;r&&kr(e,r,i,!0),s&&s.forEach(a=>kr(e,a,i,!0));for(const a in t)if(n&&a==="expose")process.env.NODE_ENV!=="production"&&He('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=TE[a]||i&&i[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const TE={data:ih,props:sh,emits:sh,methods:ps,computed:ps,beforeCreate:Ke,created:Ke,beforeMount:Ke,mounted:Ke,beforeUpdate:Ke,updated:Ke,beforeDestroy:Ke,beforeUnmount:Ke,destroyed:Ke,unmounted:Ke,activated:Ke,deactivated:Ke,errorCaptured:Ke,serverPrefetch:Ke,components:ps,directives:ps,watch:NE,provide:ih,inject:_E};function ih(e,t){return t?e?function(){return yt(Je(e)?e.call(this,this):e,Je(t)?t.call(this,this):t)}:t:e}function _E(e,t){return ps(nh(e),nh(t))}function nh(e){if(be(e)){const t={};for(let i=0;i<e.length;i++)t[e[i]]=e[i];return t}return e}function Ke(e,t){return e?[...new Set([].concat(e,t))]:t}function ps(e,t){return e?yt(Object.create(null),e,t):t}function sh(e,t){return e?be(e)&&be(t)?[...new Set([...e,...t])]:yt(Object.create(null),th(e),th(t!=null?t:{})):t}function NE(e,t){if(!e)return t;if(!t)return e;const i=yt(Object.create(null),e);for(const n in t)i[n]=Ke(e[n],t[n]);return i}function kE(){return{app:null,config:{isNativeTag:rw,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}const rh=yE,SE=e=>e.__isTeleport,ah=Symbol.for("v-fgt"),PE=Symbol.for("v-txt"),DE=Symbol.for("v-cmt");let kn=null;function OE(e){return e?e.__v_isVNode===!0:!1}const ME=(...e)=>ch(...e),oh="__vInternal",lh=({key:e})=>e!=null?e:null,Sr=({ref:e,ref_key:t,ref_for:i})=>(typeof e=="number"&&(e=""+e),e!=null?Tt(e)||tt(e)||Je(e)?{i:hi,r:e,k:t,f:!!i}:e:null);function BE(e,t=null,i=null,n=0,s=null,r=e===ah?0:1,a=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&lh(t),ref:t&&Sr(t),scopeId:mE,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:hi};return o?(tl(l,i),r&128&&e.normalize(l)):i&&(l.shapeFlag|=Tt(i)?8:16),process.env.NODE_ENV!=="production"&&l.key!==l.key&&He("VNode created with invalid key (NaN). VNode type:",l.type),!a&&kn&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&kn.push(l),l}const RE=process.env.NODE_ENV!=="production"?ME:ch;function ch(e,t=null,i=null,n=0,s=null,r=!1){if((!e||e===CE)&&(process.env.NODE_ENV!=="production"&&!e&&He(`Invalid vnode type when creating vnode: ${e}.`),e=DE),OE(e)){const o=Pr(e,t,!0);return i&&tl(o,i),!r&&kn&&(o.shapeFlag&6?kn[kn.indexOf(e)]=o:kn.push(o)),o.patchFlag|=-2,o}if(mh(e)&&(e=e.__vccOpts),t){t=LE(t);let{class:o,style:l}=t;o&&!Tt(o)&&(t.class=Bo(o)),Ze(l)&&(Jo(l)&&!be(l)&&(l=yt({},l)),t.style=Mo(l))}const a=Tt(e)?1:gE(e)?128:SE(e)?64:Ze(e)?4:Je(e)?2:0;return process.env.NODE_ENV!=="production"&&a&4&&Jo(e)&&(e=fe(e),He("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`.",`
|
|
30
|
-
Component that was made reactive: `,e)),BE(e,t,i,n,s,a,r,!0)}function LE(e){return e?Jo(e)||oh in e?yt({},e):e:null}function Pr(e,t,i=!1){const{props:n,ref:s,patchFlag:r,children:a}=e,o=t?VE(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&lh(o),ref:t&&t.ref?i&&s?be(s)?s.concat(Sr(t)):[s,Sr(t)]:Sr(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&r===-1&&be(a)?a.map(uh):a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ah?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Pr(e.ssContent),ssFallback:e.ssFallback&&Pr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function uh(e){const t=Pr(e);return be(e.children)&&(t.children=e.children.map(uh)),t}function FE(e=" ",t=0){return RE(PE,null,e,t)}function tl(e,t){let i=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(be(t))i=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),tl(e,s()),s._c&&(s._d=!0));return}else{i=32;const s=t._;!s&&!(oh in t)?t._ctx=hi:s===3&&hi&&(hi.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Je(t)?(t={default:t,_ctx:hi},i=32):(t=String(t),n&64?(i=16,t=[FE(t)]):i=8);e.children=t,e.shapeFlag|=i}function VE(...e){const t={};for(let i=0;i<e.length;i++){const n=e[i];for(const s in n)if(s==="class")t.class!==n.class&&(t.class=Bo([t.class,n.class]));else if(s==="style")t.style=Mo([t.style,n.style]);else if(ow(s)){const r=t[s],a=n[s];a&&r!==a&&!(be(r)&&r.includes(a))&&(t[s]=r?[].concat(r,a):a)}else s!==""&&(t[s]=n[s])}return t}kE();let Sn=null,il,Pn,ph="__VUE_INSTANCE_SETTERS__";(Pn=Oo()[ph])||(Pn=Oo()[ph]=[]),Pn.push(e=>Sn=e),il=e=>{Pn.length>1?Pn.forEach(t=>t(e)):Pn[0](e)};const dh=e=>{il(e),e.scope.on()},jE=()=>{Sn&&Sn.scope.off(),il(null)};function UE(e){return e.vnode.shapeFlag&4}function QE(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy($w(Yw(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in us)return us[i](e)},has(t,i){return i in t||i in us}}))}const GE=/(?:^|[-_])(\w)/g,qE=e=>e.replace(GE,t=>t.toUpperCase()).replace(/[-_]/g,"");function hh(e,t=!0){return Je(e)?e.displayName||e.name:e.name||t&&e.__name}function fh(e,t,i=!1){let n=hh(t);if(!n&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(n=s[1])}if(!n&&e&&e.parent){const s=r=>{for(const a in r)if(r[a]===t)return a};n=s(e.components||e.parent.type.components)||s(e.appContext.components)}return n?qE(n):i?"App":"Anonymous"}function mh(e){return Je(e)&&"__vccOpts"in e}function nl(e){return!!(e&&e.__v_isShallow)}function JE(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},i={style:"color:#b62e24"},n={style:"color:#9d288c"},s={header(d){return Ze(d)?d.__isVue?["div",e,"VueInstance"]:tt(d)?["div",{},["span",e,h(d)],"<",o(d.value),">"]:Hi(d)?["div",{},["span",e,nl(d)?"ShallowReactive":"Reactive"],"<",o(d),`>${Ki(d)?" (readonly)":""}`]:Ki(d)?["div",{},["span",e,nl(d)?"ShallowReadonly":"Readonly"],"<",o(d),">"]:null:null},hasBody(d){return d&&d.__isVue},body(d){if(d&&d.__isVue)return["div",{},...r(d.$)]}};function r(d){const y=[];d.type.props&&d.props&&y.push(a("props",fe(d.props))),d.setupState!==Bt&&y.push(a("setup",d.setupState)),d.data!==Bt&&y.push(a("data",fe(d.data)));const x=l(d,"computed");x&&y.push(a("computed",x));const M=l(d,"inject");return M&&y.push(a("injected",M)),y.push(["div",{},["span",{style:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:d}]]),y}function a(d,y){return y=yt({},y),Object.keys(y).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},d],["div",{style:"padding-left:1.25em"},...Object.keys(y).map(x=>["div",{},["span",n,x+": "],o(y[x],!1)])]]:["span",{}]}function o(d,y=!0){return typeof d=="number"?["span",t,d]:typeof d=="string"?["span",i,JSON.stringify(d)]:typeof d=="boolean"?["span",n,d]:Ze(d)?["object",{object:y?fe(d):d}]:["span",i,String(d)]}function l(d,y){const x=d.type;if(Je(x))return;const M={};for(const B in d.ctx)p(x,B,y)&&(M[B]=d.ctx[B]);return M}function p(d,y,x){const M=d[x];if(be(M)&&M.includes(y)||Ze(M)&&y in M||d.extends&&p(d.extends,y,x)||d.mixins&&d.mixins.some(B=>p(B,y,x)))return!0}function h(d){return nl(d)?"ShallowRef":d.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[s]}function HE(){JE()}process.env.NODE_ENV!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cIWCAZWrYtR8ACKVdyJ5whYIFkaNm2HAELpFzJnXCGgAWSoWXbcgQskHIld8IZAhZIhpZtyxGwQMqV3AlnCFggGVq2LUfAAilXciecIWCBZGjZthwBC6RcyZ1whoAFkqFl23IELJByJXfCGQIWSIaWbcsRsEDKldwJZwhYIBlati1HwAIpV3InnCFggWRo2bYcAQukXMmdcIaABZKhZdtyBCyQciV3whkCFkiGlm3LEbBAypXcCWcIWCAZWrYtR8ACKVdyJ5whYIFkaNm2HAELpFzJnXCGgAWSoWXbcgQskHIld8IZAhZIhpZtyxGwQMqV3AlnCFggGVq2LUfAAilXciecIWCBZGjZthwBC6RcyZ1whoAFkqFl23IELJByJXfCGQIWSIaWbcsRsEDKldwJZwhYIBlati1HwAIpV3InnCFggWRo2bYcAQukXMmdcIaABZKhZdtyBCyQciV3whkCFkiGlm3LEbBAypXcCWcIWCAZWrYtR8ACKVdyJ5whYIFkaNm2HAELpFzJnXCGgAWSoWXbcgQskHIld8IZAhZIhpZtyxGwQMqV3AlnCFggGVq2LUfAAilXciecIWCBZGjZthwBC6RcyZ1whoAFkqFl23IELJByJXfCGQIWSIaWbcsRsEDKldwJZwhYIBlati1HwAIpV3InnCFggWRo2bYcAQukXMmdcIaABZKhZdtyBCyQciV3whkCFkiGlm3LEbBAypXcCWcI/B+xx2bn1cBs4wAAAABJRU5ErkJggg==",sl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADR9JREFUeF7tnXvIbkUVxp9VVtrF0hQMM8MgoahMu3cqzVI6x9KkC9lRhKAoxS5aWXZHIqMrWIQWohlZlkWpJ092v1BEEFlkQlAQBVEmRRcqW7E68x1ev/N977f3emdmz+z17H/fWWtmPWt+7+zL7LUFPKgAFdhUAaE2VIAKbK4AAeHsoAJLFCAgnB5UgIBwDlABnwJcQXy60SqIAgQkSKIZpk8BAuLTjVZBFCAgQRLNMH0KEBCfbrQKogABCZJohulTgID4dKNVEA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PTYNCCEB4Rg8lcs0bB6QwJDYc5jTuH2kzMQf6rULQBYgsddHHz80uI7bGRynisidHccwi6F3A0iCxL6XYe+4zxkSwtEQWl0BEgASwtEQHDaU7gCZMSSEozE4ugVkhpAQjgbh6BqQGUFCOBqFo3tAZgAJ4WgYjlkA0jEkhKNxOGYDSIeQEI4O4JgVIB1BQjg6gWN2gHQACeHoCI5ZAtIwJISjMzhmC0iDkHwBwAu5t6o/Qrp8kj5UZlVtYe+WwfGCuX3ffWgOem83a0AaWEkIR+eEzB6QCSEhHJ3DMetrkPW5qXy6RThmAEcoQCquJIRjJnCEA6QCJIRjRnCEBKQgJIRjZnCEBaQAJIRjhnCEBmQBkt0AnrJCfgnHCuK1bhriNu+yJKSvRVm1FA8khKP1Gb7i+MIDklaS/QGMhYRwrDj5ejAnIAtZUtUr7FNsAxJ3mYi8YkA7NulcAQKyLoHps85v3+SU63cAzl/ly7idz5dwwycgm6RcVY8A8FQARwK4DcAvROTWcDMkeMAEJPgEYPjLFSAgnCFUYIkCBITTgwoQEM4BKuBTgCuITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VPgf/UDKvbyCmTdAAAAAElFTkSuQmCC",zE={name:"TopTips",props:{text:{default:"",type:String},type:{default:"default",type:String},statusTips:{default:!1,type:Boolean},domNode:{default:"",type:String},visible:{default:!1,type:Boolean}},data(){return{show:!1,status:"",timeOut:null}},computed:{error(){return KE},loading(){return WE},success(){return sl}},watch:{type:{handler(e,t){if(e=="loading"){clearInterval(this.timeOut);return}else this.timeOut=setTimeout(()=>{this.show=!1},1500)},immediate:!0,deep:!0}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el)})},methods:{handleOpen(){this.show||(this.show=!0,this.type=="loading"?clearInterval(this.timeOut):this.timeOut=setTimeout(()=>{this.show=!1},1500))},handleClose(){this.show=!1}}};var YE=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.show?i("div",[e.statusTips?i("div",{staticClass:"top-tipss",style:e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;"},[i("div",{staticClass:"top-tipss-status"},[e.type=="loading"?i("div",{staticClass:"top-tipss-loadinig"},[i("img",{attrs:{src:e.loading}}),e.text?i("div",{staticClass:"top-tipss-status-text"},[e._v(" "+e._s(e.text)+" ")]):e._e()]):e._e(),e.type=="success"?i("div",{staticClass:"top-tipss-success"},[i("img",{attrs:{src:e.success}}),e.text?i("div",{staticClass:"top-tipss-status-text"},[e._v(" "+e._s(e.text)+" ")]):e._e()]):e._e(),e.type=="error"?i("div",{staticClass:"top-tipss-error"},[i("img",{attrs:{src:e.error}}),e.text?i("div",{staticClass:"top-tipss-status-text"},[e._v(" "+e._s(e.text)+" ")]):e._e()]):e._e()])]):i("div",{staticClass:"top-tipss",style:e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;"},[e.text?i("div",{staticClass:"top-tipss-text"},[e._v(e._s(e.text))]):e._e()]),i("div",{staticClass:"top-tipss-mask",style:e.show&&e.statusTips?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"})]):e._e()},XE=[];const xT="",gh={};var ZE=ve(zE,YE,XE,!1,$E,"79d9d777",null,null);function $E(e){for(let t in gh)this[t]=gh[t]}const Nt=function(){return ZE.exports}(),ex="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXRVnGqq2o7PtvB1hl0fFun6ji+xhfgzCioq5WA2hFxptUOY23VqlNf06laW7VrVUfs8gEqgmBFRZ4hIRBIcu85e8/69j4HriEJAYLiY691181Ncs/Z+3/++/u+/b0U3T1mWM0AAlZhmaEirFUoZZlus+WlDM8ZJqKpsJZhCiYAxmgC5T8Pk+lYWG4Vy7UhBrSF15ViOYaNrZr5TVt4lxtUfuu1Z9iQAShWETNDme5ckuqWiwkIdxGyEsUMCg6QOTbXazMDAs1wYD9jGKk1gwJFX6UIUZQrS7W7v0AI5fJKAGqy0IQVrMAq6rE0WUsUW9YZwwqtWQq8FRve3VDGKi5TrQ6wGWRQGKYTu3ns5tg9gGRCD6NZ5Njinlz1HFtBK/thOUwZJmjNKGCcggoDthChYguRvIqetTFCJb8arf0rHaGGUEGgIBNiNcjKNwKLjOEdq3kdxUvkeKv+MiW/B2HyOBSTMbsD1O4BlK5AKA706UE/AyeguBrLGAVxbAksWGMwGmwuRAWyYI3KaLbeX36Xfi4YbFwEnnyOkt+1RlgDSmu0AhUoBO8AxWIst2h4sq6Z1R6k3d9uuwaQMOcG2U5+An1vtiNizWlYJivFMKUoExIIvwvGM6U1gqoSOHwIDKyAYb1gdDXIBYQZ+1TA0EqP+PuN8NFG3MqFSEvqYfkGWLkRXvgAGlogFzqQBVSHshDQWjZbeB/DPF3CL+uuUKu2smk6dleYtPMAPWQDFjlwosqbbVUGJhvNJA1fDRQ18libI0xTAdszCwf0Qx1QgxrTB0ZUoQSc0gxUlnjArDx+QbPNTIwFYZEIJwGksQW2FDxIyxqwi+vgjTXYN9ZiN+WhPIPqEaLd9ywfAq9geapgeajxWtWAsHw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,TopPopup:at},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,t){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 ex},del(){return Nu},doc(){return ku},file(){return Su},image(){return Pu},pdf(){return Du},xls(){return Ou},zip(){return Mu}},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${this.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}document.getElementById("fileUp").click()},async handleSelect(e,t){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const i=Array.from(e.target.files);document.getElementById("fileUp").value="";let n=0,s=this.haveCount>i.length?i.length:this.haveCount;try{for(let r=0;r<s;r++)if(this.extension.includes(i[r].name.substring(i[r].name.lastIndexOf(".")+1))){const a=new FormData;a.append("file",i[r]);const o=await this.request.post("/file/upload",a,{headers:{"Content-Type":"multipart/form-data"}});if(o.code===200){if(this.filesArr.length>0){for(let l=0;l<this.filesArr.length;l++)if(o.name==this.filesArr[l].name&&n++,this.filesArr[l].name.includes(`(${n})`)&&n++,n>0){let p=o.name.lastIndexOf(".");o.name=`${o.name.substring(0,p)} (${n}) .${o.name.substring(o.name.lastIndexOf(".")+1)}`}}this.filesArr.push(o.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${i[r].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,t){if(this.deletFn){if(this.deletFn(t)===!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,t){this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1).toLowerCase())?(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((t,i)=>{this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())}),e=this.filesArr.filter(t=>this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())),e.forEach((t,i)=>{this.lists.push(t.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}};var ix=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"attch-upload"},[e.buttonLoading?i("div",{staticClass:"attch-upload-mask"}):e._e(),i("div",{staticClass:"attch-upload-body"},[i("div",{staticClass:"upload-header"},[i("div",{staticClass:"upload-header-title"},[e._v(" \u9644\u4EF6 "),e.requires?i("span",{staticClass:"upload-header-title--re"},[e._v("*")]):e._e()]),i("div",{staticClass:"upload-header-upload"},[e.onlyShow?e._e():i("div",{staticClass:"upload-header-upload--item",attrs:{id:"inputfile"},on:{click:e.handleClick}},[i("img",{attrs:{src:e.addFile}}),e._v("\u4E0A\u4F20\u9644\u4EF6 ")])])]),i("div",{staticClass:"upload-body"},[e.filesArr.length>0?i("div",{staticClass:"upload-list"},e._l(e.filesArr,function(n,s){return i("div",{key:n.uuid,staticClass:"list-items"},[i("div",{staticClass:"list-items-icon"},[e.xlsIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1).toLowerCase())?i("img",{staticClass:"icon-img",attrs:{src:e.xls}}):e.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1).toLowerCase())?i("img",{staticClass:"icon-img",attrs:{src:e.image}}):n.name.substring(n.name.lastIndexOf(".")+1).toLowerCase()=="pdf"?i("img",{staticClass:"icon-img",attrs:{src:e.pdf}}):e.docIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1).toLowerCase())?i("img",{staticClass:"icon-img",attrs:{src:e.doc}}):e.zipIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1).toLowerCase())?i("img",{staticClass:"icon-img",attrs:{src:e.zip}}):i("img",{staticClass:"icon-img",attrs:{src:e.file}})]),i("div",{staticClass:"list-items-info"},[i("div",{staticClass:"info-name"},[e._v(" "+e._s(n.name)+" ")]),i("div",{staticClass:"info-attribute"},[i("span",{staticClass:"info-attribute-size"},[e._v(e._s(n.fileSize<1024?n.fileSize:n.fileSize/1024>1024?parseFloat((n.fileSize/1024/1024).toFixed(2)):parseFloat((n.fileSize/1024).toFixed(2)))+e._s(n.fileSize<1024?"b":parseFloat((n.fileSize/1024).toFixed(2))<1024?"kb":"M")+" ")]),i("span",{staticClass:"info-attribute-views",on:{click:function(r){return e.viewFile(n,s)}}},[e._v(" \u9884\u89C8 ")])])]),e.onlyShow?e._e():i("div",{staticClass:"list-items-operation"},[i("div",{staticClass:"list-items-operation-img",on:{click:function(r){return e.handleDel(s,n)}}},[i("img",{attrs:{src:e.del}})])])])}),0):e._e()])]),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),i("PreviewImage",{attrs:{images:e.lists,visible:e.visible,indexd:e.indexd},on:{"update:visible":function(n){return e.visible=n}}}),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleS,titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},on:{"update:visible":function(n){return e.visibleS=n}}},[e.visibleS?i("PreView",{attrs:{file:e.fileUrl}}):e._e()],1)],1)},nx=[];const IT="",yh={};var sx=ve(tx,ix,nx,!1,rx,"26dcacc2",null,null);function rx(e){for(let t in yh)this[t]=yh[t]}const Yi=function(){return sx.exports}();var ax=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-flow",attrs:{type:"flex"}},[i("div",[e._l(e.getColors(e.flowList),function(n,s){return[["candidate","sequenceFlow"].includes(n.historyActivityType)?e._e():i("div",{key:n.id,staticClass:"flow-item",attrs:{timestamp:n.endTime||n.createTime,placement:"top"}},[i("p",[i("span",{staticClass:"flow-name"},[e._v(e._s(n.assigneeName||(n.comments&&n.comments.length>0?n.comments[n.comments.length-1].userId:"")))]),e._v(" \u5728 "),i("span",{staticClass:"flow-time"},[e._v(e._s(n.createTime))]),e._v(" \u5F00\u59CB\u5904\u7406 "),i("span",{staticClass:"flow-node"},[e._v(e._s(n.historyActivityType=="endEvent"?"\u7ED3\u675F":n.historyActivityName||"\u672A\u547D\u540D"))]),e._v(" \u73AF\u8282 ")]),n.historyActivityDurationTime?i("p",{staticClass:"flow-time"},[e._v(" \u4EFB\u52A1\u5386\u65F6 "+e._s(n.historyActivityDurationTime)+" ")]):e._e(),n.comments&&n.comments.length>0?[e._l(n.comments.filter(function(r){return r.action==="AddComment"}),function(r,a){return[a<1?[i("span",{class:["comment-type",n.class]},[e._v(e._s(e.commentMap[r.type]||r.type))]),i("span",{staticClass:"comment-user"},[e._v(e._s(r.userId))]),e._v(": "),i("span",[e._v(" "+e._s(r.fullMessage)+" ")]),n.comments.filter(function(o){return o.action==="AddComment"}).length>1?i("span",{staticStyle:{color:"#1989fa",float:"right"},on:{click:e.handleClick}},[e._v(" "+e._s(e.toggleText)+" "),i("i",{class:[e.isFlag?"arrow-up":"arrow-down"]})]):e._e(),r.time&&e.isFlag?i("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(r.time))]):e._e()]:e._e(),a>0&&e.isFlag?[i("span",{staticClass:"comment-type"},[e._v(e._s(e.commentMap[r.type]||r.type))]),i("span",{staticClass:"comment-user"},[e._v(e._s(r.userId))]),e._v(": "),i("span",[e._v(" "+e._s(r.fullMessage)+" ")]),r.time?i("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(r.time))]):e._e()]:e._e()]})]:e._e(),n.endTime?i("p",{staticClass:"flow-time"},[e._v("\u7ED3\u675F\u65F6\u95F4: "+e._s(n.endTime))]):e._e(),i("div",{staticClass:"p-file"},[n.attachmentsFujian&&n.attachmentsFujian.length>0?i("div",{on:{click:function(r){return e.$emit("view",n.attachmentsFujian)}}},[e._v(" \u67E5\u770B\u9644\u4EF6")]):e._e(),n.attachmentsQianzi&&n.attachmentsQianzi.length>0?i("div",{on:{click:function(r){return e.$emit("view",n.attachmentsQianzi)}}},[e._v(" \u67E5\u770B\u7B7E\u5B57")]):e._e()])],2)]})],2)])},ox=[];const TT="",lx={name:"nf-flow",components:{attchViews:Yi},props:{request:{type:Object,default:()=>{}},flowList:{type:Array,default:()=>[]}},data(){return{getColors:Cd,isFlag:!0,toggleText:"\u6536\u8D77",commentMap:{assigneeComment:"\u53D8\u66F4",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u56DE\u9000",terminateComment:"\u7EC8\u6B62",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664",cancelProcessComment:"\u62D2\u7EDD",skipComment:"\u8DF3\u8FC7",comment:"\u5BA1\u6279",\u524D\u52A0\u7B7E:"\u52A0\u7B7E",\u540E\u52A0\u7B7E:"\u52A0\u7B7E"}}},methods:{handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},vh={};var cx=ve(lx,ax,ox,!1,ux,"35b01ec6",null,null);function ux(e){for(let t in vh)this[t]=vh[t]}const Ah=function(){return cx.exports}();var px=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:["bpmnnd-box",e.visible?"bpmnnd-box-active":""]},[i("processFlow",{staticStyle:{width:"70vw"},attrs:{request:e.request,"flow-list":e.formatFlow(e.curData)}})],1)},dx=[];const _T="",hx={components:{processFlow:Ah},inject:["request"],data(){return{visible:!1,curData:[],curName:"",commentMap:{assigneeComment:"\u53D8\u66F4\u5BA1\u6838\u4EBA",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u6307\u5B9A\u56DE\u9000\u6D41\u7A0B",terminateComment:"\u7EC8\u6B62\u610F\u89C1",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664\u6D41\u7A0B",cancelProcessComment:"\u62D2\u7EDD",skipComment:"\u8DF3\u8FC7",comment:"\u5BA1\u6279\u610F\u89C1"}}},watch:{visible(e){e||this.$emit("close")}},methods:{formatFlow(e){let t=(e||[]).map(i=>({...i,attachmentsFujian:(i.attachments||[]).filter(n=>n.type!="signature"),attachmentsQianzi:(i.attachments||[]).filter(n=>n.type=="signature")}));return t=t.reverse(),Cd(t)},openDrawer(e,t){let i=t.filter(n=>n.historyActivityType=="userTask");this.curData=i.filter(n=>n.historyActivityId==e.id),this.curData,this.curName=this.curData.length?this.curData[0].historyActivityName:"",this.visible=!!(this.curData&&this.curData.length>0)},closeDrawer(){this.visible=!1}}},bh={};var fx=ve(hx,px,dx,!1,mx,"15b7ee40",null,null);function mx(e){for(let t in bh)this[t]=bh[t]}const gx=function(){return fx.exports}();var yx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"container",staticClass:"bpmn-look",on:{wheel:e.handleWheel}},[i("bpmnNodeDetail",{ref:"bpmnNodeDetailRef",on:{close:e.closeDetail}})],1)},vx=[];const NT="",Ax={name:"bpmn-look",components:{bpmnNodeDetail:gx},props:{diagram:{type:String,default:"",required:!0},approvalData:{type:Array,default:()=>[]},isXml:{type:Boolean,default:!0}},data(){return{drawer:!1,isAdd:!1,viewer:null,loading:!0}},mounted(){this.initViewer(),this.$refs.container&&this.$refs.container.addEventListener("resize",this.canvasResize)},watch:{diagram:{async handler(e){let t=e;t&&this.isXml&&this.loadXml(t)},immediate:!0}},methods:{async getXml(e){let t={},i="";try{t=await api.repository.getXmlByProcessDefId({processDefId:e}),t.code==200&&(i=t.data)}catch(n){console.error(n)}return i},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(In)=="[object Function]"?In:In.default,t=Object.prototype.toString.call(No)=="[object Object]"?No:No.default,i=Object.prototype.toString.call(Io)=="[object Object]"?Io:Io.default;this.viewer=new e({container:this.$refs.container,additionalModules:[t,i]}),this.viewer.on("import.done",({error:n})=>{n||(this.canvasResize(),this.addApprovalData(),this.enableTouchMove())}),this.viewer.on("element.click",n=>{n.type,n.element,n&&n.element&&(n.element.type||"").includes("UserTask")?(this.drawer=!0,this.$refs.bpmnNodeDetailRef.openDrawer(n.element,this.approvalData)):(this.drawer=!1,this.$refs.bpmnNodeDetailRef.closeDrawer(n.element,this.approvalData))})},closeDetail(){this.drawer,this.drawer=!1},canvasResize(){this.viewer&&this.viewer.get("canvas").zoom(1,"auto")},enableTouchMove(){const e=this.viewer.get("canvas"),t=e._svg,i=document.querySelector(".viewport"),n=document.querySelector(".djs-tooltip-container");let s=!1,r,a,o=0,l=0,p=0,h=0;t.addEventListener("touchstart",d=>{s=!0;const y=d.touches[0];r=y.clientX,a=y.clientY;const x=i.getAttribute("transform").match(/matrix\(([^)]+)\)/)[1].split(/\s*,\s*|\s+/);o=parseFloat(x[4]),l=parseFloat(x[5]);const M=this.getTransformMatrix(n.style.transform);this.isAdd?(p=parseFloat(M[4]),h=parseFloat(M[5])):(p=parseFloat(M[4])+30,h=parseFloat(M[5])+16,this.isAdd=!0)}),t.addEventListener("touchmove",d=>{if(!s)return;const y=d.touches[0],x=y.clientX-r,M=y.clientY-a;l!==void 0&&(i.setAttribute("transform",`matrix(0.679276 0 0 0.679276 ${o+x} ${l+M})`),n.setAttribute("style",`position: absolute; width: 0px; height: 0px; transform: matrix(0.615, 0, 0, 0.615, ${p+x}, ${h+M});`)),e._cachedViewbox&&(e._cachedViewbox.x=x,e._cachedViewbox.y=M),d.preventDefault()}),t.addEventListener("touchend",()=>{s=!1})},getTransformMatrix(e){if(!e||e==="none")return[1,0,0,1,0,0];const t=e.match(/matrix(3d)?\(([^)]+)\)/i);if(!t)return null;const i=t[2].split(/\s*,\s*|\s+/).map(parseFloat);return t[1]!=="3d"&&i.length===6||t[1]==="3d"&&i.length===16?i:null},setNodeColor(e){const t=this.viewer.get("canvas"),i=this.viewer.get("elementRegistry"),n=this.viewer.get("tooltips");e.forEach(s=>{if(s.id&&s.class&&t.addMarker(s.id,s.class),s.id&&s.tooltip){const r=i.get(s.id);if(r){let{x:a,y:o,type:l}=r;["bpmn:StartEvent","bpmn:EndEvent"].includes(l)?(a=a-45,o=o+65):["bpmn:UserTask"].includes(l)&&(a=a-10,o=o+90),n.add({position:{x:a,y:o},html:s.tooltip})}}})},addApprovalData(){if(!this.approvalData||this.approvalData.length==0)return;const e=nw(this.approvalData);e&&e.length>0&&this.setNodeColor(e)},async loadXml(e){this.viewer||await this.initViewer();try{const{warnings:t}=await this.viewer.importXML(e);t.length&&this.$emit("warning",t)}catch(t){this.$emit("error",{message:"XML \u52A0\u8F7D\u5931\u8D25",detail:t.message}),console.error("XML \u52A0\u8F7D\u5931\u8D25:",t)}}},beforeDestroy(){this.$refs.container&&this.$refs.container.removeEventListener("resize",this.canvasResize),this.viewer&&this.viewer.destroy()}},Ch={};var bx=ve(Ax,yx,vx,!1,Cx,"15d56bc0",null,null);function Cx(e){for(let t in Ch)this[t]=Ch[t]}const wh=function(){return bx.exports}(),wx={name:"TopTab",components:{processFlow:Ah,BpmnLook:wh,TopPopup:at,ViewAttchList:Ru,PreviewImage:Hs},props:{ProcessInsObj:{type:Object,default:()=>({})},processXml:{type:String,default:""},approvalData:{type:Array,default:()=>[]},tapList:{type:Array,default:()=>[]},selfTapList:{type:Array,default:()=>[]},track:{type:String,default:""},taskComment:{type:Array,default:()=>[]},trackList:{type:Array,default:()=>[]}},data(){return{trackUrl:"",taskCommentList:[],active:"",defaultTabList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],isTapList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],label:document.getElementsByClassName("tops-tab-header-items"),visible:!1,inList:[],visibleTack:!1,trackListss:[],signPreViewVisible:!1,signLists:[],indexd:0}},watch:{tapList:{handler(e,t){this.selfTapList.length||(this.isTapList=[].concat(this.defaultTabList),e.length>0&&e.forEach((i,n)=>{i.sort&&i.sort>1?this.isTapList.splice(i.sort-1,0,i):i.sort==1?this.isTapList.unshift(i):this.isTapList.push(i)}),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},selfTapList:{handler(e,t){e.length&&(this.isTapList=[].concat(e),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},track:{handler(e,t){e&&(this.trackUrl=e,window.location.protocol=="https:"&&(this.trackUrl=this.trackUrl.replace("http://59.53.91.230:8088/","https://kq.ddzg.cn:8093/"),this.trackUrl=this.trackUrl.replace("http://59.53.91.231:8088/","https://acme-test.ddzg.cn:2119/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183:80/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://acme-aws.ddzg.cn/","https://acme-aws.ddzg.cn/")))},immediate:!0,deep:!0},taskComment:{handler(e,t){e&&(this.taskCommentList=e)},immediate:!0,deep:!0},trackList:{handler(e,t){e&&(this.trackListss=e)},immediate:!0,deep:!0}},mounted(){this.tabAnimation(0)},methods:{formatFlow(e){let t=(e||[]).map(i=>({...i,attachmentsFujian:(i.attachments||[]).filter(n=>n.type!="signature"),attachmentsQianzi:(i.attachments||[]).filter(n=>n.type=="signature")}));return t=t.reverse(),t},handleActive(e,t){e!==this.active&&(this.active=e,this.tabAnimation(t))},tabAnimation(e){if(this.label.length){let t=document.getElementsByClassName("bottom-line")[0],i;if(t.offsetWidth<this.label[e].offsetWidth-10){let n=(this.label[e].offsetWidth-t.offsetWidth-10)/2;i=`${this.label[e].offsetLeft+n}px`}else if(t.offsetWidth>this.label[e].offsetWidth-10){let n=(t.offsetWidth-this.label[e].offsetWidth+10)/2;i=`${this.label[e].offsetLeft-n}px`}else i=`${this.label[e].offsetLeft}px`;t.style.transition=".3s",t.style.transform=`translateX(${i})`}},viewList(e){this.visible=!0,this.inList=e},viewSign(e,t){this.signLists=e.filter(i=>i.digitalSignature).map(i=>i.digitalSignature),this.indexd=this.signLists.findIndex(i=>i==t),this.signPreViewVisible=!0}}};var Ex=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tops-tab"},[i("div",{staticClass:"tops-tab-header"},[e._l(e.isTapList,function(n,s){return[i("div",{staticClass:"tops-tab-header-items",class:[n.key===e.active?"active":""],on:{click:function(r){return e.handleActive(n.key,s)}}},[e._v(" "+e._s(n.label)+" ")])]}),e.isTapList.length?i("div",{staticClass:"bottom-line"}):e._e()],2),i("div",{staticClass:"tops-tab-body"},e._l(e.isTapList,function(n){return i("div",{directives:[{name:"show",rawName:"v-show",value:e.active===n.key,expression:"active === item.key"}],key:n.key,class:[n.key==="c"&&"tops-tab-body-taskcommentlist"],staticStyle:{height:"100%"}},[n.key==="a"&&n.type==="default"?e._t("default"):e._e(),e.active===n.key&&n.key==="b"&&n.type==="default"?i("div",{staticClass:"uph-tab-b",staticStyle:{height:"100%"},attrs:{name:n.slot}},[e.processXml?i("div",{staticStyle:{padding:"10px 20px",color:"#1389ff"},on:{click:function(){return e.visibleTack=!0}}},[e._v(" \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")]):e._e(),n.key==="b"&&e.processXml?i("BpmnLook",{ref:"PreviewRef",refInFor:!0,attrs:{diagram:e.processXml,approvalData:e.approvalData}}):i("div",{staticClass:"textnone"},[e._v(" \u6682\u65E0\u6D41\u7A0B\u56FE ")])],1):e._e(),n.key==="c"&&n.type==="default"?i("div",{staticStyle:{height:"100%"}},[n.key==="c"&&e.ProcessInsObj.flow?i("processFlow",{attrs:{request:e.ProcessInsObj.request,"flow-list":e.formatFlow(e.ProcessInsObj.flow)},on:{view:e.viewList}}):i("div",{staticClass:"textnone"},[e._v("\u6682\u65E0\u6570\u636E")])],1):e._e(),n.type=="slot"?e._t(n.slot):e._e()],2)}),0),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9644\u4EF6\u5217\u8868",isDrawer:"",isIndex:5},on:{"update:visible":function(n){return e.visible=n}}},[i("ViewAttchList",{attrs:{inList:e.inList}})],1),i("PreviewImage",{attrs:{images:e.signLists,visible:e.signPreViewVisible,indexd:e.indexd},on:{"update:visible":function(n){return e.signPreViewVisible=n}}}),i("TopPopup",{ref:"TopPopups",attrs:{visible:e.visibleTack,titleText:"\u6D41\u7A0B\u4FE1\u606F",isDrawer:"",width:"60vw"},on:{"update:visible":function(n){return e.visibleTack=n}}},[e.trackListss&&e.trackListss.length?e._l(e.trackListss,function(n,s){return i("div",{key:n.id,staticClass:"seal-list__item"},[i("div",[i("div",{staticClass:"seal-list__item--option"},[i("span",[e._v("\u5E8F\u53F7")]),i("span",{staticStyle:{"max-width":"100px"}},[e._v(e._s(s+1))])]),i("div",{staticClass:"seal-list__item--option"},[i("span",[e._v("\u8282\u70B9\u540D\u79F0")]),i("span",{staticStyle:{"max-width":"100px"}},[e._v(e._s(n.historyActivityName))])]),i("div",{staticClass:"seal-list__item--option"},[i("span",[e._v("\u5BA1\u6279\u4EBA")]),i("span",{staticStyle:{"max-width":"100px"}},[e._v(e._s(n.assigneeName))])])])])}):e._e()],2)],1)},xx=[];const kT="",Eh={};var Ix=ve(wx,Ex,xx,!1,Tx,"8ff4442e",null,null);function Tx(e){for(let t in Eh)this[t]=Eh[t]}const _x=function(){return Ix.exports}(),Nx="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACfVJREFUeF7tnT2S1FYYRaUCYgJ2wArYgRMIYQPGMVUQt8bDAoDRxFBFbLwBE5qEHbACdkBAbCi5HjxgGKbn6b7Wz9O7h9B8avV3rk7J6r7VtA1/IACBvQRa2EAAAvsJIAhXBwQuIYAgXB4QQBCuAQjkEeAOkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hFAkDxuHGVCAEFMgmbNPAIIkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJ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VC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBL4Csq/cvbKQGitAAAAAElFTkSuQmCC",Sx={name:"TopDownSelect",props:{option:{type:Array,default:[]},optionStyle:{type:String,default:""},maskShow:{type:Boolean,default:!0},border:{type:Boolean,default:!1},defaultValue:{type:String,default:""},placeholder:{type:String,default:"\u8BF7\u9009\u62E9"},isSlots:{type:Boolean,default:!1},disibled:{type:Boolean,default:!1}},data(){return{value:{id:"",text:""},lists:[],expand:!1,active:"",activeItem:{name:""}}},watch:{option:{handler(e,t){e&&e.length&&(this.lists=e)},immediate:!0,deep:!0},defaultValue:{immediate:!0,deep:!0,handler(e,t){this.active=e;let n=JSON.parse(JSON.stringify(this.option)).filter((s,r)=>s.id==e);this.activeItem=n[0],this.activeItem&&this.$emit("change",this.activeItem)}}},computed:{arrow(){return Nx},check(){return kx}},methods:{handleExpand(){this.disibled||(this.expand?this.expand=!1:this.expand=!0)},handleClick(e,t){this.active!=e.id&&(this.active=e.id,this.activeItem=e,this.expand=!1,this.$emit("change",this.activeItem,this.lists))},handleClose(){this.expand=!1,this.active="",this.activeItem={name:""}}}};var Px=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"top-select"},[e.isSlots?i("div",{staticStyle:{position:"relative","z-index":"80"}},[e._t("header",null,{data:Object.assign({},e.activeItem,{placeholder:e.placeholder})})],2):i("div",{staticClass:"top-select-menu",class:[e.border&&"top-select-menu-border",!e.activeItem&&"top-select-menu-placeholder"],on:{click:e.handleExpand}},[e._v(" "+e._s(e.activeItem?e.activeItem.name:e.placeholder)+" "),e.disibled?e._e():i("img",{staticClass:"top-select-menu--arrow",class:[e.expand?"arrow-active":""],attrs:{src:e.arrow}})]),e.maskShow?i("div",{staticClass:"top-select-option-mask",style:e.expand?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"}):e._e(),e.lists&&e.lists.length?i("div",{staticClass:"top-select-option",class:[e.border&&"top-select-option-border"],style:`${e.expand?"transform: translateY(2%);visibility: visible; opacity: 1;":"transform: translateY(-50%);visibility: hidden; opacity: 0"};${e.optionStyle?e.optionStyle:""}`},e._l(e.lists,function(n,s){return i("div",{key:n.id,staticClass:"option-items",class:[e.active==n.id?"option-items-active":""],on:{click:function(r){return e.handleClick(n,s)}}},[e._v(" "+e._s(n.name)+" "),e.active==n.id?i("img",{staticClass:"option-items-check",attrs:{src:e.check}}):e._e()])}),0):e._e()])},Dx=[];const ST="",xh={};var Ox=ve(Sx,Px,Dx,!1,Mx,"a791e974",null,null);function Mx(e){for(let t in xh)this[t]=xh[t]}const Ih=function(){return Ox.exports}(),Bx="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADGdJREFUeF7tnVFSHDkMhuVhD7AV9j1wksBJApeA5YnwlJBLQE4COUl63zOpHGAZb3l2mpqQGWYsS7as/qna2oe0ZeuXvpHd7W4Hwh8UgAJbFQjQBgpAge0KABBkBxR4RQEAgvSAAgAEOQAFeAqggvB0Q6uJKABAJhJouMlTAIDwdEOriSgAQCYSaLjJUwCA8HRDq4koAEAmEmi4yVMAgPB0Q6uJKNAdIH9+jEezGb0PkY5oRkeU/k/L/4ZlzAINtKAhBhpmC/r6/So8TiSWcFNBgS4AOfwcz2Kkt4HoA0ODgSI9hkhfAAtD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GnFumY10rAASASGUY+0UhqQFo2AEgG1Rli6IRoV5sooL8GimGHt3cCsRrpwwqO9+Hts1j9o+lZ0CSWHj1NA8Szht0eT20uRqAbNEdVSQjIZ1Wj6QAAHklD/A8ZD9I8CR9g07ep1ijy6tK8oBNfNthASATBiS5niBJ/z84oBNa0Lv9flc7vCrQGWfUAGTigHCSpsc23DcK01P0Hv3dZ8whfXKV88MxlSnWPiJ6uYYLiBf/Rf0AIKJymjAGQATDAEAExTRiCoAIBgKACIppxBQAEQwEABEU04gpACIYCAAiKKYRUwBEMBAARFBMI6aw/0wwEIztN93s5hWUqStTAEQwXJ6/7i4oU1em3tzG6+D4oV/NYDwt6PjnVcj6HBIqSM0IMfrCvjOGaJuaMNYfyQwAEdJf0wx7e7fmoDqzzakeAKSjIK+mWmnjYv4XBTvyU2GoRZ8/QgVRiIiWyRdnpJ9o9ePE7hCJ7n9chpsSfwBIiXoN247b/RsOwWzXuQvx1xwBIGbDjIFZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUOA/PPf9I/jtWsEAAAAASUVORK5CYII=";var Rx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("TopPopup",{ref:"TopPopupFixedPerson",attrs:{visible:e.showFixedPerson,titleText:"\u9009\u62E9\u4EBA\u5458("+e.fixedPersonList.length+"\u4EBA)",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitFixedPerson},on:{"update:visible":e.updateVisible}},[i("div",{staticClass:"s-tree"},e._l([].concat(e.fixedPersonList),function(n){return i("div",{key:n.userId,staticClass:"s-node",on:{click:function(s){return e.handleClickFixedPerson(n)}}},[e.mySelectIds.includes(n.userId)?i("div",{staticClass:"radio-select"},[i("svg",{staticClass:"icon",attrs:{t:"1758260488735",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7527",width:"18",height:"18"}},[i("path",{attrs:{d:"M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m314.916571 369.371429l-354.304 349.184a46.409143 46.409143 0 0 1-64.987428 0l-212.955429-209.883429a44.763429 44.763429 0 0 1 0-64 46.336 46.336 0 0 1 64.987429 0l180.443428 177.810286 321.828572-317.184a46.482286 46.482286 0 0 1 64.987428 0 44.836571 44.836571 0 0 1-0.036571 64.073143z",fill:"#409eff","p-id":"7528"}})])]):i("div",{staticClass:"radio-select-not"},[i("svg",{staticClass:"icon",attrs:{t:"1758260589679",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8704",width:"18",height:"18"}},[i("path",{attrs:{d:"M150.144 150.144C250.24 50.048 370.88 0 512 0s261.76 50.048 361.856 150.144S1024 370.88 1024 512s-50.048 261.76-150.144 361.856S653.12 1024 512 1024s-261.76-50.048-361.856-150.144S0 653.12 0 512s50.048-261.76 150.144-361.856zM64 512c0 124.16 43.328 228.48 131.392 316.608C283.52 916.672 387.84 960 512 960s228.48-43.328 316.608-131.392C916.672 740.48 960 636.16 960 512s-43.328-228.48-131.392-316.608C740.48 107.328 636.16 64 512 64s-228.48 43.328-316.608 131.392C107.328 283.52 64 387.84 64 512z",fill:"#b5bbc1","p-id":"8705"}})])]),n.avatar?i("img",{staticClass:"node-avatar",attrs:{src:n.avatar,alt:"\u5934\u50CF"}}):i("div",{staticClass:"node-avatar-text"},[e._v(" "+e._s((n.realName||"").slice(-2))+" ")]),i("div",{staticClass:"node-name"},[i("div",{staticClass:"node-name-text"},[e._v(e._s(n.realName))]),i("div",{staticClass:"node-name-phone"},[e._v(e._s(n.phonenumber))])])])}),0)])},Lx=[];const PT="",Fx={name:"selectFixedPerson",components:{TopPopup:at},props:{multiple:{},visible:{type:Boolean,default:!1},list:{type:Array,default(){return[]}},select:{type:Array,default(){return[]}},multiple:{type:Boolean,default:!1}},data(){return{showFixedPerson:!1,fixedPersonList:[],mySelect:[],mySelectIds:[]}},watch:{visible:{handler(e,t){this.showFixedPerson=e,e?(this.fixedPersonList=this.list||[],this.mySelect=this.select||[],this.mySelectIds=this.mySelect.map(i=>i.userId)):(this.fixedPersonList=[],this.mySelect=[],this.mySelectIds=[])},immediate:!0},fixedPersonList:{handler(e,t){e&&e.length>0&&JSON.stringify(e)!==JSON.stringify(this.list)&&this.$emit("updateList",e)},immediate:!0,deep:!0}},methods:{updateVisible(e){this.$emit("updateVisible",e)},handleClickFixedPerson(e){const t=this.select.find(i=>i.userId===e.userId);this.multiple||(this.mySelect=[],this.mySelectIds=[]),t?(this.mySelect=this.select.filter(i=>i.userId!==e.userId),this.mySelectIds=this.mySelect.map(i=>i.userId)):(this.mySelect.push(e),this.mySelectIds.push(e.userId)),this.$emit("updateSelect",this.mySelect)},handleSumbitFixedPerson(){this.$emit("confirm",this.mySelect)}}},Th={};var Vx=ve(Fx,Rx,Lx,!1,jx,"4e0e3ca1",null,null);function jx(e){for(let t in Th)this[t]=Th[t]}const _h=function(){return Vx.exports}(),Ux={name:"TopSubmitPopup",components:{SelectFixedPerson:_h,BpmnLook:wh,TopPopup:at,TopDownSelect:Ih,PreviewImage:Hs,departPerson:Ht.departPerson,TopTips:Nt},props:{isCheckType:{type:String,default:"0"},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]},businessDeptId:{type:[String,Number]},businessSubjectId:{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:()=>[]},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},extraParams:{type:Object,default:()=>{}},isSelectFirst:{type:Boolean,default:!0},showFlowForecast:{default:!1,type:Boolean},flowForecastFunction:{type:Function,default:null}},data(){return{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],approvalData:[],processXml:"",showFlow:!1,showFirstPerson:!1,selectDeptData:{},showDept:!1,deptList:[],show:!1,option:[],checkedItem:{},personList:[],checkedArray:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:!1,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",businessDeptIdData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:"",btnLoading:!1,flowForecastVisible:!1,flowForecastData:{completeTime:"",processBudgetModelList:[]},flowForecastProcessInstId:""}},watch:{visible:{async handler(e,t){this.show=e,this.$emit("update:visible",this.show),e?(this.selectDefaultValue="",this.handleOption()):this.$refs.TopDownSelect.handleClose()}},show:{handler(e,t){e||this.$refs.TopDownSelect.handleClose()}},businessType:{handler(e,t){this.businessTypeData=e},immediate:!0},businessDeptId:{handler(e,t){e&&(this.businessDeptIdData=e)},immediate:!0},extraParams:{handler(e,t){e&&e.businessDeptId&&(console.error(e.businessDeptId,"\u4E1A\u52A1\u90E8\u95E8id\u66F4\u65B0\u5230extraParams.businessDeptId\u4E2D\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u9700\u8981\u66F4\u65B0\u5230\u6B64\u5904"),this.businessDeptIdData=e.businessDeptId)},immediate:!0,deep:!0},id:{handler(e,t){e&&(this.idData=e,this.resubmit&&this.getProcessInstance())},immediate:!0},processName:{handler(e,t){this.processNameData=e},immediate:!0},title:{handler(e,t){this.titleData=e},immediate:!0},todoParameter:{handler(e,t){this.todoParameterData=e},immediate:!0,deep:!0},selfList:{handler(e,t){e&&e.length&&(this.option=e,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))},immediate:!0,deep:!0},resubmit:{handler(e,t){e&&this.getProcessInstance()}}},computed:{ProcessImg(){return Bx}},methods:{getXmlByProcessDefId(e){this.request.get("/bladex/blade-workflow/process/getXmlByProcessDefId",{params:{processDefId:e}}).then(t=>{t.code==200&&(this.processXml=t.data)})},handleFlowSelect(){this.showFlow=!0},handleSumbitFlow(){this.showFlow=!1},handleDeptSelect(){this.showDept=!0},handleSumbitDept(){},async handleClickDept(e){this.businessDeptIdData=e.id,this.showDept=!1,this.selectDeptData=e,await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success")},handleSelect(){this.$refs.TopDownSelect.handleExpand()},async handleOption(){if(this.checkedItem={},this.firstPerson=[],this.personList=[],this.selfList&&this.selfList.length)return;this.handleTips("",!0,"loading");let e={businessCode:this.businessType,appId:this.appId,subjectId:this.businessSubjectId,processGroupName:this.processNameData,...this.extraParams};this.processNameData&&delete e.processGroupName,await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",e).then(t=>{t.code==200&&(this.option=t.data,t.data&&t.data.length?(this.handleTips("",!1,"success"),(this.isSelectFirst||t.data.length==1)&&(this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))):(this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",!0,"error"),this.option=[]),this.businessDeptIdData||this.getNodeUserDept())})},async getProcessInstance(){},async getNodeUserDept(){let e={};try{e=await this.request.get("/auth/dept/list/user/dept/selectTree")}catch(t){}this.deptList=e.data||[]},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:n,deptIds:s}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:n,deptIds:s})},getUserDataByDeptId(){this.firstPerson.map(async(e,t)=>{const i=bd(e);let n;try{n=await this.getNodeUser({deptId:this.businessDeptIdData,intersection:(i.intersection,0),userIds:i.userIds,postIds:i.postIds,deptIds:i.deptIds})}catch(s){}if(n.code==200){const s=this.firstPerson[t];s.userList=n.data,this.$set(this.firstPerson,t,s)}})},async handlefirstNode(e){e&&(this.handleTips("",!0,"loading"),await this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:e}}).then(async t=>{if(t.code===200){if(this.firstPerson=t.data,await this.getNodeUserDept(),!this.businessDeptIdData){this.handleTips("",!1,"success");return}if(await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success"),Date.now())return;t.data.map(i=>{{let n={taskDefId:i.id,postIds:[]};i.routeTxt.postList.map(s=>{n.postIds.push(s.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[n]}).then(s=>{let r=[],a=[],o=!1;s.data.map(p=>{p.posts.map(h=>{a.push(...h.users),h.users.length==1?r.push(...h.users):o=!0})}),r.length>i.loopCardinality&&i.loopCardinality>0&&(o=!0),o&&(r=[]);let l=[];s.data[0].posts.map(p=>{l.push({...p,projectPost:!this.businessDeptIdData,id:p.users.map(h=>h.id),subjectId:p.subjectId})}),a.length==0&&this.$set(i,"noPersonnel",!0),r.length>0&&(this.personObjId=i.id,this.humanPerformerName=i.humanPerformerName,this.$set(i,"noPersonnel",!0),this.handleCallback(r)),i.positionArray=l})}}),this.getAfferentParticipantNodeList()}else this.firstPerson=[],this.getAfferentParticipantNodeList()}).catch(t=>{this.firstPerson=[],this.getAfferentParticipantNodeList()}))},async handleChange(e,t){this.handleTips("",!0,"loading"),this.checkedItem={},this.selectDefaultValue="",this.firstPerson=[],this.personList=[],this.checkedItem=e,this.selectDefaultValue=this.checkedItem.id,this.handlefirstNode(this.checkedItem.id),this.getXmlByProcessDefId(this.checkedItem.id),this.$emit("change",e,t)},async getAfferentParticipantNodeList(){await this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.firstPerson&&this.firstPerson.length&&(e.data.map(t=>{if(t.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let i={taskDefId:t.id,postIds:[]};t.routeTxt.postList.map(n=>{i.postIds.push(n.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[i]}).then(n=>{let s=[],r=[],a=!1;n.data.map(l=>{l.posts.map(p=>{r.push(...p.users),p.users.length==1?s.push(...p.users):a=!0})}),s.length>t.loopCardinality&&t.loopCardinality>0&&(a=!0),a&&(s=[]);let o=[];n.data[0].posts.map(l=>{o.push({...l,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:l.users.map(p=>p.id),subjectId:l.subjectId})}),r.length==0&&this.$set(t,"noPersonnel",!0),s.length>0&&(this.personObjId=t.id,this.humanPerformerName=t.humanPerformerName,this.$set(t,"noPersonnel",!0),this.handleCallback(s)),t.positionArray=o})}}),this.personList=e.data.filter(t=>!this.firstPerson.some(i=>i.id==t.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])})},handleOpenFixedPerson(e){this.currentClickItem=e,this.personObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.$set(this.fixedSelect,this.personObjId,e),this.$set(this.multiNodeParticipant,this.personObjId,[]),this.$set(this.partNode,this.personObjId,[]),e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.userId),this.partNode[this.personObjId].push(t.realName)}),this.showFixedPerson=!1},handleClickFixedPerson(e){this.$set(this.multiNodeParticipant,this.personObjId,[]),this.$set(this.partNode,this.personObjId,[]),e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.userId),this.partNode[this.personObjId].push(t.realName)}),this.showFixedPerson=!1},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:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:[]},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId)})):this.entity.checkedArray=[];else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[];e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length>1?(e.routeTxt.departmentIds.forEach((n,s)=>{i.push(n.rangeId)}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCodeArray:i,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}):e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length==1&&(e.routeTxt.departmentIds.forEach((n,s)=>{t=n.rangeId}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCode:t,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(n=>({id:n.id,subjectId:n.subjectId,type:n.type,deptId:t})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let t;e.routeTxt.companyIds.map((i,n)=>{t=i.name}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(i=>({id:i.id,subjectId:i.subjectId,type:i.type,deptId:this.handleLastStr(i.ancestors,i.subjectId),subjectName:i.ancestorNames.slice(0,i.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]}else e.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"?(this.entity={source:"1",type:this.isCheckType||"0",orgType:[5],request:this.request,codeType:[8],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,positionArray:e.positionArray},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:t.ancestorNames.slice(0,t.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]):(this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:[]},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId)})):this.entity.checkedArray=[])},handleCallback(e){this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?t.ancestorNames.slice(0,t.ancestorNames.indexOf("/")):""})),this.$set(this.multiNodeParticipant,this.personObjId,[]),this.$set(this.partNode,this.personObjId,[]),e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.id),this.partNode[this.personObjId].push(t.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,t){if(!!e)return e.split(",")[e.split(",").length-1]!==t?e.split(",")[e.split(",").length-1]:""},async handleSumbit(){if(!this.btnLoading){if(this.btnLoading=!0,!this.isSelectFirst&&!this.checkedItem.id){this.handleTips("\u8BF7\u5148\u9009\u62E9\u6D41\u7A0B",!0,"error"),this.btnLoading=!1;return}if(!this.isSelectFirst&&!this.businessDeptIdData){this.handleTips("\u8BF7\u5148\u9009\u62E9\u90E8\u95E8",!0,"error"),this.btnLoading=!1;return}if(this.firstPerson&&this.firstPerson.length&&!this.firstPerson[0].routeTxt.userNames&&(!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("/bladex/blade-workflow/pis/reactivate",{processDefId:this.checkedItem.id,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",processInstId:this.extraParams.processInstId,vars:{businessType:this.businessType,deptId:this.businessDeptIdData,reactivate:!0,showType:all,subjectId:this.businessSubjectId,...this.extraParams,_businessDeptId:this.businessDeptIdData}}).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={processDefId:this.checkedItem.id,multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",vars:{processBusinessKey:this.id||this.extraParams.businessKey,showType:"all",subjectId:this.businessSubjectId,deptId:this.businessDeptIdData,businessType:this.businessType,name:this.extraParams.name,title:this.title||this.extraParams.title,applyUserId:this.extraParams.applyUserId}};if(!this.checkedItem.id){this.$refs.topTips.handleClose(),this.btnLoading=!1;return}this.request.post("/bladex/blade-workflow/pis/createAndStart",e).then(t=>{t.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):t.code==499?this.request.post("/bladex/blade-workflow/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(i=>{i.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(i.msg,!0,"error"),this.btnLoading=!1)}).catch(i=>{this.handleTips(i.msg,!0,"error"),this.btnLoading=!1}):(this.handleTips(t.msg,!0,"error"),this.btnLoading=!1)}).catch(t=>{this.handleTips(t.msg,!0,"error"),this.btnLoading=!1})}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips&&this.$refs.topTips.handleOpen()},viewFlowForecast(){this.flowForecastFunction?this.flowForecastFunction():this.forecast({appId:this.appId,title:"1"})},forecast(e){this.request.post("/aws/pis/getProcessForecast",{processDefId:this.checkedItem.id,...e}).then(t=>{t.code==200?(t.data&&t.data.processBudgetModelList&&t.data.processBudgetModelList.length?this.flowForecastProcessInstId=t.data.processBudgetModelList[0].processInstId:(t.data.processBudgetModelList=[],this.flowForecastProcessInstId=""),this.flowForecastData=t.data,this.flowForecastVisible=!0):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.btnLoading=!1,this.handleTips("\u6D41\u7A0B\u9884\u6D4B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",!0,"error")})},flowForecastClose(){this.flowForecastProcessInstId?this.request.get("/aws/pis/deleteProcessById",{params:{processInstId:this.flowForecastProcessInstId}}).then(e=>{e.code==200&&(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]},this.flowForecastProcessInstId="")}):(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]})}}};var Qx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sumbmitPopup-index-sumbit"},[i("div",{staticClass:"top-popup"}),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.show,titleText:"\u9001\u5BA1",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u9001\u5BA1",comfig:e.handleSumbit},on:{"update:visible":function(n){return e.show=n,e.$emit("update:visible",n)}}},[i("TopDownSelect",{ref:"TopDownSelect",attrs:{isSlots:"",option:e.option,defaultValue:e.selectDefaultValue,disibled:!1},on:{change:e.handleChange},scopedSlots:e._u([{key:"header",fn:function(n){return[i("div",{staticClass:"sumbmitPopup-select"},[i("div",{staticClass:"sumbmitPopup-select-checked",on:{click:e.handleSelect}},[i("div",{staticClass:"sumbmitPopup-select-checked-title"},[e._v("\u5F53\u524D\u6D41\u7A0B")]),i("div",{staticClass:"sumbmitPopup-select-checked-node",class:""},[e._v(" "+e._s(n.data.name?n.data.name:n.data.placeholder)+" ")])]),e.businessDeptIdData?e._e():i("div",{staticClass:"sumbmitPopup-select-checked",on:{click:e.handleDeptSelect}},[i("div",{staticClass:"sumbmitPopup-select-checked-title"},[e._v("\u9009\u62E9\u90E8\u95E8")]),i("div",{staticClass:"sumbmitPopup-select-checked-node",class:""},[e._v(" "+e._s(e.selectDeptData.label?e.selectDeptData.label:"\u8BF7\u9009\u62E9")+" ")])]),i("div",{staticClass:"sumbmitPopup-select-viewTrack",staticStyle:{display:"flex"}},[e.checkedItem.id?i("div",{staticClass:"viewTrack",on:{click:e.handleFlowSelect}},[i("img",{attrs:{src:e.ProcessImg}}),e._v(" \u67E5\u770B\u6D41\u7A0B\u56FE ")]):e._e(),e.checkedItem.id&&e.showFlowForecast?i("div",{staticClass:"viewTrack",on:{click:e.viewFlowForecast}},[e._v(" \u6D41\u7A0B\u9884\u6D4B ")]):e._e()])])]}}])}),e.showFirstPerson&&e.firstPerson&&e.firstPerson.length?i("div",{staticClass:"person-views"},[i("div",{staticClass:"person-views-title"},[e._v("\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9")]),e._l(e.firstPerson,function(n,s){var r;return i("div",{key:s,staticClass:"views-items"},[i("div",{staticClass:"views-items-label"},[i("div",{staticClass:"views-items-name"},[i("div",{staticClass:"views-items-name-left"},[e._v(" "+e._s(n.name)+" "),s==0?i("span",{staticClass:"views-items-name--re"},[e._v("*")]):e._e()])]),i("div",{staticClass:"views-items-set"},[e.partNode[n.id]&&e.partNode[n.id].length?i("div",[e._l(e.partNode[n.id],function(a,o){return i("span",{key:o},[e._v(" "+e._s(o>=3?"":o==0?a:`,${a}`)+" ")])}),e.partNode[n.id].length>3?i("span",[e._v("...\u7B49"+e._s(e.partNode[n.id].length)+"\u4EBA")]):e._e()],2):n.routeTxt&&n.routeTxt.userNames?i("div",[e._v(" "+e._s(n.routeTxt.userNames)+" ")]):e._e(),n.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||n.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||((r=e.partNode[n.id])===null||r===void 0?void 0:r.length)>0&&n.noPersonnel?i("div"):n.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||n.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||n.noPersonnel?i("div",[e._v(" \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")]):n.userList&&n.userList.length>0?i("div",{staticClass:"views-items-set-btn",on:{click:function(a){return e.handleOpenFixedPerson(n)}}},[e._v(" \u9009\u62E9 ")]):i("div",{staticClass:"views-items-set-btn",on:{click:function(a){return e.handleOpenPerson(n)}}},[e._v(" \u8BBE\u7F6E ")])])]),n.routeTxt&&n.routeTxt.length>0?i("div",{staticClass:"views-items-includes"},[i("div",{staticClass:"views-items-name2"},[e._v(" "+e._s("\u6240\u5C5E\u8303\u56F4")+" ")]),i("div",{staticClass:"views-items-and2"},e._l(n.routeTxt,function(a,o){return i("div",{key:a.type},[a.ids&&a.ids.length>0?i("div",[i("div",{staticClass:"include"},[i("b",{staticClass:"include include-type",class:["include-"+a.type]},[e._v(e._s(a.type=="user"?"\u7528\u6237":a.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),i("span",{staticClass:"include include-name"},[e._v(e._s(a.name))])]),o!==n.routeTxt.length-1?i("div",{staticClass:"include include-assign",class:["include-assign-"+(a.assigneeRetain?"true":"false")]},[e._v(e._s(n.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0)]):e._e()])})],2):e._e(),e.personList&&e.personList.length?i("div",{staticClass:"person-views"},[i("div",{staticClass:"person-views-title"},[e._v("\u5176\u4ED6\u5904\u7406\u8282\u70B9")]),e._l(e.personList,function(n,s){return i("div",{staticClass:"views-items"},[i("div",{staticClass:"views-items-name"},[e._v(" "+e._s(n.name)+" ")]),i("div",{staticClass:"views-items-set"},[n.noPersonnel?e._e():i("div",{staticClass:"views-items-set-btn",on:{click:function(r){return e.handleOpenPerson(n)}}},[e._v(" \u8BBE\u7F6E ")]),e.partNode[n.id]&&e.partNode[n.id].length?i("div",[e._l(e.partNode[n.id],function(r,a){return i("span",[e._v(" "+e._s(a>=3?"":a==0?r:`,${r}`)+" ")])}),e.partNode[n.id].length>3?i("span",[e._v("...\u7B49"+e._s(e.partNode[n.id].length)+"\u4EBA")]):e._e()],2):n.noPersonnel?i("div",[e._v("\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")]):i("div")])])})],2):e._e(),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?i("div",{staticClass:"person-views-white"},[e._v(" \u65E0\u9700\u8BBE\u7F6E ")]):e._e()],1),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visiblePerson,titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},on:{"update:visible":function(n){return e.visiblePerson=n}}},[i("div",{staticStyle:{height:"100%"}},[e.visiblePerson?i("departPerson",e._b({attrs:{isTitle:!1,visible:e.visiblePerson,checkedArray:e.checkedArray},on:{"update:visible":function(n){e.visiblePerson=n},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),i("TopPopup",{ref:"TopPopupDept",attrs:{visible:e.showDept,titleText:"\u9009\u62E9\u90E8\u95E8",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitDept},on:{"update:visible":function(n){return e.showDept=n}}},[i("div",{staticClass:"tree"},e._l([].concat(e.deptList),function(n){return i("div",{key:n.id,staticClass:"node"},[i("div",{staticClass:"node-p",on:{click:function(s){return e.handleClickDept(n)}}},[e._v(e._s(n.label))]),n.children?i("div",{staticClass:"children"},e._l(n.children,function(s){return i("div",{key:s.id,staticClass:"node-s",on:{click:function(r){return e.handleClickDept(s)}}},[e._v(" "+e._s(s.label)+" ")])}),0):e._e()])}),0)]),i("SelectFixedPerson",{attrs:{visible:e.showFixedPerson,list:e.fixedPersonList,multiple:e.currentClickItem.loopCardinality==-1,select:e.fixedSelect[e.personObjId]||[]},on:{updateList:e.handleClickFixedPerson,updateVisible:e.updateFixedPersonVisible,updateSelect:e.updateFixedSelect,confirm:e.handleSumbitFixedPerson}}),i("TopPopup",{ref:"TopPopupFlow",staticClass:"top-pop-flow",attrs:{visible:e.showFlow,titleText:"\u67E5\u770B\u6D41\u7A0B\u56FE",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u5173\u95ED",comfig:e.handleSumbitFlow},on:{"update:visible":function(n){return e.showFlow=n}}},[e.showFlow&&e.processXml?i("BpmnLook",{ref:"PreviewRef",attrs:{diagram:e.processXml,approvalData:e.approvalData}}):e._e()],1),i("PreviewImage",{attrs:{images:e.trackUrl,visible:e.taskurlshow,indexd:0,isOne:!0,isStyle:e.isStyle},on:{"update:visible":function(n){return e.taskurlshow=n}}}),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),i("TopPopup",{ref:"TopPopupFF",attrs:{visible:e.flowForecastVisible,titleText:"\u6D41\u7A0B\u9884\u6D4B",isIndex:129,cancel:e.flowForecastClose,comfig:e.flowForecastClose},on:{"update:visible":function(n){return e.flowForecastVisible=n}}},[i("div",{staticStyle:{margin:"20px"}},[i("div",{staticStyle:{"margin-left":"10px","margin-bottom":"10px"},domProps:{innerHTML:e._s(e.flowForecastData.completeTime)}}),i("div",{staticClass:"timeline"},e._l(e.flowForecastData.processBudgetModelList,function(n,s){return i("div",{key:s,staticClass:"timeline-item"},[i("div",{staticClass:"item-top"},[i("div",{staticClass:"top-spot"},[i("div",{staticClass:"spot",class:{active:s==0}})]),i("div",{staticClass:"top-title"},[e._v(e._s(n.title))])]),i("div",{staticClass:"item-bottom",class:{last:s==e.flowForecastData.processBudgetModelList.length-1}},[i("span",{staticStyle:{color:"#009800"}},[e._v(" \u6267\u884C\u4EBA\uFF1A"+e._s(n.excutor)+" ")])])])}),0)])])],1)},Gx=[];const DT="",Nh={};var qx=ve(Ux,Qx,Gx,!1,Jx,"a0f579ac",null,null);function Jx(e){for(let t in Nh)this[t]=Nh[t]}const kh=function(){return qx.exports}(),Hx="data:image/png;base64,iVBORw0KGg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HgP1VLsH2X3+jEAAAAAElFTkSuQmCC";var Kx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.visible?i("div",{staticClass:"top-msg"},e._l(e.listData,function(n){return i("div",{staticClass:"top-msg-items",on:{click:function(s){return e.handleMsg(n)}}},[i("div",{staticClass:"top-msg-items-text"},[e._v(e._s(n.opinionName))]),i("div",{staticClass:"top-msg-items-del",on:{click:function(s){return s.stopPropagation(),e.handleOpenMsg(n)}}},[i("img",{attrs:{src:e.Del}})])])}),0):e._e(),i("TopPopup",{attrs:{isIndex:2299,titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06\u5E38\u7528\u610F\u89C1'${e.opinion.opinionName}'\u5220\u9664`,cancel:e.handleTipsCancel,comfig:e.handleDel,visible:e.visibleListMsg},on:{"update:visible":function(n){return e.visibleListMsg=n}}})],1)},Wx=[];const OT="",zx={name:"msgList",components:{TopPopup:at},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 Hx}},watch:{visible:{handler(e,t){e&&this.request.get("/auth/user/opinion/my").then(i=>{i.code===200&&(this.listData=i.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(t=>{t.code===200&&(this.listData=t.data)})):this.$emit("handleTips",e.msg,!0,"error")}).catch(e=>{this.$emit("handleTips",e.msg,!0,"error")}))}}},Sh={};var Yx=ve(zx,Kx,Wx,!1,Xx,"66478dbb",null,null);function Xx(e){for(let t in Sh)this[t]=Sh[t]}const ds=function(){return Yx.exports}();var Zx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-popup-content"},[i("div",{staticClass:"process-popup-content-msg"},[e.param.isMsg?i("div",[i("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px"},on:{click:function(n){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")])]):e._e(),e._m(0),i("div",{staticClass:"process-pc-value"},[i("div",{staticClass:"process-popup-textarea"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},domProps:{value:e.commentMsg},on:{input:function(n){n.target.composing||(e.commentMsg=n.target.value)}}}),i("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])]),e.param.isMsg?i("div",{staticClass:"msg-btn"},[i("span",{staticClass:"msg-btn-click",on:{click:function(n){return e.handleMakeMsg()}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()])]),i("div",{staticClass:"process-popup-content-person"},[e.nextNodeData.length?[e._l(e.nextNodeData,function(n){return[i("div",[i("br"),e._v(" \u5BA1\u6279\u4EBA "),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),i("div",{staticClass:"process-pc-value",on:{click:function(s){return e.handleOpenPopup(n.id)}}},[i("div",{staticClass:"process-pc-value--people"},[e.partNode[n.id]&&e.partNode[n.id].length?i("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[n.id],function(s,r){return i("span",[e._v(" "+e._s(r==0?s:`,${s}`)+" ")])}),0):i("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[i("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(n){return[i("div",{staticClass:"process-pc-label"},[i("br"),e._v(" \u5BA1\u6279\u4EBA "),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),i("div",{staticClass:"process-pc-value",on:{click:function(s){return e.handleOpenPopup(n.id)}}},[i("div",{staticClass:"process-pc-value--people"},[e.partNode[n.id]&&e.partNode[n.id].length?i("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[n.id],function(s,r){return i("span",[e._v(" "+e._s(r==0?s:`,${s}`)+" ")])}),0):i("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[i("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]})]:e._e()],2),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(n){return e.visible=n}}},[i("div",{staticStyle:{height:"100%"}},[e.visible?i("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request},on:{"update:visible":function(n){e.visible=n},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),e.labels=="5"?i("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e(),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(n){return e.visibleListMsg=n}}},[i("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),i("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(n){return e.visibleMsgComfig=n}}})],1)},$x=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-pc-label"},[e._v(" \u52A0\u7B7E\u7406\u7531\uFF1A"),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const MT="",eI={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Nt,attchViews:Yi,TopPopup:at,departPerson:Ht.departPerson,MsgList:ds},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:this.param.isCheckType||"0",orgType:this.param.isOrgType||"0",request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){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=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):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=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},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((t,i)=>{e.push(t)}),this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/addSignTask",{signPersoneds:e,taskId:this.param.taskInstId,comment:this.commentMsg}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=e[1]?JSON.parse(e[1]):!1,this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.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,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("counterSign")}}},Ph={};var tI=ve(eI,Zx,$x,!1,iI,"62fe31ec",null,null);function iI(e){for(let t in Ph)this[t]=Ph[t]}const nI=function(){return tI.exports}();var sI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-popup-content"},[i("div",{staticClass:"process-popup-content-msg"},[e.param.isMsg?i("div",[i("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px"},on:{click:function(n){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")])]):e._e(),e._m(0),i("div",{staticClass:"process-pc-value"},[i("div",{staticClass:"process-popup-textarea"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},domProps:{value:e.commentMsg},on:{input:function(n){n.target.composing||(e.commentMsg=n.target.value)}}}),i("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])]),e.param.isMsg?i("div",{staticClass:"msg-btn"},[i("span",{staticClass:"msg-btn-click",on:{click:function(n){return e.handleMakeMsg()}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()])]),i("div",{staticClass:"process-popup-content-person"},[e.nextNodeData.length?[e._l(e.nextNodeData,function(n){return[i("div",[e._v(" \u5BA1\u6279\u4EBA "),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),i("div",{staticClass:"process-pc-value",on:{click:function(s){return e.handleOpenPopup(n.id)}}},[i("div",{staticClass:"process-pc-value--people"},[e.partNode[n.id]&&e.partNode[n.id].length?i("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[n.id],function(s,r){return i("span",[e._v(" "+e._s(r==0?s:`,${s}`)+" ")])}),0):i("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[i("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(n){return[i("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u4EBA "),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),i("div",{staticClass:"process-pc-value",on:{click:function(s){return e.handleOpenPopup(n.id)}}},[i("div",{staticClass:"process-pc-value--people"},[e.partNode[n.id]&&e.partNode[n.id].length?i("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[n.id],function(s,r){return i("span",[e._v(" "+e._s(r==0?s:`,${s}`)+" ")])}),0):i("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[i("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]})]:e._e()],2),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(n){return e.visible=n}}},[i("div",{staticStyle:{height:"100%"}},[e.visible?i("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request},on:{"update:visible":function(n){e.visible=n},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),e.labels=="1"?i("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e(),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(n){return e.visibleListMsg=n}}},[i("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),i("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(n){return e.visibleMsgComfig=n}}})],1)},rI=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-pc-label"},[e._v(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const BT="",aI={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Nt,attchViews:Yi,TopPopup:at,departPerson:Ht.departPerson,MsgList:ds},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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,maxMultiple:1,checkedArray:[]},multiNodeParticipant:{},partNodeArr:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,this.attachShow(),e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):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=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){},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.partNodeArr[this.partObjId].map(t=>t.id).join(",");this.handleTips("",!0,"loading"),await this.param.request.post("/bladex/blade-workflow/tis/transferTask",{comment:this.commentMsg,taskId:this.param.taskInstId,assignee:e}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,n,s="";n=t.find(a=>a.name=="delegateTaskButtonAnnex"),s=n?n.value:"",s&&(i=!0);let r="";if(typeof s!="string"&&s!=null&&s.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,r=a)}),r&&(s=r),i){const a=s.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=s;let o=this.otherList.split(":");this.limit=o[2],this.requires=JSON.parse(o[1]),this.labels=o[0]}return this.labels,this.limit,i},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.partNodeArr[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNodeArr[this.partObjId].push(t),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.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,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("delegateTask")}}},Dh={};var oI=ve(aI,sI,rI,!1,lI,"3e18ae74",null,null);function lI(e){for(let t in Dh)this[t]=Dh[t]}const cI=function(){return oI.exports}(),uI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKKHDfPn3Svb2tt/z//NtvZonzZfa8UDILWUZh+fAs9gfDgzfDSzL/aw+ehzGFsNIDHdsMpUYA/Hn2b26so2j/aw+THzGJNvAMlWGP8+BX7dvbbvT3DM+aRDAiBz0sCaOgrc796b2fmV6tbe03Xr7tai6L8DSFQ57Moq8MvuT9vY65DTrb3JGtwBJJQRjIopMM0bG/schmN/kLQuAiDFMo0jtwK+eeOy+519td82b9z7zzAAkBkisSRBgdi8cekgdJCEFOGylQJL5o2XzswM0iqT7FtUgTLzxumREq9X00ZcsYpWAM4uKlBq3jjdgO9BKLkVKHC/e2dmnwtHkg4HHaRwxnD3ggL3uwmMCZCSnypwAEjJlOHrVIGMeWO/QzU4AISizlFg3suGkb2rwgEgkRRhc12BnGG8euc4BMlTLAq+nAJlv/w7Plf1zgEg5coCT5MCpb/8e1a1GRxcsSjt5QrkDeP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AIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",RT="";var pI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.nodeItems&&e.nodeItems.length?i("div",{staticClass:"treenode"},[e.endNode?e._e():i("div",{staticClass:"treenode-multi"},[i("div",{staticClass:"treenode-node",staticStyle:{"margin-top":"0"}},[e._l(e.nodeItems,function(n){return[e.checkType=="InclusiveGatewayModel"&&e.nodeItems.length>1?i("div",{staticClass:"treenode-checkbox",class:e.checkBoxArr.includes(n.id)?"treenode-checkbox-active":"",on:{click:function(s){return e.handleCheckBoxClick(n)}}},[i("span",[e.checkBoxArr.includes(n.id)?i("img",{staticClass:"treenode-checkbox-active-img",attrs:{src:e.check}}):e._e()]),e._v(" "+e._s(n.nodeName||n.name)+" ")]):e.checkType=="ExclusiveGatewayModel"&&e.nodeItems.length>1?i("div",{staticClass:"treenode-radio",class:e.radioArr==n.id?"treenode-radio-active":"",on:{click:function(s){return e.handleRadioClick(n)}}},[i("span"),e._v(" "+e._s(n.nodeName||n.name)+" ")]):e._e()]})],2),e.checkType=="InclusiveGatewayModel"&&e.checkBoxItem&&e.checkBoxItem.length?e._l(e.checkBoxItem,function(n){return i("div",{staticClass:"treenode-node"},[n.childNode&&n.childNode.length?i("div",[i("TreeNode",{attrs:{items:n.childNode,endNode:n.childNode.length==1,nodeType:e.nodeType,param:e.param,checkType:n.type},on:{onMultiNode:e.onMultiNode,onVars:e.onVars}})],1):i("div",{staticClass:"personselect"},[i("div",{staticClass:"personselect-name"},[e._v(" "+e._s(n.name||n.nodeName)+" ")]),i("div",{staticClass:"items-person"},[n.userList&&n.userList.length>0?i("div",{staticClass:"items-person-set",on:{click:function(s){return e.handleOpenFixedPerson(n)}}},[e._v(" \u9009\u62E9 ")]):n.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&n.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?[i("div",{staticClass:"items-person-set",on:{click:function(s){return s.stopPropagation(),e.handleOpenPopup(n)}}},[e._v(" \u8BBE\u7F6E ")])]:e._e(),n.userList&&n.userList.length>0?i("div",{staticClass:"items-person-name"},[e._v(" "+e._s(e.partNode[n.id]?e.partNode[n.id].join(","):"")+" ")]):n.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&n.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?i("div",{staticClass:"items-person-name"},[e._v(" "+e._s(e.partNode[n.id]?e.partNode[n.id].join(","):"")+" ")]):n.routeTxt&&n.routeTxt.userNames?i("div",{staticClass:"items-person-name"},[e._v(" "+e._s(n.routeTxt.userNames)+" ")]):e._e()],2),n.routeTxt&&n.routeTxt.length>0?i("div",{staticClass:"views-items-includes"},[i("div",{staticClass:"views-items-name2"},[e._v(" "+e._s("\u6240\u5C5E\u8303\u56F4")+" ")]),i("div",{staticClass:"views-items-and2"},e._l(n.routeTxt,function(s,r){return i("div",{key:s.type},[s.ids&&s.ids.length>0?i("div",[i("div",{staticClass:"include"},[i("b",{staticClass:"include include-type",class:["include-"+s.type]},[e._v(e._s(s.type=="user"?"\u7528\u6237":s.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),i("span",{staticClass:"include include-name"},[e._v(e._s(s.name))])]),r!==n.routeTxt.length-1?i("div",{staticClass:"include include-assign",class:["include-assign-"+(s.assigneeRetain?"true":"false")]},[e._v(e._s(n.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0)]):e._e()])])}):e._e(),e.checkType=="ExclusiveGatewayModel"&&e.radioItem&&e.radioItem.length?e._l(e.radioItem,function(n){return i("div",{staticClass:"treenode-node"},[n.childNode&&n.childNode.length?i("div",[i("TreeNode",{attrs:{items:n.childNode,endNode:n.childNode.length==1,nodeType:e.nodeType,param:e.param,checkType:n.type},on:{onMultiNode:e.onMultiNode,onVars:e.onVars}})],1):i("div",{staticClass:"personselect"},[i("div",{staticClass:"personselect-name"},[e._v(" "+e._s(n.name||n.nodeName)+" ")]),i("div",{staticClass:"items-person"},[n.userList&&n.userList.length>0?i("div",{staticClass:"items-person-set",on:{click:function(s){return e.handleOpenFixedPerson(n)}}},[e._v(" \u9009\u62E9 ")]):n.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&n.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?[i("div",{staticClass:"items-person-set",on:{click:function(s){return s.stopPropagation(),e.handleOpenPopup(n)}}},[e._v(" \u8BBE\u7F6E ")])]:e._e(),n.userList&&n.userList.length>0?i("div",{staticClass:"items-person-name"},[e._v(" "+e._s(e.partNode[n.id]?e.partNode[n.id].join(","):"")+" ")]):n.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&n.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?i("div",{staticClass:"items-person-name"},[e._v(" "+e._s(e.partNode[n.id]?e.partNode[n.id].join(","):"")+" ")]):n.routeTxt&&n.routeTxt.userNames?i("div",{staticClass:"items-person-name"},[e._v(" "+e._s(n.routeTxt.userNames)+" ")]):e._e()],2),n.routeTxt&&n.routeTxt.length>0?i("div",{staticClass:"views-items-includes"},[i("div",{staticClass:"views-items-name2"},[e._v(" "+e._s("\u6240\u5C5E\u8303\u56F4")+" ")]),i("div",{staticClass:"views-items-and2"},e._l(n.routeTxt,function(s,r){return i("div",{key:s.type},[s.ids&&s.ids.length>0?i("div",[i("div",{staticClass:"include"},[i("b",{staticClass:"include include-type",class:["include-"+s.type]},[e._v(e._s(s.type=="user"?"\u7528\u6237":s.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),i("span",{staticClass:"include include-name"},[e._v(e._s(s.name))])]),r!==n.routeTxt.length-1?i("div",{staticClass:"include include-assign",class:["include-assign-"+(s.assigneeRetain?"true":"false")]},[e._v(e._s(n.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0)]):e._e()])])}):e._e()],2),e.endNode?i("div",{staticClass:"treenode-single"},e._l(e.nodeItems,function(n){return i("div",{staticClass:"treenode-single-items"},[i("div",{staticClass:"personselect"},[i("div",{staticClass:"personselect-name"},[e._v(" "+e._s(n.name||n.nodeName)+" ")]),n.nodeType!=="endEvent"?i("div",{staticClass:"items-person"},[n.userList&&n.userList.length>0?i("div",{staticClass:"items-person-set",on:{click:function(s){return e.handleOpenFixedPerson(n)}}},[e._v(" \u9009\u62E9 ")]):n.setPersonnel?i("div",{staticClass:"items-person-name"},[e._v(" "+e._s((n.assignees||[]).map(function(s){return s.name}).join(","))+" ")]):[i("div",{staticClass:"items-person-set",on:{click:function(s){return s.stopPropagation(),e.handleOpenPopup(n)}}},[e._v(" \u8BBE\u7F6E ")])],i("div",{staticClass:"items-person-name"},[!e.partNode[n.id]&&n.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"&&n.noPersonnel?i("div",[e._v(" \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")]):e._e(),e._v(" "+e._s(e.partNode[n.id]?e.partNode[n.id].join(","):"")+" ")])],2):e._e(),n.routeTxt&&n.routeTxt.length>0?i("div",{staticClass:"views-items-includes"},[i("div",{staticClass:"views-items-name2"},[e._v(" "+e._s("\u6240\u5C5E\u8303\u56F4")+" ")]),i("div",{staticClass:"views-items-and2"},e._l(n.routeTxt,function(s,r){return i("div",{key:s.type},[s.ids&&s.ids.length>0?i("div",[i("div",{staticClass:"include"},[i("b",{staticClass:"include include-type",class:["include-"+s.type]},[e._v(e._s(s.type=="user"?"\u7528\u6237":s.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),i("span",{staticClass:"include include-name"},[e._v(e._s(s.name))])]),r!==n.routeTxt.length-1?i("div",{staticClass:"include include-assign",class:["include-assign-"+(s.assigneeRetain?"true":"false")]},[e._v(e._s(n.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0)]):e._e()])])}),0):e._e(),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(n){return e.visible=n}}},[e.visible?i("departPerson",e._b({attrs:{isTitle:!1},on:{callback:e.handleCallback}},"departPerson",e.entity,!1)):e._e()],1),i("SelectFixedPerson",{attrs:{visible:e.showFixedPerson,list:e.fixedPersonList,multiple:e.currentClickItem.loopCardinality==-1,select:e.fixedSelect[e.partObjId]||[]},on:{updateList:e.handleClickFixedPerson,updateVisible:e.updateFixedPersonVisible,updateSelect:e.updateFixedSelect,confirm:e.handleSumbitFixedPerson}}),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}})],1):e._e()},dI=[];const LT="",hI={name:"TreeNode",components:{SelectFixedPerson:_h,TopPopup:at,TopTips:Nt,departPerson:Ht.departPerson},props:{items:{type:Array,default:()=>[]},endNode:{type:Boolean,default:!1},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}},checkType:{type:String,default:""}},data(){return{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],nodeItems:[],visible:!1,checkBoxArr:[],checkBoxItem:[],radioArr:"",radioItem:[],partObjId:"",entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partNode:{},partNodeArr:{},textTips:"",statusTips:!1,typeTips:"success",gateVars:{},onMultiNodeData:{},onVarsData:{},personMake:[],personMakeList:{}}},watch:{items:{handler(e,t){e&&e.length&&(this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={},this.nodeItems=JSON.parse(JSON.stringify(e)),this.nodeItems,this.nodeItems.map(i=>{if(Array.isArray(i.assignees),i.assignees,i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),Array.isArray(i.assignees)&&i.assignees.length&&(this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),i.assignees.forEach(n=>{this.partNodeArr,this.multiNodeParticipant;const s=this.partNodeArr[i.id].find(a=>a.name==n.name),r=this.multiNodeParticipant[i.id].find(a=>a==n.id);s||this.partNodeArr[i.id].push(n),r||this.multiNodeParticipant[i.id].push(n.id)})),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.humanPerformer&&i.userTaskModelDTO.participantList.map(n=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(n.id)||this.multiNodeParticipant[i.id].push(n.id),this.partNode[i.id].includes(n.name)||this.partNode[i.id].push(n.name),this.partNodeArr[i.id].find(s=>s.name==n.name)||this.partNodeArr[i.id].push(n)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id),i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let n={taskDefId:i.id,postIds:[]};i.userTaskModelDTO.routeTxt.postList.map(s=>{n.postIds.push(s.postId)}),this.param.request.post("/auth/user/getTaskAuditor",{deptId:this.param.taskNode&&this.param.taskNode[0].vars?this.param.taskNode[0].vars._businessDeptId:"",taskPostIds:[n]}).then(s=>{let r=[],a=[],o=!1;s.data.map(p=>{p.posts.map(h=>{a.push(...h.users),h.users.length==1?r.push(...h.users):o=!0})}),r.length>i.loopCardinality&&i.loopCardinality>0&&(o=!0),o&&(r=[]);let l=[];s.data[0].posts.map(p=>{l.push({...p,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:p.users.map(h=>h.id)})}),a.length==0&&this.$set(i,"noPersonnel",!0),r.length>0&&(this.$set(i,"noPersonnel",!0),this.partObjId=i.id,this.handleCallback(r)),i.positionArray=l})}this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(n=>{n.code==200&&(this.personMakeList=n.data)})}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.$emit("onVars",this.gateVars),this.checkType=="ExclusiveGatewayModel"&&e.length==1&&this.handleRadioClick(e[0]))},immediate:!0,deep:!0}},computed:{check(){return sl}},mounted(){},methods:{clear(){this.radioArr="",this.radioItem=[],this.checkBoxArr=[],this.checkBoxItem=[],this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={}},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"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleCallback(e){this.visible=!1,this.$set(this.multiNodeParticipant,this.partObjId,[]),this.$set(this.partNode,this.partObjId,[]),this.$set(this.partNodeArr,this.partObjId,[]),e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.partNodeArr[this.partObjId].push(t)}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr)},handleRadioClick(e){e&&(this.multiNodeParticipant={},this.gateVars={},this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.radioArr=e.id,this.radioItem=[e],this.handleNode(e),this.$emit("onVars",this.gateVars))},handleCheckBoxClick(e){e&&(this.checkBoxArr.includes(e.id)?(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&delete this.gateVars[e.incomingConditionItemList[0].itemName],delete this.multiNodeParticipant[e.id],this.checkBoxItem.splice(this.checkBoxArr.indexOf(e.id),1),this.checkBoxArr.splice(this.checkBoxArr.indexOf(e.id),1)):(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.checkBoxItem.push(e),this.checkBoxArr.push(e.id)),this.handleNode(e),this.$emit("onVars",this.gateVars))},handleNode(e){let t=e.childNode&&e.childNode.length?e.childNode:e&&e.length?e:[e];t&&t.length&&t.forEach((i,n)=>{i.participantList&&i.participantList.length?i.participantList.forEach((s,r)=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(s.id)||this.multiNodeParticipant[i.id].push(s.id),this.partNode[i.id].includes(s.name)||this.partNode[i.id].push(s.name),this.partNodeArr[i.id].find(a=>a.name==s.name)||this.partNodeArr[i.id].push(s)}):i.id&&i.humanPerformerName=="\u56FA\u5B9A\u4EBA\u5458"&&this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[i.id]}).then(s=>{s.code==200&&(this.partNode[i.id]={},this.partNode[i.id]=s.data[i.id].split(";"))}),this.nodeType=="outing"&&(this.onVarsData&&(this.gateVars={...this.gateVars,...this.onVarsData}),this.$emit("onVars",this.gateVars))})},handleOpenFixedPerson(e){this.currentClickItem=e,this.partObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.$set(this.fixedSelect,this.partObjId,e),this.$set(this.multiNodeParticipant,this.partObjId,[]),this.$set(this.partNode,this.partObjId,[]),this.$set(this.partNodeArr,this.partObjId,[]),e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.userId),this.partNode[this.partObjId].push(t.realName),this.partNodeArr[this.partObjId].push({...t,name:t.realName,id:t.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},handleClickFixedPerson(e){this.$set(this.multiNodeParticipant,this.partObjId,[]),this.$set(this.partNode,this.partObjId,[]),this.$set(this.partNodeArr,this.partObjId,[]),e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.userId),this.partNode[this.partObjId].push(t.realName),this.partNodeArr[this.partObjId].push({...t,name:t.realName,id:t.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nodeType=="nexting"?e={...e,...e.userTaskModelDTO}:this.nodeType=="outing"?e={...e,humanPerformer:{name:e.humanPerformerName}}:this.handleTips("\u52A0\u8F7D\u5931\u8D25,\u8BF7\u5237\u65B0",!0,"error"),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];this.multiNodeParticipant,this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((n,s)=>{i.push({type:3,id:n.id,subjectId:n.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"||e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],n=[];e.routeTxt.departmentIds.forEach((s,r)=>{e.routeTxt.departmentIds.length>1?i.push(s.rangeId):t=s.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((s,r)=>{n.push({type:3,id:s.id,deptId:t,subjectId:s.subjectId})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCodeArray:i,checkedArray:n}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCode:t,checkedArray:n}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,n)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:[5],request:this.param.request,codeType:[8],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,positionArray:e.positionArray,checkedArray:t}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,n)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:t}}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},onMultiNode(e){e&&(this.onMultiNodeData=e,this.multiNode={...this.multiNode,...this.onMultiNodeData},this.$emit("onMultiNode",this.multiNode),this.$emit("onMultiNodeObj",this.partNodeArr))},onVars(e){e&&(this.onVarsData=e,this.getVars={...this.gateVars,...this.onVarsData},this.$emit("onVars",this.getVars))}}},Oh={};var fI=ve(hI,pI,dI,!1,mI,"4064b34c",null,null);function mI(e){for(let t in Oh)this[t]=Oh[t]}const gI=function(){return fI.exports}();var yI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"test"},[e.param.nodeLoading?[e._m(0)]:[e.nodeItems&&e.nodeItems.length?i("div",e._l(e.nodeItems,function(n,s){return i("div",{key:s,staticClass:"treeperson"},[n.nodeType=="endEvent"?[i("div",[e._v(" \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")])]:n.branches&&n.branches.length?[e.nodeType=="nexting"&&n.nodeType!="inclusiveGateway"?[n.nodeType=="exclusiveGateway"&&n.branches.length>1?i("div",{staticClass:"treeperson-firstnode"},[e._m(1,!0),e._l(n.branches,function(r,a){return i("div",{key:a,staticClass:"treeperson-radio",class:e.firstCheck==(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-radio-active":"",on:{click:function(o){return e.handleFirstNodeClick(r,n.branches)}}},[i("span"),e._v(" "+e._s(r.id.includes("Flow")?r.nodeName||r.name?r.nodeName||r.name:r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:"":r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name||r.nodeName||r.name:r.nodeName||r.name)+" ")])})],2):n.nodeType=="exclusiveGateway"&&n.branches.length==1?i("div",{staticClass:"treeperson-firstnode"},e._l(n.branches,function(r,a){return i("div",[i("span"),i("tree-person",{ref:"TreePersonRef",refInFor:!0,attrs:{items:r.branches&&r.branches.length>0?r.branches:[r],nodeType:"nexting",param:e.param},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj}})],1)}),0):n.nodeType=="inclusiveGateway"&&n.branches.length>=1?i("div",{staticClass:"treeperson-firstnode"},[e._m(2,!0),e._l(n.branches,function(r,a){return i("div",{key:a,staticClass:"treeperson-radio",class:e.firstCheck==(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-radio-active":"",on:{click:function(o){return e.handleMultiFirstNodeClick(r)}}},[i("span"),e._v(" "+e._s(r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:r.nodeName||r.name)+" ")])})],2):i("div",{staticClass:"treeperson-firstnode"},[e._m(3,!0),e._l(n.branches,function(r,a){return i("div",{key:a,staticClass:"treeperson-radio",class:e.firstCheck==(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-radio-active":"",on:{click:function(o){return e.handleFirstNodeClick(r,n.branches)}}},[i("span"),e._v(" "+e._s(r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:r.nodeName||r.name)+" ")])})],2),e.childrenItems&&e.childrenItems.length>0&&e.childrenItems[0].nodeInfoDTO&&e.childrenItems[0].nodeInfoDTO.nodeType!="userTask"?[i("tree-person",{key:e.firstCheck,ref:"TreePersonRef",refInFor:!0,attrs:{items:[e.firstCheckItem],nodeType:"nexting",param:e.param},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj}})]:e.childrenItems&&e.childrenItems.length>1&&e.childrenItems[0].nodeInfoDTO&&e.childrenItems[0].nodeInfoDTO.nodeType=="userTask"?[e._m(4,!0),i("div",{staticClass:"treeperson-checkbox-box"},e._l(e.childrenItems,function(r,a){return i("div",{key:a,staticClass:"treeperson-checkbox",class:e.firstMultiCheckSub.includes(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-checkbox-active":"",on:{click:function(o){return e.handleMultiFirstNodeClickSub(r,e.childrenItems)}}},[i("span"),e._v(" "+e._s(r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:r.nodeName||r.name)+" ")])}),0),e._l(e.filterMultiItemsSub(e.childrenItems),function(r){return[i("TreeNode",{attrs:{items:r.branches&&r.branches.length>0?r.branches:[r.nodeInfoDTO?r.nodeInfoDTO:r],endNode:!0,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:function(a){return e.onMultiNode(a,"multi")},onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]})]:[i("TreeNode",{attrs:{items:e.childrenItems,endNode:e.childrenEndItems,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]]:e.nodeType=="nexting"&&n.nodeType=="inclusiveGateway"?[n.nodeType=="inclusiveGateway"&&n.branches.length>=1?i("div",{staticClass:"treeperson-firstnode"},[e._m(5,!0),i("div",{staticClass:"treeperson-checkbox-box"},e._l(n.branches,function(r,a){return i("div",{key:a,staticClass:"treeperson-checkbox",class:e.firstMultiCheck.includes(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-checkbox-active":"",on:{click:function(o){return e.handleMultiFirstNodeClick(r,n.branches)}}},[i("span"),e._v(" "+e._s(r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:r.nodeName||r.name)+" ")])}),0)]):e._e(),e._l(e.filterMultiItems(n.branches),function(r){return[i("TreeNode",{attrs:{items:r.branches&&r.branches.length>0?r.branches:[r.nodeInfoDTO?r.nodeInfoDTO:r],endNode:!0,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:function(a){return e.onMultiNode(a,"multi")},onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]})]:e._e()]:n.nodeType=="exclusiveGateway"&&n.branches&&n.branches.length>1?[e._m(6,!0),n.type=="ExclusiveGatewayModel"&&n.branches.length==1?e._e():i("div",{staticClass:"treeperson-firstnode"},e._l(n.branches,function(r,a){return i("div",{key:a,staticClass:"treeperson-checkbox",class:e.firstCheck==r.id?"treeperson-checkbox-active":"",on:{click:function(o){return e.handleFirstNodeClick(r,n.branches)}}},[i("span"),e._v(" "+e._s(r.nodeName||r.name)+" ")])}),0),i("TreeNode",{attrs:{items:e.childrenItems,endNode:e.childrenEndItems,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:function(r){return e.onMultiNode(r,"multi")},onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]:n.nodeType=="exclusiveGateway"&&n.branches&&n.branches.length==1?[e._m(7,!0),e.nodeType=="nexting"?[i("TreeNode",{attrs:{items:[n.branches[0]],endNode:e.childrenEndItems,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]:[i("TreeNode",{attrs:{items:[n.branches[0]],endNode:!0,nodeType:"nexting",param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]]:n.id||n.nodeInfoDTO&&n.nodeInfoDTO.id?[e.nodeType=="nexting"?[n.nodeInfoDTO&&n.nodeInfoDTO.nodeType=="exclusiveGateway"?[e._m(8,!0),e._l(n.nodeInfoDTO.branches,function(r,a){return i("div",{key:a,staticClass:"treeperson-radio",class:e.firstCheck==(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-radio-active":"",on:{click:function(o){return e.handleFirstNodeClick(r,n.nodeInfoDTO.branches)}}},[i("span"),e._v(" "+e._s(r.nodeName||r.name)+" ")])}),i("tree-person",{key:e.firstCheck,ref:"TreePersonRef",refInFor:!0,attrs:{items:[e.firstCheckItem],nodeType:"nexting",param:e.param},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj}})]:[e._m(9,!0),i("TreeNode",{attrs:{items:[n.nodeInfoDTO?n.nodeInfoDTO:n],endNode:e.childrenEndItems,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]]:[i("TreeNode",{attrs:{items:[n],endNode:!0,nodeType:"nexting",param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]]:void 0],2)}),0):e._e()]],2)},vI=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("span",[e._v("\u4E0B\u4E00\u8282\u70B9: ")]),i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u8282\u70B9\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E......")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),i("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),i("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),i("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),i("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),i("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),i("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),i("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),i("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),i("span",{staticClass:"treeperson-title--re"},[e._v("*")])])}];const FT="",AI={name:"tree-person",components:{TreeNode:gI},props:{items:{type:Array,default:()=>[]},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}}},data(){return{nodeItems:[],visible:!1,partObjId:"",partNode:[],firstCheck:"",firstCheckItem:{},firstType:"",firstMultiCheck:[],firstMultiCheckItem:[],firstMultiType:[],firstMultiCheckSub:[],firstMultiCheckItemSub:[],firstMultiTypeSub:[],childrenItems:[],childrenEndItems:!1,childrenItemsSub:[],childrenEndItemsSub:!1,gateVars:{},multiNode:{},partNodeArr:{},getVars:{}}},watch:{items:{handler(e,t){e&&e.length&&(this.nodeType=="nexting"?(this.nodeItems=[],this.childrenEndItems=!0,e.forEach(i=>{i={...i,...i.userTaskModelDTO},this.nodeItems.push(i)})):this.nodeType=="outing"&&(this.nodeItems=e),this.nodeItems.length==1&&this.nodeItems[0].type=="ExclusiveGatewayModel"&&this.nodeItems[0].childNode&&this.nodeItems[0].childNode.length==1&&this.handleFirstNodeClick(this.nodeItems[0]),this.nodeItems)},immediate:!0,deep:!0}},methods:{filterMultiItems(e=[]){return this.firstMultiCheck,e.filter(t=>this.firstMultiCheck.includes(t.nodeInfoDTO?t.nodeInfoDTO.id:t.id))},filterMultiItemsSub(e=[]){return this.firstMultiCheckSub,e.filter(t=>this.firstMultiCheckSub.includes(t.nodeInfoDTO?t.nodeInfoDTO.id:t.id))},onMultiNode(e,t=""){t&&Object.prototype.toString.call(e)=="[object Object]"?Object.prototype.toString.call(this.multiNode)=="[object Object]"?Object.keys(e).forEach(i=>{e[i]||(e[i]=[""]),e[i]&&e[i].length>=1?this.multiNode[i]=e[i].filter(n=>n):this.multiNode[i]=e[i]}):this.multiNode=e:this.multiNode=e,this.$emit("onMultiNode",this.multiNode)},onMultiNodeObj(e){this.partNodeArr=e,this.$emit("onMultiNodeObj",this.partNodeArr)},onVars(e){e?this.getVars={...this.gateVars,...e}:this.getVars={...this.gateVars},this.$emit("onVars",this.getVars)},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"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleMultiFirstNodeClick(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),this.firstMultiCheck.includes(i.id)){this.firstMultiCheck=this.firstMultiCheck.filter(n=>n!=i.id),this.firstMultiCheckItem=this.firstMultiCheckItem.filter(n=>n.id!=i.id),this.firstMultiType=this.firstMultiType.filter(n=>n!=i.nodeType),delete this.param.selChildrenItems[i.id];return}if(i){this.firstMultiCheck.push(i.id),this.firstMultiCheckItem.push(i),this.firstMultiType.push(i.nodeType);let n=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),t.forEach(s=>{delete this.param.selChildrenItems[s.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(r=>r.nodeInfoDTO||r)}),this.gateVars={},n.forEach(s=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(s.incomingConditionItemList)&&s.incomingConditionItemList.length>0&&(this.param.vars[s.incomingConditionItemList[0].itemName]=s.incomingConditionItemList[0].compareValue,this.gateVars[s.incomingConditionItemList[0].itemName]=s.incomingConditionItemList[0].compareValue)})}},handleMultiFirstNodeClickSub(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),this.firstMultiCheckSub.includes(i.id)){this.firstMultiCheckSub=this.firstMultiCheckSub.filter(n=>n!=i.id),this.firstMultiCheckItemSub=this.firstMultiCheckItemSub.filter(n=>n.id!=i.id),this.firstMultiTypeSub=this.firstMultiTypeSub.filter(n=>n!=i.nodeType),this.childrenItemsSub=this.childrenItemsSub.filter(n=>n.id!=i.id),t.forEach(n=>{delete this.param.selChildrenItems[n.nodeInfoDTO?n.nodeInfoDTO.id:n.id]}),delete this.param.selChildrenItems[i.id];return}if(i){this.firstMultiCheckSub.push(i.id),this.firstMultiCheckItemSub.push(i),this.firstMultiTypeSub.push(i.nodeType);let n=[i];i.branches&&i.branches.length?(this.childrenItemsSub.push(i.branches),this.childrenEndItemsSub=!1):(this.childrenItemsSub.push(i),this.childrenEndItemsSub=!0),t.forEach(s=>{delete this.param.selChildrenItems[s.nodeInfoDTO?s.nodeInfoDTO.id:s.id],this.param.selChildrenItems[i.id]=(this.childrenItemsSub||[]).map(r=>r.nodeInfoDTO||r)}),this.gateVars={},n.forEach(s=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(s.incomingConditionItemList)&&s.incomingConditionItemList.length>0&&(this.param.vars[s.incomingConditionItemList[0].itemName]=s.incomingConditionItemList[0].compareValue,this.gateVars[s.incomingConditionItemList[0].itemName]=s.incomingConditionItemList[0].compareValue)})}},handleFirstNodeClick(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),i){this.firstCheck=i.id,this.firstCheckItem=i,this.firstType=i.nodeType;let n=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),t.forEach(s=>{const r=this.param.selChildrenItems[s.nodeInfoDTO?s.nodeInfoDTO.id:s.id];Array.isArray(r)&&r.forEach(a=>{delete this.param.selChildrenItems[a.id]}),delete this.param.selChildrenItems[s.nodeInfoDTO?s.nodeInfoDTO.id:s.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(a=>a.nodeInfoDTO||a)}),this.gateVars={},n.forEach(s=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(s.incomingConditionItemList)&&s.incomingConditionItemList.length>0&&(this.param.vars[s.incomingConditionItemList[0].itemName]=s.incomingConditionItemList[0].compareValue,this.gateVars[s.incomingConditionItemList[0].itemName]=s.incomingConditionItemList[0].compareValue)})}}}},Mh={};var bI=ve(AI,yI,vI,!1,CI,"04a361c0",null,null);function CI(e){for(let t in Mh)this[t]=Mh[t]}const wI=function(){return bI.exports}();var EI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"top-popup-zindex",class:e.className,style:`${e.isIndex?`z-index:${e.isIndex}`:""}`},[i("div",{staticClass:"top-popup-mask",style:e.show&&e.isMask?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;",on:{click:function(n){e.isMaskClose&&e.handleClose()}}}),!e.isTips&&!e.isDrawer?i("div",{staticClass:"top-popup",style:e.show?"transform: translateY(0)":"transform: translateY(150%)"},[i("div",{staticClass:"top-popup-header"},[i("div",{staticClass:"header-cancel",on:{click:e.handleCancel}},[e._v(" "+e._s(e.cancelText)+" ")]),i("div",{staticClass:"header-title"},[e._v(e._s(e.titleText))]),i("div",{staticClass:"header-comfig",on:{click:e.handleComfig}},[e._v(" "+e._s(e.comfigText)+" ")])]),i("div",{staticClass:"top-popup-body"},[e._t("default")],2)]):!e.isTips&&e.isDrawer?i("div",{staticClass:"top-popup-drawer",class:e.show?"top-popup-drawer--active":"",style:e.width?`width:${e.width};`:""},[i("div",{staticClass:"top-popup-drawer--body"},[e._t("default")],2)]):e.isTips&&!e.isDrawer?i("div",{staticClass:"top-tips",style:e.show?"visibility: visible; opacity: 1; transform: scale(1)":"visibility: hidden; opacity: 0; transform: scale(1.2)"},[i("div",{staticClass:"top-tips-header"},[e._v(e._s(e.titleText))]),i("div",{staticClass:"top-tips-body"},[e._v(e._s(e.context))]),i("div",{staticClass:"top-tips-footer"},[i("div",{staticClass:"top-tips-btn",on:{click:e.handleCancel}},[e._v(" "+e._s(e.cancelText)+" ")]),i("div",{staticClass:"top-tips-btn",on:{click:e.handleComfig}},[e._v(" "+e._s(e.comfigText)+" ")])])]):e._e()])},xI=[];const VT="",II={data(){},props:{titleText:{default:"top-popup",type:String},context:{default:"\u5185\u5BB9",type:String},cancelText:{default:"\u53D6\u6D88",type:String},comfigText:{default:"\u786E\u5B9A",type:String},comfig:{default:null,type:Function},cancel:{default:null,type:Function},isMask:{default:!0,type:Boolean},isMaskClose:{default:!0,type:Boolean},isTips:{default:!1,type:Boolean},isDrawer:{default:!1,type:Boolean},visible:{default:!1,type:Boolean},isIndex:{type:Number},width:{type:String,default:"95vw"},className:{type:String,default:""},appendClass:{type:String,default:""}},data(){return{show:!1,top:0,useHidden:!1}},watch:{visible:{handler(e,t){if(e)this.show=e,document.body.style.position=="fixed"&&document.body.style.overflow=="hidden"?this.useHidden=!0:this.useHidden=!1,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=`${-top}px`,document.body.style.overflow="hidden";else{if(this.useHidden){this.show=e,this.$emit("update:visible",!1);return}else document.body.style.position="",document.body.style.top="",document.body.style.overflow="visible",window.scrollTo(0,this.top);this.show=e,this.$emit("update:visible",!1)}},immediate:!0}},methods:{handleOpen(){this.show=!0,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=-this.top+"px"},handleClose(){document.body.style.position="",document.body.style.top="",window.scrollTo(0,this.top),this.show=!1,this.$emit("update:visible",!1)},handleCancel(){typeof this.cancel=="function"&&this.cancel(),this.handleClose()},handleComfig(){typeof this.comfig=="function"&&this.comfig()},isIOS(){let e=navigator.userAgent.includes("iPhone"),t=navigator.userAgent.includes("iPad");return e||t}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el),document.documentElement.scrollTop||document.body.scrollTop})}},Bh={};var TI=ve(II,EI,xI,!1,_I,"37f0c2ca",null,null);function _I(e){for(let t in Bh)this[t]=Bh[t]}const Rh=function(){return TI.exports}();var NI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sign-container",style:e.setDynamicVars},[i("div",{staticClass:"canvas-container"},[e.paths.length==0&&e.currentPath.length==0?i("div",{staticClass:"tips"},[e._v("\u8BF7\u5728\u6B64\u533A\u57DF\u7B7E\u5B57")]):e._e(),i("canvas",{ref:"canvasRef",class:{"uni-canvas-style":e.isUniCanvas()},attrs:{id:"canvas-id","canvas-id":"canvas-id"},on:{touchmove:e.draw,touchstart:e.startDrawing,touchend:e.finishDrawing}})]),i("div",{staticClass:"history"},[i("div",{staticClass:"img-grid",on:{click:function(n){return e.useHistory(0)}}},[e.historyPics[0]?i("img",{attrs:{src:e.historyPics[0]?e.historyPics[0].url:"",fit:"scale-down"}}):e._e()]),i("div",{staticClass:"img-grid",on:{click:function(n){return e.useHistory(1)}}},[e.historyPics[1]&&e.historyPics[1].url?i("img",{attrs:{src:e.historyPics[1].url,fit:"scale-down"}}):e._e()]),i("div",{staticClass:"img-grid",staticStyle:{"margin-right":"10rpx"},on:{click:function(n){return e.useHistory(2)}}},[e.historyPics[2]&&e.historyPics[2].url?i("img",{attrs:{src:e.historyPics[2].url,fit:"scale-down"}}):e._e()])]),i("div",{staticClass:"actions-area"},[i("button",{staticClass:"btns-common cmf-btn",on:{click:e.confirmSave}},[e._v("\u786E\u8BA4")]),i("button",{staticClass:"btns-common",on:{click:e.cancelSign}},[e._v("\u8FD4\u56DE")]),i("button",{staticClass:"btns-common",on:{click:e.undo}},[e._v("\u64A4\u9500")]),i("button",{staticClass:"btns-common",on:{click:e.clearCanvas}},[e._v("\u6E05\u7A7A")])]),i("signDrawer",{ref:"TopPopupSign",attrs:{visible:e.confirmVisible,titleText:"",isDrawer:!1,isTips:!0,context:"\u63D0\u4EA4\u4E4B\u540E\u5C06\u4E0D\u80FD\u518D\u4FEE\u6539,\u786E\u8BA4\u8981\u63D0\u4EA4\u7B7E\u540D\u5417?",comfig:e.saveSignature},on:{"update:visible":function(n){return e.confirmVisible=n}}})],1)},kI=[];const jT="",SI={props:{request:{type:Function,default:()=>{}}},components:{signDrawer:Rh},data(){return{ctx:null,signatureImage:"",actionHeight:0,historyHeight:0,isDrawing:!1,paths:[],currentPath:[],historyPics:[],savaClock:!1,confirmVisible:!1}},methods:{startDrawing(e){if(this.$refs.canvasRef.getContext){this.isDrawing=!0,this.currentPath=[];const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,n=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.beginPath(),this.ctx.moveTo(i,n),this.currentPath.push({x:i,y:n})}else this.isDrawing=!0,this.currentPath=[],this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y})},draw(e){if(!!this.isDrawing)if(this.$refs.canvasRef.getContext&&this.currentPath.length>0){const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,n=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.lineWidth=3,this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.strokeStyle="#000000",this.ctx.imageSmoothingEnabled=!0,this.ctx.imageSmoothingQuality="high",this.$refs.canvasRef.style.imageRendering="auto",this.ctx.lineTo(i,n),this.ctx.stroke(),this.currentPath.push({x:i,y:n})}else this.currentPath.length>0&&(this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y}),this.ctx.moveTo(this.currentPath[this.currentPath.length-2].x,this.currentPath[this.currentPath.length-2].y),this.ctx.lineTo(this.currentPath[this.currentPath.length-1].x,this.currentPath[this.currentPath.length-1].y),this.ctx.setLineWidth(3),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0))},undo(){if(this.$refs.canvasRef.getContext){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height);for(let e of this.paths)for(let t=0;t<e.length-1;t++){const{x:i,y:n}=e[t];t===0?(this.ctx.beginPath(),this.ctx.moveTo(i,n)):(this.ctx.lineTo(i,n),this.ctx.stroke())}}else if(this.paths.length>0){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0);for(let e of this.paths)for(let t=0;t<e.length-1;t++)this.ctx.moveTo(e[t].x,e[t].y),this.ctx.lineTo(e[t+1].x,e[t+1].y),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setLineWidth(4),this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0);this.ctx.draw(!0)}this.currentPath=[]},finishDrawing(e){this.paths.push(this.currentPath),this.currentPath=[],this.isDrawing=!1},clearCanvas(){var e,t;(t=(e=this.$refs)==null?void 0:e.canvasRef)!=null&&t.getContext?(this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.signatureImage="",this.paths=[]):(this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0),this.signatureImage="",this.paths=[]),this.currentPath=[],this.$emit("saveSignature","",!1)},cancelSign(){this.clearCanvas(),this.$emit("close")},fixAccuracy(e,t){const i=new Blob([e],{type:"text/plain"}),r=new File([i],"text.txt").size/1024;if(r<=64){const a=document.getElementById("canvas-id");return this.getRotatedDataURL(a,-90,t)}else{if(r>300)return null;{let a,o;if(t<.005)return null;if(t-.05>0){a=t-.05;const l=document.getElementById("canvas-id");return o=this.getRotatedDataURL(l,-90,a),this.fixAccuracy(o,a)}else{a=t/2;const l=document.getElementById("canvas-id");return o=this.getRotatedDataURL(l,-90,a),this.fixAccuracy(o,a)}}}},confirmSave(){if(this.paths.length==0){this.$emit("validateFail","\u8BF7\u7B7E\u5B57!");return}this.confirmVisible=!0},saveSignature(){if(this.confirmVisible=!1,this.savaClock)return;this.savaClock=!0;let e=this;if(this.$refs.canvasRef.getContext){let t=.6;const i=document.getElementById("canvas-id");return this.getRotatedDataURL(i,-90,t),!0}else uni.canvasToTempFilePath({canvasId:"canvas-id",success(t){e.signatureImage=t.tempFilePath;let i=JSON.parse(localStorage.getItem("signaturesArr"))||[];i.unshift(this.signatureImage),this.$set(this,"historyPics",i.slice(0,3)),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),e.$emit("saveSignature",e.signatureImage)}},e)},isUniCanvas(){var e;return!((e=this.$refs.canvasRef)!=null&&e.getContext)},disableWeChatScroll(e){e.preventDefault()},useHistory(e){this.historyPics[e]&&this.$emit("saveSignature",this.historyPics[e],!0)},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},getRotatedDataURL(e,t,i){let n=e.width/window.devicePixelRatio,s=e.height/window.devicePixelRatio,r=t*Math.PI/180,a=Math.max(n*Math.abs(Math.cos(r)),s*Math.abs(Math.sin(r))),o=Math.max(n*Math.abs(Math.sin(r)),s*Math.abs(Math.cos(r)));const l=document.createElement("canvas"),p=l.getContext("2d");l.width=a,l.height=o,p.translate(a/2,o/2),p.rotate(r),p.drawImage(e,-n/2,-s/2,n,s),l.toBlob(h=>{this.uploadImage(h)},"image/png",.95)},async uploadImage(e,t){this.loading=!0;const i=new FormData;i.append("file",e,t||`signature-${Date.now()}.png`);const n=await this.request.post("/file/upload",i,{headers:{"Content-Type":"multipart/form-data"}});if(this.loading=!1,!n.success)return;let s=JSON.parse(localStorage.getItem("signaturesArr"))||[];s.unshift(n.data),this.$set(this,"historyPics",s.slice(0,3)),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),this.$emit("saveSignature",n.data,!0)}},computed:{setDynamicVars(){return{"--action-height":`${this.historyHeight}px`}}},mounted(){var e;if(this.historyHeight=(e=document.querySelector(".history"))==null?void 0:e.offsetHeight,this.$refs.canvasRef.getContext){let t=document.querySelector(".canvas-container");if(t){let i=document.getElementById("canvas-id");const n=t.offsetWidth,s=t.offsetHeight-this.actionHeight-this.historyHeight;i.style.width=`${n}px`,i.style.height=`${s}px`,i.width=n*window.devicePixelRatio,i.height=s*window.devicePixelRatio,this.ctx=this.$refs.canvasRef.getContext("2d"),this.ctx.scale(window.devicePixelRatio,window.devicePixelRatio),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,i.width,i.height)}}else{this.ctx=uni.createCanvasContext("canvas-id",this);const t=uni.getSystemInfoSync().pixelRatio;this.ctx.scale(t,t)}document.addEventListener("touchmove",this.disableWeChatScroll,{passive:!1}),localStorage.getItem("signaturesArr")?this.historyPics=JSON.parse(localStorage.getItem("signaturesArr")):this.historyPics=[]},beforeDestroy(){document.removeEventListener("touchmove",this.disableWeChatScroll)}},Lh={};var PI=ve(SI,NI,kI,!1,DI,"58762489",null,null);function DI(e){for(let t in Lh)this[t]=Lh[t]}const OI=function(){return PI.exports}();var MI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-popup-content"},[e.param.ProcessInsObj&&e.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?i("div",{staticClass:"process-popup-content-msg"},[e.param.isQuickReply?i("div",{staticClass:"process-pc-label"},[e._v("\u5FEB\u6377\u56DE\u590D")]):e._e(),e.param.isQuickReply?i("div",{staticClass:"process-pc-value",staticStyle:{display:"flex"}},[i("div",{staticClass:"process-radio",staticStyle:{width:"100%"}},[e.param.isDocument?e._l(e.msgCheckList,function(n){return i("div",{staticClass:"process-radio-item",class:n==e.commentMsg?"process-radio-item--check":"",on:{click:function(){return e.commentMsg=n}}},[i("span"),e._v(" "+e._s(n)+" ")])}):e._l(e.msgCheckListS,function(n){return i("div",{staticClass:"process-radio-item",class:n==e.commentMsg?"process-radio-item--check":"",on:{click:function(){return e.commentMsg=n}}},[i("span"),e._v(" "+e._s(n)+" ")])}),e.param.isMsg?i("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px","margin-left":"auto"},on:{click:function(n){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")]):e._e()],2)]):e._e(),e.param.isMsg&&!e.param.isQuickReply?i("div",[i("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px"},on:{click:function(n){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")])]):e._e(),i("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u610F\u89C1 "),e.param.isRequire?i("span",{staticClass:"process-pc-label--re"},[e._v("*")]):e._e()]),i("div",{staticClass:"process-pc-value"},[i("div",{staticClass:"process-popup-textarea"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},domProps:{value:e.commentMsg},on:{input:function(n){n.target.composing||(e.commentMsg=n.target.value)}}}),i("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])]),e.param.isMsg?i("div",{staticClass:"msg-btn"},[i("span",{staticClass:"msg-btn-click",on:{click:function(n){return e.handleMakeMsg()}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()])]):e._e(),i("div",{staticClass:"process-popup-content-person"},[e.nextNodeData.length==1&&e.nextNodeData[0].nodeType=="endEvent"?i("div",[e._v(" \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")]):e.nextNodeData&&e.nextNodeData.nodeType=="endEvent"?i("div",[e._v(" \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")]):e.param.ProcessInsObj.taskParentId?e._e():i("TreePerson",{ref:"TreePersonRef",attrs:{items:e.nextNodeData,nodeType:"nexting",param:e.param},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj}})],1),e._t("completeSlot"),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(n){return e.visible=n}}},[i("div",{staticStyle:{height:"100%"}},[e.visible?i("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible},on:{"update:visible":function(n){e.visible=n},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(n){return e.visibleListMsg=n}}},[i("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),i("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(n){return e.visibleMsgComfig=n}}}),e.labels=="1"?i("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e(),i("signDrawer",{ref:"TopPopupSign",attrs:{visible:e.signVisible,titleText:"\u7B7E\u5B57",isDrawer:!0,width:"100vw"},on:{"update:visible":function(n){return e.signVisible=n}}},[i("div",{staticStyle:{height:"100%"}},[e.signVisible?i("TopSign",{attrs:{request:e.param.request},on:{saveSignature:e.handleSignature,validateFail:e.noticeFail,close:e.handleClose}}):e._e()],1)])],2)},BI=[];const UT="",RI={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Nt,attchViews:Yi,TopPopup:at,departPerson:Ht.departPerson,MsgList:ds,TreePerson:wI,TopSign:OI,signDrawer:Rh},computed:{check(){return sl},checkS(){return uI},isSelectPerson(){if(this.pureTip=!1,this.nextNodeData,this.taskNode,this.multiNodeParticipant,this.$refs.TreePersonRef,this.param,Array.isArray(this.nextNodeData)&&this.nextNodeData[0].nodeType!="endEvent"){let e=this.param.selChildrenItems||{},t=[];if(Object.keys(e).filter(n=>n.startsWith("Activity")).forEach(n=>{t=t.concat(e[n])}),t.length==0&&Object.values(e).forEach(n=>{Array.isArray(n)&&n.length>0&&n.forEach(s=>{(s.id||"").startsWith("Activity")&&(t=t.concat(s))})}),t.length>0){let n="";const s=t.every(r=>{let a=this.multiNodeParticipant[r.id];a=(a||[]).filter(l=>l);const o=a&&a.length>0;return o||(n=r),o});return s?!1:n.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length==1){const n=this.findUserTaskNode(this.nextNodeData[0].branches[0]);let s=(this.multiNodeParticipant[n.id]||[]).filter(a=>a);const r=s&&s.length>0;return this.nextNodeData[0].branches[0],r?!1:n.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length>1){const n=this.$refs.TreePersonRef.childrenItems||null;if(n&&n.length>0){let s="";return n.every(a=>{const o=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return o||(s=a),o})?!1:s.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}else if(this.nextNodeData[0].nodeType=="userTask"){let n=(this.multiNodeParticipant[this.nextNodeData[0].id]||[]).filter(s=>s);return n&&n.length>0?!1:this.nextNodeData[0].name}}else return!1;if(this.nextNodeData.nodeType!="endEvent"){let e=this.param.selChildrenItems||{},t=[];if(Object.keys(e).filter(n=>n.startsWith("Activity")).forEach(n=>{t=t.concat(e[n])}),t.length==0&&Object.values(e).forEach(n=>{Array.isArray(n)&&n.length>0&&n.forEach(s=>{(s.id||"").startsWith("Activity")&&(t=t.concat(s))})}),t.length>0){let n="";const s=t.every(r=>{let a=this.multiNodeParticipant[r.id];a=(a||[]).filter(l=>l);const o=a&&a.length>0;return o||(n=r),o});return s?!1:n.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length==1){const n=this.findUserTaskNode(this.nextNodeData.branches[0]);let s=(this.multiNodeParticipant[n.id]||[]).filter(a=>a);const r=s&&s.length>0;return this.nextNodeData.branches[0],r?!1:n.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length>1){const n=this.$refs.TreePersonRef.childrenItems||null;if(n&&n.length>0){let s="";return n.every(a=>{const o=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return o||(s=a),o})?!1:s.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}else if(this.nextNodeData.nodeType=="userTask"){let n=(this.multiNodeParticipant[this.nextNodeData.id]||[]).filter(s=>s);return n&&n.length>0?!1:this.nextNodeData.name}}else return!1;if(Array.isArray(this.nextNodeData)&&this.nextNodeData.length==1&&this.nextNodeData[0].userTaskModelDTO&&this.taskNode&&this.taskNode.length>0&&this.taskNode[0].taskState!=4&&this.taskNode[0].taskState!=11){let e=this.nextNodeData[0].userTaskModelDTO.humanPerformer.name;if(e!="\u56FA\u5B9A\u8D26\u6237"&&e!="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"&&JSON.stringify(this.multiNodeParticipant)=="{}")return this.nextNodeData[0].userTaskModelDTO.name}return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"},signRequired(){return!!this.param.extendedProperties.find(t=>t.name=="signature")}},data(){return{pureTip:!1,showFile:!1,attachRule:{limit:0,required:!1},partNodeArr:{},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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],radioCheckNode:[],radioCheckNodeList:[],partList:[],gateVars:{},personMake:[],personMakeList:{},visibleListMsg:!1,visibleMsgComfig:!1,msgCheck:"",msgCheckList:["\u540C\u610F","\u5982\u62DF","\u5DF2\u9605"],msgCheckListS:["\u540C\u610F","\u5DF2\u9605"],actionName:"",partNodeS:[],makeType:"",digitalSignature:"",signVisible:!1}},watch:{"param.nodeLoading":{handler(e,t){e||(this.param,this.nextNodeData=this.param.nextNodeData,this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((i,n)=>{i.nodeType!=="endEvent"&&(i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.participantList.map(s=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(s.id)||this.multiNodeParticipant[i.id].push(s.id),this.partNode[i.id].includes(s.name)||this.partNode[i.id].push(s.name)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(i=>{i.code==200&&(this.personMakeList=i.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((i,n)=>{i.nodeType!=="endEvent"&&i.participantList&&i.participantList.length&&i.participantList.map(s=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(s.id)||this.multiNodeParticipant[i.id].push(s.id),this.partNode[i.id].includes(s.name)||this.partNode[i.id].push(s.name)})}))}},"param.visible":{handler(e,t){this.nextNodeData=this.param.nextNodeData,this.taskNode=this.param.taskNode,this.outGatewayUserTaskModel=this.param.outGatewayUserTaskModel,this.actionName=this.param.actionName,this.attachShow(),this.showFile,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map(i=>{i.type!=="endEvent"&&(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList},i.humanPerformer={name:i.humanPerformerName})}),this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((i,n)=>{i.nodeType!=="endEvent"&&(i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.participantList.map(s=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(s.id)||this.multiNodeParticipant[i.id].push(s.id),this.partNode[i.id].includes(s.name)||this.partNode[i.id].push(s.name)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(i=>{i.code==200&&(this.personMakeList=i.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((i,n)=>{i.nodeType!=="endEvent"&&i.participantList&&i.participantList.length&&i.participantList.map(s=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(s.id)||this.multiNodeParticipant[i.id].push(s.id),this.partNode[i.id].includes(s.name)||this.partNode[i.id].push(s.name)})})},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{findUserTaskNode(e){return e?e.nodeInfoDTO&&e.nodeInfoDTO.nodeType!="userTask"?this.findUserTaskNode(e.nodeInfoDTO.branches[0]):e.nodeInfoDTO?e.nodeInfoDTO:e:{}},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.makeType=="InclusiveGatewayModel"?(this.radioCheckNameList.includes(e.id)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e.id),1):(this.radioCheckNameList.push(e.id),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.gateVars[e.itemName]=e.compareValue):(this.radioCheckNameList=[],this.radioCheckNodeList=[],this.radioCheckNameList.push(e.id),e.childNode&&e.childNode.length&&(this.radioCheckNodeList=e.childNode),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue,this.gateVars[e.itemName]=e.compareValue)},handleSaveNodeS(e){this.makeType=="InclusiveGatewayModel"?this.radioCheckNode.includes(e.id)?this.radioCheckNode.splice(this.radioCheckNode.indexOf(e.id),1):this.radioCheckNode.push(e.id):this.radioCheckNode&&this.radioCheckNode.length?this.radioCheckNode=[]:(this.radioCheckNode.push(e.id),e.childNode&&e.childNode.length&&this.radioCheckNodeList.push(e.childNode))},forRadioChild(e,t){e.map((i,n)=>{i.childNode&&i.childNode.length?this.forRadioChild(i.childNode,!0):t&&this.radioCheckChild.push(i)})},async handleNode(e){this.makeType=e.type,this.radioCheckNameList=[],this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode&&e.childNode.length?e.childNode:[e],this.radioCheckChild&&this.radioCheckChild.length&&this.radioCheckChild.map(t=>{t.participantList&&t.participantList.length?t.participantList.map(i=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.multiNodeParticipant[t.id].includes(i.id)||this.multiNodeParticipant[t.id].push(i.id),this.partNode[t.id].includes(i.name)||this.partNode[t.id].push(i.name)}):this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[t.id]}).then(i=>{i.code==200&&(this.partNodeS=[],this.partNodeS.push(i.data[t.id]))})}),(!this.radioCheckChild[0].incomingConditionItemList||!this.radioCheckChild[0].incomingConditionItemList.length)&&e.incomingConditionItemList&&e.incomingConditionItemList.length&&(this.radioCheckChild[0].incomingConditionItemList=e.incomingConditionItemList),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}:e.humanPerformer||(e={...e,humanPerformer:{name:e.humanPerformerName}}),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];e.routeTxt.companyIds.map((n,s)=>{t=n.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((n,s)=>{i.push({type:3,id:n})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],n=[];e.routeTxt.departmentIds.forEach((s,r)=>{e.routeTxt.departmentIds.length>1?i.push(s.rangeId):t=s.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].forEach((s,r)=>{n.push({type:3,id:s,deptId:t})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCodeArray:i,checkedArray:n}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCode:t,checkedArray:n}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,n)=>{t.push({type:3,id:i})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:t}}},handleOpenMsg(){this.visibleListMsg=!0},async confirm(){this.signRequired?this.signConfirm():this.commonConfirm()},async commonConfirm(){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){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}if(this.isSelectPerson!==!1&&this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let e={};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId)if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let i=0;if(this.radioCheckNameList.map((n,s)=>{(!this.multiNodeParticipant[n]||!this.multiNodeParticipant[n].length)&&this.radioCheckChild.map((r,a)=>{r.id==n&&(r.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||r.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!r.childNode||!r.childNode.length?i+=1:this.radioCheckNode.map((o,l)=>{(!this.multiNodeParticipant[o]||!this.multiNodeParticipant[o].length)&&(i+=1),e[o]=this.multiNodeParticipant[o]}))}),e[n]=this.multiNodeParticipant[n]}),i>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}if(this.signRequired){this.signVisible=!0;return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;(this.param.incomingConditionItemList||[]).forEach(i=>{let n=this.param.vars||this.gateVars||{};n[i.itemName]||(n[i.itemName]="")}),this.handleTips("",!0,"loading");let t=[];if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){const i=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;i.setPersonnel?t=i.assignees:t=(this.partNodeArr[i.id]||[]).map(o=>({id:o.id,name:o.name})),Object.keys(e).forEach(o=>{Array.isArray(e[o])&&(e[o]=e[o].filter(l=>l)),(!e[o]||Array.isArray(e[o])&&e[o].length<=0)&&delete e[o]});let n=i&&i.nodeType!="endEvent"&&(!i.branches||i.branches.length<=0),s=i&&i.nodeType!="endEvent"&&i.branches&&i.branches.length==1&&i.branches[0].nodeInfoDTO&&i.branches[0].nodeInfoDTO.nodeType!="endEvent",r=i&&i.nodeType!="endEvent"&&i.branches&&i.branches.length==1&&!i.branches[0].nodeInfoDTO&&i.branches[0].nodeType!="endEvent";if((n||s||r)&&!Object.keys(e).length){let l={};return n?l=i:s?l=i.branches[0].nodeInfoDTO:r&&(l=i.branches[0]),this.handleTips(l.nodeType?"\u8BF7\u9009\u62E9["+l.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}Date.now()&&(this.param.processInstId,this.param.actionComplete,this.commentMsg,this.param.taskInstId,this.param.vars||this.gateVars,this.attchLists)}await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:t,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e,attachment:this.attchLists}).then(i=>{i.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(i.msg,!0,"error")})},async signConfirm(e=!0){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){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}if(this.isSelectPerson!==!1&&this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let t={};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId)if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let n=0;if(this.radioCheckNameList.map((s,r)=>{(!this.multiNodeParticipant[s]||!this.multiNodeParticipant[s].length)&&this.radioCheckChild.map((a,o)=>{a.id==s&&(a.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||a.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!a.childNode||!a.childNode.length?n+=1:this.radioCheckNode.map((l,p)=>{(!this.multiNodeParticipant[l]||!this.multiNodeParticipant[l].length)&&(n+=1),t[l]=this.multiNodeParticipant[l]}))}),t[s]=this.multiNodeParticipant[s]}),n>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}t=this.multiNodeParticipant}if(e){this.signVisible=!0;return}if(!this.digitalSignature){this.handleTips("\u8BF7\u7B7E\u5B57!",!1,"success");return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;this.handleTips("",!0,"loading"),this.signVisible=(!1)(this.param.incomingConditionItemList||[]).forEach(n=>{let s=this.param.vars||this.gateVars||{};s[n.itemName]||(s[n.itemName]="")});let i=[];if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){const n=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;n.setPersonnel?i=n.assignees:i=(this.partNodeArr[n.id]||[]).map(l=>({id:l.id,name:l.name})),Object.keys(t).forEach(l=>{Array.isArray(t[l])&&(t[l]=t[l].filter(p=>p)),(!t[l]||Array.isArray(t[l])&&t[l].length<=0)&&delete t[l]});let s=n&&n.nodeType!="endEvent"&&(!n.branches||n.branches.length<=0),r=n&&n.nodeType!="endEvent"&&n.branches&&n.branches.length==1&&n.branches[0].nodeInfoDTO&&n.branches[0].nodeInfoDTO.nodeType!="endEvent",a=n&&n.nodeType!="endEvent"&&n.branches&&n.branches.length==1&&!n.branches[0].nodeInfoDTO&&n.branches[0].nodeType!="endEvent";if((s||r||a)&&!Object.keys(t).length){let p={};return s?p=n:r?p=n.branches[0].nodeInfoDTO:a&&(p=n.branches[0]),this.handleTips(p.nodeType?"\u8BF7\u9009\u62E9["+p.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}}await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:i,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:t,digitalSignature:this.digitalSignature,attachment:this.attchLists}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(n.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,n,s="";n=t.find(a=>a.name=="completeButtonAnnex"),s=n?n.value:"",s&&(i=!0);let r="";if(typeof s!="string"&&s!=null&&s.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,r=a)}),r&&(s=r),i){const a=s.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=s;let o=this.otherList.split(":");this.limit=o[2],this.requires=JSON.parse(o[1]),this.labels=o[0]}return this.labels,this.limit,i},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.name.substring(i.name.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.name});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,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("complete")},onMultiNode(e){this.multiNodeParticipant=e},onMultiNodeObj(e){this.partNodeArr=e},onVars(e){this.gateVars=e},handleSignature(e,t){this.digitalSignature=e,t&&(this.signVisible=!1,this.signConfirm(!1))},noticeFail(e){this.handleTips(e,!1,"success")},handleClose(){this.signVisible=!1}}},Fh={};var LI=ve(RI,MI,BI,!1,FI,"74890402",null,null);function FI(e){for(let t in Fh)this[t]=Fh[t]}const Vh=function(){return LI.exports}();var VI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-popup-content"},[i("div",{staticClass:"process-popup-content-msg"},[e.param.isMsg?i("div",[i("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px"},on:{click:function(n){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")])]):e._e(),e._m(0),i("div",{staticClass:"process-pc-value"},[i("div",{staticClass:"process-popup-textarea"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},domProps:{value:e.commentMsg},on:{input:function(n){n.target.composing||(e.commentMsg=n.target.value)}}}),i("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])]),e.param.isMsg?i("div",{staticClass:"msg-btn"},[i("span",{staticClass:"msg-btn-click",on:{click:function(n){return e.handleMakeMsg()}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=4?i("div",{staticClass:"process-popup-content-person"},[e.nextNodeData.length?[e._l(e.nextNodeData,function(n){var s,r;return[e.isOption(n==null||(s=n.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[i("div",[e._v(" "+e._s(n.userTaskModelDTO.name)+" "),i("br"),e._v(" \u5BA1\u6279\u4EBA "),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),i("div",{staticClass:"process-pc-value",on:{click:function(a){return e.handleOpenPopup(n.id)}}},[i("div",{staticClass:"process-pc-value--people"},[e.partNode[n.id]&&e.partNode[n.id].length?i("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[n.id],function(a,o){return i("span",[e._v(" "+e._s(o==0?a:`,${a}`)+" ")])}),0):i("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[i("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(n){return[e.isOption(n.humanPerformerName)?[i("div",{staticStyle:{"font-size":"15px"}},[e._v(" "+e._s(n.name)+" ")]),i("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u4EBA "),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),i("div",{staticClass:"process-pc-value",on:{click:e.handleOpenPopup}},[i("div",{staticClass:"process-pc-value--people"},[e._v(" "+e._s(234)+" ")])])]:e._e()]})]:e._e()],2):e._e(),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(n){return e.visible=n}}},[i("div",{staticStyle:{height:"100%"}},[e.visible?i("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request},on:{"update:visible":function(n){e.visible=n},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),e.labels=="\u62D2\u7EDD"?i("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e(),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(n){return e.visibleListMsg=n}}},[i("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),i("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(n){return e.visibleMsgComfig=n}}})],1)},jI=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-pc-label"},[e._v(" \u62D2\u7EDD\u7406\u7531\uFF1A "),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const QT="",UI={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Nt,attchViews:Yi,TopPopup:at,departPerson:Ht.departPerson,MsgList:ds},watch:{param:{async handler(e,t){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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[770],request:this.param.request,codeType:this.param.isCodeType||[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("/bladex/blade-workflow/tis/complete",{pass:!1,assignees:[],processInstanceId:this.param.processInstId,commentMsg:this.commentMsg,comment:this.commentMsg||" ",taskId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),window.top.postMessage("success","*"),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.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.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,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u62D2\u7EDD")}}},jh={};var QI=ve(UI,VI,jI,!1,GI,"3be26d49",null,null);function GI(e){for(let t in jh)this[t]=jh[t]}const qI=function(){return QI.exports}();var JI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-popup-content"},[i("div",{staticClass:"process-popup-content-msg"},[e._m(0),i("div",{staticClass:"process-pc-value",staticStyle:{display:"inline-block",width:"50%"}},[i("TopDownSelect",{attrs:{option:e.option,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},on:{change:e.handleChange}})],1),e._m(1),i("div",{staticClass:"process-pc-value"},[i("div",{staticClass:"process-popup-textarea"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},domProps:{value:e.commentMsg},on:{input:function(n){n.target.composing||(e.commentMsg=n.target.value)}}}),i("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])])])]),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(n){return e.visibleListMsg=n}}},[i("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),i("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(n){return e.visibleMsgComfig=n}}}),e.labels=="\u9000\u56DE"?i("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],1)},HI=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-pc-label",staticStyle:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[e._v(" \u9000\u56DE\u8282\u70B9\uFF1A "),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-pc-label"},[e._v(" \u9000\u56DE\u7406\u7531\uFF1A "),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const GT="",KI={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Nt,attchViews:Yi,TopPopup:at,departPerson:Ht.departPerson,TopDownSelect:Ih,MsgList:ds},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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:"",actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{async handler(e,t){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("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=(e.data||[]).map(t=>({...t,name:t.nodeName,id:t.nodeId})).filter(t=>!(t.nodeId||"").includes("startEvent")))})},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("/bladex/blade-workflow/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("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((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.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,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u9000\u56DE")}}},Uh={};var WI=ve(KI,JI,HI,!1,zI,"0d20c2b4",null,null);function zI(e){for(let t in Uh)this[t]=Uh[t]}const YI=function(){return WI.exports}();var XI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%"}},[e.param.visible?i("departPerson",e._b({attrs:{isTitle:!1,request:e.param.request},on:{callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e(),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}})],1)},ZI=[];const qT="",$I={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Nt,departPerson:Ht.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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:""}},watch:{param:{handler(e,t){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=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):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=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){let e="";this.multiNodeParticipant[this.partObjId].map((t,i)=>{i==0?e=t:e=`${e} ${t}`}),await this.param.request.post("/bladex/blade-workflow/tis/createCCTask",{processInstId:this.param.processInstId,taskId:this.param.taskInstId,title:"",participant:e}).then(t=>{t.code==200?(this.$emit("handleClosecctaskTopPopup"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal()):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})}),e&&e.length&&this.confirm()},handleCancel(){},getValues(e){this.attchLists=e},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,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("ccTask")}}},Qh={};var eT=ve($I,XI,ZI,!1,tT,null,null,null);function tT(e){for(let t in Qh)this[t]=Qh[t]}const iT=function(){return eT.exports}();var nT=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-btns"},[e.process.status=="todo"?[e.getButton("wf_pass")?i("button",{staticClass:"process-button success",attrs:{size:"default",disabled:e.loading},on:{click:function(n){e.$emit("examine",!0,["deleted"].includes(e.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":e.getButton("wf_pass").name)}}},[["deleted"].includes(e.process.processIsFinished)?i("span",[e._v("\u91CD\u65B0\u63D0\u4EA4")]):i("span",[e._v(e._s(e.getButton("wf_pass").name))])]):e._e(),e.getButton("wf_reject")?i("button",{staticClass:"process-button danger",attrs:{size:"default",disabled:e.loading},on:{click:function(n){e.$emit("examine",!1,(e.backNodes.length>1,e.getButton("wf_reject").name))}}},[e.backNodes.length>1?i("span",[e._v(e._s(e.getButton("wf_reject").name))]):i("span",[e._v(e._s(e.getButton("wf_reject").name))])]):e._e(),e.uid==(e.process.variables||{}).applyUserId?i("button",{staticClass:"process-button info",attrs:{size:"default",disabled:e.loading},on:{click:function(n){return e.$emit("reminders")}}},[i("span",[e._v("\u50AC\u529E")])]):e._e(),e.getButton("wf_transfer")?i("button",{staticClass:"process-button primary",attrs:{size:"default",disabled:e.loading},on:{click:function(n){e.$emit("user-select",{type:"transfer",checkType:"radio",name:e.getButton("wf_transfer").name})}}},[e._v(e._s(e.getButton("wf_transfer").name))]):e._e(),e.getButton("wf_delegate")?i("button",{staticClass:"process-button warning",attrs:{size:"default",disabled:e.loading},on:{click:function(n){e.$emit("user-select",{type:"delegate",checkType:"radio",name:e.getButton("wf_delegate").name})}}},[e._v(" "+e._s(e.getButton("wf_delegate").name)+" ")]):e._e(),e.getButton("wf_rollback")?i("button",{staticClass:"process-button success",attrs:{size:"default",disabled:e.loading},on:{click:function(n){e.$emit("rollback",e.getButton("wf_rollback").name)}}},[e._v(" "+e._s(e.getButton("wf_rollback").name)+" ")]):e._e(),e.getButton("wf_terminate")?i("button",{staticClass:"process-button danger",attrs:{size:"default",disabled:e.loading},on:{click:function(n){return e.$emit("terminate")}}},[e._v(" "+e._s(e.getButton("wf_terminate").name)+" ")]):e._e(),e.process.isMultiInstance&&e.getButton("wf_add_instance")?i("button",{staticClass:"process-button primary",attrs:{size:"default",disabled:e.loading},on:{click:function(n){e.$emit("user-select",{type:"addInstance",checkType:"checkbox",name:e.getButton("wf_add_instance").name})}}},[e._v(" "+e._s(e.getButton("wf_add_instance").name)+" ")]):e._e(),e.getButton("wf_cctask")?i("button",{staticClass:"process-button info",attrs:{size:"default",disabled:e.loading},on:{click:function(n){e.$emit("circulate",e.getButton("wf_cctask").name)}}},[i("span",[e._v(e._s(e.getButton("wf_cctask").name))])]):e._e()]:e._e(),e.process.isOwner&&e.process.isReturnable&&!["deleted"].includes(e.process.processIsFinished)?i("button",{staticClass:"process-button danger",attrs:{size:"default",disabled:e.loading},on:{click:function(n){return e.$emit("withdraw","\u64A4\u9500")}}},[e._v(" \u64A4\u9500 ")]):e._e(),e.getButton("wf_print")?i("button",{staticClass:"process-button info",attrs:{size:"default",disabled:e.loading},on:{click:function(n){return e.$emit("print")}}},[e._v(" "+e._s(e.getButton("wf_print").name)+" ")]):e._e()],2)},sT=[];const JT="",rT={name:"nf-button",components:{TopTips:Nt},props:{uid:{type:String,default:""},loading:{type:Boolean,default:!1},buttonList:{type:Array,default:()=>[]},process:{type:Object,default:()=>({variables:{}})},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},comment:String},data(){return{isCollapse:!0,nodeVisible:!1,nodeForm:{},nodeOption:{column:[{label:"\u8282\u70B9",prop:"nodeId",type:"select",props:{label:"nodeName",value:"nodeId"},span:24,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u56DE\u9000\u8282\u70B9",trigger:"change"}]}]},backNodes:[]}},watch:{process:{handler(e,t){e&&e.taskId&&this.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:e.taskId}}).then(i=>{const n=i.data;this.backNodes=n})},deep:!0,immediate:!0}},methods:{handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleRollback(){if(!this.comment){this.$message.error("\u8BF7\u586B\u5199\u6279\u590D\u610F\u89C1");return}this.nodeVisible=!0},handleNodeSubmit(){const{nodeId:e}=this.nodeForm;this.$emit("rollback",e)},getButton(e){return this.buttonList.find(t=>t.buttonKey==e)}}},Gh={};var aT=ve(rT,nT,sT,!1,oT,"128c5f57",null,null);function oT(e){for(let t in Gh)this[t]=Gh[t]}const lT={name:"TopProcess",provide(){return{request:this.request}},components:{processBtns:function(){return aT.exports}(),TopTab:_x,TopPopup:at,TopTips:Nt,TopSumbitPopup:kh},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},taskId:{require:!1,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean},businessSubjectId:{default:"",type:String},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!1},restartData:{type:Object,default:{businessType:"",showType:"",processName:""}},selfList:{type:Array,default:()=>[]},selfBtn:{type:Array,default:()=>[]},uid:{type:String,default:""},isMsg:{type:Boolean,default:!0},isRequire:{type:Boolean,default:!0},isCheckType:{type:String,default:"0"},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},isQuickReply:{type:Boolean,default:!1},ccTaskFunction:{type:Function,default:null},hideHeader:{type:Boolean,default:!1},needResubmit:{type:Boolean,default:!0}},data(){return{currentProcess:{currentProcessOriginData:[],currentMan:[],currentFirstNode:{}},incomingConditionItemList:[],submitLoading:!1,nextTaskNode:{},deptId:"",absoluteTaskId:"",comment:"",processXml:"",approvalData:[],processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,operationComKey:Date.now(),ProcessInsObj:{button:[],flow:[],form:{},process:{}},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,cctaskTopPopup:!1,cctaskTopPopupTitle:"\u6284\u9001"}},watch:{processInstId:{async handler(e,t){this.$nextTick(()=>{this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/bladex/blade-workflow/tis/getTaskModelDetail",{params:this.taskId?{processInstId:this.processInstId,taskId:this.taskId}:{processInstId:this.processInstId}}).then(i=>{var n;if(i.code==200){this.ProcessInsObj={...this.ProcessInsObj,...i.data},this.taskObj.buttons=this.ProcessInsObj.button||[],this.trackList=(((n=i.data)==null?void 0:n.flow)||[]).filter(a=>["userTask","candidate"].includes(a.historyActivityType));const s=((this.ProcessInsObj.process||{}).variables||{}).deptId;this.deptId=s;const r=(this.ProcessInsObj.process||{}).taskId;this.absoluteTaskId=r,this.approvalData=(i.data||{}).flow||[],this.processXml=((i.data||{}).process||{}).xml||"",this.handleGetProcessStatus(),this.$emit("get-process-data",this.ProcessInsObj)}}),this.getCurrentProcess(),this.getUserInfo())})},immediate:!0,deep:!0},restartData:{handler(e,t){e&&(this.restartDataS=e)},immediate:!0,deep:!0},selfBtn:{handler(e,t){e&&e.length&&(this.selfBtnList=e)},immediate:!0,deep:!0},uid:{handler(e,t){e&&(this.userIdData=e)},immediate:!0,deep:!0}},mounted(){},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){let e=[];const t=this.ProcessInsObj.process,i=this.ProcessInsObj.button;if(!t||!i)return e;if(this.getButton("wf_pass"),this.needResubmit&&t.status=="todo"&&this.userIdData&&t.isOwner&&["deleted"].includes(t.processIsFinished)&&this.getButton("wf_pass")){let s={};s.name="\u91CD\u65B0\u63D0\u4EA4",s.btnProps={type:"default"},e.push(s),s.click=r=>{this.handlePass("\u91CD\u65B0\u63D0\u4EA4"),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_pass")){let s={};s.name=this.getButton("wf_pass").name,s.btnProps={type:"primary"},e.push(s),s.click=r=>{this.handlePass(this.getButton("wf_pass").name),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_reject")){let s={};s.name=this.getButton("wf_reject").name,s.btnProps={type:"danger"},e.push(s),s.click=r=>{this.handleCancel(this.getButton("wf_reject").name),this.submitLoading=!0,this.handleActionClose()}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(s=>{let r={};r.name=s.name,r.btnProps={type:s.type},e.push(r),r.click=s.click}),["wf_edit"].map(s=>{if(!this.isView&&t.status=="todo"&&this.getButton(s)){let r={};r.name=this.getButton(s).name,r.btnProps={},r.key=r.name,r.click=()=>{this.$emit("clickCustomButton",r.name)},e.push(r)}}),!this.isView&&t.status=="todo"&&this.getButton("wf_rollback")){let s={};s.name=this.getButton("wf_rollback").name,s.btnProps={type:"danger"},e.push(s),s.click=r=>{this.handleRollbackTask(this.getButton("wf_rollback").name),this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_cctask")){let s={};s.name=this.getButton("wf_cctask").name,s.btnProps={type:"default"},s.click=async r=>{this.handleCirculate(this.getButton("wf_cctask").name),this.handleActionClose()},e.push(s)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_delegate")){let s={};s.name=this.getButton("wf_delegate").name,s.btnProps={type:"warning"},s.key="cc2",s.click=()=>{this.handleUserSelect({type:"delegate",checkType:"radio",name:this.getButton("wf_delegate").name}),this.handleActionClose()},e.push(s)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_terminate")){let s={};s.name=this.getButton("wf_terminate").name,s.btnProps={type:"danger"},s.key="cc3",s.click=()=>{this.handleTerminateProcess(),this.handleActionClose()},e.push(s)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_transfer")){let s={};s.name=this.getButton("wf_transfer").name,s.btnProps={type:"default"},s.click=r=>{this.handleUserSelect({type:"transfer",checkType:"radio",name:this.getButton("wf_transfer").name}),this.handleActionClose()},e.push(s)}if(t.status=="todo"&&this.getButton("wf_add_instance")){let s={};s.name=this.getButton("wf_add_instance").name,s.btnProps={type:"primary"},s.click=r=>{this.handleUserSelect({type:"addInstance",checkType:"checkbox",name:this.getButton("wf_add_instance").name}),this.handleActionClose()},e.push(s)}if(t.isReturnable&&t.isOwner){let s={};s.name="\u50AC\u529E",s.btnProps={type:"default"},s.click=r=>{this.handleReminders("\u50AC\u529E"),this.handleActionClose()},e.push(s)}if(t.isOwner&&t.isReturnable&&!["deleted"].includes(t.processIsFinished)){let s={};s.name="\u64A4\u9500",s.btnProps={type:"default"},s.click=r=>{this.handleWithdrawTask("\u64A4\u9500"),this.handleActionClose()},e.push(s)}return console.error(e,"btnList"),e},processCardHeight(){let e=this.topNum+this.bottomNum-10;return this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end&&(e-=this.bottomNum),this.hideHeader&&(e-=204),`calc(100vh - ${e}px)`},processBtn(){if(this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end)return`-${this.bottomNum}px`}},methods:{async getCurrentProcess(){this.request.get("/bladex/blade-workflow/repository/queryTaskNodeList",{params:this.taskId?{processInstId:this.processIntId,taskId:this.taskId}:{processInstId:this.processIntId}}).then(e=>{if(e.code==200){const t={};if(t.currentProcessOriginData=e.data||[],t.currentProcessOriginData.length>0){let i=t.currentProcessOriginData[0],n=(i.currentName||"").split(","),s=(i.avatar||"").split(",");n=n.map((r,a)=>({realName:r,avatar:s[a]||"",phone:"",ancestorNames:[]})),t.currentMan=n,t.currentFirstNode=i,this.currentProcess=t}}else this.currentProcess={currentProcessOriginData:[],currentMan:[],currentFirstNode:{}}}).catch(e=>{console.error(e)})},getButton(e){const t=(this.ProcessInsObj.button||[]).find(i=>i.buttonKey==e);return t},handleActionBtn(e){switch(e.buttonKey){case"wf_pass":this.handleExamine(!0,["deleted"].includes(this.ProcessInsObj.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":e.name);break;case"wf_reject":this.handleExamine(!1,e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_add_instance":this.handleAddInstance(e.name);break;case"wf_rollback":this.handleRollbackTask(e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_terminate":this.handleTerminateProcess(e.name);case"wf_cctask":this.handleCirculate(e.name);break}this.handleActionClose()},handleDraft(){this.submitLoading=!0},handleExamine(e,t){e?this.handlePass(t):this.handleCancel(t),this.submitLoading=!0},async handlePass(e){this.operationParam.nodeLoading=!0,this.before?this.before().then(()=>{this.showOperation(Vh,e)}):this.showOperation(Vh,e),this.deptId&&(await this.getNextNode(this.deptId),this.operationParam={...this.operationParam,nodeLoading:!1,incomingConditionItemList:this.incomingConditionItemList,nextNodeData:this.nextTaskNode})},handleCancel(e){this.showOperation(qI,e)},handleUserSelect({type:e,checkType:t,name:i}){e=="transfer"?this.handleTransfer(i):e=="addInstance"&&this.handleAddInstance(i)},async handleTransfer(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(cI,e)},async handleAddInstance(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(nI,e)},handlePrint(){},handleRollbackTask(e){this.showOperation(YI,e)},handleTerminateProcess(){},handleWithdrawTask(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u64A4\u9500",this.popupContext="\u786E\u5B9A\u64A4\u9500\u5417?",this.handleTipsType="\u64A4\u9500"},handleReminders(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u50AC\u529E",this.popupContext="\u786E\u5B9A\u50AC\u529E\u5417?",this.handleTipsType="\u50AC\u529E"},handleCirculate(e){this.showOperation(iT,e,this.request,this.taskObj.ccTaskButtonAnnex,"\u6284\u9001"),this.cctaskTopPopupTitle=e},async getNextNode(e){let t;try{t=await this.request.get("/bladex/blade-workflow/tis/simulation",{params:{taskId:this.absoluteTaskId,processInstId:this.processIntId}})}catch(n){console.error(n),t={}}let i=t.data||{};t.code==200&&!t.data.evaluation&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,t.data.id)),t.code==200&&t.data.evaluation&&t.data.branches&&t.data.branches.length>0&&t.data.branches[0].nodeType!="userTask"&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,t.data.branches[0].id)),i=await this.getSelectFixData(i,e),this.nextTaskNode=i,this.operationParam={...this.operationParam,nextNodeData:(this.nextTaskNode||{}).id?[this.nextTaskNode]:[]}},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:n,deptIds:s}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:n,deptIds:s})},handleGetHeight(){this.$nextTick(()=>{setTimeout(()=>{let e=document.getElementById("process-header"),t=document.getElementById("process-footer");this.bottomNum=t?t.scrollHeight+10:70,this.topNum=e?e.scrollHeight+10:144},1e3)})},handleTestsss(e,t){},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||{},this.userIdData=e.data.userId)},async handleGetSimulation(e){this.handleTips("",!0,"loading");let t={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e,errorTip:!1},i=await this.request.post("/aws/tis/simulation",t);if(i.success){this.handleTips("",!1,"success"),this.nextNodeData=i.data;for(let n=0;n<this.nextNodeData.length;n++)this.approveNode=this.nextNodeData[n]}else{let n=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(n,"")}},async getSelectFixData(e,t){let i=JSON.parse(JSON.stringify(e));if(i.nodeType!="userTask"&&Array.isArray(i.branches))for(let n=0;n<i.branches.length;n++){let s=i.branches[n],r=s.nodeInfoDTO?s.nodeInfoDTO:s;try{r=await this.getSelectFixData(r,t)}catch(a){}s.nodeInfoDTO?s.nodeInfoDTO=r:s=r,i.branches[n]=s}else if(i.nodeType=="userTask"&&!i.setPersonnel){let n=bd(i),s;try{s=await this.getNodeUser({deptId:t,intersection:n.intersection?1:0,userIds:n.userIds,postIds:n.postIds,deptIds:n.deptIds}),s.code==$enum.apiCode.success}catch(r){}s.code==200&&(i.userList=s.data)}return i},async getOutgoingProcessNode(e,t){let i=await this.request.get("/bladex/blade-workflow/tis/getOutgoingProcessNode",{params:{taskId:e,processNodeId:t}});if(i.code==200){if(i.data&&i.data.length){for(let n=0;n<i.data.length;n++){let s=i.data[n];s.incomingConditionItemList&&s.incomingConditionItemList.length!==0&&(s.nodeInfoDTO.incomingConditionItemList=s.incomingConditionItemList,this.incomingConditionItemList.push(...s.incomingConditionItemList)),s.nodeInfoDTO.nodeType!="userTask"&&(s.nodeInfoDTO.branches=await this.getOutgoingProcessNode(e,s.nodeInfoDTO.id))}return this.handleTips("",!1,"success"),i.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("/bladex/blade-workflow/repository/findTaskTodoInfoByTaskId",{params:{taskId:this.absoluteTaskId||""}}).then(e=>{e.code==200&&(this.processStatus={...e.data||{},...e.data.vars?e.data.vars:{},bizStatusName:e.data.taskState,currUserName:e.data.currentName,allUserNames:e.data.currentName}),this.handleGetHeight(),this.handleTips("",!1,"success")}).catch(e=>{this.handleGetHeight()}).finally(()=>{})},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(),this.$refs.topTips.handleClose()}):this.$refs.topTips.handleClose()},async showOperation(e,t,i,n,s){switch(this.beforeFunction&&(this.operationParam.beforeFunction=this.beforeFunction),this.operationParam.request=this.request,this.annexlabel=n||"fasdfsafdsa",this.titleText=t,this.operationCom=e,this.operationComKey=Date.now(),this.operationParam.selChildrenItems={},this.operationParam.annex=n||"fasdfsafdsa",this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=(this.ProcessInsObj.process||{}).taskId||"",this.operationParam.variables=(this.ProcessInsObj.process||{}).variables||{},this.operationParam.extendedProperties=(this.ProcessInsObj.form||{}).extendedProperties||[],this.operationParam.actionName=t,this.operationParam.formData=this.formData,this.operationParam.ProcessInsObj=this.ProcessInsObj.process||{},this.operationParam.userInfo=this.user,this.nextTaskNode,this.operationParam.nextNodeData=(this.nextTaskNode||{}).id?[this.nextTaskNode]:[],this.operationParam.incomingConditionItemList=this.incomingConditionItemList,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.isQuickReply=this.isQuickReply,this.operationParam.isMsg=this.isMsg,this.operationParam.isRequire=this.isRequire,this.operationParam.canCheck=this.canCheck,this.operationParam.isCheckType=this.isCheckType,this.operationParam.isOrgType=this.isOrgType,this.operationParam.isCodeType=this.isCodeType,s){case"\u6284\u9001":this.operationParam.visible=!0,this.cctaskTopPopup=!0;break;default:this.operationParam.visible=!0,this.TopPopup1=!0;break}},handleCancelPopup(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleClosecctaskTopPopup(){this.cctaskTopPopup=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),window.top.postMessage("success","*"),this.endFunction("\u50AC\u529E")):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/withdrawTask",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),window.top.postMessage("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.post("/bladex/blade-workflow/repository/getProcessDefList",{appId:this.processStatus.appId,subjectId:this.formData.subjectId||this.businessSubjectId}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(t=>{this.processBusiness=t.data,this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(i=>{this.getFirstProcessNode=i.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(void 0,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(i=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}};var cT=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"process-warp"},[(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)&&!e.hideHeader?i("div",{ref:"processheader",staticClass:"process-main",attrs:{id:"process-header"}},[i("div",{staticClass:"process-ml-item border"},[i("div",{staticClass:"process-mli-name"},[e._v("\u6D41\u7A0B\u72B6\u6001")]),i("div",{staticClass:"process-mli-value"},[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?i("div",{staticClass:"process-mliv-dd",style:{background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)}},[e._v(" "+e._s(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)+" ")]):e._e()])]),i("div",{staticClass:"process-ml-item border"},[i("div",{staticClass:"process-mli-name"},[e._v("\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4")]),i("div",{staticClass:"process-mli-value"},[i("span",[e._v(e._s(e.processStatus.createTime))])])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?i("div",{staticClass:"process-ml-item"},[i("div",{staticClass:"process-mli-name"},[e._v("\u5BA1\u6279\u8282\u70B9")]),i("div",{staticClass:"process-mli-value",staticStyle:{width:"50%","text-align":"right"}},[i("span",{staticClass:"process-mliv-jd"},[e._v(e._s(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`))])])]):e._e()]):e._e(),i("div",{staticClass:"process-card",style:{height:e.processCardHeight}},[i("TopTab",{attrs:{ProcessInsObj:e.ProcessInsObj,processXml:e.processXml,approvalData:e.approvalData,tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList}},[e.selfTapList&&e.selfTapList.length?e._l(e.selfTapList,function(n,s){return i("div",{key:s,staticStyle:{height:"100%"},attrs:{slot:n.slot},slot:n.slot},[e._t(n.slot,null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2)}):[i("div",{staticStyle:{height:"100%"},attrs:{slot:"default"},slot:"default"},[e._t("default",null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2),e._l(e.tapList,function(n,s){return i("div",{key:s,staticStyle:{height:"100%"},attrs:{slot:n.slot},slot:n.slot},[e._t(n.slot,null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2)})]],2)],1),e.isView?e._e():i("div",{staticClass:"process-btn",style:{bottom:e.processBtn},attrs:{id:"process-footer"}},[e.isAdditional?i("div",{staticClass:"footBtnRow"},[e._t("btn",null,{data:e.processStatus,processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2):[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?[i("div",{staticClass:"top-button",style:e.getBtnStyle("default")},[e._v(" \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ")])]:[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?[e._l(e.operBtn,function(n,s){return[s<3?i("div",{key:n.name,staticClass:"top-button",style:e.getBtnStyle((n.btnProps.type||"default").toString()),on:{click:function(r){return n.click(n.name)}}},[e._v(" "+e._s(n.name)+" ")]):e._e()]})]:e._e(),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?i("div",{staticClass:"elips",on:{click:e.handleActionOpen}},[i("div",{staticClass:"circle"}),i("div",{staticClass:"circle"}),i("div",{staticClass:"circle"})]):e._e()]]],2)]),i("TopPopup",{ref:"TopPopup1",attrs:{cancel:e.handleCancelPopup,comfig:e.handleComfig,titleText:e.titleText,visible:e.TopPopup1,className:"toppopup-component"},on:{"update:visible":function(n){return e.TopPopup1=n}}},[i(e.operationCom,{key:e.operationComKey,ref:"operationRef",tag:"component",attrs:{param:e.operationParam},on:{handleClosePopup1:e.handleClosePopup1}},[i("div",{attrs:{slot:"completeSlot"},slot:"completeSlot"},[e._t("completeSlot",null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2)])],1),i("TopPopup",{ref:"TopPopup2",attrs:{titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig}}),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?i("div",{staticClass:"top-elips",style:e.actionShow?"transform: translateY(0)":"transform: translateY(100%)"},[e.taskNodeShow?e._l(e.taskNodeList,function(n){return i("div",{key:n.taskId,staticClass:"top-elips-items",on:{click:function(s){return e.handleGet(n)}}},[e._v(" "+e._s(n.name)+" ")])}):e._l(e.actionBtn,function(n){return i("div",{key:n.name,staticClass:"top-elips-items",on:{click:function(s){return n.click(n.name)}}},[e._v(" "+e._s(n.name)+" ")])}),i("div",{staticClass:"top-elips-items top-elips-items--cancel",on:{click:e.handleActionClose}},[e._v(" \u53D6\u6D88 ")])],2):e._e(),i("div",{staticClass:"top-elips-mask",style:e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;",on:{click:e.handleActionClose}}),i("TopSumbitPopup",e._b({ref:"actionPop",attrs:{visible:e.visibleSong,request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0,selfList:e.selfList,isCheckType:e.isCheckType,isOrgType:e.isOrgType,isCodeType:e.isCodeType},on:{"update:visible":function(n){e.visibleSong=n},successFn:e.endFunction,change:e.handleTestsss}},"TopSumbitPopup",e.restartDataS,!1)),i("TopPopup",{ref:"cctaskTopPopup",attrs:{titleText:e.cctaskTopPopupTitle,visible:e.cctaskTopPopup,isDrawer:!0},on:{"update:visible":function(n){return e.cctaskTopPopup=n}}},[i(e.operationCom,{ref:"cctaskOperationRef",tag:"component",attrs:{param:e.operationParam},on:{handleClosecctaskTopPopup:e.handleClosecctaskTopPopup}},[i("div",{attrs:{slot:"completeSlot"},slot:"completeSlot"},[e._t("completeSlot",null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2)])],1)],1)},uT=[];const KT="",qh={};var pT=ve(lT,cT,uT,!1,dT,"a4fed71a",null,null);function dT(e){for(let t in qh)this[t]=qh[t]}const hT=function(){return pT.exports}(),Jh={name:"ddy-process-h5",version:"1.0.1-rc.3.83",description:"> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6",main:"./ddy-process-h5.umd.cjs",style:"./style.css",type:"module",exports:{".":{import:"./ddy-process-h5.js",require:"./ddy-process-h5.umd.cjs"},"./style.css":{import:"./style.css",require:"./style.css"}},scripts:{test:'echo "Error: no test specified" && exit 1',postinstall:"node scripts/postinstall.mjs"},devDependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},dependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},author:"",license:"ISC"};console.info("%c\u26A1"+Jh.name+"%c v"+Jh.version,"background: linear-gradient(135deg, #ff3939ff, #ffbe5cff); color: white; padding: 9px 4px 9px 4px; border-radius: 3px 0 0 3px;font-size: 12px;","background: #5100ffff; color: white; padding: 9px 6px 9px 4px; border-radius: 0px 3px 3px 0px;font-size: 12px;"),vt.TopProcess=hT,vt.TopSumbitPopup=kh,vt.ViewAttchList=Ru,vt.attchViews=Yi,Object.defineProperties(vt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
30
|
+
Component that was made reactive: `,e)),BE(e,t,i,n,s,a,r,!0)}function LE(e){return e?Jo(e)||oh in e?yt({},e):e:null}function Pr(e,t,i=!1){const{props:n,ref:s,patchFlag:r,children:a}=e,o=t?VE(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&lh(o),ref:t&&t.ref?i&&s?be(s)?s.concat(Sr(t)):[s,Sr(t)]:Sr(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:process.env.NODE_ENV!=="production"&&r===-1&&be(a)?a.map(uh):a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ah?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Pr(e.ssContent),ssFallback:e.ssFallback&&Pr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function uh(e){const t=Pr(e);return be(e.children)&&(t.children=e.children.map(uh)),t}function FE(e=" ",t=0){return RE(PE,null,e,t)}function tl(e,t){let i=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(be(t))i=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),tl(e,s()),s._c&&(s._d=!0));return}else{i=32;const s=t._;!s&&!(oh in t)?t._ctx=hi:s===3&&hi&&(hi.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Je(t)?(t={default:t,_ctx:hi},i=32):(t=String(t),n&64?(i=16,t=[FE(t)]):i=8);e.children=t,e.shapeFlag|=i}function VE(...e){const t={};for(let i=0;i<e.length;i++){const n=e[i];for(const s in n)if(s==="class")t.class!==n.class&&(t.class=Bo([t.class,n.class]));else if(s==="style")t.style=Mo([t.style,n.style]);else if(ow(s)){const r=t[s],a=n[s];a&&r!==a&&!(be(r)&&r.includes(a))&&(t[s]=r?[].concat(r,a):a)}else s!==""&&(t[s]=n[s])}return t}kE();let Sn=null,il,Pn,ph="__VUE_INSTANCE_SETTERS__";(Pn=Oo()[ph])||(Pn=Oo()[ph]=[]),Pn.push(e=>Sn=e),il=e=>{Pn.length>1?Pn.forEach(t=>t(e)):Pn[0](e)};const dh=e=>{il(e),e.scope.on()},jE=()=>{Sn&&Sn.scope.off(),il(null)};function UE(e){return e.vnode.shapeFlag&4}function QE(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy($w(Yw(e.exposed)),{get(t,i){if(i in t)return t[i];if(i in us)return us[i](e)},has(t,i){return i in t||i in us}}))}const GE=/(?:^|[-_])(\w)/g,qE=e=>e.replace(GE,t=>t.toUpperCase()).replace(/[-_]/g,"");function hh(e,t=!0){return Je(e)?e.displayName||e.name:e.name||t&&e.__name}function fh(e,t,i=!1){let n=hh(t);if(!n&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(n=s[1])}if(!n&&e&&e.parent){const s=r=>{for(const a in r)if(r[a]===t)return a};n=s(e.components||e.parent.type.components)||s(e.appContext.components)}return n?qE(n):i?"App":"Anonymous"}function mh(e){return Je(e)&&"__vccOpts"in e}function nl(e){return!!(e&&e.__v_isShallow)}function JE(){if(process.env.NODE_ENV==="production"||typeof window>"u")return;const e={style:"color:#3ba776"},t={style:"color:#0b1bc9"},i={style:"color:#b62e24"},n={style:"color:#9d288c"},s={header(d){return Ze(d)?d.__isVue?["div",e,"VueInstance"]:tt(d)?["div",{},["span",e,h(d)],"<",o(d.value),">"]:Hi(d)?["div",{},["span",e,nl(d)?"ShallowReactive":"Reactive"],"<",o(d),`>${Ki(d)?" (readonly)":""}`]:Ki(d)?["div",{},["span",e,nl(d)?"ShallowReadonly":"Readonly"],"<",o(d),">"]:null:null},hasBody(d){return d&&d.__isVue},body(d){if(d&&d.__isVue)return["div",{},...r(d.$)]}};function r(d){const y=[];d.type.props&&d.props&&y.push(a("props",fe(d.props))),d.setupState!==Bt&&y.push(a("setup",d.setupState)),d.data!==Bt&&y.push(a("data",fe(d.data)));const x=l(d,"computed");x&&y.push(a("computed",x));const M=l(d,"inject");return M&&y.push(a("injected",M)),y.push(["div",{},["span",{style:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:d}]]),y}function a(d,y){return y=yt({},y),Object.keys(y).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},d],["div",{style:"padding-left:1.25em"},...Object.keys(y).map(x=>["div",{},["span",n,x+": "],o(y[x],!1)])]]:["span",{}]}function o(d,y=!0){return typeof d=="number"?["span",t,d]:typeof d=="string"?["span",i,JSON.stringify(d)]:typeof d=="boolean"?["span",n,d]:Ze(d)?["object",{object:y?fe(d):d}]:["span",i,String(d)]}function l(d,y){const x=d.type;if(Je(x))return;const M={};for(const B in d.ctx)p(x,B,y)&&(M[B]=d.ctx[B]);return M}function p(d,y,x){const M=d[x];if(be(M)&&M.includes(y)||Ze(M)&&y in M||d.extends&&p(d.extends,y,x)||d.mixins&&d.mixins.some(B=>p(B,y,x)))return!0}function h(d){return nl(d)?"ShallowRef":d.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(s):window.devtoolsFormatters=[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IOmc/5GzQJCSPYmm3Dkn/eDPTYNCCEB4Rg8lcs0bB6QwJDYc5jTuH2kzMQf6rULQBYgsddHHz80uI7bGRynisidHccwi6F3A0iCxL6XYe+4zxkSwtEQWl0BEgASwtEQHDaU7gCZMSSEozE4ugVkhpAQjgbh6BqQGUFCOBqFo3tAZgAJ4WgYjlkA0jEkhKNxOGYDSIeQEI4O4JgVIB1BQjg6gWN2gHQACeHoCI5ZAtIwJISjMzhmC0iDkHwBwAu5t6o/Qrp8kj5UZlVtYe+WwfGCuX3ffWgOem83a0AaWEkIR+eEzB6QCSEhHJ3DMetrkPW5qXy6RThmAEcoQCquJIRjJnCEA6QCJIRjRnCEBKQgJIRjZnCEBaQAJIRjhnCEBmQBkt0AnrJCfgnHCuK1bhriNu+yJKSvRVm1FA8khKP1Gb7i+MIDklaS/QGMhYRwrDj5ejAnIAtZUtUr7FNsAxJ3mYi8YkA7NulcAQKyLoHps85v3+SU63cAzl/ly7idz5dwwycgm6RcVY8A8FQARwK4DcAvROTWcDMkeMAEJPgEYPjLFSAgnCFUYIkCBITTgwoQEM4BKuBTgCuITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VOAgPh0o1UQBQhIkEQzTJ8CBMSnG62CKEBAgiSaYfoUICA+3WgVRAECEiTRDNOnAAHx6UarIAoQkCCJZpg+BQiITzdaBVGAgARJNMP0KUBAfLrRKogCBCRIohmmTwEC4tONVkEUICBBEs0wfQoQEJ9utAqiAAEJkmiG6VPgf/UDKvbyCmTdAAAAAElFTkSuQmCC",zE={name:"TopTips",props:{text:{default:"",type:String},type:{default:"default",type:String},statusTips:{default:!1,type:Boolean},domNode:{default:"",type:String},visible:{default:!1,type:Boolean}},data(){return{show:!1,status:"",timeOut:null}},computed:{error(){return KE},loading(){return WE},success(){return sl}},watch:{type:{handler(e,t){if(e=="loading"){clearInterval(this.timeOut);return}else this.timeOut=setTimeout(()=>{this.show=!1},1500)},immediate:!0,deep:!0}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el)})},methods:{handleOpen(){this.show||(this.show=!0,this.type=="loading"?clearInterval(this.timeOut):this.timeOut=setTimeout(()=>{this.show=!1},1500))},handleClose(){this.show=!1}}};var YE=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.show?i("div",[e.statusTips?i("div",{staticClass:"top-tipss",style:e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;"},[i("div",{staticClass:"top-tipss-status"},[e.type=="loading"?i("div",{staticClass:"top-tipss-loadinig"},[i("img",{attrs:{src:e.loading}}),e.text?i("div",{staticClass:"top-tipss-status-text"},[e._v(" "+e._s(e.text)+" ")]):e._e()]):e._e(),e.type=="success"?i("div",{staticClass:"top-tipss-success"},[i("img",{attrs:{src:e.success}}),e.text?i("div",{staticClass:"top-tipss-status-text"},[e._v(" "+e._s(e.text)+" ")]):e._e()]):e._e(),e.type=="error"?i("div",{staticClass:"top-tipss-error"},[i("img",{attrs:{src:e.error}}),e.text?i("div",{staticClass:"top-tipss-status-text"},[e._v(" "+e._s(e.text)+" ")]):e._e()]):e._e()])]):i("div",{staticClass:"top-tipss",style:e.show?"visibility: visible; opacity: 1;":"visibility: hidden; opacity: 0;"},[e.text?i("div",{staticClass:"top-tipss-text"},[e._v(e._s(e.text))]):e._e()]),i("div",{staticClass:"top-tipss-mask",style:e.show&&e.statusTips?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"})]):e._e()},XE=[];const xT="",gh={};var ZE=ve(zE,YE,XE,!1,$E,"79d9d777",null,null);function $E(e){for(let t in gh)this[t]=gh[t]}const Nt=function(){return ZE.exports}(),ex="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAEmBJREFUeF7tnAt0VdWZx397n3PvDUlISHgEkJfDGxXRVnGqq2o7PtvB1hl0fFun6ji+xhfgzCioq5WA2hFxptUOY23VqlNf06laW7VrVUfs8gEqgmBFRZ4hIRBIcu85e8/69j4HriEJAYLiY691181Ncs/Z+3/++/u+/b0U3T1mWM0AAlZhmaEirFUoZZlus+WlDM8ZJqKpsJZhCiYAxmgC5T8Pk+lYWG4Vy7UhBrSF15ViOYaNrZr5TVt4lxtUfuu1Z9iQAShWETNDme5ckuqWiwkIdxGyEsUMCg6QOTbXazMDAs1wYD9jGKk1gwJFX6UIUZQrS7W7v0AI5fJKAGqy0IQVrMAq6rE0WUsUW9YZwwqtWQq8FRve3VDGKi5TrQ6wGWRQGKYTu3ns5tg9gGRCD6NZ5Njinlz1HFtBK/thOUwZJmjNKGCcggoDthChYguRvIqetTFCJb8arf0rHaGGUEGgIBNiNcjKNwKLjOEdq3kdxUvkeKv+MiW/B2HyOBSTMbsD1O4BlK5AKA706UE/AyeguBrLGAVxbAksWGMwGmwuRAWyYI3KaLbeX36Xfi4YbFwEnnyOkt+1RlgDSmu0AhUoBO8AxWIst2h4sq6Z1R6k3d9uuwaQMOcG2U5+An1vtiNizWlYJivFMKUoExIIvwvGM6U1gqoSOHwIDKyAYb1gdDXIBYQZ+1TA0EqP+PuN8NFG3MqFSEvqYfkGWLkRXvgAGlogFzqQBVSHshDQWjZbeB/DPF3CL+uuUKu2smk6dleYtPMAPWQDFjlwosqbbVUGJhvNJA1fDRQ18libI0xTAdszCwf0Qx1QgxrTB0ZUoQSc0gxUlnjArDx+QbPNTIwFYZEIJwGksQW2FDxIyxqwi+vgjTXYN9ZiN+WhPIPq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ips:Nt,PreviewImage:Hs,PreView:Tu,TopPopup:at},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,t){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 ex},del(){return Nu},doc(){return ku},file(){return Su},image(){return Pu},pdf(){return Du},xls(){return Ou},zip(){return Mu}},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${this.limit}\u4E2A\u6587\u4EF6`,!1,"success");return}document.getElementById("fileUp").click()},async handleSelect(e,t){this.handleTips("\u4E0A\u4F20\u4E2D",!0,"loading");const i=Array.from(e.target.files);document.getElementById("fileUp").value="";let n=0,s=this.haveCount>i.length?i.length:this.haveCount;try{for(let r=0;r<s;r++)if(this.extension.includes(i[r].name.substring(i[r].name.lastIndexOf(".")+1))){const a=new FormData;a.append("file",i[r]);const o=await this.request.post("/file/upload",a,{headers:{"Content-Type":"multipart/form-data"}});if(o.code===200){if(this.filesArr.length>0){for(let l=0;l<this.filesArr.length;l++)if(o.name==this.filesArr[l].name&&n++,this.filesArr[l].name.includes(`(${n})`)&&n++,n>0){let p=o.name.lastIndexOf(".");o.name=`${o.name.substring(0,p)} (${n}) .${o.name.substring(o.name.lastIndexOf(".")+1)}`}}this.filesArr.push(o.data)}else{this.handleTips("\u4E0A\u4F20\u5931\u8D25",!0,"error"),this.viewImage();return}}else{this.handleTips(`\u6587\u4EF6${i[r].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,t){if(this.deletFn){if(this.deletFn(t)===!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,t){this.imgIcon.includes(e.name.substring(e.name.lastIndexOf(".")+1).toLowerCase())?(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((t,i)=>{this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())}),e=this.filesArr.filter(t=>this.imgIcon.includes(t.name.substring(t.name.lastIndexOf(".")+1).toLowerCase())),e.forEach((t,i)=>{this.lists.push(t.url)})},emitView(){this.$emit("getValue",this.filesArr)},clearData(){this.filesArr=[]},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}};var ix=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"attch-upload"},[e.buttonLoading?i("div",{staticClass:"attch-upload-mask"}):e._e(),i("div",{staticClass:"attch-upload-body"},[i("div",{staticClass:"upload-header"},[i("div",{staticClass:"upload-header-title"},[e._v(" \u9644\u4EF6 "),e.requires?i("span",{staticClass:"upload-header-title--re"},[e._v("*")]):e._e()]),i("div",{staticClass:"upload-header-upload"},[e.onlyShow?e._e():i("div",{staticClass:"upload-header-upload--item",attrs:{id:"inputfile"},on:{click:e.handleClick}},[i("img",{attrs:{src:e.addFile}}),e._v("\u4E0A\u4F20\u9644\u4EF6 ")])])]),i("div",{staticClass:"upload-body"},[e.filesArr.length>0?i("div",{staticClass:"upload-list"},e._l(e.filesArr,function(n,s){return i("div",{key:n.uuid,staticClass:"list-items"},[i("div",{staticClass:"list-items-icon"},[e.xlsIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1).toLowerCase())?i("img",{staticClass:"icon-img",attrs:{src:e.xls}}):e.imgIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1).toLowerCase())?i("img",{staticClass:"icon-img",attrs:{src:e.image}}):n.name.substring(n.name.lastIndexOf(".")+1).toLowerCase()=="pdf"?i("img",{staticClass:"icon-img",attrs:{src:e.pdf}}):e.docIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1).toLowerCase())?i("img",{staticClass:"icon-img",attrs:{src:e.doc}}):e.zipIcon.includes(n.name.substring(n.name.lastIndexOf(".")+1).toLowerCase())?i("img",{staticClass:"icon-img",attrs:{src:e.zip}}):i("img",{staticClass:"icon-img",attrs:{src:e.file}})]),i("div",{staticClass:"list-items-info"},[i("div",{staticClass:"info-name"},[e._v(" "+e._s(n.name)+" ")]),i("div",{staticClass:"info-attribute"},[i("span",{staticClass:"info-attribute-size"},[e._v(e._s(n.fileSize<1024?n.fileSize:n.fileSize/1024>1024?parseFloat((n.fileSize/1024/1024).toFixed(2)):parseFloat((n.fileSize/1024).toFixed(2)))+e._s(n.fileSize<1024?"b":parseFloat((n.fileSize/1024).toFixed(2))<1024?"kb":"M")+" ")]),i("span",{staticClass:"info-attribute-views",on:{click:function(r){return e.viewFile(n,s)}}},[e._v(" \u9884\u89C8 ")])])]),e.onlyShow?e._e():i("div",{staticClass:"list-items-operation"},[i("div",{staticClass:"list-items-operation-img",on:{click:function(r){return e.handleDel(s,n)}}},[i("img",{attrs:{src:e.del}})])])])}),0):e._e()])]),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),i("PreviewImage",{attrs:{images:e.lists,visible:e.visible,indexd:e.indexd},on:{"update:visible":function(n){return e.visible=n}}}),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleS,titleText:"\u9644\u4EF6\u9884\u89C8",isDrawer:"",isIndex:99},on:{"update:visible":function(n){return e.visibleS=n}}},[e.visibleS?i("PreView",{attrs:{file:e.fileUrl}}):e._e()],1)],1)},nx=[];const IT="",yh={};var sx=ve(tx,ix,nx,!1,rx,"26dcacc2",null,null);function rx(e){for(let t in yh)this[t]=yh[t]}const Yi=function(){return sx.exports}();var ax=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-flow",attrs:{type:"flex"}},[i("div",[e._l(e.getColors(e.flowList),function(n,s){return[["candidate","sequenceFlow"].includes(n.historyActivityType)?e._e():i("div",{key:n.id,staticClass:"flow-item",attrs:{timestamp:n.endTime||n.createTime,placement:"top"}},[i("p",[i("span",{staticClass:"flow-name"},[e._v(e._s(n.assigneeName||(n.comments&&n.comments.length>0?n.comments[n.comments.length-1].userId:"")))]),e._v(" \u5728 "),i("span",{staticClass:"flow-time"},[e._v(e._s(n.createTime))]),e._v(" \u5F00\u59CB\u5904\u7406 "),i("span",{staticClass:"flow-node"},[e._v(e._s(n.historyActivityType=="endEvent"?"\u7ED3\u675F":n.historyActivityName||"\u672A\u547D\u540D"))]),e._v(" \u73AF\u8282 ")]),n.historyActivityDurationTime?i("p",{staticClass:"flow-time"},[e._v(" \u4EFB\u52A1\u5386\u65F6 "+e._s(n.historyActivityDurationTime)+" ")]):e._e(),n.comments&&n.comments.length>0?[e._l(n.comments.filter(function(r){return r.action==="AddComment"}),function(r,a){return[a<1?[i("span",{class:["comment-type",n.class]},[e._v(e._s(e.commentMap[r.type]||r.type))]),i("span",{staticClass:"comment-user"},[e._v(e._s(r.userId))]),e._v(": "),i("span",[e._v(" "+e._s(r.fullMessage)+" ")]),n.comments.filter(function(o){return o.action==="AddComment"}).length>1?i("span",{staticStyle:{color:"#1989fa",float:"right"},on:{click:e.handleClick}},[e._v(" "+e._s(e.toggleText)+" "),i("i",{class:[e.isFlag?"arrow-up":"arrow-down"]})]):e._e(),r.time&&e.isFlag?i("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(r.time))]):e._e()]:e._e(),a>0&&e.isFlag?[i("span",{staticClass:"comment-type"},[e._v(e._s(e.commentMap[r.type]||r.type))]),i("span",{staticClass:"comment-user"},[e._v(e._s(r.userId))]),e._v(": "),i("span",[e._v(" "+e._s(r.fullMessage)+" ")]),r.time?i("p",{staticStyle:{color:"gray","font-size":"12px"}},[e._v(e._s(r.time))]):e._e()]:e._e()]})]:e._e(),n.endTime?i("p",{staticClass:"flow-time"},[e._v("\u7ED3\u675F\u65F6\u95F4: "+e._s(n.endTime))]):e._e(),i("div",{staticClass:"p-file"},[n.attachmentsFujian&&n.attachmentsFujian.length>0?i("div",{on:{click:function(r){return e.$emit("view",n.attachmentsFujian)}}},[e._v(" \u67E5\u770B\u9644\u4EF6")]):e._e(),n.attachmentsQianzi&&n.attachmentsQianzi.length>0?i("div",{on:{click:function(r){return e.$emit("view",n.attachmentsQianzi)}}},[e._v(" \u67E5\u770B\u7B7E\u5B57")]):e._e()])],2)]})],2)])},ox=[];const TT="",lx={name:"nf-flow",components:{attchViews:Yi},props:{request:{type:Object,default:()=>{}},flowList:{type:Array,default:()=>[]}},data(){return{getColors:Cd,isFlag:!0,toggleText:"\u6536\u8D77",commentMap:{assigneeComment:"\u53D8\u66F4",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u56DE\u9000",terminateComment:"\u7EC8\u6B62",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664",cancelProcessComment:"\u62D2\u7EDD",skipComment:"\u8DF3\u8FC7",comment:"\u5BA1\u6279",\u524D\u52A0\u7B7E:"\u52A0\u7B7E",\u540E\u52A0\u7B7E:"\u52A0\u7B7E"}}},methods:{handleClick(){this.isFlag=!this.isFlag,this.toggleText=this.isFlag?"\u6536\u8D77":"\u5C55\u5F00"}}},vh={};var cx=ve(lx,ax,ox,!1,ux,"35b01ec6",null,null);function ux(e){for(let t in vh)this[t]=vh[t]}const Ah=function(){return cx.exports}();var px=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:["bpmnnd-box",e.visible?"bpmnnd-box-active":""]},[i("processFlow",{staticStyle:{width:"70vw"},attrs:{request:e.request,"flow-list":e.formatFlow(e.curData)}})],1)},dx=[];const _T="",hx={components:{processFlow:Ah},inject:["request"],data(){return{visible:!1,curData:[],curName:"",commentMap:{assigneeComment:"\u53D8\u66F4\u5BA1\u6838\u4EBA",dispatchComment:"\u8C03\u5EA6",transferComment:"\u8F6C\u529E",delegateComment:"\u59D4\u6258",rollbackComment:"\u6307\u5B9A\u56DE\u9000\u6D41\u7A0B",terminateComment:"\u7EC8\u6B62\u610F\u89C1",addMultiInstanceComment:"\u52A0\u7B7E",deleteMultiInstanceComment:"\u51CF\u7B7E",withdrawComment:"\u64A4\u9500",recallComment:"\u64A4\u56DE",deleteProcessComment:"\u5220\u9664\u6D41\u7A0B",cancelProcessComment:"\u62D2\u7EDD",skipComment:"\u8DF3\u8FC7",comment:"\u5BA1\u6279\u610F\u89C1"}}},watch:{visible(e){e||this.$emit("close")}},methods:{formatFlow(e){let t=(e||[]).map(i=>({...i,attachmentsFujian:(i.attachments||[]).filter(n=>n.type!="signature"),attachmentsQianzi:(i.attachments||[]).filter(n=>n.type=="signature")}));return t=t.reverse(),Cd(t)},openDrawer(e,t){let i=t.filter(n=>n.historyActivityType=="userTask");this.curData=i.filter(n=>n.historyActivityId==e.id),this.curData,this.curName=this.curData.length?this.curData[0].historyActivityName:"",this.visible=!!(this.curData&&this.curData.length>0)},closeDrawer(){this.visible=!1}}},bh={};var fx=ve(hx,px,dx,!1,mx,"15b7ee40",null,null);function mx(e){for(let t in bh)this[t]=bh[t]}const gx=function(){return fx.exports}();var yx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{ref:"container",staticClass:"bpmn-look",on:{wheel:e.handleWheel}},[i("bpmnNodeDetail",{ref:"bpmnNodeDetailRef",on:{close:e.closeDetail}})],1)},vx=[];const NT="",Ax={name:"bpmn-look",components:{bpmnNodeDetail:gx},props:{diagram:{type:String,default:"",required:!0},approvalData:{type:Array,default:()=>[]},isXml:{type:Boolean,default:!0}},data(){return{drawer:!1,isAdd:!1,viewer:null,loading:!0}},mounted(){this.initViewer(),this.$refs.container&&this.$refs.container.addEventListener("resize",this.canvasResize)},watch:{diagram:{async handler(e){let t=e;t&&this.isXml&&this.loadXml(t)},immediate:!0}},methods:{async getXml(e){let t={},i="";try{t=await api.repository.getXmlByProcessDefId({processDefId:e}),t.code==200&&(i=t.data)}catch(n){console.error(n)}return i},async initViewer(){this.viewer&&this.viewer.destroy();const e=Object.prototype.toString.call(In)=="[object Function]"?In:In.default,t=Object.prototype.toString.call(No)=="[object Object]"?No:No.default,i=Object.prototype.toString.call(Io)=="[object Object]"?Io:Io.default;this.viewer=new e({container:this.$refs.container,additionalModules:[t,i]}),this.viewer.on("import.done",({error:n})=>{n||(this.canvasResize(),this.addApprovalData(),this.enableTouchMove())}),this.viewer.on("element.click",n=>{n.type,n.element,n&&n.element&&(n.element.type||"").includes("UserTask")?(this.drawer=!0,this.$refs.bpmnNodeDetailRef.openDrawer(n.element,this.approvalData)):(this.drawer=!1,this.$refs.bpmnNodeDetailRef.closeDrawer(n.element,this.approvalData))})},closeDetail(){this.drawer,this.drawer=!1},canvasResize(){this.viewer&&this.viewer.get("canvas").zoom(1,"auto")},enableTouchMove(){const e=this.viewer.get("canvas"),t=e._svg,i=document.querySelector(".viewport"),n=document.querySelector(".djs-tooltip-container");let s=!1,r,a,o=0,l=0,p=0,h=0;t.addEventListener("touchstart",d=>{s=!0;const y=d.touches[0];r=y.clientX,a=y.clientY;const x=i.getAttribute("transform").match(/matrix\(([^)]+)\)/)[1].split(/\s*,\s*|\s+/);o=parseFloat(x[4]),l=parseFloat(x[5]);const M=this.getTransformMatrix(n.style.transform);this.isAdd?(p=parseFloat(M[4]),h=parseFloat(M[5])):(p=parseFloat(M[4])+30,h=parseFloat(M[5])+16,this.isAdd=!0)}),t.addEventListener("touchmove",d=>{if(!s)return;const y=d.touches[0],x=y.clientX-r,M=y.clientY-a;l!==void 0&&(i.setAttribute("transform",`matrix(0.679276 0 0 0.679276 ${o+x} ${l+M})`),n.setAttribute("style",`position: absolute; width: 0px; height: 0px; transform: matrix(0.615, 0, 0, 0.615, ${p+x}, ${h+M});`)),e._cachedViewbox&&(e._cachedViewbox.x=x,e._cachedViewbox.y=M),d.preventDefault()}),t.addEventListener("touchend",()=>{s=!1})},getTransformMatrix(e){if(!e||e==="none")return[1,0,0,1,0,0];const t=e.match(/matrix(3d)?\(([^)]+)\)/i);if(!t)return null;const i=t[2].split(/\s*,\s*|\s+/).map(parseFloat);return t[1]!=="3d"&&i.length===6||t[1]==="3d"&&i.length===16?i:null},setNodeColor(e){const t=this.viewer.get("canvas"),i=this.viewer.get("elementRegistry"),n=this.viewer.get("tooltips");e.forEach(s=>{if(s.id&&s.class&&t.addMarker(s.id,s.class),s.id&&s.tooltip){const r=i.get(s.id);if(r){let{x:a,y:o,type:l}=r;["bpmn:StartEvent","bpmn:EndEvent"].includes(l)?(a=a-45,o=o+65):["bpmn:UserTask"].includes(l)&&(a=a-10,o=o+90),n.add({position:{x:a,y:o},html:s.tooltip})}}})},addApprovalData(){if(!this.approvalData||this.approvalData.length==0)return;const e=nw(this.approvalData);e&&e.length>0&&this.setNodeColor(e)},async loadXml(e){this.viewer||await this.initViewer();try{const{warnings:t}=await this.viewer.importXML(e);t.length&&this.$emit("warning",t)}catch(t){this.$emit("error",{message:"XML \u52A0\u8F7D\u5931\u8D25",detail:t.message}),console.error("XML \u52A0\u8F7D\u5931\u8D25:",t)}}},beforeDestroy(){this.$refs.container&&this.$refs.container.removeEventListener("resize",this.canvasResize),this.viewer&&this.viewer.destroy()}},Ch={};var bx=ve(Ax,yx,vx,!1,Cx,"15d56bc0",null,null);function Cx(e){for(let t in Ch)this[t]=Ch[t]}const wh=function(){return bx.exports}(),wx={name:"TopTab",components:{processFlow:Ah,BpmnLook:wh,TopPopup:at,ViewAttchList:Ru,PreviewImage:Hs},props:{ProcessInsObj:{type:Object,default:()=>({})},processXml:{type:String,default:""},approvalData:{type:Array,default:()=>[]},tapList:{type:Array,default:()=>[]},selfTapList:{type:Array,default:()=>[]},track:{type:String,default:""},taskComment:{type:Array,default:()=>[]},trackList:{type:Array,default:()=>[]}},data(){return{trackUrl:"",taskCommentList:[],active:"",defaultTabList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],isTapList:[{label:"\u57FA\u672C\u4FE1\u606F",key:"a",type:"default",slot:"default"},{label:"\u6D41\u7A0B\u56FE",key:"b",type:"default",slot:"b"},{label:"\u5BA1\u6279\u8BB0\u5F55",key:"c",type:"default",slot:"c"}],label:document.getElementsByClassName("tops-tab-header-items"),visible:!1,inList:[],visibleTack:!1,trackListss:[],signPreViewVisible:!1,signLists:[],indexd:0}},watch:{tapList:{handler(e,t){this.selfTapList.length||(this.isTapList=[].concat(this.defaultTabList),e.length>0&&e.forEach((i,n)=>{i.sort&&i.sort>1?this.isTapList.splice(i.sort-1,0,i):i.sort==1?this.isTapList.unshift(i):this.isTapList.push(i)}),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},selfTapList:{handler(e,t){e.length&&(this.isTapList=[].concat(e),this.active=this.isTapList[0].key)},immediate:!0,deep:!0},track:{handler(e,t){e&&(this.trackUrl=e,window.location.protocol=="https:"&&(this.trackUrl=this.trackUrl.replace("http://59.53.91.230:8088/","https://kq.ddzg.cn:8093/"),this.trackUrl=this.trackUrl.replace("http://59.53.91.231:8088/","https://acme-test.ddzg.cn:2119/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183:80/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://121.40.143.183/","https://acme-aws.ddzg.cn/"),this.trackUrl=this.trackUrl.replace("http://acme-aws.ddzg.cn/","https://acme-aws.ddzg.cn/")))},immediate:!0,deep:!0},taskComment:{handler(e,t){e&&(this.taskCommentList=e)},immediate:!0,deep:!0},trackList:{handler(e,t){e&&(this.trackListss=e)},immediate:!0,deep:!0}},mounted(){this.tabAnimation(0)},methods:{formatFlow(e){let t=(e||[]).map(i=>({...i,attachmentsFujian:(i.attachments||[]).filter(n=>n.type!="signature"),attachmentsQianzi:(i.attachments||[]).filter(n=>n.type=="signature")}));return t=t.reverse(),t},handleActive(e,t){e!==this.active&&(this.active=e,this.tabAnimation(t))},tabAnimation(e){if(this.label.length){let t=document.getElementsByClassName("bottom-line")[0],i;if(t.offsetWidth<this.label[e].offsetWidth-10){let n=(this.label[e].offsetWidth-t.offsetWidth-10)/2;i=`${this.label[e].offsetLeft+n}px`}else if(t.offsetWidth>this.label[e].offsetWidth-10){let n=(t.offsetWidth-this.label[e].offsetWidth+10)/2;i=`${this.label[e].offsetLeft-n}px`}else i=`${this.label[e].offsetLeft}px`;t.style.transition=".3s",t.style.transform=`translateX(${i})`}},viewList(e){this.visible=!0,this.inList=e},viewSign(e,t){this.signLists=e.filter(i=>i.digitalSignature).map(i=>i.digitalSignature),this.indexd=this.signLists.findIndex(i=>i==t),this.signPreViewVisible=!0}}};var Ex=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"tops-tab"},[i("div",{staticClass:"tops-tab-header"},[e._l(e.isTapList,function(n,s){return[i("div",{staticClass:"tops-tab-header-items",class:[n.key===e.active?"active":""],on:{click:function(r){return e.handleActive(n.key,s)}}},[e._v(" "+e._s(n.label)+" ")])]}),e.isTapList.length?i("div",{staticClass:"bottom-line"}):e._e()],2),i("div",{staticClass:"tops-tab-body"},e._l(e.isTapList,function(n){return i("div",{directives:[{name:"show",rawName:"v-show",value:e.active===n.key,expression:"active === item.key"}],key:n.key,class:[n.key==="c"&&"tops-tab-body-taskcommentlist"],staticStyle:{height:"100%"}},[n.key==="a"&&n.type==="default"?e._t("default"):e._e(),e.active===n.key&&n.key==="b"&&n.type==="default"?i("div",{staticClass:"uph-tab-b",staticStyle:{height:"100%"},attrs:{name:n.slot}},[e.processXml?i("div",{staticStyle:{padding:"10px 20px",color:"#1389ff"},on:{click:function(){return e.visibleTack=!0}}},[e._v(" \u67E5\u770B\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F ")]):e._e(),n.key==="b"&&e.processXml?i("BpmnLook",{ref:"PreviewRef",refInFor:!0,attrs:{diagram:e.processXml,approvalData:e.approvalData}}):i("div",{staticClass:"textnone"},[e._v(" \u6682\u65E0\u6D41\u7A0B\u56FE ")])],1):e._e(),n.key==="c"&&n.type==="default"?i("div",{staticStyle:{height:"100%"}},[n.key==="c"&&e.ProcessInsObj.flow?i("processFlow",{attrs:{request:e.ProcessInsObj.request,"flow-list":e.formatFlow(e.ProcessInsObj.flow)},on:{view:e.viewList}}):i("div",{staticClass:"textnone"},[e._v("\u6682\u65E0\u6570\u636E")])],1):e._e(),n.type=="slot"?e._t(n.slot):e._e()],2)}),0),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9644\u4EF6\u5217\u8868",isDrawer:"",isIndex:5},on:{"update:visible":function(n){return e.visible=n}}},[i("ViewAttchList",{attrs:{inList:e.inList}})],1),i("PreviewImage",{attrs:{images:e.signLists,visible:e.signPreViewVisible,indexd:e.indexd},on:{"update:visible":function(n){return e.signPreViewVisible=n}}}),i("TopPopup",{ref:"TopPopups",attrs:{visible:e.visibleTack,titleText:"\u6D41\u7A0B\u4FE1\u606F",isDrawer:"",width:"60vw"},on:{"update:visible":function(n){return e.visibleTack=n}}},[e.trackListss&&e.trackListss.length?e._l(e.trackListss,function(n,s){return i("div",{key:n.id,staticClass:"seal-list__item"},[i("div",[i("div",{staticClass:"seal-list__item--option"},[i("span",[e._v("\u5E8F\u53F7")]),i("span",{staticStyle:{"max-width":"100px"}},[e._v(e._s(s+1))])]),i("div",{staticClass:"seal-list__item--option"},[i("span",[e._v("\u8282\u70B9\u540D\u79F0")]),i("span",{staticStyle:{"max-width":"100px"}},[e._v(e._s(n.historyActivityName))])]),i("div",{staticClass:"seal-list__item--option"},[i("span",[e._v("\u5BA1\u6279\u4EBA")]),i("span",{staticStyle:{"max-width":"100px"}},[e._v(e._s(n.assigneeName))])])])])}):e._e()],2)],1)},xx=[];const kT="",Eh={};var Ix=ve(wx,Ex,xx,!1,Tx,"8ff4442e",null,null);function Tx(e){for(let t in Eh)this[t]=Eh[t]}const _x=function(){return Ix.exports}(),Nx="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACfVJREFUeF7tnT2S1FYYRaUCYgJ2wArYgRMIYQPGMVUQt8bDAoDRxFBFbLwBE5qEHbACdkBAbCi5HjxgGKbn6b7Wz9O7h9B8avV3rk7J6r7VtA1/IACBvQRa2EAAAvsJIAhXBwQuIYAgXB4QQBCuAQjkEeAOkseNo0wIIIhJ0KyZRwBB8rhxlAkBBDEJmjXzCCBIHjeOMiGAICZBs2YeAQTJ48ZRJgQQxCRo1swjgCB53DjKhACCmATNmnkEECSPG0eZEEAQk6BZM48AguRx4ygTAghiEjRr5hFAkDxuHGVCAEFMgmbNPAIIkseNo0wII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b5svJzPiuSAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBIAiE+uVC2SAECKDJI2fBL4Csq/cvbKQGitAAAAAElFTkSuQmCC",Sx={name:"TopDownSelect",props:{option:{type:Array,default:[]},optionStyle:{type:String,default:""},maskShow:{type:Boolean,default:!0},border:{type:Boolean,default:!1},defaultValue:{type:String,default:""},placeholder:{type:String,default:"\u8BF7\u9009\u62E9"},isSlots:{type:Boolean,default:!1},disibled:{type:Boolean,default:!1}},data(){return{value:{id:"",text:""},lists:[],expand:!1,active:"",activeItem:{name:""}}},watch:{option:{handler(e,t){e&&e.length&&(this.lists=e)},immediate:!0,deep:!0},defaultValue:{immediate:!0,deep:!0,handler(e,t){this.active=e;let n=JSON.parse(JSON.stringify(this.option)).filter((s,r)=>s.id==e);this.activeItem=n[0],this.activeItem&&this.$emit("change",this.activeItem)}}},computed:{arrow(){return Nx},check(){return kx}},methods:{handleExpand(){this.disibled||(this.expand?this.expand=!1:this.expand=!0)},handleClick(e,t){this.active!=e.id&&(this.active=e.id,this.activeItem=e,this.expand=!1,this.$emit("change",this.activeItem,this.lists))},handleClose(){this.expand=!1,this.active="",this.activeItem={name:""}}}};var Px=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"top-select"},[e.isSlots?i("div",{staticStyle:{position:"relative","z-index":"80"}},[e._t("header",null,{data:Object.assign({},e.activeItem,{placeholder:e.placeholder})})],2):i("div",{staticClass:"top-select-menu",class:[e.border&&"top-select-menu-border",!e.activeItem&&"top-select-menu-placeholder"],on:{click:e.handleExpand}},[e._v(" "+e._s(e.activeItem?e.activeItem.name:e.placeholder)+" "),e.disibled?e._e():i("img",{staticClass:"top-select-menu--arrow",class:[e.expand?"arrow-active":""],attrs:{src:e.arrow}})]),e.maskShow?i("div",{staticClass:"top-select-option-mask",style:e.expand?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;"}):e._e(),e.lists&&e.lists.length?i("div",{staticClass:"top-select-option",class:[e.border&&"top-select-option-border"],style:`${e.expand?"transform: translateY(2%);visibility: visible; opacity: 1;":"transform: translateY(-50%);visibility: hidden; opacity: 0"};${e.optionStyle?e.optionStyle:""}`},e._l(e.lists,function(n,s){return i("div",{key:n.id,staticClass:"option-items",class:[e.active==n.id?"option-items-active":""],on:{click:function(r){return e.handleClick(n,s)}}},[e._v(" "+e._s(n.name)+" "),e.active==n.id?i("img",{staticClass:"option-items-check",attrs:{src:e.check}}):e._e()])}),0):e._e()])},Dx=[];const ST="",xh={};var Ox=ve(Sx,Px,Dx,!1,Mx,"a791e974",null,null);function Mx(e){for(let t in xh)this[t]=xh[t]}const Ih=function(){return Ox.exports}(),Bx="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAADGdJREFUeF7tnVFSHDkMhuVhD7AV9j1wksBJApeA5YnwlJBLQE4COUl63zOpHGAZb3l2mpqQGWYsS7as/qna2oe0ZeuXvpHd7W4Hwh8UgAJbFQjQBgpAge0KABBkBxR4RQEAgvSAAgAEOQAFeAqggvB0Q6uJKABAJhJouMlTAIDwdEOriSgAQCYSaLjJUwCA8HRDq4koAEAmEmi4yVMAgPB0Q6uJKNAdIH9+jEezGb0PkY5oRkeU/k/L/4ZlzAINtKAhBhpmC/r6/So8TiSWcFNBgS4AOfwcz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iOxeKzQAIABEJM28VhEAAkBEACHGnFumY10rAASASGUY+0UhqQFo2AEgG1Rli6IRoV5sooL8GimGHt3cCsRrpwwqO9+Hts1j9o+lZ0CSWHj1NA8Szht0eT20uRqAbNEdVSQjIZ1Wj6QAAHklD/A8ZD9I8CR9g07ep1ijy6tK8oBNfNthASATBiS5niBJ/z84oBNa0Lv9flc7vCrQGWfUAGTigHCSpsc23DcK01P0Hv3dZ8whfXKV88MxlSnWPiJ6uYYLiBf/Rf0AIKJymjAGQATDAEAExTRiCoAIBgKACIppxBQAEQwEABEU04gpACIYCAAiKKYRUwBEMBAARFBMI6aw/0wwEIztN93s5hWUqStTAEQwXJ6/7i4oU1em3tzG6+D4oV/NYDwt6PjnVcj6HBIqSM0IMfrCvjOGaJuaMNYfyQwAEdJf0wx7e7fmoDqzzakeAKSjIK+mWmnjYv4XBTvyU2GoRZ8/QgVRiIiWyRdnpJ9o9ePE7hCJ7n9chpsSfwBIiXoN247b/RsOwWzXuQvx1xwBIGbDjIFZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUACAWIgCxmBWAQBiNjQYmAUFAIiFKGAMZhUAIGZDg4FZUOA/PPf9I/jtWsEAAAAASUVORK5CYII=";var Rx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("TopPopup",{ref:"TopPopupFixedPerson",attrs:{visible:e.showFixedPerson,titleText:"\u9009\u62E9\u4EBA\u5458("+e.fixedPersonList.length+"\u4EBA)",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitFixedPerson},on:{"update:visible":e.updateVisible}},[i("div",{staticClass:"s-tree"},e._l([].concat(e.fixedPersonList),function(n){return i("div",{key:n.userId,staticClass:"s-node",on:{click:function(s){return e.handleClickFixedPerson(n)}}},[e.mySelectIds.includes(n.userId)?i("div",{staticClass:"radio-select"},[i("svg",{staticClass:"icon",attrs:{t:"1758260488735",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"7527",width:"18",height:"18"}},[i("path",{attrs:{d:"M512 0a512 512 0 1 0 512 512A512 512 0 0 0 512 0z m314.916571 369.371429l-354.304 349.184a46.409143 46.409143 0 0 1-64.987428 0l-212.955429-209.883429a44.763429 44.763429 0 0 1 0-64 46.336 46.336 0 0 1 64.987429 0l180.443428 177.810286 321.828572-317.184a46.482286 46.482286 0 0 1 64.987428 0 44.836571 44.836571 0 0 1-0.036571 64.073143z",fill:"#409eff","p-id":"7528"}})])]):i("div",{staticClass:"radio-select-not"},[i("svg",{staticClass:"icon",attrs:{t:"1758260589679",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"8704",width:"18",height:"18"}},[i("path",{attrs:{d:"M150.144 150.144C250.24 50.048 370.88 0 512 0s261.76 50.048 361.856 150.144S1024 370.88 1024 512s-50.048 261.76-150.144 361.856S653.12 1024 512 1024s-261.76-50.048-361.856-150.144S0 653.12 0 512s50.048-261.76 150.144-361.856zM64 512c0 124.16 43.328 228.48 131.392 316.608C283.52 916.672 387.84 960 512 960s228.48-43.328 316.608-131.392C916.672 740.48 960 636.16 960 512s-43.328-228.48-131.392-316.608C740.48 107.328 636.16 64 512 64s-228.48 43.328-316.608 131.392C107.328 283.52 64 387.84 64 512z",fill:"#b5bbc1","p-id":"8705"}})])]),n.avatar?i("img",{staticClass:"node-avatar",attrs:{src:n.avatar,alt:"\u5934\u50CF"}}):i("div",{staticClass:"node-avatar-text"},[e._v(" "+e._s((n.realName||"").slice(-2))+" ")]),i("div",{staticClass:"node-name"},[i("div",{staticClass:"node-name-text"},[e._v(e._s(n.realName))]),i("div",{staticClass:"node-name-phone"},[e._v(e._s(n.phonenumber))])])])}),0)])},Lx=[];const PT="",Fx={name:"selectFixedPerson",components:{TopPopup:at},props:{multiple:{},visible:{type:Boolean,default:!1},list:{type:Array,default(){return[]}},select:{type:Array,default(){return[]}},multiple:{type:Boolean,default:!1}},data(){return{showFixedPerson:!1,fixedPersonList:[],mySelect:[],mySelectIds:[]}},watch:{visible:{handler(e,t){this.showFixedPerson=e,e?(this.fixedPersonList=this.list||[],this.mySelect=this.select||[],this.mySelectIds=this.mySelect.map(i=>i.userId)):(this.fixedPersonList=[],this.mySelect=[],this.mySelectIds=[])},immediate:!0},fixedPersonList:{handler(e,t){e&&e.length>0&&JSON.stringify(e)!==JSON.stringify(this.list)&&this.$emit("updateList",e)},immediate:!0,deep:!0}},methods:{updateVisible(e){this.$emit("updateVisible",e)},handleClickFixedPerson(e){const t=this.select.find(i=>i.userId===e.userId);this.multiple||(this.mySelect=[],this.mySelectIds=[]),t?(this.mySelect=this.select.filter(i=>i.userId!==e.userId),this.mySelectIds=this.mySelect.map(i=>i.userId)):(this.mySelect.push(e),this.mySelectIds.push(e.userId)),this.$emit("updateSelect",this.mySelect)},handleSumbitFixedPerson(){this.$emit("confirm",this.mySelect)}}},Th={};var Vx=ve(Fx,Rx,Lx,!1,jx,"4e0e3ca1",null,null);function jx(e){for(let t in Th)this[t]=Th[t]}const _h=function(){return Vx.exports}(),Ux={name:"TopSubmitPopup",components:{SelectFixedPerson:_h,BpmnLook:wh,TopPopup:at,TopDownSelect:Ih,PreviewImage:Hs,departPerson:Ht.departPerson,TopTips:Nt},props:{isCheckType:{type:String,default:"0"},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]},businessDeptId:{type:[String,Number]},businessSubjectId:{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:()=>[]},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},extraParams:{type:Object,default:()=>{}},isSelectFirst:{type:Boolean,default:!0},showFlowForecast:{default:!1,type:Boolean},flowForecastFunction:{type:Function,default:null}},data(){return{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],approvalData:[],processXml:"",showFlow:!1,showFirstPerson:!1,selectDeptData:{},showDept:!1,deptList:[],show:!1,option:[],checkedItem:{},personList:[],checkedArray:[],trackUrl:[],taskurlshow:!1,isStyle:"width:35%",visiblePerson:!1,entity:{source:"0",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:!1,checkedArray:[]},multiNodeParticipant:{},personListCopy:{},partNode:{},personObjId:"",processId:"",textTips:"",statusTips:!1,typeTips:"success",firstPerson:[],selectDefaultValue:"",businessTypeData:"",businessDeptIdData:"",idData:"",processNameData:"",titleData:"",todoParameterData:{},humanPerformerName:"",btnLoading:!1,flowForecastVisible:!1,flowForecastData:{completeTime:"",processBudgetModelList:[]},flowForecastProcessInstId:""}},watch:{visible:{async handler(e,t){this.show=e,this.$emit("update:visible",this.show),e?(this.selectDefaultValue="",this.handleOption()):this.$refs.TopDownSelect.handleClose()}},show:{handler(e,t){e||this.$refs.TopDownSelect.handleClose()}},businessType:{handler(e,t){this.businessTypeData=e},immediate:!0},businessDeptId:{handler(e,t){e&&(this.businessDeptIdData=e)},immediate:!0},extraParams:{handler(e,t){e&&e.businessDeptId&&(console.error(e.businessDeptId,"\u4E1A\u52A1\u90E8\u95E8id\u66F4\u65B0\u5230extraParams.businessDeptId\u4E2D\uFF0C\u8BF7\u68C0\u67E5\u662F\u5426\u9700\u8981\u66F4\u65B0\u5230\u6B64\u5904"),this.businessDeptIdData=e.businessDeptId)},immediate:!0,deep:!0},id:{handler(e,t){e&&(this.idData=e,this.resubmit&&this.getProcessInstance())},immediate:!0},processName:{handler(e,t){this.processNameData=e},immediate:!0},title:{handler(e,t){this.titleData=e},immediate:!0},todoParameter:{handler(e,t){this.todoParameterData=e},immediate:!0,deep:!0},selfList:{handler(e,t){e&&e.length&&(this.option=e,this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))},immediate:!0,deep:!0},resubmit:{handler(e,t){e&&this.getProcessInstance()}}},computed:{ProcessImg(){return Bx}},methods:{getXmlByProcessDefId(e){this.request.get("/bladex/blade-workflow/process/getXmlByProcessDefId",{params:{processDefId:e}}).then(t=>{t.code==200&&(this.processXml=t.data)})},handleFlowSelect(){this.showFlow=!0},handleSumbitFlow(){this.showFlow=!1},handleDeptSelect(){this.showDept=!0},handleSumbitDept(){},async handleClickDept(e){this.businessDeptIdData=e.id,this.showDept=!1,this.selectDeptData=e,await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success")},handleSelect(){this.$refs.TopDownSelect.handleExpand()},async handleOption(){if(this.checkedItem={},this.firstPerson=[],this.personList=[],this.selfList&&this.selfList.length)return;this.handleTips("",!0,"loading");let e={businessCode:this.businessType,appId:this.appId,subjectId:this.businessSubjectId,processGroupName:this.processNameData,...this.extraParams};this.processNameData&&delete e.processGroupName,await this.request.post("/bladex/blade-workflow/repository/getProcessDefList",e).then(t=>{t.code==200&&(this.option=t.data,t.data&&t.data.length?(this.handleTips("",!1,"success"),(this.isSelectFirst||t.data.length==1)&&(this.checkedItem=this.option[0],this.selectDefaultValue=this.checkedItem.id,this.$emit("change",this.checkedItem,this.option),this.handlefirstNode(this.checkedItem.id))):(this.handleTips("\u6682\u65E0\u6D41\u7A0B\u8282\u70B9\u4FE1\u606F",!0,"error"),this.option=[]),this.businessDeptIdData||this.getNodeUserDept())})},async getProcessInstance(){},async getNodeUserDept(){let e={};try{e=await this.request.get("/auth/dept/list/user/dept/selectTree")}catch(t){}this.deptList=e.data||[]},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:n,deptIds:s}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:n,deptIds:s})},getUserDataByDeptId(){this.firstPerson.map(async(e,t)=>{const i=bd(e);let n;try{n=await this.getNodeUser({deptId:this.businessDeptIdData,intersection:(i.intersection,0),userIds:i.userIds,postIds:i.postIds,deptIds:i.deptIds})}catch(s){}if(n.code==200){const s=this.firstPerson[t];s.userList=n.data,this.$set(this.firstPerson,t,s)}})},async handlefirstNode(e){e&&(this.handleTips("",!0,"loading"),await this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:e}}).then(async t=>{if(t.code===200){if(this.firstPerson=t.data,await this.getNodeUserDept(),!this.businessDeptIdData){this.handleTips("",!1,"success");return}if(await this.getUserDataByDeptId(),this.showFirstPerson=!0,this.handleTips("",!1,"success"),Date.now())return;t.data.map(i=>{{let n={taskDefId:i.id,postIds:[]};i.routeTxt.postList.map(s=>{n.postIds.push(s.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[n]}).then(s=>{let r=[],a=[],o=!1;s.data.map(p=>{p.posts.map(h=>{a.push(...h.users),h.users.length==1?r.push(...h.users):o=!0})}),r.length>i.loopCardinality&&i.loopCardinality>0&&(o=!0),o&&(r=[]);let l=[];s.data[0].posts.map(p=>{l.push({...p,projectPost:!this.businessDeptIdData,id:p.users.map(h=>h.id),subjectId:p.subjectId})}),a.length==0&&this.$set(i,"noPersonnel",!0),r.length>0&&(this.personObjId=i.id,this.humanPerformerName=i.humanPerformerName,this.$set(i,"noPersonnel",!0),this.handleCallback(r)),i.positionArray=l})}}),this.getAfferentParticipantNodeList()}else this.firstPerson=[],this.getAfferentParticipantNodeList()}).catch(t=>{this.firstPerson=[],this.getAfferentParticipantNodeList()}))},async handleChange(e,t){this.handleTips("",!0,"loading"),this.checkedItem={},this.selectDefaultValue="",this.firstPerson=[],this.personList=[],this.checkedItem=e,this.selectDefaultValue=this.checkedItem.id,this.handlefirstNode(this.checkedItem.id),this.getXmlByProcessDefId(this.checkedItem.id),this.$emit("change",e,t)},async getAfferentParticipantNodeList(){await this.request.get("/aws/repository/getAfferentParticipantNodeList",{params:{processDefId:this.checkedItem.id}}).then(e=>{e.code==200&&(this.firstPerson&&this.firstPerson.length&&(e.data.map(t=>{if(t.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let i={taskDefId:t.id,postIds:[]};t.routeTxt.postList.map(n=>{i.postIds.push(n.postId)}),this.request.post("/auth/user/getTaskAuditor",{deptId:this.businessDeptIdData,taskPostIds:[i]}).then(n=>{let s=[],r=[],a=!1;n.data.map(l=>{l.posts.map(p=>{r.push(...p.users),p.users.length==1?s.push(...p.users):a=!0})}),s.length>t.loopCardinality&&t.loopCardinality>0&&(a=!0),a&&(s=[]);let o=[];n.data[0].posts.map(l=>{o.push({...l,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:l.users.map(p=>p.id),subjectId:l.subjectId})}),r.length==0&&this.$set(t,"noPersonnel",!0),s.length>0&&(this.personObjId=t.id,this.humanPerformerName=t.humanPerformerName,this.$set(t,"noPersonnel",!0),this.handleCallback(s)),t.positionArray=o})}}),this.personList=e.data.filter(t=>!this.firstPerson.some(i=>i.id==t.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])})},handleOpenFixedPerson(e){this.currentClickItem=e,this.personObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.$set(this.fixedSelect,this.personObjId,e),this.$set(this.multiNodeParticipant,this.personObjId,[]),this.$set(this.partNode,this.personObjId,[]),e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.userId),this.partNode[this.personObjId].push(t.realName)}),this.showFixedPerson=!1},handleClickFixedPerson(e){this.$set(this.multiNodeParticipant,this.personObjId,[]),this.$set(this.partNode,this.personObjId,[]),e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.userId),this.partNode[this.personObjId].push(t.realName)}),this.showFixedPerson=!1},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:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:[]},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId)})):this.entity.checkedArray=[];else if(e.humanPerformerName==="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[];e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length>1?(e.routeTxt.departmentIds.forEach((n,s)=>{i.push(n.rangeId)}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCodeArray:i,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}):e.routeTxt.departmentIds&&e.routeTxt.departmentIds.length==1&&(e.routeTxt.departmentIds.forEach((n,s)=>{t=n.rangeId}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],deptCode:t,multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(n=>({id:n.id,subjectId:n.subjectId,type:n.type,deptId:t})):this.entity.checkedArray=[]}else if(e.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"){let t;e.routeTxt.companyIds.map((i,n)=>{t=i.name}),this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||"0",request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(i=>({id:i.id,subjectId:i.subjectId,type:i.type,deptId:this.handleLastStr(i.ancestors,i.subjectId),subjectName:i.ancestorNames.slice(0,i.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]}else e.humanPerformerName==="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"?(this.entity={source:"1",type:this.isCheckType||"0",orgType:[5],request:this.request,codeType:[8],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,positionArray:e.positionArray},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:t.ancestorNames.slice(0,t.ancestorNames.indexOf("/"))})):this.entity.checkedArray=[]):(this.entity={source:"1",type:this.isCheckType||"0",orgType:this.isOrgType||[0],request:this.request,codeType:this.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:[]},this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length?this.entity.checkedArray=this.personListCopy[e.id].map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId)})):this.entity.checkedArray=[])},handleCallback(e){this.personListCopy[this.personObjId]=e,this.entity.checkedArray=e.map(t=>({id:t.id,subjectId:t.subjectId,type:t.type,deptId:this.handleLastStr(t.ancestors,t.subjectId),subjectName:this.humanPerformerName==="\u56FA\u5B9A\u5355\u4F4D"?t.ancestorNames.slice(0,t.ancestorNames.indexOf("/")):""})),this.$set(this.multiNodeParticipant,this.personObjId,[]),this.$set(this.partNode,this.personObjId,[]),e.map((t,i)=>{this.multiNodeParticipant[this.personObjId].push(t.id),this.partNode[this.personObjId].push(t.name)}),this.visiblePerson=!1},handleCancel(){},handleLastStr(e,t){if(!!e)return e.split(",")[e.split(",").length-1]!==t?e.split(",")[e.split(",").length-1]:""},async handleSumbit(){if(!this.btnLoading){if(this.btnLoading=!0,!this.isSelectFirst&&!this.checkedItem.id){this.handleTips("\u8BF7\u5148\u9009\u62E9\u6D41\u7A0B",!0,"error"),this.btnLoading=!1;return}if(!this.isSelectFirst&&!this.businessDeptIdData){this.handleTips("\u8BF7\u5148\u9009\u62E9\u90E8\u95E8",!0,"error"),this.btnLoading=!1;return}if(this.firstPerson&&this.firstPerson.length&&!this.firstPerson[0].routeTxt.userNames&&(!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("/bladex/blade-workflow/pis/reactivate",{processDefId:this.checkedItem.id,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",processInstId:this.extraParams.processInstId,vars:{businessType:this.businessType,deptId:this.businessDeptIdData,reactivate:!0,showType:"all",subjectId:this.businessSubjectId,...this.extraParams,_businessDeptId:this.businessDeptIdData}}).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={processDefId:this.checkedItem.id,multiNodeParticipant:this.multiNodeParticipant,firstNodeId:this.firstPerson&&this.firstPerson.length>0?this.firstPerson[0].id:"",vars:{processBusinessKey:this.id||this.extraParams.businessKey,showType:"all",subjectId:this.businessSubjectId,deptId:this.businessDeptIdData,businessType:this.businessType,name:this.extraParams.name,title:this.title||this.extraParams.title,applyUserId:this.extraParams.applyUserId}};if(!this.checkedItem.id){this.$refs.topTips.handleClose(),this.btnLoading=!1;return}this.request.post("/bladex/blade-workflow/pis/createAndStart",e).then(t=>{t.code===200?(this.show=!1,this.$emit("update:visible",this.show),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.$emit("successFn"),this.btnLoading=!1):t.code==499?this.request.post("/bladex/blade-workflow/pis/reactivate",{processInstId:this.processId,isClearHistory:this.isClearHistory,reactivateReason:"\u91CD\u65B0\u63D0\u4EA4",multiNodeParticipant:this.multiNodeParticipant}).then(i=>{i.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(i.msg,!0,"error"),this.btnLoading=!1)}).catch(i=>{this.handleTips(i.msg,!0,"error"),this.btnLoading=!1}):(this.handleTips(t.msg,!0,"error"),this.btnLoading=!1)}).catch(t=>{this.handleTips(t.msg,!0,"error"),this.btnLoading=!1})}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips&&this.$refs.topTips.handleOpen()},viewFlowForecast(){this.flowForecastFunction?this.flowForecastFunction():this.forecast({appId:this.appId,title:"1"})},forecast(e){this.request.post("/aws/pis/getProcessForecast",{processDefId:this.checkedItem.id,...e}).then(t=>{t.code==200?(t.data&&t.data.processBudgetModelList&&t.data.processBudgetModelList.length?this.flowForecastProcessInstId=t.data.processBudgetModelList[0].processInstId:(t.data.processBudgetModelList=[],this.flowForecastProcessInstId=""),this.flowForecastData=t.data,this.flowForecastVisible=!0):this.handleTips(t.msg,!0,"error")}).catch(t=>{this.btnLoading=!1,this.handleTips("\u6D41\u7A0B\u9884\u6D4B\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",!0,"error")})},flowForecastClose(){this.flowForecastProcessInstId?this.request.get("/aws/pis/deleteProcessById",{params:{processInstId:this.flowForecastProcessInstId}}).then(e=>{e.code==200&&(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]},this.flowForecastProcessInstId="")}):(this.flowForecastVisible=!1,this.flowForecastData={completeTime:"",processBudgetModelList:[]})}}};var Qx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sumbmitPopup-index-sumbit"},[i("div",{staticClass:"top-popup"}),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.show,titleText:"\u9001\u5BA1",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u9001\u5BA1",comfig:e.handleSumbit},on:{"update:visible":function(n){return e.show=n,e.$emit("update:visible",n)}}},[i("TopDownSelect",{ref:"TopDownSelect",attrs:{isSlots:"",option:e.option,defaultValue:e.selectDefaultValue,disibled:!1},on:{change:e.handleChange},scopedSlots:e._u([{key:"header",fn:function(n){return[i("div",{staticClass:"sumbmitPopup-select"},[i("div",{staticClass:"sumbmitPopup-select-checked",on:{click:e.handleSelect}},[i("div",{staticClass:"sumbmitPopup-select-checked-title"},[e._v("\u5F53\u524D\u6D41\u7A0B")]),i("div",{staticClass:"sumbmitPopup-select-checked-node",class:""},[e._v(" "+e._s(n.data.name?n.data.name:n.data.placeholder)+" ")])]),e.businessDeptIdData?e._e():i("div",{staticClass:"sumbmitPopup-select-checked",on:{click:e.handleDeptSelect}},[i("div",{staticClass:"sumbmitPopup-select-checked-title"},[e._v("\u9009\u62E9\u90E8\u95E8")]),i("div",{staticClass:"sumbmitPopup-select-checked-node",class:""},[e._v(" "+e._s(e.selectDeptData.label?e.selectDeptData.label:"\u8BF7\u9009\u62E9")+" ")])]),i("div",{staticClass:"sumbmitPopup-select-viewTrack",staticStyle:{display:"flex"}},[e.checkedItem.id?i("div",{staticClass:"viewTrack",on:{click:e.handleFlowSelect}},[i("img",{attrs:{src:e.ProcessImg}}),e._v(" \u67E5\u770B\u6D41\u7A0B\u56FE ")]):e._e(),e.checkedItem.id&&e.showFlowForecast?i("div",{staticClass:"viewTrack",on:{click:e.viewFlowForecast}},[e._v(" \u6D41\u7A0B\u9884\u6D4B ")]):e._e()])])]}}])}),e.showFirstPerson&&e.firstPerson&&e.firstPerson.length?i("div",{staticClass:"person-views"},[i("div",{staticClass:"person-views-title"},[e._v("\u4E0B\u4E00\u6B65\u5904\u7406\u8282\u70B9")]),e._l(e.firstPerson,function(n,s){var r;return i("div",{key:s,staticClass:"views-items"},[i("div",{staticClass:"views-items-label"},[i("div",{staticClass:"views-items-name"},[i("div",{staticClass:"views-items-name-left"},[e._v(" "+e._s(n.name)+" "),s==0?i("span",{staticClass:"views-items-name--re"},[e._v("*")]):e._e()])]),i("div",{staticClass:"views-items-set"},[e.partNode[n.id]&&e.partNode[n.id].length?i("div",[e._l(e.partNode[n.id],function(a,o){return i("span",{key:o},[e._v(" "+e._s(o>=3?"":o==0?a:`,${a}`)+" ")])}),e.partNode[n.id].length>3?i("span",[e._v("...\u7B49"+e._s(e.partNode[n.id].length)+"\u4EBA")]):e._e()],2):n.routeTxt&&n.routeTxt.userNames?i("div",[e._v(" "+e._s(n.routeTxt.userNames)+" ")]):e._e(),n.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||n.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||((r=e.partNode[n.id])===null||r===void 0?void 0:r.length)>0&&n.noPersonnel?i("div"):n.humanPerformerName=="\u56FA\u5B9A\u8D26\u6237"||n.humanPerformerName=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"||n.noPersonnel?i("div",[e._v(" \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")]):n.userList&&n.userList.length>0?i("div",{staticClass:"views-items-set-btn",on:{click:function(a){return e.handleOpenFixedPerson(n)}}},[e._v(" \u9009\u62E9 ")]):i("div",{staticClass:"views-items-set-btn",on:{click:function(a){return e.handleOpenPerson(n)}}},[e._v(" \u8BBE\u7F6E ")])])]),n.routeTxt&&n.routeTxt.length>0?i("div",{staticClass:"views-items-includes"},[i("div",{staticClass:"views-items-name2"},[e._v(" "+e._s("\u6240\u5C5E\u8303\u56F4")+" ")]),i("div",{staticClass:"views-items-and2"},e._l(n.routeTxt,function(a,o){return i("div",{key:a.type},[a.ids&&a.ids.length>0?i("div",[i("div",{staticClass:"include"},[i("b",{staticClass:"include include-type",class:["include-"+a.type]},[e._v(e._s(a.type=="user"?"\u7528\u6237":a.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),i("span",{staticClass:"include include-name"},[e._v(e._s(a.name))])]),o!==n.routeTxt.length-1?i("div",{staticClass:"include include-assign",class:["include-assign-"+(a.assigneeRetain?"true":"false")]},[e._v(e._s(n.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0)]):e._e()])})],2):e._e(),e.personList&&e.personList.length?i("div",{staticClass:"person-views"},[i("div",{staticClass:"person-views-title"},[e._v("\u5176\u4ED6\u5904\u7406\u8282\u70B9")]),e._l(e.personList,function(n,s){return i("div",{staticClass:"views-items"},[i("div",{staticClass:"views-items-name"},[e._v(" "+e._s(n.name)+" ")]),i("div",{staticClass:"views-items-set"},[n.noPersonnel?e._e():i("div",{staticClass:"views-items-set-btn",on:{click:function(r){return e.handleOpenPerson(n)}}},[e._v(" \u8BBE\u7F6E ")]),e.partNode[n.id]&&e.partNode[n.id].length?i("div",[e._l(e.partNode[n.id],function(r,a){return i("span",[e._v(" "+e._s(a>=3?"":a==0?r:`,${r}`)+" ")])}),e.partNode[n.id].length>3?i("span",[e._v("...\u7B49"+e._s(e.partNode[n.id].length)+"\u4EBA")]):e._e()],2):n.noPersonnel?i("div",[e._v("\u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E")]):i("div")])])})],2):e._e(),!e.firstPerson&&!e.firstPerson.length&&!e.personList&&!e.personList.length?i("div",{staticClass:"person-views-white"},[e._v(" \u65E0\u9700\u8BBE\u7F6E ")]):e._e()],1),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visiblePerson,titleText:"\u9009\u4EBA",isDrawer:!0,isIndex:199},on:{"update:visible":function(n){return e.visiblePerson=n}}},[i("div",{staticStyle:{height:"100%"}},[e.visiblePerson?i("departPerson",e._b({attrs:{isTitle:!1,visible:e.visiblePerson,checkedArray:e.checkedArray},on:{"update:visible":function(n){e.visiblePerson=n},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),i("TopPopup",{ref:"TopPopupDept",attrs:{visible:e.showDept,titleText:"\u9009\u62E9\u90E8\u95E8",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u786E\u5B9A",comfig:e.handleSumbitDept},on:{"update:visible":function(n){return e.showDept=n}}},[i("div",{staticClass:"tree"},e._l([].concat(e.deptList),function(n){return i("div",{key:n.id,staticClass:"node"},[i("div",{staticClass:"node-p",on:{click:function(s){return e.handleClickDept(n)}}},[e._v(e._s(n.label))]),n.children?i("div",{staticClass:"children"},e._l(n.children,function(s){return i("div",{key:s.id,staticClass:"node-s",on:{click:function(r){return e.handleClickDept(s)}}},[e._v(" "+e._s(s.label)+" ")])}),0):e._e()])}),0)]),i("SelectFixedPerson",{attrs:{visible:e.showFixedPerson,list:e.fixedPersonList,multiple:e.currentClickItem.loopCardinality==-1,select:e.fixedSelect[e.personObjId]||[]},on:{updateList:e.handleClickFixedPerson,updateVisible:e.updateFixedPersonVisible,updateSelect:e.updateFixedSelect,confirm:e.handleSumbitFixedPerson}}),i("TopPopup",{ref:"TopPopupFlow",staticClass:"top-pop-flow",attrs:{visible:e.showFlow,titleText:"\u67E5\u770B\u6D41\u7A0B\u56FE",isIndex:99,className:"sumbmitPopup-index",comfigText:"\u5173\u95ED",comfig:e.handleSumbitFlow},on:{"update:visible":function(n){return e.showFlow=n}}},[e.showFlow&&e.processXml?i("BpmnLook",{ref:"PreviewRef",attrs:{diagram:e.processXml,approvalData:e.approvalData}}):e._e()],1),i("PreviewImage",{attrs:{images:e.trackUrl,visible:e.taskurlshow,indexd:0,isOne:!0,isStyle:e.isStyle},on:{"update:visible":function(n){return e.taskurlshow=n}}}),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),i("TopPopup",{ref:"TopPopupFF",attrs:{visible:e.flowForecastVisible,titleText:"\u6D41\u7A0B\u9884\u6D4B",isIndex:129,cancel:e.flowForecastClose,comfig:e.flowForecastClose},on:{"update:visible":function(n){return e.flowForecastVisible=n}}},[i("div",{staticStyle:{margin:"20px"}},[i("div",{staticStyle:{"margin-left":"10px","margin-bottom":"10px"},domProps:{innerHTML:e._s(e.flowForecastData.completeTime)}}),i("div",{staticClass:"timeline"},e._l(e.flowForecastData.processBudgetModelList,function(n,s){return i("div",{key:s,staticClass:"timeline-item"},[i("div",{staticClass:"item-top"},[i("div",{staticClass:"top-spot"},[i("div",{staticClass:"spot",class:{active:s==0}})]),i("div",{staticClass:"top-title"},[e._v(e._s(n.title))])]),i("div",{staticClass:"item-bottom",class:{last:s==e.flowForecastData.processBudgetModelList.length-1}},[i("span",{staticStyle:{color:"#009800"}},[e._v(" \u6267\u884C\u4EBA\uFF1A"+e._s(n.excutor)+" ")])])])}),0)])])],1)},Gx=[];const DT="",Nh={};var qx=ve(Ux,Qx,Gx,!1,Jx,"a0f579ac",null,null);function Jx(e){for(let t in Nh)this[t]=Nh[t]}const kh=function(){return qx.exports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1NIxBQEEoqBIjL0lgED2NrV0TEHgP1VLsH2X3+jEAAAAAElFTkSuQmCC";var Kx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[e.visible?i("div",{staticClass:"top-msg"},e._l(e.listData,function(n){return i("div",{staticClass:"top-msg-items",on:{click:function(s){return e.handleMsg(n)}}},[i("div",{staticClass:"top-msg-items-text"},[e._v(e._s(n.opinionName))]),i("div",{staticClass:"top-msg-items-del",on:{click:function(s){return s.stopPropagation(),e.handleOpenMsg(n)}}},[i("img",{attrs:{src:e.Del}})])])}),0):e._e(),i("TopPopup",{attrs:{isIndex:2299,titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06\u5E38\u7528\u610F\u89C1'${e.opinion.opinionName}'\u5220\u9664`,cancel:e.handleTipsCancel,comfig:e.handleDel,visible:e.visibleListMsg},on:{"update:visible":function(n){return e.visibleListMsg=n}}})],1)},Wx=[];const OT="",zx={name:"msgList",components:{TopPopup:at},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 Hx}},watch:{visible:{handler(e,t){e&&this.request.get("/auth/user/opinion/my").then(i=>{i.code===200&&(this.listData=i.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(t=>{t.code===200&&(this.listData=t.data)})):this.$emit("handleTips",e.msg,!0,"error")}).catch(e=>{this.$emit("handleTips",e.msg,!0,"error")}))}}},Sh={};var Yx=ve(zx,Kx,Wx,!1,Xx,"66478dbb",null,null);function Xx(e){for(let t in Sh)this[t]=Sh[t]}const ds=function(){return Yx.exports}();var Zx=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-popup-content"},[i("div",{staticClass:"process-popup-content-msg"},[e.param.isMsg?i("div",[i("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px"},on:{click:function(n){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")])]):e._e(),e._m(0),i("div",{staticClass:"process-pc-value"},[i("div",{staticClass:"process-popup-textarea"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},domProps:{value:e.commentMsg},on:{input:function(n){n.target.composing||(e.commentMsg=n.target.value)}}}),i("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])]),e.param.isMsg?i("div",{staticClass:"msg-btn"},[i("span",{staticClass:"msg-btn-click",on:{click:function(n){return e.handleMakeMsg()}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()])]),i("div",{staticClass:"process-popup-content-person"},[e.nextNodeData.length?[e._l(e.nextNodeData,function(n){return[i("div",[i("br"),e._v(" \u5BA1\u6279\u4EBA "),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),i("div",{staticClass:"process-pc-value",on:{click:function(s){return e.handleOpenPopup(n.id)}}},[i("div",{staticClass:"process-pc-value--people"},[e.partNode[n.id]&&e.partNode[n.id].length?i("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[n.id],function(s,r){return i("span",[e._v(" "+e._s(r==0?s:`,${s}`)+" ")])}),0):i("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[i("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(n){return[i("div",{staticClass:"process-pc-label"},[i("br"),e._v(" \u5BA1\u6279\u4EBA "),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),i("div",{staticClass:"process-pc-value",on:{click:function(s){return e.handleOpenPopup(n.id)}}},[i("div",{staticClass:"process-pc-value--people"},[e.partNode[n.id]&&e.partNode[n.id].length?i("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[n.id],function(s,r){return i("span",[e._v(" "+e._s(r==0?s:`,${s}`)+" ")])}),0):i("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[i("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]})]:e._e()],2),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(n){return e.visible=n}}},[i("div",{staticStyle:{height:"100%"}},[e.visible?i("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request},on:{"update:visible":function(n){e.visible=n},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),e.labels=="5"?i("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e(),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(n){return e.visibleListMsg=n}}},[i("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),i("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(n){return e.visibleMsgComfig=n}}})],1)},$x=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-pc-label"},[e._v(" \u52A0\u7B7E\u7406\u7531\uFF1A"),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const MT="",eI={name:"counterSign",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Nt,attchViews:Yi,TopPopup:at,departPerson:Ht.departPerson,MsgList:ds},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:this.param.isCheckType||"0",orgType:this.param.isOrgType||"0",request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){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=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):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=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},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((t,i)=>{e.push(t)}),this.handleTips("",!0,"loading"),this.param.request.post("/bladex/blade-workflow/tis/addSignTask",{signPersoneds:e,taskId:this.param.taskInstId,comment:this.commentMsg}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){if(this.param.annex&&this.param.annex.length){this.otherList=this.param.annex;let e=this.otherList.split(";");this.limit=e[2],this.requires=e[1]?JSON.parse(e[1]):!1,this.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.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,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("counterSign")}}},Ph={};var tI=ve(eI,Zx,$x,!1,iI,"62fe31ec",null,null);function iI(e){for(let t in Ph)this[t]=Ph[t]}const nI=function(){return tI.exports}();var sI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-popup-content"},[i("div",{staticClass:"process-popup-content-msg"},[e.param.isMsg?i("div",[i("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px"},on:{click:function(n){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")])]):e._e(),e._m(0),i("div",{staticClass:"process-pc-value"},[i("div",{staticClass:"process-popup-textarea"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},domProps:{value:e.commentMsg},on:{input:function(n){n.target.composing||(e.commentMsg=n.target.value)}}}),i("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])]),e.param.isMsg?i("div",{staticClass:"msg-btn"},[i("span",{staticClass:"msg-btn-click",on:{click:function(n){return e.handleMakeMsg()}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()])]),i("div",{staticClass:"process-popup-content-person"},[e.nextNodeData.length?[e._l(e.nextNodeData,function(n){return[i("div",[e._v(" \u5BA1\u6279\u4EBA "),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),i("div",{staticClass:"process-pc-value",on:{click:function(s){return e.handleOpenPopup(n.id)}}},[i("div",{staticClass:"process-pc-value--people"},[e.partNode[n.id]&&e.partNode[n.id].length?i("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[n.id],function(s,r){return i("span",[e._v(" "+e._s(r==0?s:`,${s}`)+" ")])}),0):i("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[i("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(n){return[i("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u4EBA "),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),i("div",{staticClass:"process-pc-value",on:{click:function(s){return e.handleOpenPopup(n.id)}}},[i("div",{staticClass:"process-pc-value--people"},[e.partNode[n.id]&&e.partNode[n.id].length?i("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[n.id],function(s,r){return i("span",[e._v(" "+e._s(r==0?s:`,${s}`)+" ")])}),0):i("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[i("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]})]:e._e()],2),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(n){return e.visible=n}}},[i("div",{staticStyle:{height:"100%"}},[e.visible?i("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request},on:{"update:visible":function(n){e.visible=n},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),e.labels=="1"?i("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e(),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(n){return e.visibleListMsg=n}}},[i("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),i("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(n){return e.visibleMsgComfig=n}}})],1)},rI=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-pc-label"},[e._v(" \u8F6C\u5BA1\u7406\u7531\uFF1A"),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const BT="",aI={name:"delegateTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Nt,attchViews:Yi,TopPopup:at,departPerson:Ht.departPerson,MsgList:ds},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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,maxMultiple:1,checkedArray:[]},multiNodeParticipant:{},partNodeArr:{},partObjId:[],partNode:{},actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{handler(e,t){this.nextNodeData=e.nextNodeData,this.taskNode=e.taskNode,this.outGatewayUserTaskModel=e.outGatewayUserTaskModel,this.actionName=e.actionName,this.attachShow(),e.nextNodeData.length?this.nextNodeData[0].type=="userTask"||this.nextNodeData[0].type=="UserTaskModel"?(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):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=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){},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.partNodeArr[this.partObjId].map(t=>t.id).join(",");this.handleTips("",!0,"loading"),await this.param.request.post("/bladex/blade-workflow/tis/transferTask",{comment:this.commentMsg,taskId:this.param.taskInstId,assignee:e}).then(t=>{t.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(t.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,n,s="";n=t.find(a=>a.name=="delegateTaskButtonAnnex"),s=n?n.value:"",s&&(i=!0);let r="";if(typeof s!="string"&&s!=null&&s.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,r=a)}),r&&(s=r),i){const a=s.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=s;let o=this.otherList.split(":");this.limit=o[2],this.requires=JSON.parse(o[1]),this.labels=o[0]}return this.labels,this.limit,i},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.partNodeArr[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNodeArr[this.partObjId].push(t),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.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,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("delegateTask")}}},Dh={};var oI=ve(aI,sI,rI,!1,lI,"3e18ae74",null,null);function lI(e){for(let t in Dh)this[t]=Dh[t]}const cI=function(){return oI.exports}(),uI="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACZ5JREFUeF7tne1xG0cMhkE2EqeS2JXY6iLRZMb2jEdJF3YqiVNJ5EbMzIlhRDIiecAt9uPeh3+9wC5e4BEWx7O0MT4ogAIXFdigDQqgwGUFAITqQIErCgAI5YECAEINoEBMATpITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKIJM6YAgMR0w0pEAQARSTRhxhQAkJhuWIkoACAiiSbMmAIAEtMNKxEFAEQk0YQZUwBAYrphJaIAgIgkmjBjCgBITDesRBQAEJFEE2ZMAQCJ6YaViAIAIpJowowpACAx3bASUQBARBJNmDEFACSmG1YiCgCISKKHDfPn3Svb2tt/z//NtvZonzZfa8UDILWUZh+fAs9gfDgzfDSzL/aw+ehzGFsNIDHdsMpUYA/Hn2b26so2j/aw+THzGJNvAMlWGP8+BX7dvbbvT3DM+aRDAiBz0sCaOgrc796b2fmV6tbe03Xr7tai6L8DSFQ57Moq8MvuT9vY65DTrb3JGtwBJJQRjIopMM0bG/schmN/kLQuAiDFMo0jtwK+eeOy+519td82b9z7zzAAkBkisSRBgdi8cekgdJCEFOGylQJL5o2XzswM0iqT7FtUgTLzxumREq9X00ZcsYpWAM4uKlBq3jjdgO9BKLkVKHC/e2dmnwtHkg4HHaRwxnD3ggL3uwmMCZCSnypwAEjJlOHrVIGMeWO/QzU4AISizlFg3suGkb2rwgEgkRRhc12BnGG8euc4BMlTLAq+nAJlv/w7Plf1zgEg5coCT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IXs6J2KEAgDjEYqmeAgCil3MidigAIA6xWKqnAIDo5ZyIHQoAiEMsluopACB6OSdihwIA4hCLpXoKAIhezonYoQCAOMRiqZ4CAKKXcyJ2KAAgDrFYqqcAgOjlnIgdCgCIQyyW6inwD771qeduEnFsAAAAAElFTkSuQmCC",RT="";var pI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.nodeItems&&e.nodeItems.length?i("div",{staticClass:"treenode"},[e.endNode?e._e():i("div",{staticClass:"treenode-multi"},[i("div",{staticClass:"treenode-node",staticStyle:{"margin-top":"0"}},[e._l(e.nodeItems,function(n){return[e.checkType=="InclusiveGatewayModel"&&e.nodeItems.length>1?i("div",{staticClass:"treenode-checkbox",class:e.checkBoxArr.includes(n.id)?"treenode-checkbox-active":"",on:{click:function(s){return e.handleCheckBoxClick(n)}}},[i("span",[e.checkBoxArr.includes(n.id)?i("img",{staticClass:"treenode-checkbox-active-img",attrs:{src:e.check}}):e._e()]),e._v(" "+e._s(n.nodeName||n.name)+" ")]):e.checkType=="ExclusiveGatewayModel"&&e.nodeItems.length>1?i("div",{staticClass:"treenode-radio",class:e.radioArr==n.id?"treenode-radio-active":"",on:{click:function(s){return e.handleRadioClick(n)}}},[i("span"),e._v(" "+e._s(n.nodeName||n.name)+" ")]):e._e()]})],2),e.checkType=="InclusiveGatewayModel"&&e.checkBoxItem&&e.checkBoxItem.length?e._l(e.checkBoxItem,function(n){return i("div",{staticClass:"treenode-node"},[n.childNode&&n.childNode.length?i("div",[i("TreeNode",{attrs:{items:n.childNode,endNode:n.childNode.length==1,nodeType:e.nodeType,param:e.param,checkType:n.type},on:{onMultiNode:e.onMultiNode,onVars:e.onVars}})],1):i("div",{staticClass:"personselect"},[i("div",{staticClass:"personselect-name"},[e._v(" "+e._s(n.name||n.nodeName)+" ")]),i("div",{staticClass:"items-person"},[n.userList&&n.userList.length>0?i("div",{staticClass:"items-person-set",on:{click:function(s){return e.handleOpenFixedPerson(n)}}},[e._v(" \u9009\u62E9 ")]):n.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&n.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?[i("div",{staticClass:"items-person-set",on:{click:function(s){return s.stopPropagation(),e.handleOpenPopup(n)}}},[e._v(" \u8BBE\u7F6E ")])]:e._e(),n.userList&&n.userList.length>0?i("div",{staticClass:"items-person-name"},[e._v(" "+e._s(e.partNode[n.id]?e.partNode[n.id].join(","):"")+" ")]):n.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&n.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?i("div",{staticClass:"items-person-name"},[e._v(" "+e._s(e.partNode[n.id]?e.partNode[n.id].join(","):"")+" ")]):n.routeTxt&&n.routeTxt.userNames?i("div",{staticClass:"items-person-name"},[e._v(" "+e._s(n.routeTxt.userNames)+" ")]):e._e()],2),n.routeTxt&&n.routeTxt.length>0?i("div",{staticClass:"views-items-includes"},[i("div",{staticClass:"views-items-name2"},[e._v(" "+e._s("\u6240\u5C5E\u8303\u56F4")+" ")]),i("div",{staticClass:"views-items-and2"},e._l(n.routeTxt,function(s,r){return i("div",{key:s.type},[s.ids&&s.ids.length>0?i("div",[i("div",{staticClass:"include"},[i("b",{staticClass:"include include-type",class:["include-"+s.type]},[e._v(e._s(s.type=="user"?"\u7528\u6237":s.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),i("span",{staticClass:"include include-name"},[e._v(e._s(s.name))])]),r!==n.routeTxt.length-1?i("div",{staticClass:"include include-assign",class:["include-assign-"+(s.assigneeRetain?"true":"false")]},[e._v(e._s(n.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0)]):e._e()])])}):e._e(),e.checkType=="ExclusiveGatewayModel"&&e.radioItem&&e.radioItem.length?e._l(e.radioItem,function(n){return i("div",{staticClass:"treenode-node"},[n.childNode&&n.childNode.length?i("div",[i("TreeNode",{attrs:{items:n.childNode,endNode:n.childNode.length==1,nodeType:e.nodeType,param:e.param,checkType:n.type},on:{onMultiNode:e.onMultiNode,onVars:e.onVars}})],1):i("div",{staticClass:"personselect"},[i("div",{staticClass:"personselect-name"},[e._v(" "+e._s(n.name||n.nodeName)+" ")]),i("div",{staticClass:"items-person"},[n.userList&&n.userList.length>0?i("div",{staticClass:"items-person-set",on:{click:function(s){return e.handleOpenFixedPerson(n)}}},[e._v(" \u9009\u62E9 ")]):n.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&n.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?[i("div",{staticClass:"items-person-set",on:{click:function(s){return s.stopPropagation(),e.handleOpenPopup(n)}}},[e._v(" \u8BBE\u7F6E ")])]:e._e(),n.userList&&n.userList.length>0?i("div",{staticClass:"items-person-name"},[e._v(" "+e._s(e.partNode[n.id]?e.partNode[n.id].join(","):"")+" ")]):n.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"&&n.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"?i("div",{staticClass:"items-person-name"},[e._v(" "+e._s(e.partNode[n.id]?e.partNode[n.id].join(","):"")+" ")]):n.routeTxt&&n.routeTxt.userNames?i("div",{staticClass:"items-person-name"},[e._v(" "+e._s(n.routeTxt.userNames)+" ")]):e._e()],2),n.routeTxt&&n.routeTxt.length>0?i("div",{staticClass:"views-items-includes"},[i("div",{staticClass:"views-items-name2"},[e._v(" "+e._s("\u6240\u5C5E\u8303\u56F4")+" ")]),i("div",{staticClass:"views-items-and2"},e._l(n.routeTxt,function(s,r){return i("div",{key:s.type},[s.ids&&s.ids.length>0?i("div",[i("div",{staticClass:"include"},[i("b",{staticClass:"include include-type",class:["include-"+s.type]},[e._v(e._s(s.type=="user"?"\u7528\u6237":s.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),i("span",{staticClass:"include include-name"},[e._v(e._s(s.name))])]),r!==n.routeTxt.length-1?i("div",{staticClass:"include include-assign",class:["include-assign-"+(s.assigneeRetain?"true":"false")]},[e._v(e._s(n.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0)]):e._e()])])}):e._e()],2),e.endNode?i("div",{staticClass:"treenode-single"},e._l(e.nodeItems,function(n){return i("div",{staticClass:"treenode-single-items"},[i("div",{staticClass:"personselect"},[i("div",{staticClass:"personselect-name"},[e._v(" "+e._s(n.name||n.nodeName)+" ")]),n.nodeType!=="endEvent"?i("div",{staticClass:"items-person"},[n.userList&&n.userList.length>0?i("div",{staticClass:"items-person-set",on:{click:function(s){return e.handleOpenFixedPerson(n)}}},[e._v(" \u9009\u62E9 ")]):n.setPersonnel?i("div",{staticClass:"items-person-name"},[e._v(" "+e._s((n.assignees||[]).map(function(s){return s.name}).join(","))+" ")]):[i("div",{staticClass:"items-person-set",on:{click:function(s){return s.stopPropagation(),e.handleOpenPopup(n)}}},[e._v(" \u8BBE\u7F6E ")])],i("div",{staticClass:"items-person-name"},[!e.partNode[n.id]&&n.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"&&n.noPersonnel?i("div",[e._v(" \u6CA1\u6709\u53EF\u9009\u4EBA\u5458\uFF0C\u8BF7\u68C0\u67E5\u914D\u7F6E ")]):e._e(),e._v(" "+e._s(e.partNode[n.id]?e.partNode[n.id].join(","):"")+" ")])],2):e._e(),n.routeTxt&&n.routeTxt.length>0?i("div",{staticClass:"views-items-includes"},[i("div",{staticClass:"views-items-name2"},[e._v(" "+e._s("\u6240\u5C5E\u8303\u56F4")+" ")]),i("div",{staticClass:"views-items-and2"},e._l(n.routeTxt,function(s,r){return i("div",{key:s.type},[s.ids&&s.ids.length>0?i("div",[i("div",{staticClass:"include"},[i("b",{staticClass:"include include-type",class:["include-"+s.type]},[e._v(e._s(s.type=="user"?"\u7528\u6237":s.type=="dept"?"\u90E8\u95E8":"\u5C97\u4F4D"))]),i("span",{staticClass:"include include-name"},[e._v(e._s(s.name))])]),r!==n.routeTxt.length-1?i("div",{staticClass:"include include-assign",class:["include-assign-"+(s.assigneeRetain?"true":"false")]},[e._v(e._s(n.assigneeRetain=="true"?"\u4E14\u540C\u65F6\u6EE1\u8DB3":"\u6216\u8005\u6EE1\u8DB3"))]):e._e()]):e._e()])}),0)]):e._e()])])}),0):e._e(),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(n){return e.visible=n}}},[e.visible?i("departPerson",e._b({attrs:{isTitle:!1},on:{callback:e.handleCallback}},"departPerson",e.entity,!1)):e._e()],1),i("SelectFixedPerson",{attrs:{visible:e.showFixedPerson,list:e.fixedPersonList,multiple:e.currentClickItem.loopCardinality==-1,select:e.fixedSelect[e.partObjId]||[]},on:{updateList:e.handleClickFixedPerson,updateVisible:e.updateFixedPersonVisible,updateSelect:e.updateFixedSelect,confirm:e.handleSumbitFixedPerson}}),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}})],1):e._e()},dI=[];const LT="",hI={name:"TreeNode",components:{SelectFixedPerson:_h,TopPopup:at,TopTips:Nt,departPerson:Ht.departPerson},props:{items:{type:Array,default:()=>[]},endNode:{type:Boolean,default:!1},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}},checkType:{type:String,default:""}},data(){return{currentClickItem:{},fixedSelect:{},showFixedPerson:!1,fixedPersonList:[],nodeItems:[],visible:!1,checkBoxArr:[],checkBoxItem:[],radioArr:"",radioItem:[],partObjId:"",entity:{source:"0",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partNode:{},partNodeArr:{},textTips:"",statusTips:!1,typeTips:"success",gateVars:{},onMultiNodeData:{},onVarsData:{},personMake:[],personMakeList:{}}},watch:{items:{handler(e,t){e&&e.length&&(this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={},this.nodeItems=JSON.parse(JSON.stringify(e)),this.nodeItems,this.nodeItems.map(i=>{if(Array.isArray(i.assignees),i.assignees,i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),Array.isArray(i.assignees)&&i.assignees.length&&(this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),i.assignees.forEach(n=>{this.partNodeArr,this.multiNodeParticipant;const s=this.partNodeArr[i.id].find(a=>a.name==n.name),r=this.multiNodeParticipant[i.id].find(a=>a==n.id);s||this.partNodeArr[i.id].push(n),r||this.multiNodeParticipant[i.id].push(n.id)})),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.humanPerformer&&i.userTaskModelDTO.participantList.map(n=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(n.id)||this.multiNodeParticipant[i.id].push(n.id),this.partNode[i.id].includes(n.name)||this.partNode[i.id].push(n.name),this.partNodeArr[i.id].find(s=>s.name==n.name)||this.partNodeArr[i.id].push(n)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id),i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let n={taskDefId:i.id,postIds:[]};i.userTaskModelDTO.routeTxt.postList.map(s=>{n.postIds.push(s.postId)}),this.param.request.post("/auth/user/getTaskAuditor",{deptId:this.param.taskNode&&this.param.taskNode[0].vars?this.param.taskNode[0].vars._businessDeptId:"",taskPostIds:[n]}).then(s=>{let r=[],a=[],o=!1;s.data.map(p=>{p.posts.map(h=>{a.push(...h.users),h.users.length==1?r.push(...h.users):o=!0})}),r.length>i.loopCardinality&&i.loopCardinality>0&&(o=!0),o&&(r=[]);let l=[];s.data[0].posts.map(p=>{l.push({...p,projectPost:!(this.param.taskNode&&this.param.taskNode[0].vars&&this.param.taskNode[0].vars._businessDeptId),id:p.users.map(h=>h.id)})}),a.length==0&&this.$set(i,"noPersonnel",!0),r.length>0&&(this.$set(i,"noPersonnel",!0),this.partObjId=i.id,this.handleCallback(r)),i.positionArray=l})}this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(n=>{n.code==200&&(this.personMakeList=n.data)})}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.$emit("onVars",this.gateVars),this.checkType=="ExclusiveGatewayModel"&&e.length==1&&this.handleRadioClick(e[0]))},immediate:!0,deep:!0}},computed:{check(){return sl}},mounted(){},methods:{clear(){this.radioArr="",this.radioItem=[],this.checkBoxArr=[],this.checkBoxItem=[],this.multiNodeParticipant={},this.partNode={},this.partNodeArr={},this.gateVars={}},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"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleCallback(e){this.visible=!1,this.$set(this.multiNodeParticipant,this.partObjId,[]),this.$set(this.partNode,this.partObjId,[]),this.$set(this.partNodeArr,this.partObjId,[]),e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.partNodeArr[this.partObjId].push(t)}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr)},handleRadioClick(e){e&&(this.multiNodeParticipant={},this.gateVars={},this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.radioArr=e.id,this.radioItem=[e],this.handleNode(e),this.$emit("onVars",this.gateVars))},handleCheckBoxClick(e){e&&(this.checkBoxArr.includes(e.id)?(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&delete this.gateVars[e.incomingConditionItemList[0].itemName],delete this.multiNodeParticipant[e.id],this.checkBoxItem.splice(this.checkBoxArr.indexOf(e.id),1),this.checkBoxArr.splice(this.checkBoxArr.indexOf(e.id),1)):(e.incomingConditionItemList.length>0&&e.incomingConditionItemList[0].itemName&&e.incomingConditionItemList[0].compareValue&&(this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.checkBoxItem.push(e),this.checkBoxArr.push(e.id)),this.handleNode(e),this.$emit("onVars",this.gateVars))},handleNode(e){let t=e.childNode&&e.childNode.length?e.childNode:e&&e.length?e:[e];t&&t.length&&t.forEach((i,n)=>{i.participantList&&i.participantList.length?i.participantList.forEach((s,r)=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.partNodeArr[i.id]||(this.partNodeArr[i.id]=[]),this.multiNodeParticipant[i.id].includes(s.id)||this.multiNodeParticipant[i.id].push(s.id),this.partNode[i.id].includes(s.name)||this.partNode[i.id].push(s.name),this.partNodeArr[i.id].find(a=>a.name==s.name)||this.partNodeArr[i.id].push(s)}):i.id&&i.humanPerformerName=="\u56FA\u5B9A\u4EBA\u5458"&&this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[i.id]}).then(s=>{s.code==200&&(this.partNode[i.id]={},this.partNode[i.id]=s.data[i.id].split(";"))}),this.nodeType=="outing"&&(this.onVarsData&&(this.gateVars={...this.gateVars,...this.onVarsData}),this.$emit("onVars",this.gateVars))})},handleOpenFixedPerson(e){this.currentClickItem=e,this.partObjId=e.id,this.showFixedPerson=!0,this.fixedPersonList=e.userList||[]},updateFixedPersonVisible(e){this.showFixedPerson=e},updateFixedSelect(e){},handleSumbitFixedPerson(e){this.$set(this.fixedSelect,this.partObjId,e),this.$set(this.multiNodeParticipant,this.partObjId,[]),this.$set(this.partNode,this.partObjId,[]),this.$set(this.partNodeArr,this.partObjId,[]),e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.userId),this.partNode[this.partObjId].push(t.realName),this.partNodeArr[this.partObjId].push({...t,name:t.realName,id:t.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},handleClickFixedPerson(e){this.$set(this.multiNodeParticipant,this.partObjId,[]),this.$set(this.partNode,this.partObjId,[]),this.$set(this.partNodeArr,this.partObjId,[]),e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.userId),this.partNode[this.partObjId].push(t.realName),this.partNodeArr[this.partObjId].push({...t,name:t.realName,id:t.userId})}),this.onMultiNodeData&&(this.multiNodeParticipant={...this.multiNodeParticipant,...this.onMultiNodeData}),this.$emit("onMultiNode",this.multiNodeParticipant),this.$emit("onMultiNodeObj",this.partNodeArr),this.showFixedPerson=!1},handleOpenPopup(e){if(this.visible=!0,this.partObjId=e.id,this.nodeType=="nexting"?e={...e,...e.userTaskModelDTO}:this.nodeType=="outing"?e={...e,humanPerformer:{name:e.humanPerformerName}}:this.handleTips("\u52A0\u8F7D\u5931\u8D25,\u8BF7\u5237\u65B0",!0,"error"),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];this.multiNodeParticipant,this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((n,s)=>{i.push({type:3,id:n.id,subjectId:n.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"||e.humanPerformerName=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],n=[];e.routeTxt.departmentIds.forEach((s,r)=>{e.routeTxt.departmentIds.length>1?i.push(s.rangeId):t=s.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((s,r)=>{n.push({type:3,id:s.id,deptId:t,subjectId:s.subjectId})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCodeArray:i,checkedArray:n}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCode:t,checkedArray:n}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"||e.humanPerformerName=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"){let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,n)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:[5],request:this.param.request,codeType:[8],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,positionArray:e.positionArray,checkedArray:t}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.partNodeArr[e.id].forEach((i,n)=>{t.push({type:3,id:i.id,subjectId:i.subjectId})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:t}}},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},onMultiNode(e){e&&(this.onMultiNodeData=e,this.multiNode={...this.multiNode,...this.onMultiNodeData},this.$emit("onMultiNode",this.multiNode),this.$emit("onMultiNodeObj",this.partNodeArr))},onVars(e){e&&(this.onVarsData=e,this.getVars={...this.gateVars,...this.onVarsData},this.$emit("onVars",this.getVars))}}},Oh={};var fI=ve(hI,pI,dI,!1,mI,"4064b34c",null,null);function mI(e){for(let t in Oh)this[t]=Oh[t]}const gI=function(){return fI.exports}();var yI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"test"},[e.param.nodeLoading?[e._m(0)]:[e.nodeItems&&e.nodeItems.length?i("div",e._l(e.nodeItems,function(n,s){return i("div",{key:s,staticClass:"treeperson"},[n.nodeType=="endEvent"?[i("div",[e._v(" \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")])]:n.branches&&n.branches.length?[e.nodeType=="nexting"&&n.nodeType!="inclusiveGateway"?[n.nodeType=="exclusiveGateway"&&n.branches.length>1?i("div",{staticClass:"treeperson-firstnode"},[e._m(1,!0),e._l(n.branches,function(r,a){return i("div",{key:a,staticClass:"treeperson-radio",class:e.firstCheck==(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-radio-active":"",on:{click:function(o){return e.handleFirstNodeClick(r,n.branches)}}},[i("span"),e._v(" "+e._s(r.id.includes("Flow")?r.nodeName||r.name?r.nodeName||r.name:r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:"":r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name||r.nodeName||r.name:r.nodeName||r.name)+" ")])})],2):n.nodeType=="exclusiveGateway"&&n.branches.length==1?i("div",{staticClass:"treeperson-firstnode"},e._l(n.branches,function(r,a){return i("div",[i("span"),i("tree-person",{ref:"TreePersonRef",refInFor:!0,attrs:{items:r.branches&&r.branches.length>0?r.branches:[r],nodeType:"nexting",param:e.param},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj}})],1)}),0):n.nodeType=="inclusiveGateway"&&n.branches.length>=1?i("div",{staticClass:"treeperson-firstnode"},[e._m(2,!0),e._l(n.branches,function(r,a){return i("div",{key:a,staticClass:"treeperson-radio",class:e.firstCheck==(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-radio-active":"",on:{click:function(o){return e.handleMultiFirstNodeClick(r)}}},[i("span"),e._v(" "+e._s(r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:r.nodeName||r.name)+" ")])})],2):i("div",{staticClass:"treeperson-firstnode"},[e._m(3,!0),e._l(n.branches,function(r,a){return i("div",{key:a,staticClass:"treeperson-radio",class:e.firstCheck==(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-radio-active":"",on:{click:function(o){return e.handleFirstNodeClick(r,n.branches)}}},[i("span"),e._v(" "+e._s(r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:r.nodeName||r.name)+" ")])})],2),e.childrenItems&&e.childrenItems.length>0&&e.childrenItems[0].nodeInfoDTO&&e.childrenItems[0].nodeInfoDTO.nodeType!="userTask"?[i("tree-person",{key:e.firstCheck,ref:"TreePersonRef",refInFor:!0,attrs:{items:[e.firstCheckItem],nodeType:"nexting",param:e.param},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj}})]:e.childrenItems&&e.childrenItems.length>1&&e.childrenItems[0].nodeInfoDTO&&e.childrenItems[0].nodeInfoDTO.nodeType=="userTask"?[e._m(4,!0),i("div",{staticClass:"treeperson-checkbox-box"},e._l(e.childrenItems,function(r,a){return i("div",{key:a,staticClass:"treeperson-checkbox",class:e.firstMultiCheckSub.includes(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-checkbox-active":"",on:{click:function(o){return e.handleMultiFirstNodeClickSub(r,e.childrenItems)}}},[i("span"),e._v(" "+e._s(r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:r.nodeName||r.name)+" ")])}),0),e._l(e.filterMultiItemsSub(e.childrenItems),function(r){return[i("TreeNode",{attrs:{items:r.branches&&r.branches.length>0?r.branches:[r.nodeInfoDTO?r.nodeInfoDTO:r],endNode:!0,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:function(a){return e.onMultiNode(a,"multi")},onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]})]:[i("TreeNode",{attrs:{items:e.childrenItems,endNode:e.childrenEndItems,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]]:e.nodeType=="nexting"&&n.nodeType=="inclusiveGateway"?[n.nodeType=="inclusiveGateway"&&n.branches.length>=1?i("div",{staticClass:"treeperson-firstnode"},[e._m(5,!0),i("div",{staticClass:"treeperson-checkbox-box"},e._l(n.branches,function(r,a){return i("div",{key:a,staticClass:"treeperson-checkbox",class:e.firstMultiCheck.includes(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-checkbox-active":"",on:{click:function(o){return e.handleMultiFirstNodeClick(r,n.branches)}}},[i("span"),e._v(" "+e._s(r.nodeInfoDTO?r.nodeInfoDTO.nodeName||r.nodeInfoDTO.name:r.nodeName||r.name)+" ")])}),0)]):e._e(),e._l(e.filterMultiItems(n.branches),function(r){return[i("TreeNode",{attrs:{items:r.branches&&r.branches.length>0?r.branches:[r.nodeInfoDTO?r.nodeInfoDTO:r],endNode:!0,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:function(a){return e.onMultiNode(a,"multi")},onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]})]:e._e()]:n.nodeType=="exclusiveGateway"&&n.branches&&n.branches.length>1?[e._m(6,!0),n.type=="ExclusiveGatewayModel"&&n.branches.length==1?e._e():i("div",{staticClass:"treeperson-firstnode"},e._l(n.branches,function(r,a){return i("div",{key:a,staticClass:"treeperson-checkbox",class:e.firstCheck==r.id?"treeperson-checkbox-active":"",on:{click:function(o){return e.handleFirstNodeClick(r,n.branches)}}},[i("span"),e._v(" "+e._s(r.nodeName||r.name)+" ")])}),0),i("TreeNode",{attrs:{items:e.childrenItems,endNode:e.childrenEndItems,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:function(r){return e.onMultiNode(r,"multi")},onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]:n.nodeType=="exclusiveGateway"&&n.branches&&n.branches.length==1?[e._m(7,!0),e.nodeType=="nexting"?[i("TreeNode",{attrs:{items:[n.branches[0]],endNode:e.childrenEndItems,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]:[i("TreeNode",{attrs:{items:[n.branches[0]],endNode:!0,nodeType:"nexting",param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]]:n.id||n.nodeInfoDTO&&n.nodeInfoDTO.id?[e.nodeType=="nexting"?[n.nodeInfoDTO&&n.nodeInfoDTO.nodeType=="exclusiveGateway"?[e._m(8,!0),e._l(n.nodeInfoDTO.branches,function(r,a){return i("div",{key:a,staticClass:"treeperson-radio",class:e.firstCheck==(r.nodeInfoDTO?r.nodeInfoDTO.id:r.id)?"treeperson-radio-active":"",on:{click:function(o){return e.handleFirstNodeClick(r,n.nodeInfoDTO.branches)}}},[i("span"),e._v(" "+e._s(r.nodeName||r.name)+" ")])}),i("tree-person",{key:e.firstCheck,ref:"TreePersonRef",refInFor:!0,attrs:{items:[e.firstCheckItem],nodeType:"nexting",param:e.param},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj}})]:[e._m(9,!0),i("TreeNode",{attrs:{items:[n.nodeInfoDTO?n.nodeInfoDTO:n],endNode:e.childrenEndItems,nodeType:e.nodeType,param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]]:[i("TreeNode",{attrs:{items:[n],endNode:!0,nodeType:"nexting",param:e.param,checkType:e.firstType},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj,onVars:e.onVars}})]]:void 0],2)}),0):e._e()]],2)},vI=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("span",[e._v("\u4E0B\u4E00\u8282\u70B9: ")]),i("b",{staticStyle:{"font-size":"16px"}},[e._v("\u8282\u70B9\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u540E......")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),i("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),i("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),i("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),i("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),i("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),i("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),i("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),i("span",{staticClass:"treeperson-title--re"},[e._v("*")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"treeperson-title"},[e._v(" \u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9 "),i("span",{staticClass:"treeperson-title--re"},[e._v("*")])])}];const FT="",AI={name:"tree-person",components:{TreeNode:gI},props:{items:{type:Array,default:()=>[]},nodeType:{type:String,default:"outing"},param:{type:Object,default:()=>{}}},data(){return{nodeItems:[],visible:!1,partObjId:"",partNode:[],firstCheck:"",firstCheckItem:{},firstType:"",firstMultiCheck:[],firstMultiCheckItem:[],firstMultiType:[],firstMultiCheckSub:[],firstMultiCheckItemSub:[],firstMultiTypeSub:[],childrenItems:[],childrenEndItems:!1,childrenItemsSub:[],childrenEndItemsSub:!1,gateVars:{},multiNode:{},partNodeArr:{},getVars:{}}},watch:{items:{handler(e,t){e&&e.length&&(this.nodeType=="nexting"?(this.nodeItems=[],this.childrenEndItems=!0,e.forEach(i=>{i={...i,...i.userTaskModelDTO},this.nodeItems.push(i)})):this.nodeType=="outing"&&(this.nodeItems=e),this.nodeItems.length==1&&this.nodeItems[0].type=="ExclusiveGatewayModel"&&this.nodeItems[0].childNode&&this.nodeItems[0].childNode.length==1&&this.handleFirstNodeClick(this.nodeItems[0]),this.nodeItems)},immediate:!0,deep:!0}},methods:{filterMultiItems(e=[]){return this.firstMultiCheck,e.filter(t=>this.firstMultiCheck.includes(t.nodeInfoDTO?t.nodeInfoDTO.id:t.id))},filterMultiItemsSub(e=[]){return this.firstMultiCheckSub,e.filter(t=>this.firstMultiCheckSub.includes(t.nodeInfoDTO?t.nodeInfoDTO.id:t.id))},onMultiNode(e,t=""){t&&Object.prototype.toString.call(e)=="[object Object]"?Object.prototype.toString.call(this.multiNode)=="[object Object]"?Object.keys(e).forEach(i=>{e[i]||(e[i]=[""]),e[i]&&e[i].length>=1?this.multiNode[i]=e[i].filter(n=>n):this.multiNode[i]=e[i]}):this.multiNode=e:this.multiNode=e,this.$emit("onMultiNode",this.multiNode)},onMultiNodeObj(e){this.partNodeArr=e,this.$emit("onMultiNodeObj",this.partNodeArr)},onVars(e){e?this.getVars={...this.gateVars,...e}:this.getVars={...this.gateVars},this.$emit("onVars",this.getVars)},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"||e=="\u56FA\u5B9A\u89D2\u8272/\u5C97\u4F4D"},handleMultiFirstNodeClick(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),this.firstMultiCheck.includes(i.id)){this.firstMultiCheck=this.firstMultiCheck.filter(n=>n!=i.id),this.firstMultiCheckItem=this.firstMultiCheckItem.filter(n=>n.id!=i.id),this.firstMultiType=this.firstMultiType.filter(n=>n!=i.nodeType),delete this.param.selChildrenItems[i.id];return}if(i){this.firstMultiCheck.push(i.id),this.firstMultiCheckItem.push(i),this.firstMultiType.push(i.nodeType);let n=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),t.forEach(s=>{delete this.param.selChildrenItems[s.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(r=>r.nodeInfoDTO||r)}),this.gateVars={},n.forEach(s=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(s.incomingConditionItemList)&&s.incomingConditionItemList.length>0&&(this.param.vars[s.incomingConditionItemList[0].itemName]=s.incomingConditionItemList[0].compareValue,this.gateVars[s.incomingConditionItemList[0].itemName]=s.incomingConditionItemList[0].compareValue)})}},handleMultiFirstNodeClickSub(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),this.firstMultiCheckSub.includes(i.id)){this.firstMultiCheckSub=this.firstMultiCheckSub.filter(n=>n!=i.id),this.firstMultiCheckItemSub=this.firstMultiCheckItemSub.filter(n=>n.id!=i.id),this.firstMultiTypeSub=this.firstMultiTypeSub.filter(n=>n!=i.nodeType),this.childrenItemsSub=this.childrenItemsSub.filter(n=>n.id!=i.id),t.forEach(n=>{delete this.param.selChildrenItems[n.nodeInfoDTO?n.nodeInfoDTO.id:n.id]}),delete this.param.selChildrenItems[i.id];return}if(i){this.firstMultiCheckSub.push(i.id),this.firstMultiCheckItemSub.push(i),this.firstMultiTypeSub.push(i.nodeType);let n=[i];i.branches&&i.branches.length?(this.childrenItemsSub.push(i.branches),this.childrenEndItemsSub=!1):(this.childrenItemsSub.push(i),this.childrenEndItemsSub=!0),t.forEach(s=>{delete this.param.selChildrenItems[s.nodeInfoDTO?s.nodeInfoDTO.id:s.id],this.param.selChildrenItems[i.id]=(this.childrenItemsSub||[]).map(r=>r.nodeInfoDTO||r)}),this.gateVars={},n.forEach(s=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(s.incomingConditionItemList)&&s.incomingConditionItemList.length>0&&(this.param.vars[s.incomingConditionItemList[0].itemName]=s.incomingConditionItemList[0].compareValue,this.gateVars[s.incomingConditionItemList[0].itemName]=s.incomingConditionItemList[0].compareValue)})}},handleFirstNodeClick(e,t=[]){let i=e;if(i&&i.nodeInfoDTO&&(i=i.nodeInfoDTO),i){this.firstCheck=i.id,this.firstCheckItem=i,this.firstType=i.nodeType;let n=[i];i.branches&&i.branches.length?(this.childrenItems=i.branches,this.childrenEndItems=!1):(this.childrenItems=[i],this.childrenEndItems=!0),t.forEach(s=>{const r=this.param.selChildrenItems[s.nodeInfoDTO?s.nodeInfoDTO.id:s.id];Array.isArray(r)&&r.forEach(a=>{delete this.param.selChildrenItems[a.id]}),delete this.param.selChildrenItems[s.nodeInfoDTO?s.nodeInfoDTO.id:s.id],this.param.selChildrenItems[i.id]=(this.childrenItems||[]).map(a=>a.nodeInfoDTO||a)}),this.gateVars={},n.forEach(s=>{(!this.param||!this.param.vars)&&(this.param.vars={}),Array.isArray(s.incomingConditionItemList)&&s.incomingConditionItemList.length>0&&(this.param.vars[s.incomingConditionItemList[0].itemName]=s.incomingConditionItemList[0].compareValue,this.gateVars[s.incomingConditionItemList[0].itemName]=s.incomingConditionItemList[0].compareValue)})}}}},Mh={};var bI=ve(AI,yI,vI,!1,CI,"04a361c0",null,null);function CI(e){for(let t in Mh)this[t]=Mh[t]}const wI=function(){return bI.exports}();var EI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"top-popup-zindex",class:e.className,style:`${e.isIndex?`z-index:${e.isIndex}`:""}`},[i("div",{staticClass:"top-popup-mask",style:e.show&&e.isMask?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;",on:{click:function(n){e.isMaskClose&&e.handleClose()}}}),!e.isTips&&!e.isDrawer?i("div",{staticClass:"top-popup",style:e.show?"transform: translateY(0)":"transform: translateY(150%)"},[i("div",{staticClass:"top-popup-header"},[i("div",{staticClass:"header-cancel",on:{click:e.handleCancel}},[e._v(" "+e._s(e.cancelText)+" ")]),i("div",{staticClass:"header-title"},[e._v(e._s(e.titleText))]),i("div",{staticClass:"header-comfig",on:{click:e.handleComfig}},[e._v(" "+e._s(e.comfigText)+" ")])]),i("div",{staticClass:"top-popup-body"},[e._t("default")],2)]):!e.isTips&&e.isDrawer?i("div",{staticClass:"top-popup-drawer",class:e.show?"top-popup-drawer--active":"",style:e.width?`width:${e.width};`:""},[i("div",{staticClass:"top-popup-drawer--body"},[e._t("default")],2)]):e.isTips&&!e.isDrawer?i("div",{staticClass:"top-tips",style:e.show?"visibility: visible; opacity: 1; transform: scale(1)":"visibility: hidden; opacity: 0; transform: scale(1.2)"},[i("div",{staticClass:"top-tips-header"},[e._v(e._s(e.titleText))]),i("div",{staticClass:"top-tips-body"},[e._v(e._s(e.context))]),i("div",{staticClass:"top-tips-footer"},[i("div",{staticClass:"top-tips-btn",on:{click:e.handleCancel}},[e._v(" "+e._s(e.cancelText)+" ")]),i("div",{staticClass:"top-tips-btn",on:{click:e.handleComfig}},[e._v(" "+e._s(e.comfigText)+" ")])])]):e._e()])},xI=[];const VT="",II={data(){},props:{titleText:{default:"top-popup",type:String},context:{default:"\u5185\u5BB9",type:String},cancelText:{default:"\u53D6\u6D88",type:String},comfigText:{default:"\u786E\u5B9A",type:String},comfig:{default:null,type:Function},cancel:{default:null,type:Function},isMask:{default:!0,type:Boolean},isMaskClose:{default:!0,type:Boolean},isTips:{default:!1,type:Boolean},isDrawer:{default:!1,type:Boolean},visible:{default:!1,type:Boolean},isIndex:{type:Number},width:{type:String,default:"95vw"},className:{type:String,default:""},appendClass:{type:String,default:""}},data(){return{show:!1,top:0,useHidden:!1}},watch:{visible:{handler(e,t){if(e)this.show=e,document.body.style.position=="fixed"&&document.body.style.overflow=="hidden"?this.useHidden=!0:this.useHidden=!1,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=`${-top}px`,document.body.style.overflow="hidden";else{if(this.useHidden){this.show=e,this.$emit("update:visible",!1);return}else document.body.style.position="",document.body.style.top="",document.body.style.overflow="visible",window.scrollTo(0,this.top);this.show=e,this.$emit("update:visible",!1)}},immediate:!0}},methods:{handleOpen(){this.show=!0,this.top=window.scrollY,document.body.style.position="fixed",document.body.style.top=-this.top+"px"},handleClose(){document.body.style.position="",document.body.style.top="",window.scrollTo(0,this.top),this.show=!1,this.$emit("update:visible",!1)},handleCancel(){typeof this.cancel=="function"&&this.cancel(),this.handleClose()},handleComfig(){typeof this.comfig=="function"&&this.comfig()},isIOS(){let e=navigator.userAgent.includes("iPhone"),t=navigator.userAgent.includes("iPad");return e||t}},mounted(){this.$nextTick(()=>{const e=document.getElementsByClassName("process-warp")[0]?document.getElementsByClassName("process-warp")[0]:document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];e.append?e.append(this.$el):e.appendChild(this.$el),document.documentElement.scrollTop||document.body.scrollTop})}},Bh={};var TI=ve(II,EI,xI,!1,_I,"37f0c2ca",null,null);function _I(e){for(let t in Bh)this[t]=Bh[t]}const Rh=function(){return TI.exports}();var NI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"sign-container",style:e.setDynamicVars},[i("div",{staticClass:"canvas-container"},[e.paths.length==0&&e.currentPath.length==0?i("div",{staticClass:"tips"},[e._v("\u8BF7\u5728\u6B64\u533A\u57DF\u7B7E\u5B57")]):e._e(),i("canvas",{ref:"canvasRef",class:{"uni-canvas-style":e.isUniCanvas()},attrs:{id:"canvas-id","canvas-id":"canvas-id"},on:{touchmove:e.draw,touchstart:e.startDrawing,touchend:e.finishDrawing}})]),i("div",{staticClass:"history"},[i("div",{staticClass:"img-grid",on:{click:function(n){return e.useHistory(0)}}},[e.historyPics[0]?i("img",{attrs:{src:e.historyPics[0]?e.historyPics[0].url:"",fit:"scale-down"}}):e._e()]),i("div",{staticClass:"img-grid",on:{click:function(n){return e.useHistory(1)}}},[e.historyPics[1]&&e.historyPics[1].url?i("img",{attrs:{src:e.historyPics[1].url,fit:"scale-down"}}):e._e()]),i("div",{staticClass:"img-grid",staticStyle:{"margin-right":"10rpx"},on:{click:function(n){return e.useHistory(2)}}},[e.historyPics[2]&&e.historyPics[2].url?i("img",{attrs:{src:e.historyPics[2].url,fit:"scale-down"}}):e._e()])]),i("div",{staticClass:"actions-area"},[i("button",{staticClass:"btns-common cmf-btn",on:{click:e.confirmSave}},[e._v("\u786E\u8BA4")]),i("button",{staticClass:"btns-common",on:{click:e.cancelSign}},[e._v("\u8FD4\u56DE")]),i("button",{staticClass:"btns-common",on:{click:e.undo}},[e._v("\u64A4\u9500")]),i("button",{staticClass:"btns-common",on:{click:e.clearCanvas}},[e._v("\u6E05\u7A7A")])]),i("signDrawer",{ref:"TopPopupSign",attrs:{visible:e.confirmVisible,titleText:"",isDrawer:!1,isTips:!0,context:"\u63D0\u4EA4\u4E4B\u540E\u5C06\u4E0D\u80FD\u518D\u4FEE\u6539,\u786E\u8BA4\u8981\u63D0\u4EA4\u7B7E\u540D\u5417?",comfig:e.saveSignature},on:{"update:visible":function(n){return e.confirmVisible=n}}})],1)},kI=[];const jT="",SI={props:{request:{type:Function,default:()=>{}}},components:{signDrawer:Rh},data(){return{ctx:null,signatureImage:"",actionHeight:0,historyHeight:0,isDrawing:!1,paths:[],currentPath:[],historyPics:[],savaClock:!1,confirmVisible:!1}},methods:{startDrawing(e){if(this.$refs.canvasRef.getContext){this.isDrawing=!0,this.currentPath=[];const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,n=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.beginPath(),this.ctx.moveTo(i,n),this.currentPath.push({x:i,y:n})}else this.isDrawing=!0,this.currentPath=[],this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y})},draw(e){if(!!this.isDrawing)if(this.$refs.canvasRef.getContext&&this.currentPath.length>0){const t=this.$refs.canvasRef.getBoundingClientRect(),i=(e.touches[0].clientX-t.left)*(this.$refs.canvasRef.width/t.width)/window.devicePixelRatio,n=(e.touches[0].clientY-t.top)*(this.$refs.canvasRef.height/t.height)/window.devicePixelRatio;this.ctx.lineWidth=3,this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.strokeStyle="#000000",this.ctx.imageSmoothingEnabled=!0,this.ctx.imageSmoothingQuality="high",this.$refs.canvasRef.style.imageRendering="auto",this.ctx.lineTo(i,n),this.ctx.stroke(),this.currentPath.push({x:i,y:n})}else this.currentPath.length>0&&(this.currentPath.push({x:e.touches[0].x,y:e.touches[0].y}),this.ctx.moveTo(this.currentPath[this.currentPath.length-2].x,this.currentPath[this.currentPath.length-2].y),this.ctx.lineTo(this.currentPath[this.currentPath.length-1].x,this.currentPath[this.currentPath.length-1].y),this.ctx.setLineWidth(3),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0))},undo(){if(this.$refs.canvasRef.getContext){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height);for(let e of this.paths)for(let t=0;t<e.length-1;t++){const{x:i,y:n}=e[t];t===0?(this.ctx.beginPath(),this.ctx.moveTo(i,n)):(this.ctx.lineTo(i,n),this.ctx.stroke())}}else if(this.paths.length>0){this.paths.pop(),this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0);for(let e of this.paths)for(let t=0;t<e.length-1;t++)this.ctx.moveTo(e[t].x,e[t].y),this.ctx.lineTo(e[t+1].x,e[t+1].y),this.ctx.lineCap="round",this.ctx.lineJoin="round",this.ctx.setLineWidth(4),this.ctx.setStrokeStyle("#000"),this.ctx.stroke(),this.ctx.draw(!0);this.ctx.draw(!0)}this.currentPath=[]},finishDrawing(e){this.paths.push(this.currentPath),this.currentPath=[],this.isDrawing=!1},clearCanvas(){var e,t;(t=(e=this.$refs)==null?void 0:e.canvasRef)!=null&&t.getContext?(this.ctx.clearRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,this.$refs.canvasRef.width,this.$refs.canvasRef.height),this.signatureImage="",this.paths=[]):(this.ctx.clearRect(0,0,this.$refs.canvasRef.$el.offsetWidth,this.$refs.canvasRef.$el.offsetHeight),this.ctx.draw(!0),this.signatureImage="",this.paths=[]),this.currentPath=[],this.$emit("saveSignature","",!1)},cancelSign(){this.clearCanvas(),this.$emit("close")},fixAccuracy(e,t){const i=new Blob([e],{type:"text/plain"}),r=new File([i],"text.txt").size/1024;if(r<=64){const a=document.getElementById("canvas-id");return this.getRotatedDataURL(a,-90,t)}else{if(r>300)return null;{let a,o;if(t<.005)return null;if(t-.05>0){a=t-.05;const l=document.getElementById("canvas-id");return o=this.getRotatedDataURL(l,-90,a),this.fixAccuracy(o,a)}else{a=t/2;const l=document.getElementById("canvas-id");return o=this.getRotatedDataURL(l,-90,a),this.fixAccuracy(o,a)}}}},confirmSave(){if(this.paths.length==0){this.$emit("validateFail","\u8BF7\u7B7E\u5B57!");return}this.confirmVisible=!0},saveSignature(){if(this.confirmVisible=!1,this.savaClock)return;this.savaClock=!0;let e=this;if(this.$refs.canvasRef.getContext){let t=.6;const i=document.getElementById("canvas-id");return this.getRotatedDataURL(i,-90,t),!0}else uni.canvasToTempFilePath({canvasId:"canvas-id",success(t){e.signatureImage=t.tempFilePath;let i=JSON.parse(localStorage.getItem("signaturesArr"))||[];i.unshift(this.signatureImage),this.$set(this,"historyPics",i.slice(0,3)),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),e.$emit("saveSignature",e.signatureImage)}},e)},isUniCanvas(){var e;return!((e=this.$refs.canvasRef)!=null&&e.getContext)},disableWeChatScroll(e){e.preventDefault()},useHistory(e){this.historyPics[e]&&this.$emit("saveSignature",this.historyPics[e],!0)},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},getRotatedDataURL(e,t,i){let n=e.width/window.devicePixelRatio,s=e.height/window.devicePixelRatio,r=t*Math.PI/180,a=Math.max(n*Math.abs(Math.cos(r)),s*Math.abs(Math.sin(r))),o=Math.max(n*Math.abs(Math.sin(r)),s*Math.abs(Math.cos(r)));const l=document.createElement("canvas"),p=l.getContext("2d");l.width=a,l.height=o,p.translate(a/2,o/2),p.rotate(r),p.drawImage(e,-n/2,-s/2,n,s),l.toBlob(h=>{this.uploadImage(h)},"image/png",.95)},async uploadImage(e,t){this.loading=!0;const i=new FormData;i.append("file",e,t||`signature-${Date.now()}.png`);const n=await this.request.post("/file/upload",i,{headers:{"Content-Type":"multipart/form-data"}});if(this.loading=!1,!n.success)return;let s=JSON.parse(localStorage.getItem("signaturesArr"))||[];s.unshift(n.data),this.$set(this,"historyPics",s.slice(0,3)),localStorage.setItem("signaturesArr",JSON.stringify(this.historyPics)),this.$emit("saveSignature",n.data,!0)}},computed:{setDynamicVars(){return{"--action-height":`${this.historyHeight}px`}}},mounted(){var e;if(this.historyHeight=(e=document.querySelector(".history"))==null?void 0:e.offsetHeight,this.$refs.canvasRef.getContext){let t=document.querySelector(".canvas-container");if(t){let i=document.getElementById("canvas-id");const n=t.offsetWidth,s=t.offsetHeight-this.actionHeight-this.historyHeight;i.style.width=`${n}px`,i.style.height=`${s}px`,i.width=n*window.devicePixelRatio,i.height=s*window.devicePixelRatio,this.ctx=this.$refs.canvasRef.getContext("2d"),this.ctx.scale(window.devicePixelRatio,window.devicePixelRatio),this.ctx.fillStyle="#fff",this.ctx.fillRect(0,0,i.width,i.height)}}else{this.ctx=uni.createCanvasContext("canvas-id",this);const t=uni.getSystemInfoSync().pixelRatio;this.ctx.scale(t,t)}document.addEventListener("touchmove",this.disableWeChatScroll,{passive:!1}),localStorage.getItem("signaturesArr")?this.historyPics=JSON.parse(localStorage.getItem("signaturesArr")):this.historyPics=[]},beforeDestroy(){document.removeEventListener("touchmove",this.disableWeChatScroll)}},Lh={};var PI=ve(SI,NI,kI,!1,DI,"58762489",null,null);function DI(e){for(let t in Lh)this[t]=Lh[t]}const OI=function(){return PI.exports}();var MI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-popup-content"},[e.param.ProcessInsObj&&e.param.ProcessInsObj.processDefId!="obj_94014ede99b6495d8f6d5977314faa15"?i("div",{staticClass:"process-popup-content-msg"},[e.param.isQuickReply?i("div",{staticClass:"process-pc-label"},[e._v("\u5FEB\u6377\u56DE\u590D")]):e._e(),e.param.isQuickReply?i("div",{staticClass:"process-pc-value",staticStyle:{display:"flex"}},[i("div",{staticClass:"process-radio",staticStyle:{width:"100%"}},[e.param.isDocument?e._l(e.msgCheckList,function(n){return i("div",{staticClass:"process-radio-item",class:n==e.commentMsg?"process-radio-item--check":"",on:{click:function(){return e.commentMsg=n}}},[i("span"),e._v(" "+e._s(n)+" ")])}):e._l(e.msgCheckListS,function(n){return i("div",{staticClass:"process-radio-item",class:n==e.commentMsg?"process-radio-item--check":"",on:{click:function(){return e.commentMsg=n}}},[i("span"),e._v(" "+e._s(n)+" ")])}),e.param.isMsg?i("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px","margin-left":"auto"},on:{click:function(n){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")]):e._e()],2)]):e._e(),e.param.isMsg&&!e.param.isQuickReply?i("div",[i("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px"},on:{click:function(n){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")])]):e._e(),i("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u610F\u89C1 "),e.param.isRequire?i("span",{staticClass:"process-pc-label--re"},[e._v("*")]):e._e()]),i("div",{staticClass:"process-pc-value"},[i("div",{staticClass:"process-popup-textarea"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},domProps:{value:e.commentMsg},on:{input:function(n){n.target.composing||(e.commentMsg=n.target.value)}}}),i("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])]),e.param.isMsg?i("div",{staticClass:"msg-btn"},[i("span",{staticClass:"msg-btn-click",on:{click:function(n){return e.handleMakeMsg()}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()])]):e._e(),i("div",{staticClass:"process-popup-content-person"},[e.nextNodeData.length==1&&e.nextNodeData[0].nodeType=="endEvent"?i("div",[e._v(" \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")]):e.nextNodeData&&e.nextNodeData.nodeType=="endEvent"?i("div",[e._v(" \u4E0B\u4E00\u8282\u70B9\uFF1A\u7ED3\u675F\u4E8B\u4EF6 ")]):e.param.ProcessInsObj.taskParentId?e._e():i("TreePerson",{ref:"TreePersonRef",attrs:{items:e.nextNodeData,nodeType:"nexting",param:e.param},on:{onMultiNode:e.onMultiNode,onMultiNodeObj:e.onMultiNodeObj}})],1),e._t("completeSlot"),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(n){return e.visible=n}}},[i("div",{staticStyle:{height:"100%"}},[e.visible?i("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible},on:{"update:visible":function(n){e.visible=n},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(n){return e.visibleListMsg=n}}},[i("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),i("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(n){return e.visibleMsgComfig=n}}}),e.labels=="1"?i("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e(),i("signDrawer",{ref:"TopPopupSign",attrs:{visible:e.signVisible,titleText:"\u7B7E\u5B57",isDrawer:!0,width:"100vw"},on:{"update:visible":function(n){return e.signVisible=n}}},[i("div",{staticStyle:{height:"100%"}},[e.signVisible?i("TopSign",{attrs:{request:e.param.request},on:{saveSignature:e.handleSignature,validateFail:e.noticeFail,close:e.handleClose}}):e._e()],1)])],2)},BI=[];const UT="",RI={name:"complete",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Nt,attchViews:Yi,TopPopup:at,departPerson:Ht.departPerson,MsgList:ds,TreePerson:wI,TopSign:OI,signDrawer:Rh},computed:{check(){return sl},checkS(){return uI},isSelectPerson(){if(this.pureTip=!1,this.nextNodeData,this.taskNode,this.multiNodeParticipant,this.$refs.TreePersonRef,this.param,Array.isArray(this.nextNodeData)&&this.nextNodeData[0].nodeType!="endEvent"){let e=this.param.selChildrenItems||{},t=[];if(Object.keys(e).filter(n=>n.startsWith("Activity")).forEach(n=>{t=t.concat(e[n])}),t.length==0&&Object.values(e).forEach(n=>{Array.isArray(n)&&n.length>0&&n.forEach(s=>{(s.id||"").startsWith("Activity")&&(t=t.concat(s))})}),t.length>0){let n="";const s=t.every(r=>{let a=this.multiNodeParticipant[r.id];a=(a||[]).filter(l=>l);const o=a&&a.length>0;return o||(n=r),o});return s?!1:n.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length==1){const n=this.findUserTaskNode(this.nextNodeData[0].branches[0]);let s=(this.multiNodeParticipant[n.id]||[]).filter(a=>a);const r=s&&s.length>0;return this.nextNodeData[0].branches[0],r?!1:n.name}else if(this.nextNodeData[0].nodeType=="exclusiveGateway"&&this.nextNodeData[0].branches&&this.nextNodeData[0].branches.length>1){const n=this.$refs.TreePersonRef.childrenItems||null;if(n&&n.length>0){let s="";return n.every(a=>{const o=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return o||(s=a),o})?!1:s.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}else if(this.nextNodeData[0].nodeType=="userTask"){let n=(this.multiNodeParticipant[this.nextNodeData[0].id]||[]).filter(s=>s);return n&&n.length>0?!1:this.nextNodeData[0].name}}else return!1;if(this.nextNodeData.nodeType!="endEvent"){let e=this.param.selChildrenItems||{},t=[];if(Object.keys(e).filter(n=>n.startsWith("Activity")).forEach(n=>{t=t.concat(e[n])}),t.length==0&&Object.values(e).forEach(n=>{Array.isArray(n)&&n.length>0&&n.forEach(s=>{(s.id||"").startsWith("Activity")&&(t=t.concat(s))})}),t.length>0){let n="";const s=t.every(r=>{let a=this.multiNodeParticipant[r.id];a=(a||[]).filter(l=>l);const o=a&&a.length>0;return o||(n=r),o});return s?!1:n.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length==1){const n=this.findUserTaskNode(this.nextNodeData.branches[0]);let s=(this.multiNodeParticipant[n.id]||[]).filter(a=>a);const r=s&&s.length>0;return this.nextNodeData.branches[0],r?!1:n.name}else if(this.nextNodeData.nodeType=="exclusiveGateway"&&this.nextNodeData.branches&&this.nextNodeData.branches.length>1){const n=this.$refs.TreePersonRef.childrenItems||null;if(n&&n.length>0){let s="";return n.every(a=>{const o=this.multiNodeParticipant[a.id]&&this.multiNodeParticipant[a.id].length>0;return o||(s=a),o})?!1:s.name}else return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"}else if(this.nextNodeData.nodeType=="userTask"){let n=(this.multiNodeParticipant[this.nextNodeData.id]||[]).filter(s=>s);return n&&n.length>0?!1:this.nextNodeData.name}}else return!1;if(Array.isArray(this.nextNodeData)&&this.nextNodeData.length==1&&this.nextNodeData[0].userTaskModelDTO&&this.taskNode&&this.taskNode.length>0&&this.taskNode[0].taskState!=4&&this.taskNode[0].taskState!=11){let e=this.nextNodeData[0].userTaskModelDTO.humanPerformer.name;if(e!="\u56FA\u5B9A\u8D26\u6237"&&e!="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173"&&JSON.stringify(this.multiNodeParticipant)=="{}")return this.nextNodeData[0].userTaskModelDTO.name}return this.pureTip=!0,"\u8BF7\u9009\u62E9\u4E0B\u4E00\u6B65\u5BA1\u6279\u8282\u70B9"},signRequired(){return!!this.param.extendedProperties.find(t=>t.name=="signature")}},data(){return{pureTip:!1,showFile:!1,attachRule:{limit:0,required:!1},partNodeArr:{},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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0},multiNodeParticipant:{},partObjId:[],partNode:{},canCheck:!0,radioCheck:"",radioCheckChild:[],radioCheckName:"",radioCheckNameList:[],radioCheckNode:[],radioCheckNodeList:[],partList:[],gateVars:{},personMake:[],personMakeList:{},visibleListMsg:!1,visibleMsgComfig:!1,msgCheck:"",msgCheckList:["\u540C\u610F","\u5982\u62DF","\u5DF2\u9605"],msgCheckListS:["\u540C\u610F","\u5DF2\u9605"],actionName:"",partNodeS:[],makeType:"",digitalSignature:"",signVisible:!1}},watch:{"param.nodeLoading":{handler(e,t){e||(this.param,this.nextNodeData=this.param.nextNodeData,this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((i,n)=>{i.nodeType!=="endEvent"&&(i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.participantList.map(s=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(s.id)||this.multiNodeParticipant[i.id].push(s.id),this.partNode[i.id].includes(s.name)||this.partNode[i.id].push(s.name)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(i=>{i.code==200&&(this.personMakeList=i.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((i,n)=>{i.nodeType!=="endEvent"&&i.participantList&&i.participantList.length&&i.participantList.map(s=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(s.id)||this.multiNodeParticipant[i.id].push(s.id),this.partNode[i.id].includes(s.name)||this.partNode[i.id].push(s.name)})}))}},"param.visible":{handler(e,t){this.nextNodeData=this.param.nextNodeData,this.taskNode=this.param.taskNode,this.outGatewayUserTaskModel=this.param.outGatewayUserTaskModel,this.actionName=this.param.actionName,this.attachShow(),this.showFile,this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map(i=>{i.type!=="endEvent"&&(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList},i.humanPerformer={name:i.humanPerformerName})}),this.nextNodeData&&this.nextNodeData.length?(this.nextNodeData.map((i,n)=>{i.nodeType!=="endEvent"&&(i.userTaskModelDTO||(i.userTaskModelDTO={name:i.name,humanPerformer:{name:i.humanPerformerName},routeTxt:i.routeTxt,participantList:i.participantList}),i.userTaskModelDTO&&i.userTaskModelDTO.participantList&&i.userTaskModelDTO.participantList.length&&i.userTaskModelDTO.participantList.map(s=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(s.id)||this.multiNodeParticipant[i.id].push(s.id),this.partNode[i.id].includes(s.name)||this.partNode[i.id].push(s.name)}),(i.userTaskModelDTO.humanPerformer.name=="\u56FA\u5B9A\u8D26\u6237"||i.userTaskModelDTO.humanPerformer.name=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&this.personMake.push(i.id))}),this.personMake&&this.personMake.length&&this.param.request.post(`aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:this.personMake}).then(i=>{i.code==200&&(this.personMakeList=i.data)})):this.outGatewayUserTaskModel&&this.outGatewayUserTaskModel.length&&this.outGatewayUserTaskModel.map((i,n)=>{i.nodeType!=="endEvent"&&i.participantList&&i.participantList.length&&i.participantList.map(s=>{this.multiNodeParticipant[i.id]||(this.multiNodeParticipant[i.id]=[]),this.partNode[i.id]||(this.partNode[i.id]=[]),this.multiNodeParticipant[i.id].includes(s.id)||this.multiNodeParticipant[i.id].push(s.id),this.partNode[i.id].includes(s.name)||this.partNode[i.id].push(s.name)})})},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{findUserTaskNode(e){return e?e.nodeInfoDTO&&e.nodeInfoDTO.nodeType!="userTask"?this.findUserTaskNode(e.nodeInfoDTO.branches[0]):e.nodeInfoDTO?e.nodeInfoDTO:e:{}},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.makeType=="InclusiveGatewayModel"?(this.radioCheckNameList.includes(e.id)?this.radioCheckNameList.splice(this.radioCheckNameList.indexOf(e.id),1):(this.radioCheckNameList.push(e.id),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue),this.gateVars[e.itemName]=e.compareValue):(this.radioCheckNameList=[],this.radioCheckNodeList=[],this.radioCheckNameList.push(e.id),e.childNode&&e.childNode.length&&(this.radioCheckNodeList=e.childNode),this.gateVars[e.incomingConditionItemList[0].itemName]=e.incomingConditionItemList[0].compareValue,this.gateVars[e.itemName]=e.compareValue)},handleSaveNodeS(e){this.makeType=="InclusiveGatewayModel"?this.radioCheckNode.includes(e.id)?this.radioCheckNode.splice(this.radioCheckNode.indexOf(e.id),1):this.radioCheckNode.push(e.id):this.radioCheckNode&&this.radioCheckNode.length?this.radioCheckNode=[]:(this.radioCheckNode.push(e.id),e.childNode&&e.childNode.length&&this.radioCheckNodeList.push(e.childNode))},forRadioChild(e,t){e.map((i,n)=>{i.childNode&&i.childNode.length?this.forRadioChild(i.childNode,!0):t&&this.radioCheckChild.push(i)})},async handleNode(e){this.makeType=e.type,this.radioCheckNameList=[],this.radioCheck=e.id,this.radioCheckName=e.nodeName,this.radioCheckChild=e.childNode&&e.childNode.length?e.childNode:[e],this.radioCheckChild&&this.radioCheckChild.length&&this.radioCheckChild.map(t=>{t.participantList&&t.participantList.length?t.participantList.map(i=>{this.multiNodeParticipant[t.id]||(this.multiNodeParticipant[t.id]=[]),this.partNode[t.id]||(this.partNode[t.id]=[]),this.multiNodeParticipant[t.id].includes(i.id)||this.multiNodeParticipant[t.id].push(i.id),this.partNode[t.id].includes(i.name)||this.partNode[t.id].push(i.name)}):this.param.request.post(`/aws/repository/getParticipantsOfPerformerNames?taskInstId=${this.param.taskInstId}`,{userTaskDefIds:[t.id]}).then(i=>{i.code==200&&(this.partNodeS=[],this.partNodeS.push(i.data[t.id]))})}),(!this.radioCheckChild[0].incomingConditionItemList||!this.radioCheckChild[0].incomingConditionItemList.length)&&e.incomingConditionItemList&&e.incomingConditionItemList.length&&(this.radioCheckChild[0].incomingConditionItemList=e.incomingConditionItemList),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}:e.humanPerformer||(e={...e,humanPerformer:{name:e.humanPerformerName}}),e.humanPerformer.name=="\u56FA\u5B9A\u5355\u4F4D"){let t,i=[];e.routeTxt.companyIds.map((n,s)=>{t=n.name}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((n,s)=>{i.push({type:3,id:n})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,subjectName:t,checkedArray:i}}else if(e.humanPerformer.name=="\u56FA\u5B9A\u90E8\u95E8"){let t,i=[],n=[];e.routeTxt.departmentIds.forEach((s,r)=>{e.routeTxt.departmentIds.length>1?i.push(s.rangeId):t=s.rangeId}),this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].forEach((s,r)=>{n.push({type:3,id:s,deptId:t})}),e.routeTxt.departmentIds.length>1?this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCodeArray:i,checkedArray:n}:this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,deptCode:t,checkedArray:n}}else{let t=[];this.multiNodeParticipant[e.id]&&this.multiNodeParticipant[e.id].length&&this.multiNodeParticipant[e.id].map((i,n)=>{t.push({type:3,id:i})}),this.entity={source:"1",type:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:e.loopCardinality==-1,maxMultiple:e.loopCardinality==-1?0:1,checkedArray:t}}},handleOpenMsg(){this.visibleListMsg=!0},async confirm(){this.signRequired?this.signConfirm():this.commonConfirm()},async commonConfirm(){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){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}if(this.isSelectPerson!==!1&&this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let e={};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId)if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let i=0;if(this.radioCheckNameList.map((n,s)=>{(!this.multiNodeParticipant[n]||!this.multiNodeParticipant[n].length)&&this.radioCheckChild.map((r,a)=>{r.id==n&&(r.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||r.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!r.childNode||!r.childNode.length?i+=1:this.radioCheckNode.map((o,l)=>{(!this.multiNodeParticipant[o]||!this.multiNodeParticipant[o].length)&&(i+=1),e[o]=this.multiNodeParticipant[o]}))}),e[n]=this.multiNodeParticipant[n]}),i>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}if(this.signRequired){this.signVisible=!0;return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;(this.param.incomingConditionItemList||[]).forEach(i=>{let n=this.param.vars||this.gateVars||{};n[i.itemName]||(n[i.itemName]="")}),this.handleTips("",!0,"loading");let t=[];if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){const i=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;i.setPersonnel?t=i.assignees:t=(this.partNodeArr[i.id]||[]).map(o=>({id:o.id,name:o.name})),Object.keys(e).forEach(o=>{Array.isArray(e[o])&&(e[o]=e[o].filter(l=>l)),(!e[o]||Array.isArray(e[o])&&e[o].length<=0)&&delete e[o]});let n=i&&i.nodeType!="endEvent"&&(!i.branches||i.branches.length<=0),s=i&&i.nodeType!="endEvent"&&i.branches&&i.branches.length==1&&i.branches[0].nodeInfoDTO&&i.branches[0].nodeInfoDTO.nodeType!="endEvent",r=i&&i.nodeType!="endEvent"&&i.branches&&i.branches.length==1&&!i.branches[0].nodeInfoDTO&&i.branches[0].nodeType!="endEvent";if((n||s||r)&&!Object.keys(e).length){let l={};return n?l=i:s?l=i.branches[0].nodeInfoDTO:r&&(l=i.branches[0]),this.handleTips(l.nodeType?"\u8BF7\u9009\u62E9["+l.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}Date.now()&&(this.param.processInstId,this.param.actionComplete,this.commentMsg,this.param.taskInstId,this.param.vars||this.gateVars,this.attchLists)}await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:t,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:e,attachment:this.attchLists}).then(i=>{i.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(i.msg,!0,"error")})},async signConfirm(e=!0){if(this.param.ProcessInsObj.processDefId=="obj_94014ede99b6495d8f6d5977314faa15"&&(this.commentMsg="\u540C\u610F"),!this.commentMsg&&this.param.isRequire){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}if(this.isSelectPerson!==!1&&this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){this.handleTips(this.pureTip?this.isSelectPerson:"\u8BF7\u9009\u62E9["+this.isSelectPerson+"]\u5BA1\u6279\u4EBA!",!1,"success");return}this.commentMsg||(this.commentMsg=" ");let t={};if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId)if(this.radioCheckNameList&&this.radioCheckNameList.length){if(this.radioCheckChild[0].type!=="EndEventModel"){let n=0;if(this.radioCheckNameList.map((s,r)=>{(!this.multiNodeParticipant[s]||!this.multiNodeParticipant[s].length)&&this.radioCheckChild.map((a,o)=>{a.id==s&&(a.humanPerformerName!=="\u56FA\u5B9A\u8D26\u6237"||a.humanPerformerName!=="\u4E0E\u6D41\u7A0B\u7533\u8BF7\u4EBA\u76F8\u5173")&&(!a.childNode||!a.childNode.length?n+=1:this.radioCheckNode.map((l,p)=>{(!this.multiNodeParticipant[l]||!this.multiNodeParticipant[l].length)&&(n+=1),t[l]=this.multiNodeParticipant[l]}))}),t[s]=this.multiNodeParticipant[s]}),n>0){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}}}else{if(this.multiNodeParticipant[this.partObjId]&&!this.multiNodeParticipant[this.partObjId].length){this.handleTips("\u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA!",!1,"success");return}t=this.multiNodeParticipant}if(e){this.signVisible=!0;return}if(!this.digitalSignature){this.handleTips("\u8BF7\u7B7E\u5B57!",!1,"success");return}if(this.param.beforeFunction&&!await this.param.beforeFunction())return;this.handleTips("",!0,"loading"),this.signVisible=(!1)(this.param.incomingConditionItemList||[]).forEach(n=>{let s=this.param.vars||this.gateVars||{};s[n.itemName]||(s[n.itemName]="")});let i=[];if(this.param.ProcessInsObj&&!this.param.ProcessInsObj.taskParentId){const n=Array.isArray(this.param.nextNodeData)?this.param.nextNodeData[0]:this.param.nextNodeData;n.setPersonnel?i=n.assignees:i=(this.partNodeArr[n.id]||[]).map(l=>({id:l.id,name:l.name})),Object.keys(t).forEach(l=>{Array.isArray(t[l])&&(t[l]=t[l].filter(p=>p)),(!t[l]||Array.isArray(t[l])&&t[l].length<=0)&&delete t[l]});let s=n&&n.nodeType!="endEvent"&&(!n.branches||n.branches.length<=0),r=n&&n.nodeType!="endEvent"&&n.branches&&n.branches.length==1&&n.branches[0].nodeInfoDTO&&n.branches[0].nodeInfoDTO.nodeType!="endEvent",a=n&&n.nodeType!="endEvent"&&n.branches&&n.branches.length==1&&!n.branches[0].nodeInfoDTO&&n.branches[0].nodeType!="endEvent";if((s||r||a)&&!Object.keys(t).length){let p={};return s?p=n:r?p=n.branches[0].nodeInfoDTO:a&&(p=n.branches[0]),this.handleTips(p.nodeType?"\u8BF7\u9009\u62E9["+p.name+"]\u5BA1\u6279\u4EBA!":"\u8BF7\u9009\u62E9\u4E0B\u4E00\u8282\u70B9\u5BA1\u6279\u4EBA",!0,"error"),!1}}await this.param.request.post("/bladex/blade-workflow/tis/complete",{pass:!0,assignees:i,processInstanceId:this.param.processInstId,actionName:this.param.actionComplete,commentMsg:this.commentMsg,taskId:this.param.taskInstId,vars:this.param.vars||this.gateVars,multiNodeParticipant:t,digitalSignature:this.digitalSignature,attachment:this.attchLists}).then(n=>{n.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal(),this.commentMsg=""):this.handleTips(n.msg,!0,"error")})},attachShow(e="\u529E\u7406"){const t=(this.param||{}).extendedProperties||[];let i=!1,n,s="";n=t.find(a=>a.name=="completeButtonAnnex"),s=n?n.value:"",s&&(i=!0);let r="";if(typeof s!="string"&&s!=null&&s.map(a=>{a.indexOf(this.operationLabel)!=-1&&(i=!0,r=a)}),r&&(s=r),i){const a=s.split(":");this.attachRule.required=a[1]=="true",this.attachRule.limit=a[2]==-1?999:a[2],this.otherList=s;let o=this.otherList.split(":");this.limit=o[2],this.requires=JSON.parse(o[1]),this.labels=o[0]}return this.labels,this.limit,i},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name)})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.name.substring(i.name.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.name});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,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("complete")},onMultiNode(e){this.multiNodeParticipant=e},onMultiNodeObj(e){this.partNodeArr=e},onVars(e){this.gateVars=e},handleSignature(e,t){this.digitalSignature=e,t&&(this.signVisible=!1,this.signConfirm(!1))},noticeFail(e){this.handleTips(e,!1,"success")},handleClose(){this.signVisible=!1}}},Fh={};var LI=ve(RI,MI,BI,!1,FI,"74890402",null,null);function FI(e){for(let t in Fh)this[t]=Fh[t]}const Vh=function(){return LI.exports}();var VI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-popup-content"},[i("div",{staticClass:"process-popup-content-msg"},[e.param.isMsg?i("div",[i("div",{staticClass:"process-radio-item",staticStyle:{color:"#1389ff","font-size":"14px"},on:{click:function(n){return e.handleOpenMsg()}}},[e._v(" \u5E38\u7528\u610F\u89C1 ")])]):e._e(),e._m(0),i("div",{staticClass:"process-pc-value"},[i("div",{staticClass:"process-popup-textarea"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},domProps:{value:e.commentMsg},on:{input:function(n){n.target.composing||(e.commentMsg=n.target.value)}}}),i("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])]),e.param.isMsg?i("div",{staticClass:"msg-btn"},[i("span",{staticClass:"msg-btn-click",on:{click:function(n){return e.handleMakeMsg()}}},[e._v("\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1")])]):e._e()])]),e.taskNode&&e.taskNode.length>0&&e.taskNode[0].taskState!=4?i("div",{staticClass:"process-popup-content-person"},[e.nextNodeData.length?[e._l(e.nextNodeData,function(n){var s,r;return[e.isOption(n==null||(s=n.userTaskModelDTO)===null||s===void 0||(r=s.humanPerformer)===null||r===void 0?void 0:r.name)?[i("div",[e._v(" "+e._s(n.userTaskModelDTO.name)+" "),i("br"),e._v(" \u5BA1\u6279\u4EBA "),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),i("div",{staticClass:"process-pc-value",on:{click:function(a){return e.handleOpenPopup(n.id)}}},[i("div",{staticClass:"process-pc-value--people"},[e.partNode[n.id]&&e.partNode[n.id].length?i("div",{staticClass:"process-pc-value--data"},e._l(e.partNode[n.id],function(a,o){return i("span",[e._v(" "+e._s(o==0?a:`,${a}`)+" ")])}),0):i("div",{staticClass:"process-pc-value--data",staticStyle:{color:"#888"}},[i("span",[e._v(" \u8BF7\u9009\u62E9\u5BA1\u6279\u4EBA ")])])])])]:e._e()]})]:e.outGatewayUserTaskModel.length?[e._l(e.outGatewayUserTaskModel,function(n){return[e.isOption(n.humanPerformerName)?[i("div",{staticStyle:{"font-size":"15px"}},[e._v(" "+e._s(n.name)+" ")]),i("div",{staticClass:"process-pc-label"},[e._v(" \u5BA1\u6279\u4EBA "),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])]),i("div",{staticClass:"process-pc-value",on:{click:e.handleOpenPopup}},[i("div",{staticClass:"process-pc-value--people"},[e._v(" "+e._s(234)+" ")])])]:e._e()]})]:e._e()],2):e._e(),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visible,titleText:"\u9009\u4EBA",isDrawer:!0},on:{"update:visible":function(n){return e.visible=n}}},[i("div",{staticStyle:{height:"100%"}},[e.visible?i("departPerson",e._b({attrs:{isTitle:!1,visible:e.visible,request:e.param.request},on:{"update:visible":function(n){e.visible=n},callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e()],1)]),e.labels=="\u62D2\u7EDD"?i("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e(),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(n){return e.visibleListMsg=n}}},[i("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),i("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(n){return e.visibleMsgComfig=n}}})],1)},jI=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-pc-label"},[e._v(" \u62D2\u7EDD\u7406\u7531\uFF1A "),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const QT="",UI={name:"cancel",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Nt,attchViews:Yi,TopPopup:at,departPerson:Ht.departPerson,MsgList:ds},watch:{param:{async handler(e,t){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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[770],request:this.param.request,codeType:this.param.isCodeType||[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("/bladex/blade-workflow/tis/complete",{pass:!1,assignees:[],processInstanceId:this.param.processInstId,commentMsg:this.commentMsg,comment:this.commentMsg||" ",taskId:this.param.taskInstId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),this.handleFinal(),window.top.postMessage("success","*"),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.labels=e[0]}},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.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,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u62D2\u7EDD")}}},jh={};var QI=ve(UI,VI,jI,!1,GI,"3be26d49",null,null);function GI(e){for(let t in jh)this[t]=jh[t]}const qI=function(){return QI.exports}();var JI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-popup-content"},[i("div",{staticClass:"process-popup-content-msg"},[e._m(0),i("div",{staticClass:"process-pc-value",staticStyle:{display:"inline-block",width:"50%"}},[i("TopDownSelect",{attrs:{option:e.option,optionStyle:"width:calc(100% - 40px);left:20px;",maskShow:!1,border:""},on:{change:e.handleChange}})],1),e._m(1),i("div",{staticClass:"process-pc-value"},[i("div",{staticClass:"process-popup-textarea"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:e.commentMsg,expression:"commentMsg"}],staticClass:"textarea-item",attrs:{name:"description",cols:"40",placeholder:"\u8BF7\u8F93\u5165\u5BA1\u6279\u610F\u89C1(200\u5B57\u4EE5\u5185)",maxlength:"200",onkeyup:"this.value=this.value.replace(/[\\uD800-\\uDFFF]/g,'')"},domProps:{value:e.commentMsg},on:{input:function(n){n.target.composing||(e.commentMsg=n.target.value)}}}),i("div",{staticClass:"process-popup-textarea-num"},[e._v(" "+e._s(e.commentMsg.length)+"/200 ")])])])]),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),i("TopPopup",{ref:"TopPopup",attrs:{visible:e.visibleListMsg,titleText:"\u5E38\u7528\u610F\u89C1",isDrawer:!0},on:{"update:visible":function(n){return e.visibleListMsg=n}}},[i("MsgList",{attrs:{visible:e.visibleListMsg,request:e.param.request,useInfo:e.param.userInfo},on:{handleTips:e.handleTips,handleMsg:e.handleMsg}})],1),i("TopPopup",{attrs:{titleText:"\u64CD\u4F5C\u6D88\u606F\u63D0\u793A",isTips:!0,context:`\u5C06${e.commentMsg}\u8BBE\u7F6E\u4E3A\u5E38\u7528\u610F\u89C1`,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig,visible:e.visibleMsgComfig},on:{"update:visible":function(n){return e.visibleMsgComfig=n}}}),e.labels=="\u9000\u56DE"?i("attchViews",{attrs:{limit:e.limit?e.limit:-1,requires:e.requires,request:e.param.request,linkUrl:e.param.linkUrl},on:{getValue:e.getValues}}):e._e()],1)},HI=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-pc-label",staticStyle:{"background-color":"#fff",position:"relative","z-index":"199",display:"inline-block",width:"50%"}},[e._v(" \u9000\u56DE\u8282\u70B9\uFF1A "),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-pc-label"},[e._v(" \u9000\u56DE\u7406\u7531\uFF1A "),i("span",{staticClass:"process-pc-label--re"},[e._v("*")])])}];const GT="",KI={name:"backNode",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Nt,attchViews:Yi,TopPopup:at,departPerson:Ht.departPerson,TopDownSelect:Ih,MsgList:ds},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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},option:[],nodeId:"",actionName:"",visibleListMsg:!1,visibleMsgComfig:!1}},watch:{param:{async handler(e,t){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("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:this.param.taskInstId}}).then(e=>{e.code===200&&(this.option=(e.data||[]).map(t=>({...t,name:t.nodeName,id:t.nodeId})).filter(t=>!(t.nodeId||"").includes("startEvent")))})},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("/bladex/blade-workflow/tis/rollback",{taskInstId:this.param.taskInstId,rollbackReason:this.commentMsg,targetActivityId:this.nodeId}).then(e=>{e.code==200?(this.$emit("handleClosePopup1"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("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((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})})},handleCancel(){},getValues(e){this.attchLists=e},async uploadAttch(){if(this.attchLists.length>0){this.attchLists.map((i,n)=>{i.size=i.fileSize,i.format=i.originFileName.substring(i.originFileName.lastIndexOf(".")+1),i.uploadTime=i.createTime,i.processInstId=this.param.processInstId,i.taskInstId=this.param.taskInstId,i.name=i.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,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("\u9000\u56DE")}}},Uh={};var WI=ve(KI,JI,HI,!1,zI,"0d20c2b4",null,null);function zI(e){for(let t in Uh)this[t]=Uh[t]}const YI=function(){return WI.exports}();var XI=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticStyle:{height:"100%"}},[e.param.visible?i("departPerson",e._b({attrs:{isTitle:!1,request:e.param.request},on:{callback:e.handleCallback,cancel:e.handleCancel}},"departPerson",e.entity,!1)):e._e(),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}})],1)},ZI=[];const qT="",$I={name:"ccTask",props:{param:{type:Object,defalut:()=>{}}},components:{TopTips:Nt,departPerson:Ht.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:this.param.isCheckType||"0",orgType:this.param.isOrgType||[0],request:this.param.request,codeType:this.param.isCodeType||[3],multiple:!0,checkedArray:[]},multiNodeParticipant:{},partObjId:[],partNode:{},actionName:""}},watch:{param:{handler(e,t){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=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):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=this.param.isCodeType||[3],this.entity.source="1",this.entity.checkedArray=[],this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]):e.outGatewayUserTaskModel[0].type=="ExclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="InclusiveGatewayModel"||e.outGatewayUserTaskModel[0].type=="UserTaskModel"&&(this.entity.multiple=!0,this.entity.codeType=this.param.isCodeType||[3],this.entity.checkedArray=[],this.entity.source="1",this.entity.type=this.param.isCheckType||"0",this.entity.orgType=this.param.isOrgType||[0]))},immediate:!0,deep:!0}},created(){this.makeDelegateTaskButtonAnnex()},methods:{handleOpenPopup(e){this.visible=!0,this.partObjId=e},async confirm(){let e="";this.multiNodeParticipant[this.partObjId].map((t,i)=>{i==0?e=t:e=`${e} ${t}`}),await this.param.request.post("/bladex/blade-workflow/tis/createCCTask",{processInstId:this.param.processInstId,taskId:this.param.taskInstId,title:"",participant:e}).then(t=>{t.code==200?(this.$emit("handleClosecctaskTopPopup"),this.handleTips("\u63D0\u4EA4\u6210\u529F!",!1,"success"),window.top.postMessage("success","*"),this.handleFinal()):this.handleTips(t.msg,!0,"error")})},makeDelegateTaskButtonAnnex(){},handleCallback(e){this.visible=!1,this.multiNodeParticipant[this.partObjId]=[],this.partNode[this.partObjId]=[],e.map((t,i)=>{this.multiNodeParticipant[this.partObjId].push(t.id),this.partNode[this.partObjId].push(t.name),this.entity.checkedArray.push({type:3,id:t.id,subjectId:t.subjectId})}),e&&e.length&&this.confirm()},handleCancel(){},getValues(e){this.attchLists=e},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,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleFinal(){this.param.endFunction&&this.param.endFunction("ccTask")}}},Qh={};var eT=ve($I,XI,ZI,!1,tT,null,null,null);function tT(e){for(let t in Qh)this[t]=Qh[t]}const iT=function(){return eT.exports}();var nT=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"process-btns"},[e.process.status=="todo"?[e.getButton("wf_pass")?i("button",{staticClass:"process-button success",attrs:{size:"default",disabled:e.loading},on:{click:function(n){e.$emit("examine",!0,["deleted"].includes(e.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":e.getButton("wf_pass").name)}}},[["deleted"].includes(e.process.processIsFinished)?i("span",[e._v("\u91CD\u65B0\u63D0\u4EA4")]):i("span",[e._v(e._s(e.getButton("wf_pass").name))])]):e._e(),e.getButton("wf_reject")?i("button",{staticClass:"process-button danger",attrs:{size:"default",disabled:e.loading},on:{click:function(n){e.$emit("examine",!1,(e.backNodes.length>1,e.getButton("wf_reject").name))}}},[e.backNodes.length>1?i("span",[e._v(e._s(e.getButton("wf_reject").name))]):i("span",[e._v(e._s(e.getButton("wf_reject").name))])]):e._e(),e.uid==(e.process.variables||{}).applyUserId?i("button",{staticClass:"process-button info",attrs:{size:"default",disabled:e.loading},on:{click:function(n){return e.$emit("reminders")}}},[i("span",[e._v("\u50AC\u529E")])]):e._e(),e.getButton("wf_transfer")?i("button",{staticClass:"process-button primary",attrs:{size:"default",disabled:e.loading},on:{click:function(n){e.$emit("user-select",{type:"transfer",checkType:"radio",name:e.getButton("wf_transfer").name})}}},[e._v(e._s(e.getButton("wf_transfer").name))]):e._e(),e.getButton("wf_delegate")?i("button",{staticClass:"process-button warning",attrs:{size:"default",disabled:e.loading},on:{click:function(n){e.$emit("user-select",{type:"delegate",checkType:"radio",name:e.getButton("wf_delegate").name})}}},[e._v(" "+e._s(e.getButton("wf_delegate").name)+" ")]):e._e(),e.getButton("wf_rollback")?i("button",{staticClass:"process-button success",attrs:{size:"default",disabled:e.loading},on:{click:function(n){e.$emit("rollback",e.getButton("wf_rollback").name)}}},[e._v(" "+e._s(e.getButton("wf_rollback").name)+" ")]):e._e(),e.getButton("wf_terminate")?i("button",{staticClass:"process-button danger",attrs:{size:"default",disabled:e.loading},on:{click:function(n){return e.$emit("terminate")}}},[e._v(" "+e._s(e.getButton("wf_terminate").name)+" ")]):e._e(),e.process.isMultiInstance&&e.getButton("wf_add_instance")?i("button",{staticClass:"process-button primary",attrs:{size:"default",disabled:e.loading},on:{click:function(n){e.$emit("user-select",{type:"addInstance",checkType:"checkbox",name:e.getButton("wf_add_instance").name})}}},[e._v(" "+e._s(e.getButton("wf_add_instance").name)+" ")]):e._e(),e.getButton("wf_cctask")?i("button",{staticClass:"process-button info",attrs:{size:"default",disabled:e.loading},on:{click:function(n){e.$emit("circulate",e.getButton("wf_cctask").name)}}},[i("span",[e._v(e._s(e.getButton("wf_cctask").name))])]):e._e()]:e._e(),e.process.isOwner&&e.process.isReturnable&&!["deleted"].includes(e.process.processIsFinished)?i("button",{staticClass:"process-button danger",attrs:{size:"default",disabled:e.loading},on:{click:function(n){return e.$emit("withdraw","\u64A4\u9500")}}},[e._v(" \u64A4\u9500 ")]):e._e(),e.getButton("wf_print")?i("button",{staticClass:"process-button info",attrs:{size:"default",disabled:e.loading},on:{click:function(n){return e.$emit("print")}}},[e._v(" "+e._s(e.getButton("wf_print").name)+" ")]):e._e()],2)},sT=[];const JT="",rT={name:"nf-button",components:{TopTips:Nt},props:{uid:{type:String,default:""},loading:{type:Boolean,default:!1},buttonList:{type:Array,default:()=>[]},process:{type:Object,default:()=>({variables:{}})},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},comment:String},data(){return{isCollapse:!0,nodeVisible:!1,nodeForm:{},nodeOption:{column:[{label:"\u8282\u70B9",prop:"nodeId",type:"select",props:{label:"nodeName",value:"nodeId"},span:24,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u56DE\u9000\u8282\u70B9",trigger:"change"}]}]},backNodes:[]}},watch:{process:{handler(e,t){e&&e.taskId&&this.request.get("/bladex/blade-workflow/process/getBackNodes",{params:{taskId:e.taskId}}).then(i=>{const n=i.data;this.backNodes=n})},deep:!0,immediate:!0}},methods:{handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()},handleRollback(){if(!this.comment){this.$message.error("\u8BF7\u586B\u5199\u6279\u590D\u610F\u89C1");return}this.nodeVisible=!0},handleNodeSubmit(){const{nodeId:e}=this.nodeForm;this.$emit("rollback",e)},getButton(e){return this.buttonList.find(t=>t.buttonKey==e)}}},Gh={};var aT=ve(rT,nT,sT,!1,oT,"128c5f57",null,null);function oT(e){for(let t in Gh)this[t]=Gh[t]}const lT={name:"TopProcess",provide(){return{request:this.request}},components:{processBtns:function(){return aT.exports}(),TopTab:_x,TopPopup:at,TopTips:Nt,TopSumbitPopup:kh},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},taskId:{require:!1,default:"",type:String},isAdditional:{require:!1,default:!1,type:Boolean},isView:{default:!1,type:Boolean},businessSubjectId:{default:"",type:String},formData:{default:{},type:Object},getVarsStatus:{default:!0,type:Boolean},getVars:{default:null,type:Function},request:{type:[Function,Object],default:()=>({get:()=>{},post:()=>{}})},endFunction:{type:Function,default:null},beforeFunction:{type:Function,default:null},isDocument:{type:Boolean,default:!1},restartData:{type:Object,default:{businessType:"",showType:"",processName:""}},selfList:{type:Array,default:()=>[]},selfBtn:{type:Array,default:()=>[]},uid:{type:String,default:""},isMsg:{type:Boolean,default:!0},isRequire:{type:Boolean,default:!0},isCheckType:{type:String,default:"0"},isOrgType:{type:Array,default:()=>[0]},isCodeType:{type:Array,default:()=>[3]},isQuickReply:{type:Boolean,default:!1},ccTaskFunction:{type:Function,default:null},hideHeader:{type:Boolean,default:!1},needResubmit:{type:Boolean,default:!0}},data(){return{currentProcess:{currentProcessOriginData:[],currentMan:[],currentFirstNode:{}},incomingConditionItemList:[],submitLoading:!1,nextTaskNode:{},deptId:"",absoluteTaskId:"",comment:"",processXml:"",approvalData:[],processStatus:{},processDefList:{},processBusiness:{},getFirstProcessNode:{},taskNode:[],taskNodeList:[],taskNodeIds:[],taskState:NaN,taskCurrent:0,taskObj:{},taskNodeShow:!1,actionShow:!1,titleText:"",btnStyle:"",processIntId:"",trackUrl:"",taskCommentList:[],operationCom:null,operationComKey:Date.now(),ProcessInsObj:{button:[],flow:[],form:{},process:{}},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,cctaskTopPopup:!1,cctaskTopPopupTitle:"\u6284\u9001"}},watch:{processInstId:{async handler(e,t){this.$nextTick(()=>{this.processIntId=this.processInstId||this.formData.processId||this.formData.processInstId,e&&(this.request.get("/bladex/blade-workflow/tis/getTaskModelDetail",{params:this.taskId?{processInstId:this.processInstId,taskId:this.taskId}:{processInstId:this.processInstId}}).then(i=>{var n;if(i.code==200){this.ProcessInsObj={...this.ProcessInsObj,...i.data},this.taskObj.buttons=this.ProcessInsObj.button||[],this.trackList=(((n=i.data)==null?void 0:n.flow)||[]).filter(a=>["userTask","candidate"].includes(a.historyActivityType));const s=((this.ProcessInsObj.process||{}).variables||{}).deptId;this.deptId=s;const r=(this.ProcessInsObj.process||{}).taskId;this.absoluteTaskId=r,this.approvalData=(i.data||{}).flow||[],this.processXml=((i.data||{}).process||{}).xml||"",this.handleGetProcessStatus(),this.$emit("get-process-data",this.ProcessInsObj)}}),this.getCurrentProcess(),this.getUserInfo())})},immediate:!0,deep:!0},restartData:{handler(e,t){e&&(this.restartDataS=e)},immediate:!0,deep:!0},selfBtn:{handler(e,t){e&&e.length&&(this.selfBtnList=e)},immediate:!0,deep:!0},uid:{handler(e,t){e&&(this.userIdData=e)},immediate:!0,deep:!0}},mounted(){},computed:{actionBtn(){return this.operBtn.length>3?this.operBtn.slice(3):[]},operBtn(){let e=[];const t=this.ProcessInsObj.process,i=this.ProcessInsObj.button;if(!t||!i)return e;if(this.getButton("wf_pass"),this.needResubmit&&t.status=="todo"&&this.userIdData&&t.isOwner&&["deleted"].includes(t.processIsFinished)&&this.getButton("wf_pass")){let s={};s.name="\u91CD\u65B0\u63D0\u4EA4",s.btnProps={type:"default"},e.push(s),s.click=r=>{this.handlePass("\u91CD\u65B0\u63D0\u4EA4"),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_pass")){let s={};s.name=this.getButton("wf_pass").name,s.btnProps={type:"primary"},e.push(s),s.click=r=>{this.handlePass(this.getButton("wf_pass").name),this.submitLoading=!0,this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_reject")){let s={};s.name=this.getButton("wf_reject").name,s.btnProps={type:"danger"},e.push(s),s.click=r=>{this.handleCancel(this.getButton("wf_reject").name),this.submitLoading=!0,this.handleActionClose()}}if(this.selfBtnList&&this.selfBtnList.length&&this.selfBtnList.map(s=>{let r={};r.name=s.name,r.btnProps={type:s.type},e.push(r),r.click=s.click}),["wf_edit"].map(s=>{if(!this.isView&&t.status=="todo"&&this.getButton(s)){let r={};r.name=this.getButton(s).name,r.btnProps={},r.key=r.name,r.click=()=>{this.$emit("clickCustomButton",r.name)},e.push(r)}}),!this.isView&&t.status=="todo"&&this.getButton("wf_rollback")){let s={};s.name=this.getButton("wf_rollback").name,s.btnProps={type:"danger"},e.push(s),s.click=r=>{this.handleRollbackTask(this.getButton("wf_rollback").name),this.handleActionClose()}}if(!this.isView&&t.status=="todo"&&this.getButton("wf_cctask")){let s={};s.name=this.getButton("wf_cctask").name,s.btnProps={type:"default"},s.click=async r=>{this.handleCirculate(this.getButton("wf_cctask").name),this.handleActionClose()},e.push(s)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_delegate")){let s={};s.name=this.getButton("wf_delegate").name,s.btnProps={type:"warning"},s.key="cc2",s.click=()=>{this.handleUserSelect({type:"delegate",checkType:"radio",name:this.getButton("wf_delegate").name}),this.handleActionClose()},e.push(s)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_terminate")){let s={};s.name=this.getButton("wf_terminate").name,s.btnProps={type:"danger"},s.key="cc3",s.click=()=>{this.handleTerminateProcess(),this.handleActionClose()},e.push(s)}if(!this.isView&&t.status=="todo"&&this.getButton("wf_transfer")){let s={};s.name=this.getButton("wf_transfer").name,s.btnProps={type:"default"},s.click=r=>{this.handleUserSelect({type:"transfer",checkType:"radio",name:this.getButton("wf_transfer").name}),this.handleActionClose()},e.push(s)}if(t.status=="todo"&&this.getButton("wf_add_instance")){let s={};s.name=this.getButton("wf_add_instance").name,s.btnProps={type:"primary"},s.click=r=>{this.handleUserSelect({type:"addInstance",checkType:"checkbox",name:this.getButton("wf_add_instance").name}),this.handleActionClose()},e.push(s)}if(t.isReturnable&&t.isOwner){let s={};s.name="\u50AC\u529E",s.btnProps={type:"default"},s.click=r=>{this.handleReminders("\u50AC\u529E"),this.handleActionClose()},e.push(s)}if(t.isOwner&&t.isReturnable&&!["deleted"].includes(t.processIsFinished)){let s={};s.name="\u64A4\u9500",s.btnProps={type:"default"},s.click=r=>{this.handleWithdrawTask("\u64A4\u9500"),this.handleActionClose()},e.push(s)}return console.error(e,"btnList"),e},processCardHeight(){let e=this.topNum+this.bottomNum-10;return this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end&&(e-=this.bottomNum),this.hideHeader&&(e-=204),`calc(100vh - ${e}px)`},processBtn(){if(this.isAdditional&&!this.operBtn&&!this.operBtn.length&&!this.ProcessInsObj.end)return`-${this.bottomNum}px`}},methods:{async getCurrentProcess(){this.request.get("/bladex/blade-workflow/repository/queryTaskNodeList",{params:this.taskId?{processInstId:this.processIntId,taskId:this.taskId}:{processInstId:this.processIntId}}).then(e=>{if(e.code==200){const t={};if(t.currentProcessOriginData=e.data||[],t.currentProcessOriginData.length>0){let i=t.currentProcessOriginData[0],n=(i.currentName||"").split(","),s=(i.avatar||"").split(",");n=n.map((r,a)=>({realName:r,avatar:s[a]||"",phone:"",ancestorNames:[]})),t.currentMan=n,t.currentFirstNode=i,this.currentProcess=t}}else this.currentProcess={currentProcessOriginData:[],currentMan:[],currentFirstNode:{}}}).catch(e=>{console.error(e)})},getButton(e){const t=(this.ProcessInsObj.button||[]).find(i=>i.buttonKey==e);return t},handleActionBtn(e){switch(e.buttonKey){case"wf_pass":this.handleExamine(!0,["deleted"].includes(this.ProcessInsObj.process.processIsFinished)?"\u91CD\u65B0\u63D0\u4EA4":e.name);break;case"wf_reject":this.handleExamine(!1,e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_add_instance":this.handleAddInstance(e.name);break;case"wf_rollback":this.handleRollbackTask(e.name);break;case"wf_transfer":this.handleTransfer(e.name);break;case"wf_terminate":this.handleTerminateProcess(e.name);case"wf_cctask":this.handleCirculate(e.name);break}this.handleActionClose()},handleDraft(){this.submitLoading=!0},handleExamine(e,t){e?this.handlePass(t):this.handleCancel(t),this.submitLoading=!0},async handlePass(e){this.operationParam.nodeLoading=!0,this.before?this.before().then(()=>{this.showOperation(Vh,e)}):this.showOperation(Vh,e),this.deptId&&(await this.getNextNode(this.deptId),this.operationParam={...this.operationParam,nodeLoading:!1,incomingConditionItemList:this.incomingConditionItemList,nextNodeData:this.nextTaskNode})},handleCancel(e){this.showOperation(qI,e)},handleUserSelect({type:e,checkType:t,name:i}){e=="transfer"?this.handleTransfer(i):e=="addInstance"&&this.handleAddInstance(i)},async handleTransfer(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(cI,e)},async handleAddInstance(e){this.deptId&&await this.getNextNode(this.deptId),this.showOperation(nI,e)},handlePrint(){},handleRollbackTask(e){this.showOperation(YI,e)},handleTerminateProcess(){},handleWithdrawTask(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u64A4\u9500",this.popupContext="\u786E\u5B9A\u64A4\u9500\u5417?",this.handleTipsType="\u64A4\u9500"},handleReminders(e){this.$refs.TopPopup2.handleOpen(),this.handleActionClose(),this.titleText="\u50AC\u529E",this.popupContext="\u786E\u5B9A\u50AC\u529E\u5417?",this.handleTipsType="\u50AC\u529E"},handleCirculate(e){this.showOperation(iT,e,this.request,this.taskObj.ccTaskButtonAnnex,"\u6284\u9001"),this.cctaskTopPopupTitle=e},async getNextNode(e){let t;try{t=await this.request.get("/bladex/blade-workflow/tis/simulation",{params:{taskId:this.absoluteTaskId,processInstId:this.processIntId}})}catch(n){console.error(n),t={}}let i=t.data||{};t.code==200&&!t.data.evaluation&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,t.data.id)),t.code==200&&t.data.evaluation&&t.data.branches&&t.data.branches.length>0&&t.data.branches[0].nodeType!="userTask"&&(this.incomingConditionItemList=[],i.branches=await this.getOutgoingProcessNode(this.absoluteTaskId,t.data.branches[0].id)),i=await this.getSelectFixData(i,e),this.nextTaskNode=i,this.operationParam={...this.operationParam,nextNodeData:(this.nextTaskNode||{}).id?[this.nextTaskNode]:[]}},async getNodeUser({deptId:e,intersection:t,userIds:i,postIds:n,deptIds:s}){return await this.request.post("/auth/user/getTaskAuditor",{deptId:e,intersection:t,userIds:i,postIds:n,deptIds:s})},handleGetHeight(){this.$nextTick(()=>{setTimeout(()=>{let e=document.getElementById("process-header"),t=document.getElementById("process-footer");this.bottomNum=t?t.scrollHeight+10:70,this.topNum=e?e.scrollHeight+10:144},1e3)})},handleTestsss(e,t){},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||{},this.userIdData=e.data.userId)},async handleGetSimulation(e){this.handleTips("",!0,"loading");let t={processInstId:this.processInstId,taskInstId:this.taskNode.length?this.taskNode[0].taskId:"",vars:e,errorTip:!1},i=await this.request.post("/aws/tis/simulation",t);if(i.success){this.handleTips("",!1,"success"),this.nextNodeData=i.data;for(let n=0;n<this.nextNodeData.length;n++)this.approveNode=this.nextNodeData[n]}else{let n=this.taskNode&&this.taskNode.length?this.taskNode[0].taskId:"";this.outGatewayUserTaskModel=await this.getOutgoingProcessNode(n,"")}},async getSelectFixData(e,t){let i=JSON.parse(JSON.stringify(e));if(i.nodeType!="userTask"&&Array.isArray(i.branches))for(let n=0;n<i.branches.length;n++){let s=i.branches[n],r=s.nodeInfoDTO?s.nodeInfoDTO:s;try{r=await this.getSelectFixData(r,t)}catch(a){}s.nodeInfoDTO?s.nodeInfoDTO=r:s=r,i.branches[n]=s}else if(i.nodeType=="userTask"&&!i.setPersonnel){let n=bd(i),s;try{s=await this.getNodeUser({deptId:t,intersection:n.intersection?1:0,userIds:n.userIds,postIds:n.postIds,deptIds:n.deptIds}),s.code==$enum.apiCode.success}catch(r){}s.code==200&&(i.userList=s.data)}return i},async getOutgoingProcessNode(e,t){let i=await this.request.get("/bladex/blade-workflow/tis/getOutgoingProcessNode",{params:{taskId:e,processNodeId:t}});if(i.code==200){if(i.data&&i.data.length){for(let n=0;n<i.data.length;n++){let s=i.data[n];s.incomingConditionItemList&&s.incomingConditionItemList.length!==0&&(s.nodeInfoDTO.incomingConditionItemList=s.incomingConditionItemList,this.incomingConditionItemList.push(...s.incomingConditionItemList)),s.nodeInfoDTO.nodeType!="userTask"&&(s.nodeInfoDTO.branches=await this.getOutgoingProcessNode(e,s.nodeInfoDTO.id))}return this.handleTips("",!1,"success"),i.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("/bladex/blade-workflow/repository/findTaskTodoInfoByTaskId",{params:{taskId:this.absoluteTaskId||""}}).then(e=>{e.code==200&&(this.processStatus={...e.data||{},...e.data.vars?e.data.vars:{},bizStatusName:e.data.taskState,currUserName:e.data.currentName,allUserNames:e.data.currentName}),this.handleGetHeight(),this.handleTips("",!1,"success")}).catch(e=>{this.handleGetHeight()}).finally(()=>{})},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(),this.$refs.topTips.handleClose()}):this.$refs.topTips.handleClose()},async showOperation(e,t,i,n,s){switch(this.beforeFunction&&(this.operationParam.beforeFunction=this.beforeFunction),this.operationParam.request=this.request,this.annexlabel=n||"fasdfsafdsa",this.titleText=t,this.operationCom=e,this.operationComKey=Date.now(),this.operationParam.selChildrenItems={},this.operationParam.annex=n||"fasdfsafdsa",this.operationParam.subjectId=this.formData.subjectId,this.operationParam.processInstId=this.processIntId,this.operationParam.taskInstId=(this.ProcessInsObj.process||{}).taskId||"",this.operationParam.variables=(this.ProcessInsObj.process||{}).variables||{},this.operationParam.extendedProperties=(this.ProcessInsObj.form||{}).extendedProperties||[],this.operationParam.actionName=t,this.operationParam.formData=this.formData,this.operationParam.ProcessInsObj=this.ProcessInsObj.process||{},this.operationParam.userInfo=this.user,this.nextTaskNode,this.operationParam.nextNodeData=(this.nextTaskNode||{}).id?[this.nextTaskNode]:[],this.operationParam.incomingConditionItemList=this.incomingConditionItemList,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.isQuickReply=this.isQuickReply,this.operationParam.isMsg=this.isMsg,this.operationParam.isRequire=this.isRequire,this.operationParam.canCheck=this.canCheck,this.operationParam.isCheckType=this.isCheckType,this.operationParam.isOrgType=this.isOrgType,this.operationParam.isCodeType=this.isCodeType,s){case"\u6284\u9001":this.operationParam.visible=!0,this.cctaskTopPopup=!0;break;default:this.operationParam.visible=!0,this.TopPopup1=!0;break}},handleCancelPopup(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},async handleComfig(){this.$refs.operationRef.confirm()},handleClosePopup1(){this.TopPopup1=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleClosecctaskTopPopup(){this.cctaskTopPopup=!1,this.operationParam.visible=!1,this.submitLoading=!1},handleTipsComfig(){this.$refs.TopPopup2.handleCancel(),this.handleTipsType=="\u50AC\u529E"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/reminders",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u50AC\u529E\u6210\u529F",!0,"success"),window.top.postMessage("success","*"),this.endFunction("\u50AC\u529E")):this.handleTips(e.msg,!0,"error")})),this.handleTipsType=="\u64A4\u9500"&&(this.handleTips("",!0,"loading"),this.request.get("/bladex/blade-workflow/tis/withdrawTask",{params:{processInstId:this.processIntId}}).then(e=>{e.code==200?(this.handleTips("\u64A4\u9500\u6210\u529F",!0,"success"),window.top.postMessage("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.post("/bladex/blade-workflow/repository/getProcessDefList",{appId:this.processStatus.appId,subjectId:this.formData.subjectId||this.businessSubjectId}).then(e=>{this.processDefList=e.data,this.request.get("/aws/pis/getProcessInstanceByBusinessKey",{params:{businessKey:this.formData.businessKey}}).then(t=>{this.processBusiness=t.data,this.request.get("/bladex/blade-workflow/repository/getAllProcessNode",{params:{processDefId:this.processBusiness.processDefId}}).then(i=>{this.getFirstProcessNode=i.data[0],this.operationParam.getFirstProcessNode=this.getFirstProcessNode,this.operationParam.formData=this.formData,this.handleTips("",!1,"success"),this.handleActionClose(),this.showOperation(void 0,"\u91CD\u65B0\u63D0\u4EA4",this.request)}).catch(i=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(t=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})}).catch(e=>{this.handleTips("\u8BF7\u6C42\u51FA\u9519",!0,"error")})},handleTips(e,t,i){this.textTips=e,this.statusTips=t,this.typeTips=i,this.$refs.topTips.handleOpen()}}};var cT=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"process-warp"},[(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)&&!e.hideHeader?i("div",{ref:"processheader",staticClass:"process-main",attrs:{id:"process-header"}},[i("div",{staticClass:"process-ml-item border"},[i("div",{staticClass:"process-mli-name"},[e._v("\u6D41\u7A0B\u72B6\u6001")]),i("div",{staticClass:"process-mli-value"},[e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status?i("div",{staticClass:"process-mliv-dd",style:{background:e.getColor(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)}},[e._v(" "+e._s(e.formData.currentState||e.processStatus.bizStatusName||e.processStatus.status)+" ")]):e._e()])]),i("div",{staticClass:"process-ml-item border"},[i("div",{staticClass:"process-mli-name"},[e._v("\u6D41\u7A0B\u53D1\u8D77\u65F6\u95F4")]),i("div",{staticClass:"process-mli-value"},[i("span",[e._v(e._s(e.processStatus.createTime))])])]),e.processStatus.allUserNames&&e.processStatus.allUserNames.length?i("div",{staticClass:"process-ml-item"},[i("div",{staticClass:"process-mli-name"},[e._v("\u5BA1\u6279\u8282\u70B9")]),i("div",{staticClass:"process-mli-value",staticStyle:{width:"50%","text-align":"right"}},[i("span",{staticClass:"process-mliv-jd"},[e._v(e._s(`${e.processStatus.taskState==4?e.processStatus.currUserName:e.processStatus.allUserNames.toString()}\u5BA1\u6279\u4E2D`))])])]):e._e()]):e._e(),i("div",{staticClass:"process-card",style:{height:e.processCardHeight}},[i("TopTab",{attrs:{ProcessInsObj:e.ProcessInsObj,processXml:e.processXml,approvalData:e.approvalData,tapList:e.tapList,selfTapList:e.selfTapList,processIntId:e.processIntId,track:e.trackUrl,taskComment:e.taskCommentList,trackList:e.trackList}},[e.selfTapList&&e.selfTapList.length?e._l(e.selfTapList,function(n,s){return i("div",{key:s,staticStyle:{height:"100%"},attrs:{slot:n.slot},slot:n.slot},[e._t(n.slot,null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2)}):[i("div",{staticStyle:{height:"100%"},attrs:{slot:"default"},slot:"default"},[e._t("default",null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2),e._l(e.tapList,function(n,s){return i("div",{key:s,staticStyle:{height:"100%"},attrs:{slot:n.slot},slot:n.slot},[e._t(n.slot,null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2)})]],2)],1),e.isView?e._e():i("div",{staticClass:"process-btn",style:{bottom:e.processBtn},attrs:{id:"process-footer"}},[e.isAdditional?i("div",{staticClass:"footBtnRow"},[e._t("btn",null,{data:e.processStatus,processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2):[e.isDocument&&(e.formData.currentState=="\u7F16\u6587\u53F7\u5957\u7EA2"||e.formData.currentState=="\u76D6\u7AE0")?[i("div",{staticClass:"top-button",style:e.getBtnStyle("default")},[e._v(" \u8BF7\u53BBPC\u7AEF\u5904\u7406\u8BE5\u6D41\u7A0B ")])]:[e.formData.currentState!="\u5DF2\u5B8C\u6210"||e.processStatus.status!="\u5DF2\u5B8C\u6210"||e.processStatus.bizStatusName!="\u5DF2\u5B8C\u6210"?[e._l(e.operBtn,function(n,s){return[s<3?i("div",{key:n.name,staticClass:"top-button",style:e.getBtnStyle((n.btnProps.type||"default").toString()),on:{click:function(r){return n.click(n.name)}}},[e._v(" "+e._s(n.name)+" ")]):e._e()]})]:e._e(),e.operBtn.length>3&&e.actionBtn&&e.actionBtn.length?i("div",{staticClass:"elips",on:{click:e.handleActionOpen}},[i("div",{staticClass:"circle"}),i("div",{staticClass:"circle"}),i("div",{staticClass:"circle"})]):e._e()]]],2)]),i("TopPopup",{ref:"TopPopup1",attrs:{cancel:e.handleCancelPopup,comfig:e.handleComfig,titleText:e.titleText,visible:e.TopPopup1,className:"toppopup-component"},on:{"update:visible":function(n){return e.TopPopup1=n}}},[i(e.operationCom,{key:e.operationComKey,ref:"operationRef",tag:"component",attrs:{param:e.operationParam},on:{handleClosePopup1:e.handleClosePopup1}},[i("div",{attrs:{slot:"completeSlot"},slot:"completeSlot"},[e._t("completeSlot",null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2)])],1),i("TopPopup",{ref:"TopPopup2",attrs:{titleText:e.titleText,isTips:!0,context:e.popupContext,cancel:e.handleTipsCancel,comfig:e.handleTipsComfig}}),i("TopTips",{ref:"topTips",attrs:{text:e.textTips,statusTips:e.statusTips,type:e.typeTips}}),e.actionBtn&&e.actionBtn.length||e.taskNodeList&&e.taskNodeList.length?i("div",{staticClass:"top-elips",style:e.actionShow?"transform: translateY(0)":"transform: translateY(100%)"},[e.taskNodeShow?e._l(e.taskNodeList,function(n){return i("div",{key:n.taskId,staticClass:"top-elips-items",on:{click:function(s){return e.handleGet(n)}}},[e._v(" "+e._s(n.name)+" ")])}):e._l(e.actionBtn,function(n){return i("div",{key:n.name,staticClass:"top-elips-items",on:{click:function(s){return n.click(n.name)}}},[e._v(" "+e._s(n.name)+" ")])}),i("div",{staticClass:"top-elips-items top-elips-items--cancel",on:{click:e.handleActionClose}},[e._v(" \u53D6\u6D88 ")])],2):e._e(),i("div",{staticClass:"top-elips-mask",style:e.actionShow?"visibility: visible; opacity: .7;":"visibility: hidden; opacity: 0;",on:{click:e.handleActionClose}}),i("TopSumbitPopup",e._b({ref:"actionPop",attrs:{visible:e.visibleSong,request:e.request,appId:e.processStatus.appId,id:e.formData.businessKey,resubmit:!0,selfList:e.selfList,isCheckType:e.isCheckType,isOrgType:e.isOrgType,isCodeType:e.isCodeType},on:{"update:visible":function(n){e.visibleSong=n},successFn:e.endFunction,change:e.handleTestsss}},"TopSumbitPopup",e.restartDataS,!1)),i("TopPopup",{ref:"cctaskTopPopup",attrs:{titleText:e.cctaskTopPopupTitle,visible:e.cctaskTopPopup,isDrawer:!0},on:{"update:visible":function(n){return e.cctaskTopPopup=n}}},[i(e.operationCom,{ref:"cctaskOperationRef",tag:"component",attrs:{param:e.operationParam},on:{handleClosecctaskTopPopup:e.handleClosecctaskTopPopup}},[i("div",{attrs:{slot:"completeSlot"},slot:"completeSlot"},[e._t("completeSlot",null,{processData:e.ProcessInsObj,currentProcess:e.currentProcess})],2)])],1)],1)},uT=[];const KT="",qh={};var pT=ve(lT,cT,uT,!1,dT,"a4fed71a",null,null);function dT(e){for(let t in qh)this[t]=qh[t]}const hT=function(){return pT.exports}(),Jh={name:"ddy-process-h5",version:"1.0.1-rc.3.85",description:"> app\u7AEF \u6D41\u7A0B\u63D2\u4EF6",main:"./ddy-process-h5.umd.cjs",style:"./style.css",type:"module",exports:{".":{import:"./ddy-process-h5.js",require:"./ddy-process-h5.umd.cjs"},"./style.css":{import:"./style.css",require:"./style.css"}},scripts:{test:'echo "Error: no test specified" && exit 1',postinstall:"node scripts/postinstall.mjs"},devDependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},dependencies:{"checked-pick-app":"1.6.7",dsbridge:"^3.1.4"},author:"",license:"ISC"};console.info("%c\u26A1"+Jh.name+"%c v"+Jh.version,"background: linear-gradient(135deg, #ff3939ff, #ffbe5cff); color: white; padding: 9px 4px 9px 4px; border-radius: 3px 0 0 3px;font-size: 12px;","background: #5100ffff; color: white; padding: 9px 6px 9px 4px; border-radius: 0px 3px 3px 0px;font-size: 12px;"),vt.TopProcess=hT,vt.TopSumbitPopup=kh,vt.ViewAttchList=Ru,vt.attchViews=Yi,Object.defineProperties(vt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|