!function(){functione(t){returne="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},e(t)}functiont(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){returnr};varr={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeofSymbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";functionl(e,t,r){returnObject.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(T){l=function(e,t,r){returne[t]=r}}functionf(e,t,r,n){varo=t&&t.prototypeinstanceofm?t:m,a=Object.create(o.prototype),c=newP(n||[]);returni(a,"_invoke",{value:E(e,r,c)}),a}functionh(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(T){return{type:"throw",arg:T}}}r.wrap=f;vard={};functionm(){}functionp(){}functiony(){}varv={};l(v,c,(function(){returnthis}));varb=Object.getPrototypeOf,w=b&&b(b(C([])));w&&w!==n&&o.call(w,c)&&(v=w);varg=y.prototype=m.prototype=Object.create(v);functionx(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){returnthis._invoke(t,e)}))}))}functionk(t,r){functionn(i,a,c,s){varu=h(t[i],t,a);if("throw"!==u.type){varl=u.arg,f=l.value;returnf&&"object"==e(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,c,s)}),(function(e){n("throw",e,c,s)})):r.resolve(f).then((function(e){l.value=e,c(l)}),(function(e){returnn("throw",e,c,s)}))}s(u.arg)}vara;i(this,"_invoke",{value:function(e,t){functiono(){returnnewr((function(r,o){n(e,t,r,o)}))}returna=a?a.then(o,o):o()}})}functionE(e,t,r){varn="suspendedStart";returnfunction(o,i){if("executing"===n)thrownewError("Generator is already running");if("completed"===n){if("throw"===o)throwi;returnS()}for(r.method=o,r.arg=i;;){vara=r.delegate;if(a){varc=L(a,r);if(c){if(c===d)continue;returnc}}if("next"===r.method)r.sent=r._sent=r.arg;elseif("throw"===r.method){if("suspendedStart"===n)thrown="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";vars=h(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}functionL(e,t){varr=e.iterator[t.method];if(void0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void0,L(e,t),"throw"===t.method))returnd;t.method="throw",t.arg=newTypeError("The iterator does not provide a 'throw' method")}returnd}varn=h(r,e.iterator,t.arg);if("throw"===n.type)returnt.method="throw",t.arg=n.arg,t.delegate=null,d;varo=n.arg;returno?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void0),t.delegate=null,d):o:(t.method="throw",t.arg=newTypeError("iterator result is not an object"),t.delegate=null,d)}functionO(e){vart={tryLoc:e[0]};1ine&&(t.catchLoc=e[1]),2ine&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}functionN(e){vart=e.completion||{};t.type="normal",deletet.arg,e.completion=t}functionP(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}functionC(e){if(e){vart=e[c];if(t)returnt.call(e);if("function"==typeofe.next)returne;if(!isNaN(e.length)){varr=-1,n=functiont(){for(;++r<e.length;)if(o.call(e,r))returnt.value=e[r],t.done=!1,t;returnt.value=void0,t.done=!0,t};returnn.next=n}}return{next:S}}functionS(){return{value:void0,done:!0}}returnp.prototype=y,i(g,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:p,configurable:!0}),p.displayName=l(y,u,"GeneratorFunction"),r.isGeneratorFunction=function(e){vart="function"==typeofe&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){returnObject.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},r.awrap=function(e){return{__await:e}},x(k.prototype),l(k.prototype,s,(function(){returnthis})),r.AsyncIterator=k,r.async=function(e,t,n,o,i){void0===i&&(i=Promise);vara=newk(f(e,t,n,o),i);returnr.isGeneratorFunction(t)?a:a.next().then((function(e){returne.done?e.value:a.next()}))},x(g),l(g,u,"Generator"),l(g,c,(function(){returnthis})),l(g,"toString",(function(){return"[object Generator]"})),r.keys=function(e){vart=Object(e),r=[];for(varnint)r.push(n);returnr.reverse(),functione(){for(;r.length;){varn=r.pop();if(nint)returne.value=n,e.done=!1,e}returne.done=!0,e}},r.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void0,this.done=!1,this.delegate=null,this.method="next",this.arg=void0,this.tryEntries.forEach(N),!e)for(vartinthis)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void0)},stop:function(){this.done=!0;vare=this.tryEntries[0].completion;if("throw"===e.type)throwe.arg;returnthis.rval},dispatchException:function(e){if(this.done)throwe;vart=this;functionr(r,n){returna.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void0),!!n}for(varn=this.tryEntries.length-1;n>=0;--n){vari=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)returnr("end");if(i.tryLoc<=this.prev){varc=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0);if(this.prev<i.finallyLoc)returnr(i.finallyLoc)}elseif(c){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0)}else{if(!s)thrownewError("try statement without catch or finally");if(this.prev<i.finallyLoc)returnr(i.finallyLoc)}}}},abrupt:function(e,t){for(varr=this.tryEntries.length-1;r>=0;--r){varn=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){vari=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);vara=i?i.completion:{};returna.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throwe.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(vart=this.tryEntries.length-1;t>=0;--t){varr=this.tryEntries[t];if(r.finallyLoc===e)returnthis.complete(r.completion,r.afterLoc),N(r),d}},catch:function(e){for(vart=this.tryEntries.length-1;t>=0;--t){varr=this.tryEntries[t];if(r.tryLoc===e){varn=r.completion;if("throw"===n.type){varo=n.arg;N(r)}returno}}thrownewError("illegal catch attempt")},delegateYield:function(e,t,r){returnthis.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void0),d}},r}functionr(e,t,r,n,o,i,a){try{varc=e[i](a),s=c.value}catch(u){returnvoidr(u)}c.done?t(s):Promise.resolve(s).then(n,o)}functionn(e){returnfunction(){vart=this,n=arguments;returnnewPromise((function(o,i){vara=e.apply(t,n);functionc(e){r(a,o,i,c,s,"next",e)}functions(e){r(a,o,i,c,s,"throw",e)}c(void0)}))}}functiono(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functioni(e,t){for(varr=0;r<t.length;r++){varn=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}functiona(e,t,r){returnt&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}functionc(e,t){returnc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){returne.__proto__=t,e},c(e,t)}functions(e){vart=function(){if("undefined"==typeofReflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeofProxy)return!0;try{returnBoolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();returnfunction(){varr,n=f(e);if(t){varo=f(this).constructor;r=Reflect.construct(n,arguments,o)}elser=n.apply(this,arguments);returnu(this,r)}}functionu(t,r){if(r&&("object"===e(r)||"function"==typeofr))returnr;if(void0!==r)thrownewTypeError("Derived constructors may only return object or undefined");returnl(t)}functionl(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}functionf(e){returnf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){returne.__proto__||Object.getPrototypeOf(e)},f(e)}functionh(e,t,r){returntine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}System.register(["@ibiz-template/controller","vue","@ibiz-template/vue-util","@ibiz-template/core","@ibiz-template/runtime","@ibiz-template/model"],(function(e,r){"use strict";vari,u,f,d,m,p,y,v,b,w,g,x,k,E,L,O,N,P;return{setters:[function(e){i=e.GridFieldColumnController,u=e.GridRowController,f=e.WFStepTraceViewController},function(e){d=e.defineComponent,m=e.computed,p=e.h,y=e.getCurrentInstance,v=e.ref},function(e){b=e.useNamespace,w=e.useViewController,g=e.usePropsWatch,x=e.useWFStepTraceViewController,k=e.useWFDynaEditView3Controller,E=e.useEditView3Controller},function(e){L=e.colorBlend,O=e.IBizContext},function(e){N=e.ViewMode},function(e){P=e.ViewType}],execute:function(){varC=d({name:"CodeListGridColumn",props:{controller:{type:i,required:!0},row:{type:u,required:!0}},setup:function(e){vart=b("grid-field-column"),r=m((function(){varr;if("FRONT"!==e.controller.model.source.cLConvertMode)return[];varn=e.row.data[e.controller.model.codeName];returnnull!==(r=e.controller.codeListItems)&&void0!==r&&r.length&&n?n.split(",").map((function(r){varn=e.controller.codeListItems.find((function(e){returne.value===r}));if(n){varo=n.color||"#515a6e";return{text:n.text,colorStyle:t.cssVarBlock({color:o,"border-color":o,"bg-color":L(o,"#fff")})}}})).filter(Boolean):[]})),n=m((function(){varr="";switch(e.controller.model.align){case"LEFT":r="flex-start";break;case"RIGHT":r="flex-end";break;default:r="center"}returnt.cssVarBlock({"justify-content":r})}));return{ns:t,alignStyle:n,selectedItems:r,onCellClick:function(t){e.controller.isLinkColumn&&e.controller.openLinkView(e.row,t)}}},render:function(){vare=this,t=this.controller,r=this.row.data[t.model.codeName];returnp("div",{class:[this.ns.b(),t.isLinkColumn&&this.ns.m("link-column")],style:this.alignStyle,on:{click:this.onCellClick}},[this.selectedItems.length>0?this.selectedItems.map((function(t){returnp("span",{class:e.ns.e("code-list-item"),style:t.colorStyle},[t.text])})):p("span",{class:this.ns.e("text")},[r])])}}),S=function(e){!function(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(u,e);varr,i=s(u);functionu(){vare;o(this,u);for(vart=arguments.length,r=newArray(t),n=0;n<t;n++)r[n]=arguments[n];returnh(l(e=i.call.apply(i,[this].concat(r))),"imgSrc",void0),e}returna(u,[{key:"getUIData",value:(r=n(t().mark((functione(){varr,n,o;returnt().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnr=newO(this.params,this.context),e.next=3,this.entityService.wf.getWFProcessDiagram(r);case3:n=e.sent,o=newBlob([n.data]),this.imgSrc=URL.createObjectURL(o);case6:case"end":returne.stop()}}),e,this)}))),function(){returnr.apply(this,arguments)})}]),u}(f),T=d({name:"PresetWFChartView",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},deName:{type:String,required:!0}},setup:function(e){vart=b("preset-wf-chart-view"),r=y().proxy,n=w(r,(function(t,r){returnnewS(e.modelPath,t,r)}));returng(r,"deName",n.setDeName.bind(n)),{c:n,ns:t}},render:function(){returnp("div",{class:this.ns.b()},[p("img",{attrs:{src:this.c.imgSrc}})])}}),j=d({name:"WFToolbar",props:{wfLinks:{type:Array,required:!0}},setup:function(e,r){varo=r.emit,i=b("wf-toolbar"),a=function(){vare=n(t().mark((functione(r,n){returnt().wrap((function(e){for(;;)switch(e.prev=e.next){case0:o("wf-link-click",r,n);case1:case"end":returne.stop()}}),e)})));returnfunction(t,r){returne.apply(this,arguments)}}();return{ns:i,handleClick:a}},render:function(){vare=this,t=this.wfLinks||[];returnp("div",{class:"".concat(this.ns.b())},[t.length>0&&t.map((function(t){varr="驳回"==t.sequenceFlowName;returnp("div",{key:t.sequenceFlowId,class:[e.ns.e("item"),r?e.ns.em("item","reject"):""]},[p("i-button",{attrs:{title:t.sequenceFlowName},on:{click:function(r){returne.handleClick(t,r)}}},[t.sequenceFlowName||""])])}))])}}),_=a((functione(){o(this,e),h(this,"component",T)})),I=function(){functione(){o(this,e),h(this,"component",C)}varr;returna(e,[{key:"createController",value:(r=n(t().mark((functione(r,n){varo;returnt().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returno=newi(r,n),e.next=3,o.init();case3:returne.abrupt("return",o);case4:case"end":returne.stop()}}),e)}))),function(e,t){returnr.apply(this,arguments)})}]),e}(),V=a((functione(){o(this,e),h(this,"component","IndexView")})),F=d({name:"WFStepTraceGrid",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},deName:{type:String,required:!0}},setup:function(e){vart=y().proxy,r=x(t,e.modelPath);g(t,"deName",r.setDeName.bind(r));varn=b("wf-step-trace-grid"),o=v([]);r.nerve.self.evt.on("mounted",(function(){vare;r.data&&(null===(e=r.data.usertasks)||void0===e||e.forEach((function(e){e.identitylinks.length>0||(e.comments.length>0&&e.comments.forEach((function(t){o.value.push({nodeName:e.userTaskName,personName:t.authorName,time:t.time,content:t.type,comment:t.fullMessage})})),o.value.sort((function(e,t){returnDate.parse(t.time)-Date.parse(e.time)})))})))}));vari=v([{title:"处理环节",key:"nodeName",width:180,resizable:!0},{title:"处理人",key:"personName",width:180,resizable:!0},{title:"处理时间",key:"time",width:180,resizable:!0},{title:"处理内容",key:"content",width:180,resizable:!0},{title:"处理意见",key:"comment"}]);return{c:r,ns:n,gridData:o,columns:i}},render:function(){returnp("div",{class:this.ns.b()},[p("div",{class:this.ns.e("title")},["审批信息"]),p("i-table",{attrs:{"disabled-hover":!0,columns:this.columns,data:this.gridData},class:this.ns.e("grid")})])}}),D=d({props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(e){vart=y().proxy,r=k(t,e.modelPath),n=b("view-".concat(P.DE_WF_DYNA_EDIT_VIEW3).toLowerCase()),o=v(["mainForm"]);return{c:r,ns:n,onTabClick:function(e){o.value.includes(e)||o.value.push(e)},lazyList:o}},render:function(e){vart=this,r=[];if(this.c.complete){varn=this.c.activeForm;n&&this.c.providers[n.name]&&r.push(e(this.c.providers[n.name].component,{props:{modelData:n,context:this.c.context,params:this.c.params},style:{height:"auto"},on:{neuronInit:this.c.nerve.onNeuronInit("form")}}))}if(this.c.complete&&this.c.model.drTab.pages[0]){varo=this.c.model.drTab.pages[0],i=this.c.drPages[o.source.name];r.push(e(F,{attrs:{context:i.context,params:i.params,deName:this.c.model.appEntity.source.codeName,modal:this.modal,modelPath:o.embedView.source.modelPath}}))}returne("view-base",{attrs:{controller:this.c},scopedSlots:{toolbar:function(){returnt.c.complete?[t.c.wfLinks.length>0&&e("wf-toolbar",{attrs:{wfLinks:t.c.wfLinks},on:{"wf-link-click":function(e){t.c.onLinkClick(e)}}})]:null}}},[this.c.complete&&e("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[e("i-tab-pane",{class:this.ns.be("","tab-item"),attrs:{tab:this.c.model.drTab.source.name,label:this.c.model.drTab.source.editItemCaption,name:"mainForm"}},[r]),this.c.model.drTab.pages.map((function(r){varn=t.c.drPages[r.source.name];returne("i-tab-pane",{class:t.ns.be("","tab-item"),attrs:{tab:t.c.model.drTab.source.name,disabled:t.c.isNewData,label:r.source.caption,name:r.source.name}},[!t.c.isNewData&&t.lazyList.includes(r.source.name)&&e("ViewShell",{props:{context:n.context,params:n.params,modal:{mode:N.EMBED},modelPath:r.embedView.source.modelPath,deName:t.c.model.appEntity.source.codeName},on:{neuronInit:t.c.nerve.onNeuronInit(r.source.name)},key:n.key})])}))])])}}),z=a((functione(){o(this,e),h(this,"component",D)})),W=d({name:"SyEditView3",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(e){vart=y().proxy,r=E(t,e.modelPath),n=b("view-deeditview3"),o=v(["mainForm"]);return{c:r,ns:n,onTabClick:function(e){o.value.includes(e)||o.value.push(e)},lazyList:o}},render:function(e){vart=this;returne("view-base",{attrs:{controller:this.c}},[this.c.complete&&e("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[e("i-tab-pane",{class:this.ns.be("","tab-item"),attrs:{tab:this.c.model.drTab.source.name,label:this.c.model.drTab.source.editItemCaption,name:"mainForm"}},[e("edit-form-control",{attrs:{modelData:this.c.model.form,context:this.c.context,params:this.c.params},style:{height:"auto"},on:{neuronInit:this.c.nerve.onNeuronInit(this.c.model.form.source.name)}}),e(F,{attrs:{context:this.c.drPages[this.c.model.drTab.pages[0].source.name].context,params:this.c.drPages[this.c.model.drTab.pages[0].source.name].params,deName:this.c.model.appEntity.source.codeName,modal:this.modal,modelPath:this.c.model.drTab.pages[0].embedView.source.modelPath}})]),this.c.model.drTab.pages.map((function(r){varn=t.c.drPages[r.source.name];if(n)returne("i-tab-pane",{class:t.ns.be("","tab-item"),attrs:{tab:t.c.model.drTab.source.name,disabled:t.c.isNewData,label:r.source.caption,name:r.source.name}},[!t.c.isNewData&&t.lazyList.includes(r.source.name)&&e("ViewShell",{props:{context:n.context,params:n.params,modal:{mode:N.EMBED},modelPath:r.embedView.source.modelPath,deName:t.c.model.appEntity.source.codeName},on:{neuronInit:t.c.nerve.onNeuronInit(r.source.name)},key:n.key})])}))])])}}),G=a((functione(){o(this,e),h(this,"component",W)}));e("default",{mateUrl:r.meta.url,install:function(e){ibiz.config.enableDataInfoBar=!1,e.component("WfToolbar",j),ibiz.register.view.register("VIEW_CUSTOM_SyWebIndexView",newV),ibiz.register.view.register("VIEW_CUSTOM_PresetWFChartView",new_),ibiz.register.gridColumn.register("GRID_COLRENDER_CodeListGridColumn",newI),ibiz.register.view.register("VIEW_CUSTOM_SyWfDynaEditView3",newz),ibiz.register.view.register("VIEW_CUSTOM_SyEditView3",newG)}})}}}))}();
!function(){functione(t){returne="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},e(t)}functiont(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){returnr};varr={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeofSymbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";functionl(e,t,r){returnObject.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(T){l=function(e,t,r){returne[t]=r}}functionf(e,t,r,n){varo=t&&t.prototypeinstanceofd?t:d,a=Object.create(o.prototype),c=newP(n||[]);returni(a,"_invoke",{value:E(e,r,c)}),a}functionh(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(T){return{type:"throw",arg:T}}}r.wrap=f;varm={};functiond(){}functionp(){}functiony(){}varv={};l(v,c,(function(){returnthis}));varb=Object.getPrototypeOf,w=b&&b(b(C([])));w&&w!==n&&o.call(w,c)&&(v=w);varg=y.prototype=d.prototype=Object.create(v);functionx(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){returnthis._invoke(t,e)}))}))}functionk(t,r){functionn(i,a,c,s){varu=h(t[i],t,a);if("throw"!==u.type){varl=u.arg,f=l.value;returnf&&"object"==e(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,c,s)}),(function(e){n("throw",e,c,s)})):r.resolve(f).then((function(e){l.value=e,c(l)}),(function(e){returnn("throw",e,c,s)}))}s(u.arg)}vara;i(this,"_invoke",{value:function(e,t){functiono(){returnnewr((function(r,o){n(e,t,r,o)}))}returna=a?a.then(o,o):o()}})}functionE(e,t,r){varn="suspendedStart";returnfunction(o,i){if("executing"===n)thrownewError("Generator is already running");if("completed"===n){if("throw"===o)throwi;returnS()}for(r.method=o,r.arg=i;;){vara=r.delegate;if(a){varc=L(a,r);if(c){if(c===m)continue;returnc}}if("next"===r.method)r.sent=r._sent=r.arg;elseif("throw"===r.method){if("suspendedStart"===n)thrown="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";vars=h(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===m)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}functionL(e,t){varr=e.iterator[t.method];if(void0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void0,L(e,t),"throw"===t.method))returnm;t.method="throw",t.arg=newTypeError("The iterator does not provide a 'throw' method")}returnm}varn=h(r,e.iterator,t.arg);if("throw"===n.type)returnt.method="throw",t.arg=n.arg,t.delegate=null,m;varo=n.arg;returno?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void0),t.delegate=null,m):o:(t.method="throw",t.arg=newTypeError("iterator result is not an object"),t.delegate=null,m)}functionO(e){vart={tryLoc:e[0]};1ine&&(t.catchLoc=e[1]),2ine&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}functionN(e){vart=e.completion||{};t.type="normal",deletet.arg,e.completion=t}functionP(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}functionC(e){if(e){vart=e[c];if(t)returnt.call(e);if("function"==typeofe.next)returne;if(!isNaN(e.length)){varr=-1,n=functiont(){for(;++r<e.length;)if(o.call(e,r))returnt.value=e[r],t.done=!1,t;returnt.value=void0,t.done=!0,t};returnn.next=n}}return{next:S}}functionS(){return{value:void0,done:!0}}returnp.prototype=y,i(g,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:p,configurable:!0}),p.displayName=l(y,u,"GeneratorFunction"),r.isGeneratorFunction=function(e){vart="function"==typeofe&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){returnObject.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,u,"GeneratorFunction")),e.prototype=Object.create(g),e},r.awrap=function(e){return{__await:e}},x(k.prototype),l(k.prototype,s,(function(){returnthis})),r.AsyncIterator=k,r.async=function(e,t,n,o,i){void0===i&&(i=Promise);vara=newk(f(e,t,n,o),i);returnr.isGeneratorFunction(t)?a:a.next().then((function(e){returne.done?e.value:a.next()}))},x(g),l(g,u,"Generator"),l(g,c,(function(){returnthis})),l(g,"toString",(function(){return"[object Generator]"})),r.keys=function(e){vart=Object(e),r=[];for(varnint)r.push(n);returnr.reverse(),functione(){for(;r.length;){varn=r.pop();if(nint)returne.value=n,e.done=!1,e}returne.done=!0,e}},r.values=C,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void0,this.done=!1,this.delegate=null,this.method="next",this.arg=void0,this.tryEntries.forEach(N),!e)for(vartinthis)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void0)},stop:function(){this.done=!0;vare=this.tryEntries[0].completion;if("throw"===e.type)throwe.arg;returnthis.rval},dispatchException:function(e){if(this.done)throwe;vart=this;functionr(r,n){returna.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void0),!!n}for(varn=this.tryEntries.length-1;n>=0;--n){vari=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)returnr("end");if(i.tryLoc<=this.prev){varc=o.call(i,"catchLoc"),s=o.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0);if(this.prev<i.finallyLoc)returnr(i.finallyLoc)}elseif(c){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0)}else{if(!s)thrownewError("try statement without catch or finally");if(this.prev<i.finallyLoc)returnr(i.finallyLoc)}}}},abrupt:function(e,t){for(varr=this.tryEntries.length-1;r>=0;--r){varn=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){vari=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);vara=i?i.completion:{};returna.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throwe.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(vart=this.tryEntries.length-1;t>=0;--t){varr=this.tryEntries[t];if(r.finallyLoc===e)returnthis.complete(r.completion,r.afterLoc),N(r),m}},catch:function(e){for(vart=this.tryEntries.length-1;t>=0;--t){varr=this.tryEntries[t];if(r.tryLoc===e){varn=r.completion;if("throw"===n.type){varo=n.arg;N(r)}returno}}thrownewError("illegal catch attempt")},delegateYield:function(e,t,r){returnthis.delegate={iterator:C(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void0),m}},r}functionr(e,t,r,n,o,i,a){try{varc=e[i](a),s=c.value}catch(u){returnvoidr(u)}c.done?t(s):Promise.resolve(s).then(n,o)}functionn(e){returnfunction(){vart=this,n=arguments;returnnewPromise((function(o,i){vara=e.apply(t,n);functionc(e){r(a,o,i,c,s,"next",e)}functions(e){r(a,o,i,c,s,"throw",e)}c(void0)}))}}functiono(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functioni(e,t){for(varr=0;r<t.length;r++){varn=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}functiona(e,t,r){returnt&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}functionc(e,t){returnc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){returne.__proto__=t,e},c(e,t)}functions(e){vart=function(){if("undefined"==typeofReflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeofProxy)return!0;try{returnBoolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();returnfunction(){varr,n=f(e);if(t){varo=f(this).constructor;r=Reflect.construct(n,arguments,o)}elser=n.apply(this,arguments);returnu(this,r)}}functionu(t,r){if(r&&("object"===e(r)||"function"==typeofr))returnr;if(void0!==r)thrownewTypeError("Derived constructors may only return object or undefined");returnl(t)}functionl(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}functionf(e){returnf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){returne.__proto__||Object.getPrototypeOf(e)},f(e)}functionh(e,t,r){returntine?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}System.register(["@ibiz-template/controller","vue","@ibiz-template/vue-util","@ibiz-template/core","@ibiz-template/runtime","@ibiz-template/model"],(function(e,r){"use strict";vari,u,f,m,d,p,y,v,b,w,g,x,k,E,L,O,N,P;return{setters:[function(e){i=e.GridFieldColumnController,u=e.GridRowController,f=e.WFStepTraceViewController},function(e){m=e.defineComponent,d=e.computed,p=e.h,y=e.getCurrentInstance,v=e.ref},function(e){b=e.useNamespace,w=e.useViewController,g=e.usePropsWatch,x=e.useWFStepTraceViewController,k=e.useWFDynaEditView3Controller,E=e.useEditView3Controller},function(e){L=e.colorBlend,O=e.IBizContext},function(e){N=e.ViewMode},function(e){P=e.ViewType}],execute:function(){varC=m({name:"CodeListGridColumn",props:{controller:{type:i,required:!0},row:{type:u,required:!0}},setup:function(e){vart=b("grid-field-column"),r=d((function(){varr;if("FRONT"!==e.controller.model.source.cLConvertMode)return[];varn=e.row.data[e.controller.model.codeName];returnnull!==(r=e.controller.codeListItems)&&void0!==r&&r.length&&n?n.split(",").map((function(r){varn=e.controller.codeListItems.find((function(e){returne.value===r}));if(n){varo=n.color||"#515a6e";return{text:n.text,colorStyle:t.cssVarBlock({color:o,"border-color":o,"bg-color":L(o,"#fff")})}}})).filter(Boolean):[]})),n=d((function(){varr="";switch(e.controller.model.align){case"LEFT":r="flex-start";break;case"RIGHT":r="flex-end";break;default:r="center"}returnt.cssVarBlock({"justify-content":r})}));return{ns:t,alignStyle:n,selectedItems:r,onCellClick:function(t){e.controller.isLinkColumn&&e.controller.openLinkView(e.row,t)}}},render:function(){vare=this,t=this.controller,r=this.row.data[t.model.codeName];returnp("div",{class:[this.ns.b(),t.isLinkColumn&&this.ns.m("link-column")],style:this.alignStyle,on:{click:this.onCellClick}},[this.selectedItems.length>0?this.selectedItems.map((function(t){returnp("span",{class:e.ns.e("code-list-item"),style:t.colorStyle},[t.text])})):p("span",{class:this.ns.e("text")},[r])])}}),S=function(e){!function(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(u,e);varr,i=s(u);functionu(){vare;o(this,u);for(vart=arguments.length,r=newArray(t),n=0;n<t;n++)r[n]=arguments[n];returnh(l(e=i.call.apply(i,[this].concat(r))),"imgSrc",void0),e}returna(u,[{key:"getUIData",value:(r=n(t().mark((functione(){varr,n,o;returnt().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returnr=newO(this.params,this.context),e.next=3,this.entityService.wf.getWFProcessDiagram(r);case3:n=e.sent,o=newBlob([n.data]),this.imgSrc=URL.createObjectURL(o);case6:case"end":returne.stop()}}),e,this)}))),function(){returnr.apply(this,arguments)})}]),u}(f),T=m({name:"PresetWFChartView",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},deName:{type:String,required:!0}},setup:function(e){vart=b("preset-wf-chart-view"),r=y().proxy,n=w(r,(function(t,r){returnnewS(e.modelPath,t,r)}));returng(r,"deName",n.setDeName.bind(n)),{c:n,ns:t}},render:function(){returnp("div",{class:this.ns.b()},[p("img",{attrs:{src:this.c.imgSrc}})])}}),j=m({name:"WFToolbar",props:{wfLinks:{type:Array,required:!0}},setup:function(e,r){varo=r.emit,i=b("wf-toolbar"),a=function(){vare=n(t().mark((functione(r,n){returnt().wrap((function(e){for(;;)switch(e.prev=e.next){case0:o("wf-link-click",r,n);case1:case"end":returne.stop()}}),e)})));returnfunction(t,r){returne.apply(this,arguments)}}();return{ns:i,handleClick:a}},render:function(){vare=this,t=this.wfLinks||[];returnp("div",{class:"".concat(this.ns.b())},[t.length>0&&t.map((function(t){varr="驳回"==t.sequenceFlowName||"取消"==t.sequenceFlowName;returnp("div",{key:t.sequenceFlowId,class:[e.ns.e("item"),r?e.ns.em("item","reject"):""]},[p("i-button",{attrs:{title:t.sequenceFlowName},on:{click:function(r){returne.handleClick(t,r)}}},[t.sequenceFlowName||""])])}))])}}),_=a((functione(){o(this,e),h(this,"component",T)})),I=function(){functione(){o(this,e),h(this,"component",C)}varr;returna(e,[{key:"createController",value:(r=n(t().mark((functione(r,n){varo;returnt().wrap((function(e){for(;;)switch(e.prev=e.next){case0:returno=newi(r,n),e.next=3,o.init();case3:returne.abrupt("return",o);case4:case"end":returne.stop()}}),e)}))),function(e,t){returnr.apply(this,arguments)})}]),e}(),V=a((functione(){o(this,e),h(this,"component","IndexView")})),F=m({name:"WFStepTraceGrid",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},deName:{type:String,required:!0}},setup:function(e){vart=y().proxy,r=x(t,e.modelPath);g(t,"deName",r.setDeName.bind(r));varn=b("wf-step-trace-grid"),o=v([]);r.nerve.self.evt.on("mounted",(function(){vare;r.data&&(null===(e=r.data.usertasks)||void0===e||e.forEach((function(e){e.identitylinks.length>0||(e.comments.length>0&&e.comments.forEach((function(t){o.value.push({nodeName:e.userTaskName,personName:t.authorName,time:t.time,content:t.type,comment:t.fullMessage})})),o.value.sort((function(e,t){returnDate.parse(t.time)-Date.parse(e.time)})))})))}));vari=v([{title:"处理环节",key:"nodeName",width:180,resizable:!0},{title:"处理人",key:"personName",width:180,resizable:!0},{title:"处理时间",key:"time",width:180,resizable:!0},{title:"处理内容",key:"content",width:180,resizable:!0},{title:"处理意见",key:"comment"}]);return{c:r,ns:n,gridData:o,columns:i}},render:function(){returnp("div",{class:this.ns.b()},[p("div",{class:this.ns.e("title")},["审批信息"]),p("i-table",{attrs:{"disabled-hover":!0,columns:this.columns,data:this.gridData},class:this.ns.e("grid")})])}}),D=m({props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(e){vart=y().proxy,r=k(t,e.modelPath),n=b("view-".concat(P.DE_WF_DYNA_EDIT_VIEW3).toLowerCase()),o=v(["mainForm"]);return{c:r,ns:n,onTabClick:function(e){o.value.includes(e)||o.value.push(e)},lazyList:o}},render:function(e){vart=this,r=[];if(this.c.complete){varn=this.c.activeForm;n&&this.c.providers[n.name]&&r.push(e(this.c.providers[n.name].component,{props:{modelData:n,context:this.c.context,params:this.c.params},style:{height:"auto"},on:{neuronInit:this.c.nerve.onNeuronInit("form")}}))}if(this.c.complete&&this.c.model.drTab.pages[0]){varo=this.c.model.drTab.pages[0],i=this.c.drPages[o.source.name];r.push(e(F,{attrs:{context:i.context,params:i.params,deName:this.c.model.appEntity.source.codeName,modal:this.modal,modelPath:o.embedView.source.modelPath}}))}returne("view-base",{attrs:{controller:this.c},scopedSlots:{toolbar:function(){returnt.c.complete?[t.c.wfLinks.length>0&&e("wf-toolbar",{attrs:{wfLinks:t.c.wfLinks},on:{"wf-link-click":function(e){t.c.onLinkClick(e)}}})]:null}}},[this.c.complete&&e("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[e("i-tab-pane",{class:this.ns.be("","tab-item"),attrs:{tab:this.c.model.drTab.source.name,label:this.c.model.drTab.source.editItemCaption,name:"mainForm"}},[r]),this.c.model.drTab.pages.map((function(r){varn=t.c.drPages[r.source.name];returne("i-tab-pane",{class:t.ns.be("","tab-item"),attrs:{tab:t.c.model.drTab.source.name,disabled:t.c.isNewData,label:r.source.caption,name:r.source.name}},[!t.c.isNewData&&t.lazyList.includes(r.source.name)&&e("ViewShell",{props:{context:n.context,params:n.params,modal:{mode:N.EMBED},modelPath:r.embedView.source.modelPath,deName:t.c.model.appEntity.source.codeName},on:{neuronInit:t.c.nerve.onNeuronInit(r.source.name)},key:n.key})])}))])])}}),z=a((functione(){o(this,e),h(this,"component",D)})),W=m({name:"SyEditView3",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(e){vart=y().proxy,r=E(t,e.modelPath),n=b("view-deeditview3"),o=v(["mainForm"]);return{c:r,ns:n,onTabClick:function(e){o.value.includes(e)||o.value.push(e)},lazyList:o}},render:function(e){vart=this;returne("view-base",{attrs:{controller:this.c}},[this.c.complete&&e("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[e("i-tab-pane",{class:this.ns.be("","tab-item"),attrs:{tab:this.c.model.drTab.source.name,label:this.c.model.drTab.source.editItemCaption,name:"mainForm"}},[e("edit-form-control",{attrs:{modelData:this.c.model.form,context:this.c.context,params:this.c.params},style:{height:"auto"},on:{neuronInit:this.c.nerve.onNeuronInit(this.c.model.form.source.name)}}),e(F,{attrs:{context:this.c.drPages[this.c.model.drTab.pages[0].source.name].context,params:this.c.drPages[this.c.model.drTab.pages[0].source.name].params,deName:this.c.model.appEntity.source.codeName,modal:this.modal,modelPath:this.c.model.drTab.pages[0].embedView.source.modelPath}})]),this.c.model.drTab.pages.map((function(r){varn=t.c.drPages[r.source.name];if(n)returne("i-tab-pane",{class:t.ns.be("","tab-item"),attrs:{tab:t.c.model.drTab.source.name,disabled:t.c.isNewData,label:r.source.caption,name:r.source.name}},[!t.c.isNewData&&t.lazyList.includes(r.source.name)&&e("ViewShell",{props:{context:n.context,params:n.params,modal:{mode:N.EMBED},modelPath:r.embedView.source.modelPath,deName:t.c.model.appEntity.source.codeName},on:{neuronInit:t.c.nerve.onNeuronInit(r.source.name)},key:n.key})])}))])])}}),G=a((functione(){o(this,e),h(this,"component",W)}));e("default",{mateUrl:r.meta.url,install:function(e){ibiz.config.enableDataInfoBar=!1,e.component("WfToolbar",j),ibiz.register.view.register("VIEW_CUSTOM_SyWebIndexView",newV),ibiz.register.view.register("VIEW_CUSTOM_PresetWFChartView",new_),ibiz.register.gridColumn.register("GRID_COLRENDER_CodeListGridColumn",newI),ibiz.register.view.register("VIEW_CUSTOM_SyWfDynaEditView3",newz),ibiz.register.view.register("VIEW_CUSTOM_SyEditView3",newG)}})}}}))}();