!function(){functiont(e){returnt="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(t){returntypeoft}:function(t){returnt&&"function"==typeofSymbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeoft},t(e)}functione(t,e,r){return(e=s(e))int?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}functionr(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){returne};vare={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeofSymbol?Symbol:{},c=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";functionl(t,e,r){returnObject.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(S){l=function(t,e,r){returnt[e]=r}}functionf(t,e,r,n){varo=e&&e.prototypeinstanceofm?e:m,a=Object.create(o.prototype),c=newN(n||[]);returni(a,"_invoke",{value:k(t,r,c)}),a}functionh(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(S){return{type:"throw",arg:S}}}e.wrap=f;varp={};functionm(){}functiond(){}functiony(){}varv={};l(v,c,(function(){returnthis}));varb=Object.getPrototypeOf,g=b&&b(b(j([])));g&&g!==n&&o.call(g,c)&&(v=g);varw=y.prototype=m.prototype=Object.create(v);functionx(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){returnthis._invoke(e,t)}))}))}functionE(e,r){functionn(i,a,c,s){varu=h(e[i],e,a);if("throw"!==u.type){varl=u.arg,f=l.value;returnf&&"object"==t(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,c,s)}),(function(t){n("throw",t,c,s)})):r.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){returnn("throw",t,c,s)}))}s(u.arg)}vara;i(this,"_invoke",{value:function(t,e){functiono(){returnnewr((function(r,o){n(t,e,r,o)}))}returna=a?a.then(o,o):o()}})}functionk(t,e,r){varn="suspendedStart";returnfunction(o,i){if("executing"===n)thrownewError("Generator is already running");if("completed"===n){if("throw"===o)throwi;returnT()}for(r.method=o,r.arg=i;;){vara=r.delegate;if(a){varc=O(a,r);if(c){if(c===p)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(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}functionO(t,e){varr=e.method,n=t.iterator[r];if(void0===n)returne.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=newTypeError("The iterator does not provide a '"+r+"' method")),p;varo=h(n,t.iterator,e.arg);if("throw"===o.type)returne.method="throw",e.arg=o.arg,e.delegate=null,p;vari=o.arg;returni?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void0),e.delegate=null,p):i:(e.method="throw",e.arg=newTypeError("iterator result is not an object"),e.delegate=null,p)}functionP(t){vare={tryLoc:t[0]};1int&&(e.catchLoc=t[1]),2int&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}functionL(t){vare=t.completion||{};e.type="normal",deletee.arg,t.completion=e}functionN(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}functionj(t){if(t){vare=t[c];if(e)returne.call(t);if("function"==typeoft.next)returnt;if(!isNaN(t.length)){varr=-1,n=functione(){for(;++r<t.length;)if(o.call(t,r))returne.value=t[r],e.done=!1,e;returne.value=void0,e.done=!0,e};returnn.next=n}}return{next:T}}functionT(){return{value:void0,done:!0}}returnd.prototype=y,i(w,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:d,configurable:!0}),d.displayName=l(y,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){vare="function"==typeoft&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){returnObject.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},x(E.prototype),l(E.prototype,s,(function(){returnthis})),e.AsyncIterator=E,e.async=function(t,r,n,o,i){void0===i&&(i=Promise);vara=newE(f(t,r,n,o),i);returne.isGeneratorFunction(r)?a:a.next().then((function(t){returnt.done?t.value:a.next()}))},x(w),l(w,u,"Generator"),l(w,c,(function(){returnthis})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){vare=Object(t),r=[];for(varnine)r.push(n);returnr.reverse(),functiont(){for(;r.length;){varn=r.pop();if(nine)returnt.value=n,t.done=!1,t}returnt.done=!0,t}},e.values=j,N.prototype={constructor:N,reset:function(t){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(L),!t)for(vareinthis)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void0)},stop:function(){this.done=!0;vart=this.tryEntries[0].completion;if("throw"===t.type)throwt.arg;returnthis.rval},dispatchException:function(t){if(this.done)throwt;vare=this;functionr(r,n){returna.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.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(t,e){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"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);vara=i?i.completion:{};returna.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throwt.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(vare=this.tryEntries.length-1;e>=0;--e){varr=this.tryEntries[e];if(r.finallyLoc===t)returnthis.complete(r.completion,r.afterLoc),L(r),p}},catch:function(t){for(vare=this.tryEntries.length-1;e>=0;--e){varr=this.tryEntries[e];if(r.tryLoc===t){varn=r.completion;if("throw"===n.type){varo=n.arg;L(r)}returno}}thrownewError("illegal catch attempt")},delegateYield:function(t,e,r){returnthis.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void0),p}},e}functionn(t,e,r,n,o,i,a){try{varc=t[i](a),s=c.value}catch(u){returnvoidr(u)}c.done?e(s):Promise.resolve(s).then(n,o)}functiono(t){returnfunction(){vare=this,r=arguments;returnnewPromise((function(o,i){vara=t.apply(e,r);functionc(t){n(a,o,i,c,s,"next",t)}functions(t){n(a,o,i,c,s,"throw",t)}c(void0)}))}}functioni(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functiona(t,e){for(varr=0;r<e.length;r++){varn=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"inn&&(n.writable=!0),Object.defineProperty(t,s(n.key),n)}}functionc(t,e,r){returne&&a(t.prototype,e),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}functions(e){varr=function(e,r){if("object"!==t(e)||null===e)returne;varn=e[Symbol.toPrimitive];if(void0!==n){varo=n.call(e,r||"default");if("object"!==t(o))returno;thrownewTypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===t(r)?r:String(r)}functionu(){returnu="undefined"!=typeofReflect&&Reflect.get?Reflect.get.bind():function(t,e,r){varn=l(t,e);if(n){varo=Object.getOwnPropertyDescriptor(n,e);returno.get?o.get.call(arguments.length<3?t:r):o.value}},u.apply(this,arguments)}functionl(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=m(t)););returnt}functionf(t,e){returnf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){returnt.__proto__=e,t},f(t,e)}functionh(t){vare=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(t){return!1}}();returnfunction(){varr,n=m(t);if(e){varo=m(this).constructor;r=Reflect.construct(n,arguments,o)}elser=n.apply(this,arguments);returnp(this,r)}}functionp(e,r){if(r&&("object"===t(r)||"function"==typeofr))returnr;if(void0!==r)thrownewTypeError("Derived constructors may only return object or undefined");returnfunction(t){if(void0===t)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returnt}(e)}functionm(t){returnm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){returnt.__proto__||Object.getPrototypeOf(t)},m(t)}System.register(["@ibiz-template/runtime","@ibiz-template/vue-util","vue","@ibiz-template/model","qx-util","@ibiz-template/controller"],(function(t,n){"use strict";vara,s,l,p,d,y,v,b,g,w,x,E,k,O;return{setters:[function(t){a=t.ViewMode,s=t.PluginStaticResource},function(t){l=t.useWFStepTraceViewController,p=t.usePropsWatch,d=t.useNamespace,y=t.useViewController,v=t.useEditView3Controller},function(t){b=t.defineComponent,g=t.getCurrentInstance,w=t.ref,x=t.h},function(t){E=t.ViewType},function(t){k=t.createUUID},function(t){O=t.WFDynaEditView3Controller}],execute:function(){varP=b({name:"WFStepTraceGrid",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},deName:{type:String,required:!0}},setup:function(t){vare=g().proxy,r=l(e,t.modelPath);p(e,"deName",r.setDeName.bind(r));varn=d("wf-step-trace-grid"),o=w([]),i=function(t,e){varr=arguments.length>2&&void0!==arguments[2]&&arguments[2];t.identitylinks.length>0||t.comments.length>0&&t.comments.forEach((function(n){r&&"启动流程"===n.type||e.push({id:k(),nodeName:t.userTaskName,personName:n.authorName,time:n.time,content:n.type,comment:n.fullMessage})}))};r.nerve.self.evt.on("mounted",(function(){vart;r.data&&(null===(t=r.data.usertasks)||void0===t||t.forEach((function(t){if(t.usertasks&&t.usertasks.length>0){vare=[];t.usertasks.forEach((function(t){i(t,e,!0)})),o.value.push({id:k(),nodeName:"".concat(t.userTaskName),personName:"",time:"",content:"",comment:"",children:e,_showChildren:!0})}elsei(t,o.value)})),o.value.sort((function(t,e){returnDate.parse(t.time)-Date.parse(e.time)})))}));vara=w([{title:"处理环节",key:"nodeName",width:180,resizable:!0,tree:!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:a}},render:function(){returnx("div",{class:this.ns.b()},[x("div",{class:this.ns.e("title")},["审批信息"]),x("i-table",{attrs:{"disabled-hover":!0,columns:this.columns,data:this.gridData,"row-key":"id"},class:this.ns.e("grid")})])}}),L=function(t){!function(t,e){if("function"!=typeofe&&null!==e)thrownewTypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(s,t);vare,n,a=h(s);functions(){returni(this,s),a.apply(this,arguments)}returnc(s,[{key:"calcWfToolbar",value:(n=o(r().mark((functiont(){returnr().wrap((function(t){for(;;)switch(t.prev=t.next){case0:returnt.next=2,u(m(s.prototype),"calcWfToolbar",this).call(this);case2:this.isEditable&&this.wfLinks.unshift({sequenceFlowName:"保存",type:"FORM_SAVE"});case3:case"end":returnt.stop()}}),t,this)}))),function(){returnn.apply(this,arguments)})},{key:"onLinkClick",value:(e=o(r().mark((functiont(e){returnr().wrap((function(t){for(;;)switch(t.prev=t.next){case0:if("FORM_SAVE"!==e.type){t.next=5;break}returnt.next=3,this.save();case3:t.next=6;break;case5:u(m(s.prototype),"onLinkClick",this).call(this,e);case6:case"end":returnt.stop()}}),t,this)}))),function(t){returne.apply(this,arguments)})}]),s}(O),N=b({props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(t){vare=g().proxy,r=y(e,(function(e,r){returnnewL(t.modelPath,e,r)})),n=d("view-".concat(E.DE_WF_DYNA_EDIT_VIEW3).toLowerCase()),o=w(["mainForm"]);return{c:r,ns:n,onTabClick:function(t){o.value.includes(t)||o.value.push(t)},lazyList:o}},render:function(t){vare=this,r=[];if(this.c.complete){varn=this.c.activeForm;n&&this.c.providers[n.name]&&r.push(t(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(t(P,{attrs:{context:i.context,params:i.params,deName:this.c.model.appEntity.source.codeName,modal:this.modal,modelPath:o.embedView.source.modelPath}}))}returnt("view-base",{attrs:{controller:this.c},scopedSlots:{toolbar:function(){returne.c.complete?[e.c.wfLinks.length>0&&t("wf-toolbar",{attrs:{wfLinks:e.c.wfLinks},on:{"wf-link-click":function(t){e.c.onLinkClick(t)}}})]:null}}},[this.c.complete&&t("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[t("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=e.c.drPages[r.source.name];returnt("i-tab-pane",{class:e.ns.be("","tab-item"),attrs:{tab:e.c.model.drTab.source.name,disabled:e.c.isNewData,label:r.source.caption,name:r.source.name}},[!e.c.isNewData&&e.lazyList.includes(r.source.name)&&t("ViewShell",{attrs:{context:n.context,params:n.params,modal:{mode:a.EMBED},modelPath:r.embedView.source.modelPath,deName:e.c.model.appEntity.source.codeName},on:{neuronInit:e.c.nerve.onNeuronInit(r.source.name)},key:n.key})])}))])])}}),j=c((functiont(){i(this,t),e(this,"component",N)})),T=b({name:"SyEditView3",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object}},setup:function(t){vare=g().proxy,r=v(e,t.modelPath),n=d("view-deeditview3"),o=w(["mainForm"]);return{c:r,ns:n,onTabClick:function(t){o.value.includes(t)||o.value.push(t)},lazyList:o}},render:function(t){vare=this;returnt("view-base",{attrs:{controller:this.c}},[this.c.complete&&t("i-tabs",{class:[this.ns.be("","tab")],attrs:{name:this.c.model.drTab.source.name},on:{"on-click":this.onTabClick}},[t("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"}},[t("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)}}),t(P,{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=e.c.drPages[r.source.name];if(n)returnt("i-tab-pane",{class:e.ns.be("","tab-item"),attrs:{tab:e.c.model.drTab.source.name,disabled:e.c.isNewData,label:r.source.caption,name:r.source.name}},[!e.c.isNewData&&e.lazyList.includes(r.source.name)&&t("ViewShell",{attrs:{context:n.context,params:n.params,modal:{mode:a.EMBED},modelPath:r.embedView.source.modelPath,deName:e.c.model.appEntity.source.codeName},on:{neuronInit:e.c.nerve.onNeuronInit(r.source.name)},key:n.key})])}))])])}}),S=c((functiont(){i(this,t),e(this,"component",T)})),_=news(n.meta.url);t("default",{mateUrl:n.meta.url,install:function(t){_.loadStyle(["/style.css"]),ibiz.register.view.register("VIEW_CUSTOM_SyWfDynaEditView3",newj),ibiz.register.view.register("VIEW_CUSTOM_SyEditView3",newS)}})}}}))}();