!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){returnfunction(t){if(Array.isArray(t))returna(t)}(t)||function(t){if("undefined"!=typeofSymbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])returnArray.from(t)}(t)||i(t)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionr(t,e){varr=Object.keys(t);if(Object.getOwnPropertySymbols){varn=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){returnObject.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}returnr}functionn(t){for(vare=1;e<arguments.length;e++){varn=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}returnt}functiono(t,e){returnfunction(t){if(Array.isArray(t))returnt}(t)||function(t,e){varr=null==t?null:"undefined"!=typeofSymbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){varn,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}elsefor(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(l){u=!0,o=l}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throwo}}returns}}(t,e)||i(t,e)||function(){thrownewTypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functioni(t,e){if(t){if("string"==typeoft)returna(t,e);varr=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void0}}functiona(t,e){(null==e||e>t.length)&&(e=t.length);for(varr=0,n=newArray(e);r<e;r++)n[r]=t[r];returnn}functions(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){returne};vare={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeofSymbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";functionl(t,e,r){returnObject.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(D){l=function(t,e,r){returnt[e]=r}}functionp(t,e,r,n){vari=e&&e.prototypeinstanceofh?e:h,a=Object.create(i.prototype),s=newk(n||[]);returno(a,"_invoke",{value:O(t,r,s)}),a}functionf(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(D){return{type:"throw",arg:D}}}e.wrap=p;vard={};functionh(){}functionm(){}functionv(){}vary={};l(y,a,(function(){returnthis}));varb=Object.getPrototypeOf,w=b&&b(b(C([])));w&&w!==r&&n.call(w,a)&&(y=w);varg=v.prototype=h.prototype=Object.create(y);functionx(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){returnthis._invoke(e,t)}))}))}functionP(e,r){functioni(o,a,s,c){varu=f(e[o],e,a);if("throw"!==u.type){varl=u.arg,p=l.value;returnp&&"object"==t(p)&&n.call(p,"__await")?r.resolve(p.__await).then((function(t){i("next",t,s,c)}),(function(t){i("throw",t,s,c)})):r.resolve(p).then((function(t){l.value=t,s(l)}),(function(t){returni("throw",t,s,c)}))}c(u.arg)}vara;o(this,"_invoke",{value:function(t,e){functionn(){returnnewr((function(r,n){i(t,e,r,n)}))}returna=a?a.then(n,n):n()}})}functionO(t,e,r){varn="suspendedStart";returnfunction(o,i){if("executing"===n)thrownewError("Generator is already running");if("completed"===n){if("throw"===o)throwi;returnL()}for(r.method=o,r.arg=i;;){vara=r.delegate;if(a){vars=S(a,r);if(s){if(s===d)continue;returns}}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";varc=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}functionS(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,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=newTypeError("The iterator does not provide a '"+r+"' method")),d;varo=f(n,t.iterator,e.arg);if("throw"===o.type)returne.method="throw",e.arg=o.arg,e.delegate=null,d;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,d):i:(e.method="throw",e.arg=newTypeError("iterator result is not an object"),e.delegate=null,d)}functionj(t){vare={tryLoc:t[0]};1int&&(e.catchLoc=t[1]),2int&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}functionE(t){vare=t.completion||{};e.type="normal",deletee.arg,t.completion=e}functionk(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}functionC(t){if(t){vare=t[a];if(e)returne.call(t);if("function"==typeoft.next)returnt;if(!isNaN(t.length)){varr=-1,o=functione(){for(;++r<t.length;)if(n.call(t,r))returne.value=t[r],e.done=!1,e;returne.value=void0,e.done=!0,e};returno.next=o}}return{next:L}}functionL(){return{value:void0,done:!0}}returnm.prototype=v,o(g,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:m,configurable:!0}),m.displayName=l(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){vare="function"==typeoft&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){returnObject.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},x(P.prototype),l(P.prototype,c,(function(){returnthis})),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void0===i&&(i=Promise);vara=newP(p(t,r,n,o),i);returne.isGeneratorFunction(r)?a:a.next().then((function(t){returnt.done?t.value:a.next()}))},x(g),l(g,u,"Generator"),l(g,a,(function(){returnthis})),l(g,"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=C,k.prototype={constructor:k,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(E),!t)for(vareinthis)"t"===e.charAt(0)&&n.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(varo=this.tryEntries.length-1;o>=0;--o){vari=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)returnr("end");if(i.tryLoc<=this.prev){vars=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0);if(this.prev<i.finallyLoc)returnr(i.finallyLoc)}elseif(s){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0)}else{if(!c)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){varo=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){vari=o;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,d):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),d},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),E(r),d}},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;E(r)}returno}}thrownewError("illegal catch attempt")},delegateYield:function(t,e,r){returnthis.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void0),d}},e}functionc(t,e,r,n,o,i,a){try{vars=t[i](a),c=s.value}catch(u){returnvoidr(u)}s.done?e(c):Promise.resolve(c).then(n,o)}functionu(t){returnfunction(){vare=this,r=arguments;returnnewPromise((function(n,o){vari=t.apply(e,r);functiona(t){c(i,n,o,a,s,"next",t)}functions(t){c(i,n,o,a,s,"throw",t)}a(void0)}))}}functionl(){returnl="undefined"!=typeofReflect&&Reflect.get?Reflect.get.bind():function(t,e,r){varn=p(t,e);if(n){varo=Object.getOwnPropertyDescriptor(n,e);returno.get?o.get.call(arguments.length<3?t:r):o.value}},l.apply(this,arguments)}functionp(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););returnt}functionf(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&&d(t,e)}functiond(t,e){returnd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){returnt.__proto__=e,t},d(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=y(t);if(e){varo=y(this).constructor;r=Reflect.construct(n,arguments,o)}elser=n.apply(this,arguments);returnm(this,r)}}functionm(e,r){if(r&&("object"===t(r)||"function"==typeofr))returnr;if(void0!==r)thrownewTypeError("Derived constructors may only return object or undefined");returnv(e)}functionv(t){if(void0===t)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returnt}functiony(t){returny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){returnt.__proto__||Object.getPrototypeOf(t)},y(t)}functionb(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,P(n.key),n)}}functionw(t,e,r){returne&&b(t.prototype,e),r&&b(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}functiong(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functionx(t,e,r){return(e=P(e))int?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}functionP(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)}System.register(["@ibiz-template/runtime","@ibiz-template/controller","dayjs","@ibiz-template/model","vue","@ibiz-template/vue-util"],(function(t,r){"use strict";vari,a,c,p,d,m,b,P,O,S,j,E,k,C,L,D,V,z,T,_,I,A,N,M,R,B;return{setters:[function(t){i=t.PluginStaticResource,a=t.ViewMode},function(t){c=t.CustomPortletController,p=t.ViewPortletController,d=t.SpanEditorController,m=t.AppPortalViewNerve,b=t.AppPortalViewController},function(t){P=t.default},function(t){O=t.PortletPartModel,S=t.ListModel,j=t.ViewPortletModel},function(t){E=t.defineComponent,k=t.reactive,C=t.watch,L=t.h,D=t.getCurrentInstance,V=t.ref,z=t.computed},function(t){T=t.useNamespace,_=t.useTabExpViewController,I=t.useRouter,A=t.useRoute,N=t.getViewName,M=t.getSpanProps,R=t.useListController,B=t.useViewController}],execute:function(){varG=newi(r.meta.url),q=w((functiont(){g(this,t),x(this,"component","IndexView")})),Y=function(t){f(i,t);vare,r=h(i);functioni(){vart;g(this,i);for(vare=arguments.length,n=newArray(e),o=0;o<e;o++)n[o]=arguments[o];returnx(v(t=r.call.apply(r,[this].concat(n))),"items",[{text:"近一年",value:12},{text:"近半年",value:6},{text:"近三月",value:3}]),x(v(t),"data",{selectDate:[],itemValue:12}),x(v(t),"onItemValueChange",(function(e){varr=P();t.data.selectDate=[r.subtract(e,"month").add(1,"day").toDate(),r.toDate()]})),t}returnw(i,[{key:"onInit",value:(e=u(s().mark((functiont(){returns().wrap((function(t){for(;;)switch(t.prev=t.next){case0:returnt.next=2,l(y(i.prototype),"onInit",this).call(this);case2:this.onItemValueChange(this.data.itemValue),this.changeViewParams();case4:case"end":returnt.stop()}}),t,this)}))),function(){returne.apply(this,arguments)})},{key:"changeViewParams",value:function(){vart=o(this.data.selectDate,2),e=t[0],r=t[1];if(e&&r){vari=P(e).format("YYYY-MM-DD"),a=P(r).format("YYYY-MM-DD");this.dashboard.nerve.self.evt.asyncEmit("contextOrParamsChange",n({},this.context),n(n({},this.params),{},{starttime:i,endtime:a,kssj:i,jssj:a,tjkssj:i,tjjssj:a}),!0)}}}]),i}(c),F=function(t){f(o,t);vare,r,n=h(o);functiono(){vart;g(this,o);for(vare=arguments.length,r=newArray(e),i=0;i<e;i++)r[i]=arguments[i];returnx(v(t=n.call.apply(n,[this].concat(r))),"entityService",void0),x(v(t),"result",{data:{}}),t}returnw(o,[{key:"onInit",value:(r=u(s().mark((functiont(){vare=this;returns().wrap((function(t){for(;;)switch(t.prev=t.next){case0:returnt.next=2,l(y(o.prototype),"onInit",this).call(this);case2:returnt.next=4,ibiz.entityService.getService("GwxnFwzl",this.context);case4:this.entityService=t.sent,this.dashboard.nerve.self.evt.on("mounted",(function(){e.load()}));case6:case"end":returnt.stop()}}),t,this)}))),function(){returnr.apply(this,arguments)})},{key:"calcViewParams",value:function(){l(y(o.prototype),"calcViewParams",this).call(this),this.dashboard.complete&&this.load()}},{key:"load",value:(e=u(s().mark((functiont(){vare;returns().wrap((function(t){for(;;)switch(t.prev=t.next){case0:if(this.entityService){t.next=2;break}returnt.abrupt("return");case2:returnt.next=4,this.entityService.exec("Getfwzldata",this.context,this.params);case4:(e=t.sent).ok&&e.data?this.result.data=e.data:this.result.data={};case6:case"end":returnt.stop()}}),t,this)}))),function(){returne.apply(this,arguments)})}]),o}(p),U=function(){functiont(){g(this,t),x(this,"component","PortalDatePicker")}vare;returnw(t,[{key:"createController",value:(e=u(s().mark((functiont(e,r,n){varo;returns().wrap((function(t){for(;;)switch(t.prev=t.next){case0:returno=newY(e,r,n),t.next=3,o.init();case3:returnt.abrupt("return",o);case4:case"end":returnt.stop()}}),t)}))),function(t,r,n){returne.apply(this,arguments)})}]),t}(),K=w((functiont(){g(this,t),x(this,"component","CustomTabExpView")})),W=function(){functiont(e){g(this,t),x(this,"formEditor","GrowthRateSpan"),x(this,"gridEditor","IBizGridSpan"),"SPAN_LINK"===e&&(this.formEditor="IBizSpanLink",this.gridEditor="IBizSpanLink")}vare;returnw(t,[{key:"createController",value:(e=u(s().mark((functiont(e,r){varn;returns().wrap((function(t){for(;;)switch(t.prev=t.next){case0:returnn=newd(e,r),t.next=3,n.init();case3:returnt.abrupt("return",n);case4:case"end":returnt.stop()}}),t)}))),function(t,r){returne.apply(this,arguments)})}]),t}(),H=w((functiont(){g(this,t),x(this,"component","BwsdCustomList")})),$=function(){functiont(){g(this,t),x(this,"component","FwzlPortal")}vare;returnw(t,[{key:"createController",value:(e=u(s().mark((functiont(e,r,n){varo;returns().wrap((function(t){for(;;)switch(t.prev=t.next){case0:returno=newF(e,r,n),t.next=3,o.init();case3:returnt.abrupt("return",o);case4:case"end":returnt.stop()}}),t)}))),function(t,r,n){returne.apply(this,arguments)})}]),t}(),J=w((functiont(){g(this,t),x(this,"component","FwzlCustomList")})),Q=w((functiont(){g(this,t),x(this,"component","GwxnAppPortalView")})),X=E({name:"PortalDatePicker",props:{modelData:{type:O,required:!0},controller:{type:Y,required:!0}},setup:function(t){varr=T("portal-date-picker"),n=t.controller;Object.assign(n,{data:k(n.data)});vari=P("2017-01-01"),a=P(),s={disabledDate:function(t){vare=P(t);returne.isBefore(i,"day")||a.isBefore(e,"day")}};returnC((function(){returnn.data.selectDate}),(function(t,e){varr=o(t.map((function(t){returnP(t).format("YYYY-MM-DD")})),2),i=r[0],a=r[1],s=o(e.map((function(t){returnP(t).format("YYYY-MM-DD")})),2),c=s[0],u=s[1];i===c&&a===u||n.changeViewParams()})),{ns:r,options:s,onSelectDateChange:function(t){if(Array.isArray(t)&&2===t.length){varr=o(t.map((function(t){returnP(t)})),2),i=r[0],a=r[1];if(i.clone().add(1,"year").subtract(1,"day").isBefore(a,"day"))returnn.data.selectDate=e(n.data.selectDate),voidibiz.message.error("统计期间不能超过一年");n.data.selectDate=[i.toDate(),a.toDate()],n.data.itemValue=0}}}},render:function(){vart=this,e=this.controller.model,r=[this.ns.b(),this.ns.m(this.modelData.modelClass)];returnL("portlet-layout",{attrs:{controller:this.controller},class:r},[L("div",{class:this.ns.b("content")},[L("div",{class:this.ns.e("text")},[e.title||""]),L("i-date-picker",{class:this.ns.e("picker"),attrs:{type:"daterange",placeholder:"请选择日期",separator:" 至 ",clearable:!1,editable:!1,"split-panels":!0,value:this.controller.data.selectDate,options:this.options},on:{"on-change":this.onSelectDateChange}}),L("i-radio-group",{class:this.ns.e("radio-group"),attrs:{type:"button"},on:{"on-change":this.controller.onItemValueChange},model:{value:this.controller.data.itemValue,callback:function(e){t.$set(t.controller.data,"itemValue",e)}}},[this.controller.items.map((function(e){returnL("i-radio",{class:t.ns.e("radio"),attrs:{label:e.value}},[e.text])}))])])])}}),Z=E({props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},noLoadDefault:{type:Boolean,required:!1}},setup:function(t){vare=D().proxy,r=T("custom-tab-exp-view"),n=T("view"),o=_(e,t.modelPath),i=V([]),c=V(""),l=V(!1),p=I(e),f={},d=function(){vart=u(s().mark((functiont(r){varn,a,u,d;returns().wrap((function(t){for(;;)switch(t.prev=t.next){case0:if(n=A(e),a=n.fullPath,f[c.value]=a,!1!==(null==(u=o.model.tabExpPanel.tabExpPages.find((function(t){returnt.name===r})))?void0:u.embedView.initialized)){t.next=7;break}returnt.next=7,u.embedView.init();case7:o.context.isRouter?(l.value=!0,f[r]?p.push(f[r]):(d=Object.assign(o.context.clone(),{toRouteLevel:o.modal.level+1}),ibiz.openView.root(u.embedView.source,d,o.params)),setTimeout((function(){l.value=!1,c.value=r}),0)):i.value.includes(r)||(i.value.push(r),c.value=r);case8:case"end":returnt.stop()}}),t)})));returnfunction(e){returnt.apply(this,arguments)}}();o.nerve.self.evt.on("created",(function(){varr=A(e),n=o.model.tabExpPanel.tabExpPages;if(o.context.isRouter){vari=t.modal.level+1,a=r.params["view".concat(i)];if(a){vars=n.find((function(t){returnN(t.embedView.source)===a}));s&&(c.value=s.name)}}if(n.length&&!c.value){varu=n[0].name;d(u)}}));varh=z((function(){returnObject.values(o.tabExpPages).map((function(t){returnt.key}))})),m={mode:a.EMBED};return{c:o,ns:r,ns2:n,onTabClick:d,lazyList:i,deactivateAll:l,activeTab:c,keyHistory:h,embedViewModal:m}},render:function(){vart=this,e=this.c,r=!0===this.c.context.isRouter;returnL("view-base",{class:[this.ns.b(),r?this.ns.m("route"):""],attrs:{controller:this.c},scopedSlots:{caption:function(){returnL("div",{class:t.ns2.b("caption")},[e.complete&&e.model.source.getPSSysImage()?[L("app-icon",{class:t.ns2.be("caption","icon"),attrs:{icon:e.model.source.getPSSysImage()}}),L("span",{class:t.ns2.be("caption","text"),attrs:{title:e.caption}},[e.caption])]:L("span",{class:t.ns2.be("caption","text"),attrs:{title:e.caption}},[e.caption]),e.complete&&L("i-radio-group",{class:t.ns.e("radio-group"),attrs:{type:"button"},on:{"on-change":t.onTabClick},model:{value:t.activeTab,callback:function(e){t.activeTab=e}}},[t.c.model.tabExpPanel.tabExpPages.map((function(e){if(t.c.tabExpPages[e.name])returnL("i-radio",{class:t.ns.e("radio"),attrs:{label:e.name}},[e.source.caption])}))])])}}},[this.c.complete&&[L("i-tabs",{class:this.ns.e("tab"),attrs:{name:this.c.model.codeName},on:{"on-click":this.onTabClick},model:{value:this.activeTab,callback:function(e){t.activeTab=e}}},[this.c.model.tabExpPanel.tabExpPages.map((function(e){varr=t.c.tabExpPages[e.name];if(r)returnL("i-tab-pane",{class:t.ns.e("tab-item"),attrs:{tab:t.c.model.codeName,label:e.source.caption,name:e.name}},[t.lazyList.includes(e.name)&&L("ViewShell",{attrs:{context:t.c.context,params:t.c.params,modal:t.embedViewModal,modelPath:e.embedView.source.modelPath},on:{neuronInit:t.c.nerve.onNeuronInit(e.name)},key:r.key})])}))]),r&&this.activeTab&&L("div",{class:this.ns.e("route-content")},[L("router-view",{key:this.c.tabExpPages[this.activeTab].key,on:{"neuron-init":this.c.nerve.onNeuronInit(this.activeTab)}},[function(e){varr=e.Component;returnr&&L("appKeepAlive",{attrs:{keyList:t.keyHistory}},[L(r)])}])])]])}}),tt=E({name:"GrowthRateSpan",props:M(),setup:function(){return{ns:T("growth-rate-span")}},render:function(){returnL("div",{class:[this.ns.b()]},[L("rate-span",{attrs:{value:this.value}})])}}),et=E({name:"BwsdCustomList",props:{modelData:{type:S,required:!0},context:{type:Object,required:!0},params:{type:Object,default:function(){return{}}},mdCtrlActiveMode:{type:Number,default:2},isSelectFirstDefault:{type:Boolean,required:!1},defaultSelectKeys:{type:Array,required:!1},isExpView:{type:Boolean,required:!1}},setup:function(t){vare=D().proxy,r=T("bwsd-custom-list"),n=R(e,t.modelData,t.context,t.params);returnn.size=n.model.size,{c:n,ns:r}},render:function(){vart=this;returnL("control-layout",{attrs:{modelData:this.c.model}},[L("div",{class:this.ns.b()},[this.c.items.length?null:L("div",{class:this.ns.b("item")},["暂无数据"]),this.c.items.map((function(e,r){returnL("div",{class:t.ns.b("item")},[L("div",{class:t.ns.be("item","index")},["".concat(r+1,".")]),L("div",{class:t.ns.be("item","key")},[e.key||""]),L("div",{class:t.ns.be("item","value")},[e.value||""])])}))])])}}),rt=E({name:"FwzlPortal",props:{modelData:{type:j,required:!0},controller:{type:F,required:!0}},setup:function(t){vare=T("view-portlet");returnObject.assign(t.controller,{result:k(t.controller.result)}),{ns:e,ns2:T("fwzl-portal"),onNeuronInit:function(e){t.controller.setViewNeuron(e)}}},render:function(){vart=this,e=this.controller,r=[this.ns.b(),this.ns.m(this.modelData.modelClass),this.ns2.b()];returnL("portlet-layout",{attrs:{controller:this.controller},class:r},[L("div",{class:[t.ns2.b("content")]},[L("div",{class:t.ns2.e("text")},["总计退文"]),L("div",{class:t.ns2.e("value")},[e.result.data.ztws||0]),L("div",{class:t.ns2.e("text")},["件"]),L("div",{class:t.ns2.e("rate")},[L("rate-span",{attrs:{value:e.result.data.tqztwszf}})])]),L("ViewShell",{attrs:{context:e.viewContext,params:e.params,modal:{mode:a.EMBED},modelPath:e.model.embedView.source.modelPath},on:{neuronInit:this.onNeuronInit},key:e.model.embedView.codeName})])}}),nt=E({name:"FwzlCustomList",props:{modelData:{type:S,required:!0},context:{type:Object,required:!0},params:{type:Object,default:function(){return{}}},mdCtrlActiveMode:{type:Number,default:2},isSelectFirstDefault:{type:Boolean,required:!1},defaultSelectKeys:{type:Array,required:!1},isExpView:{type:Boolean,required:!1}},setup:function(t){vare,r=D().proxy,n=R(r,t.modelData,t.context,t.params),o=T("fwzl-custom-list"),i=V([]),a=null===(e=n.model.source.getPSControlParam())||void0===e?void0:e.ctrlParams;returna&&a.COLOR&&(i.value=JSON.parse(a.COLOR)),{c:n,ns:o,colorList:i}},render:function(){vart=this;returnL("control-layout",{attrs:{modelData:this.c.model}},[this.c.complete&&(t.c.items.length?L("div",{class:t.ns.b()},[L("div",{class:t.ns.b("item-icon")},[t.c.items.map((function(e,r){returnL("div",{class:t.ns.b("item")},[L("div",{class:t.ns.be("item","icon"),style:{"--background":"".concat(t.colorList[r]||"#5190ff")}})])}))]),L("div",{class:t.ns.b("item-text")},[t.c.items.map((function(e){returnL("div",{class:t.ns.b("item")},[e.text&&L("div",{class:t.ns.be("item","text")},[e.text])])}))]),L("div",{class:t.ns.b("item-value")},[t.c.items.map((function(e){returnL("div",{class:t.ns.b("item")},[null!=e.value&&L("div",{class:t.ns.be("item","value")},[e.value])])}))]),L("div",{class:t.ns.b("item-percentage")},[t.c.items.map((function(e){returnL("div",{class:t.ns.b("item")},[e.percentage&&L("div",{class:t.ns.be("item","percentage")},[e.percentage])])}))]),L("div",{class:t.ns.b("item-rate")},[t.c.items.map((function(e){returnL("div",{class:t.ns.b("item")},[L("div",{class:t.ns.be("item","rate")},[L("rate-span",{attrs:{value:e.rate}})])])}))])]):L("div",{class:[t.ns.b(),t.ns.m("empty")]},["未有被退文部门"]))])}}),ot=E({name:"RateSpan",props:{value:{type:String}},setup:function(t){vare=T("rate-span"),r=V(""),n=V();returnC((function(){returnt.value}),(function(t){if(t&&parseInt(t,10)){if(t.startsWith("-"))returnr.value=t.slice(1),void(n.value="decrease");r.value=t,n.value="increase"}elser.value=""}),{immediate:!0}),{ns:e,text:r,type:n}},render:function(){if(this.text&&this.type)returnL("div",{class:[this.ns.b(),this.ns.m(this.type)]},[this.text])}}),it=function(t){f(r,t);vare=h(r);functionr(){returng(this,r),e.apply(this,arguments)}returnw(r,[{key:"connect",value:function(t,e){varn;(l(y(r.prototype),"connect",this).call(this,t,e),"dashboard"===t)&&(null===(n=this.dashboard)||void0===n||n.evt.on("contextOrParamsChange",this.controller.setContextOrParams.bind(this.controller)))}}]),r}(m),at=function(t){f(r,t);vare=h(r);functionr(){returng(this,r),e.apply(this,arguments)}returnw(r,[{key:"createNerve",value:function(){returnnewit(this)}}]),r}(b);varst=E({name:"GwxnAppPortalView",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},noLoadDefault:{type:Boolean,required:!1}},setup:function(t){vare,r,n=D().proxy;return{c:(e=n,r=t.modelPath,B(e,(function(t,e){returnnewat(r,t,e)})))}},render:function(t){vare=null;if(this.c.complete){varr=this.c.model.dashboard;this.c.providers[r.name]&&(e=t(this.c.providers[r.name].component,{props:{modelData:r,context:this.c.context,params:this.c.params},on:{neuronInit:this.c.nerve.onNeuronInit(r.name)}}))}returnt("view-base",{attrs:{controller:this.c}},[e])}});t("default",{mateUrl:r.meta.url,install:function(t){G.loadStyle(["/style.css"]),ibiz.register.view.register("VIEW_CUSTOM_GwxnIndexCSS",newq),t.component("RateSpan",ot),t.component("GwxnAppPortalView",st),ibiz.register.view.register("VIEW_CUSTOM_GwxnAppPortalView",newQ),t.component("PortalDatePicker",X),ibiz.register.portletPart.register("PORTLET_CUSTOM_PortalDatePicker",newU),t.component("CustomTabExpView",Z),ibiz.register.view.register("VIEW_CUSTOM_CustomTabExpView",newK),t.component("GrowthRateSpan",tt),ibiz.register.editor.register("SPAN_GrowthRateSpan",newW),t.component("BwsdCustomList",et),ibiz.register.control.register("CUSTOM_BwsdCustomList",newH),t.component("FwzlPortal",rt),ibiz.register.portletPart.register("PORTLET_CUSTOM_FwzlPortal",new$),t.component("FwzlCustomList",nt),ibiz.register.control.register("CUSTOM_FwzlCustomList",newJ)}})}}}))}();
!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){returnfunction(t){if(Array.isArray(t))returna(t)}(t)||function(t){if("undefined"!=typeofSymbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])returnArray.from(t)}(t)||i(t)||function(){thrownewTypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functionr(t,e){varr=Object.keys(t);if(Object.getOwnPropertySymbols){varn=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){returnObject.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}returnr}functionn(t){for(vare=1;e<arguments.length;e++){varn=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){x(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}returnt}functiono(t,e){returnfunction(t){if(Array.isArray(t))returnt}(t)||function(t,e){varr=null==t?null:"undefined"!=typeofSymbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){varn,o,i,a,s=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}elsefor(;!(c=(n=i.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(l){u=!0,o=l}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throwo}}returns}}(t,e)||i(t,e)||function(){thrownewTypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}functioni(t,e){if(t){if("string"==typeoft)returna(t,e);varr=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void0}}functiona(t,e){(null==e||e>t.length)&&(e=t.length);for(varr=0,n=newArray(e);r<e;r++)n[r]=t[r];returnn}functions(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */s=function(){returne};vare={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeofSymbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";functionl(t,e,r){returnObject.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(D){l=function(t,e,r){returnt[e]=r}}functionp(t,e,r,n){vari=e&&e.prototypeinstanceofh?e:h,a=Object.create(i.prototype),s=newk(n||[]);returno(a,"_invoke",{value:O(t,r,s)}),a}functionf(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(D){return{type:"throw",arg:D}}}e.wrap=p;vard={};functionh(){}functionm(){}functionv(){}vary={};l(y,a,(function(){returnthis}));varb=Object.getPrototypeOf,w=b&&b(b(C([])));w&&w!==r&&n.call(w,a)&&(y=w);varg=v.prototype=h.prototype=Object.create(y);functionx(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){returnthis._invoke(e,t)}))}))}functionP(e,r){functioni(o,a,s,c){varu=f(e[o],e,a);if("throw"!==u.type){varl=u.arg,p=l.value;returnp&&"object"==t(p)&&n.call(p,"__await")?r.resolve(p.__await).then((function(t){i("next",t,s,c)}),(function(t){i("throw",t,s,c)})):r.resolve(p).then((function(t){l.value=t,s(l)}),(function(t){returni("throw",t,s,c)}))}c(u.arg)}vara;o(this,"_invoke",{value:function(t,e){functionn(){returnnewr((function(r,n){i(t,e,r,n)}))}returna=a?a.then(n,n):n()}})}functionO(t,e,r){varn="suspendedStart";returnfunction(o,i){if("executing"===n)thrownewError("Generator is already running");if("completed"===n){if("throw"===o)throwi;returnL()}for(r.method=o,r.arg=i;;){vara=r.delegate;if(a){vars=S(a,r);if(s){if(s===d)continue;returns}}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";varc=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}functionS(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,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=newTypeError("The iterator does not provide a '"+r+"' method")),d;varo=f(n,t.iterator,e.arg);if("throw"===o.type)returne.method="throw",e.arg=o.arg,e.delegate=null,d;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,d):i:(e.method="throw",e.arg=newTypeError("iterator result is not an object"),e.delegate=null,d)}functionj(t){vare={tryLoc:t[0]};1int&&(e.catchLoc=t[1]),2int&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}functionE(t){vare=t.completion||{};e.type="normal",deletee.arg,t.completion=e}functionk(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}functionC(t){if(t){vare=t[a];if(e)returne.call(t);if("function"==typeoft.next)returnt;if(!isNaN(t.length)){varr=-1,o=functione(){for(;++r<t.length;)if(n.call(t,r))returne.value=t[r],e.done=!1,e;returne.value=void0,e.done=!0,e};returno.next=o}}return{next:L}}functionL(){return{value:void0,done:!0}}returnm.prototype=v,o(g,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:m,configurable:!0}),m.displayName=l(v,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){vare="function"==typeoft&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){returnObject.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},e.awrap=function(t){return{__await:t}},x(P.prototype),l(P.prototype,c,(function(){returnthis})),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void0===i&&(i=Promise);vara=newP(p(t,r,n,o),i);returne.isGeneratorFunction(r)?a:a.next().then((function(t){returnt.done?t.value:a.next()}))},x(g),l(g,u,"Generator"),l(g,a,(function(){returnthis})),l(g,"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=C,k.prototype={constructor:k,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(E),!t)for(vareinthis)"t"===e.charAt(0)&&n.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(varo=this.tryEntries.length-1;o>=0;--o){vari=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)returnr("end");if(i.tryLoc<=this.prev){vars=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0);if(this.prev<i.finallyLoc)returnr(i.finallyLoc)}elseif(s){if(this.prev<i.catchLoc)returnr(i.catchLoc,!0)}else{if(!c)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){varo=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){vari=o;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,d):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),d},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),E(r),d}},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;E(r)}returno}}thrownewError("illegal catch attempt")},delegateYield:function(t,e,r){returnthis.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void0),d}},e}functionc(t,e,r,n,o,i,a){try{vars=t[i](a),c=s.value}catch(u){returnvoidr(u)}s.done?e(c):Promise.resolve(c).then(n,o)}functionu(t){returnfunction(){vare=this,r=arguments;returnnewPromise((function(n,o){vari=t.apply(e,r);functiona(t){c(i,n,o,a,s,"next",t)}functions(t){c(i,n,o,a,s,"throw",t)}a(void0)}))}}functionl(){returnl="undefined"!=typeofReflect&&Reflect.get?Reflect.get.bind():function(t,e,r){varn=p(t,e);if(n){varo=Object.getOwnPropertyDescriptor(n,e);returno.get?o.get.call(arguments.length<3?t:r):o.value}},l.apply(this,arguments)}functionp(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););returnt}functionf(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&&d(t,e)}functiond(t,e){returnd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){returnt.__proto__=e,t},d(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=y(t);if(e){varo=y(this).constructor;r=Reflect.construct(n,arguments,o)}elser=n.apply(this,arguments);returnm(this,r)}}functionm(e,r){if(r&&("object"===t(r)||"function"==typeofr))returnr;if(void0!==r)thrownewTypeError("Derived constructors may only return object or undefined");returnv(e)}functionv(t){if(void0===t)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returnt}functiony(t){returny=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){returnt.__proto__||Object.getPrototypeOf(t)},y(t)}functionb(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,P(n.key),n)}}functionw(t,e,r){returne&&b(t.prototype,e),r&&b(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}functiong(t,e){if(!(tinstanceofe))thrownewTypeError("Cannot call a class as a function")}functionx(t,e,r){return(e=P(e))int?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}functionP(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)}System.register(["@ibiz-template/runtime","@ibiz-template/controller","dayjs","@ibiz-template/model","vue","@ibiz-template/vue-util"],(function(t,r){"use strict";vari,a,c,p,d,m,b,P,O,S,j,E,k,C,L,D,V,z,T,_,I,A,N,M,R,B;return{setters:[function(t){i=t.PluginStaticResource,a=t.ViewMode},function(t){c=t.CustomPortletController,p=t.ViewPortletController,d=t.SpanEditorController,m=t.AppPortalViewNerve,b=t.AppPortalViewController},function(t){P=t.default},function(t){O=t.PortletPartModel,S=t.ListModel,j=t.ViewPortletModel},function(t){E=t.defineComponent,k=t.reactive,C=t.watch,L=t.h,D=t.getCurrentInstance,V=t.ref,z=t.computed},function(t){T=t.useNamespace,_=t.useTabExpViewController,I=t.useRouter,A=t.useRoute,N=t.getViewName,M=t.getSpanProps,R=t.useListController,B=t.useViewController}],execute:function(){varG=newi(r.meta.url),q=w((functiont(){g(this,t),x(this,"component","IndexView")})),Y=function(t){f(i,t);vare,r=h(i);functioni(){vart;g(this,i);for(vare=arguments.length,n=newArray(e),o=0;o<e;o++)n[o]=arguments[o];returnx(v(t=r.call.apply(r,[this].concat(n))),"items",[{text:"近一年",value:12},{text:"近半年",value:6},{text:"近三月",value:3}]),x(v(t),"data",{selectDate:[],itemValue:12}),x(v(t),"onItemValueChange",(function(e){varr=P();t.data.selectDate=[r.subtract(e,"month").add(1,"day").toDate(),r.toDate()]})),t}returnw(i,[{key:"onInit",value:(e=u(s().mark((functiont(){returns().wrap((function(t){for(;;)switch(t.prev=t.next){case0:returnt.next=2,l(y(i.prototype),"onInit",this).call(this);case2:this.onItemValueChange(this.data.itemValue),this.changeViewParams();case4:case"end":returnt.stop()}}),t,this)}))),function(){returne.apply(this,arguments)})},{key:"changeViewParams",value:function(){vart=o(this.data.selectDate,2),e=t[0],r=t[1];if(e&&r){vari=P(e).format("YYYY-MM-DD"),a=P(r).format("YYYY-MM-DD");this.dashboard.nerve.self.evt.asyncEmit("contextOrParamsChange",n({},this.context),n(n({},this.params),{},{starttime:i,endtime:a,kssj:i,jssj:a,tjkssj:i,tjjssj:a}),!0)}}}]),i}(c),F=function(t){f(o,t);vare,r,n=h(o);functiono(){vart;g(this,o);for(vare=arguments.length,r=newArray(e),i=0;i<e;i++)r[i]=arguments[i];returnx(v(t=n.call.apply(n,[this].concat(r))),"entityService",void0),x(v(t),"result",{data:{}}),t}returnw(o,[{key:"onInit",value:(r=u(s().mark((functiont(){vare=this;returns().wrap((function(t){for(;;)switch(t.prev=t.next){case0:returnt.next=2,l(y(o.prototype),"onInit",this).call(this);case2:returnt.next=4,ibiz.entityService.getService("GwxnFwzl",this.context);case4:this.entityService=t.sent,this.dashboard.nerve.self.evt.on("mounted",(function(){e.load()}));case6:case"end":returnt.stop()}}),t,this)}))),function(){returnr.apply(this,arguments)})},{key:"calcViewParams",value:function(){l(y(o.prototype),"calcViewParams",this).call(this),this.dashboard.complete&&this.load()}},{key:"load",value:(e=u(s().mark((functiont(){vare;returns().wrap((function(t){for(;;)switch(t.prev=t.next){case0:if(this.entityService){t.next=2;break}returnt.abrupt("return");case2:returnt.next=4,this.entityService.exec("Getfwzldata",this.context,this.params);case4:(e=t.sent).ok&&e.data?this.result.data=e.data:this.result.data={};case6:case"end":returnt.stop()}}),t,this)}))),function(){returne.apply(this,arguments)})}]),o}(p),U=function(){functiont(){g(this,t),x(this,"component","PortalDatePicker")}vare;returnw(t,[{key:"createController",value:(e=u(s().mark((functiont(e,r,n){varo;returns().wrap((function(t){for(;;)switch(t.prev=t.next){case0:returno=newY(e,r,n),t.next=3,o.init();case3:returnt.abrupt("return",o);case4:case"end":returnt.stop()}}),t)}))),function(t,r,n){returne.apply(this,arguments)})}]),t}(),K=w((functiont(){g(this,t),x(this,"component","CustomTabExpView")})),W=function(){functiont(e){g(this,t),x(this,"formEditor","GrowthRateSpan"),x(this,"gridEditor","IBizGridSpan"),"SPAN_LINK"===e&&(this.formEditor="IBizSpanLink",this.gridEditor="IBizSpanLink")}vare;returnw(t,[{key:"createController",value:(e=u(s().mark((functiont(e,r){varn;returns().wrap((function(t){for(;;)switch(t.prev=t.next){case0:returnn=newd(e,r),t.next=3,n.init();case3:returnt.abrupt("return",n);case4:case"end":returnt.stop()}}),t)}))),function(t,r){returne.apply(this,arguments)})}]),t}(),H=w((functiont(){g(this,t),x(this,"component","BwsdCustomList")})),$=function(){functiont(){g(this,t),x(this,"component","FwzlPortal")}vare;returnw(t,[{key:"createController",value:(e=u(s().mark((functiont(e,r,n){varo;returns().wrap((function(t){for(;;)switch(t.prev=t.next){case0:returno=newF(e,r,n),t.next=3,o.init();case3:returnt.abrupt("return",o);case4:case"end":returnt.stop()}}),t)}))),function(t,r,n){returne.apply(this,arguments)})}]),t}(),J=w((functiont(){g(this,t),x(this,"component","FwzlCustomList")})),Q=w((functiont(){g(this,t),x(this,"component","GwxnAppPortalView")})),X=E({name:"PortalDatePicker",props:{modelData:{type:O,required:!0},controller:{type:Y,required:!0}},setup:function(t){varr=T("portal-date-picker"),n=t.controller;Object.assign(n,{data:k(n.data)});vari=P("2017-01-01"),a=P(),s={disabledDate:function(t){vare=P(t);returne.isBefore(i,"day")||a.isBefore(e,"day")}};returnC((function(){returnn.data.selectDate}),(function(t,e){varr=o(t.map((function(t){returnP(t).format("YYYY-MM-DD")})),2),i=r[0],a=r[1],s=o(e.map((function(t){returnP(t).format("YYYY-MM-DD")})),2),c=s[0],u=s[1];i===c&&a===u||n.changeViewParams()})),{ns:r,options:s,onSelectDateChange:function(t){if(Array.isArray(t)&&2===t.length){varr=o(t.map((function(t){returnP(t)})),2),i=r[0],a=r[1];if(i.clone().add(1,"year").subtract(1,"day").isBefore(a,"day"))returnn.data.selectDate=e(n.data.selectDate),voidibiz.message.error("统计期间不能超过一年");n.data.selectDate=[i.toDate(),a.toDate()],n.data.itemValue=0}}}},render:function(){vart=this,e=this.controller.model,r=[this.ns.b(),this.ns.m(this.modelData.modelClass)];returnL("portlet-layout",{attrs:{controller:this.controller},class:r},[L("div",{class:this.ns.b("content")},[L("div",{class:this.ns.e("text")},[e.title||""]),L("i-date-picker",{class:this.ns.e("picker"),attrs:{type:"daterange",placeholder:"请选择日期",separator:" 至 ",clearable:!1,editable:!1,"split-panels":!0,value:this.controller.data.selectDate,options:this.options},on:{"on-change":this.onSelectDateChange}}),L("i-radio-group",{class:this.ns.e("radio-group"),attrs:{type:"button"},on:{"on-change":this.controller.onItemValueChange},model:{value:this.controller.data.itemValue,callback:function(e){t.$set(t.controller.data,"itemValue",e)}}},[this.controller.items.map((function(e){returnL("i-radio",{class:t.ns.e("radio"),attrs:{label:e.value}},[e.text])}))])])])}}),Z=E({props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},noLoadDefault:{type:Boolean,required:!1}},setup:function(t){vare=D().proxy,r=T("custom-tab-exp-view"),n=T("view"),o=_(e,t.modelPath),i=V([]),c=V(""),l=V(!1),p=I(e),f={},d=function(){vart=u(s().mark((functiont(r){varn,a,u,d;returns().wrap((function(t){for(;;)switch(t.prev=t.next){case0:if(n=A(e),a=n.fullPath,f[c.value]=a,!1!==(null==(u=o.model.tabExpPanel.tabExpPages.find((function(t){returnt.name===r})))?void0:u.embedView.initialized)){t.next=7;break}returnt.next=7,u.embedView.init();case7:o.context.isRouter?(l.value=!0,f[r]?p.push(f[r]):(d=Object.assign(o.context.clone(),{toRouteLevel:o.modal.level+1}),ibiz.openView.root(u.embedView.source,d,o.params)),setTimeout((function(){l.value=!1,c.value=r}),0)):i.value.includes(r)||(i.value.push(r),c.value=r);case8:case"end":returnt.stop()}}),t)})));returnfunction(e){returnt.apply(this,arguments)}}();o.nerve.self.evt.on("created",(function(){varr=A(e),n=o.model.tabExpPanel.tabExpPages;if(o.context.isRouter){vari=t.modal.level+1,a=r.params["view".concat(i)];if(a){vars=n.find((function(t){returnN(t.embedView.source)===a}));s&&(c.value=s.name)}}if(n.length&&!c.value){varu=n[0].name;d(u)}}));varh=z((function(){returnObject.values(o.tabExpPages).map((function(t){returnt.key}))})),m={mode:a.EMBED};return{c:o,ns:r,ns2:n,onTabClick:d,lazyList:i,deactivateAll:l,activeTab:c,keyHistory:h,embedViewModal:m}},render:function(){vart=this,e=this.c,r=!0===this.c.context.isRouter;returnL("view-base",{class:[this.ns.b(),r?this.ns.m("route"):""],attrs:{controller:this.c},scopedSlots:{caption:function(){returnL("div",{class:t.ns2.b("caption")},[e.complete&&e.model.source.getPSSysImage()?[L("app-icon",{class:t.ns2.be("caption","icon"),attrs:{icon:e.model.source.getPSSysImage()}}),L("span",{class:t.ns2.be("caption","text"),attrs:{title:e.caption}},[e.caption])]:L("span",{class:t.ns2.be("caption","text"),attrs:{title:e.caption}},[e.caption]),e.complete&&L("i-radio-group",{class:t.ns.e("radio-group"),attrs:{type:"button"},on:{"on-change":t.onTabClick},model:{value:t.activeTab,callback:function(e){t.activeTab=e}}},[t.c.model.tabExpPanel.tabExpPages.map((function(e){if(t.c.tabExpPages[e.name])returnL("i-radio",{class:t.ns.e("radio"),attrs:{label:e.name}},[e.source.caption])}))])])}}},[this.c.complete&&[L("i-tabs",{class:this.ns.e("tab"),attrs:{name:this.c.model.codeName},on:{"on-click":this.onTabClick},model:{value:this.activeTab,callback:function(e){t.activeTab=e}}},[this.c.model.tabExpPanel.tabExpPages.map((function(e){varr=t.c.tabExpPages[e.name];if(r)returnL("i-tab-pane",{class:t.ns.e("tab-item"),attrs:{tab:t.c.model.codeName,label:e.source.caption,name:e.name}},[t.lazyList.includes(e.name)&&L("ViewShell",{attrs:{context:t.c.context,params:t.c.params,modal:t.embedViewModal,modelPath:e.embedView.source.modelPath},on:{neuronInit:t.c.nerve.onNeuronInit(e.name)},key:r.key})])}))]),r&&this.activeTab&&L("div",{class:this.ns.e("route-content")},[L("router-view",{key:this.c.tabExpPages[this.activeTab].key,on:{"neuron-init":this.c.nerve.onNeuronInit(this.activeTab)}},[function(e){varr=e.Component;returnr&&L("appKeepAlive",{attrs:{keyList:t.keyHistory}},[L(r)])}])])]])}}),tt=E({name:"GrowthRateSpan",props:M(),setup:function(){return{ns:T("growth-rate-span")}},render:function(){returnL("div",{class:[this.ns.b()]},[L("rate-span",{attrs:{value:this.value}})])}}),et=E({name:"BwsdCustomList",props:{modelData:{type:S,required:!0},context:{type:Object,required:!0},params:{type:Object,default:function(){return{}}},mdCtrlActiveMode:{type:Number,default:2},isSelectFirstDefault:{type:Boolean,required:!1},defaultSelectKeys:{type:Array,required:!1},isExpView:{type:Boolean,required:!1}},setup:function(t){vare=D().proxy,r=T("bwsd-custom-list"),n=R(e,t.modelData,t.context,t.params);n.size=n.model.size;varo="",i=n.model,a=i.defaultSortField,s=i.defaultSortDir;returna&&s&&(o="".concat(a,",").concat(s)),n.nerve.self.evt.on("beforeLoad",(function(){return!n.model.source.noSort&&o?{sort:o}:{}})),{c:n,ns:r}},render:function(){vart=this;returnL("control-layout",{attrs:{modelData:this.c.model}},[L("div",{class:this.ns.b()},[this.c.items.length?null:L("div",{class:this.ns.b("item")},["暂无数据"]),this.c.items.map((function(e,r){returnL("div",{class:t.ns.b("item")},[L("div",{class:t.ns.be("item","index")},["".concat(r+1,".")]),L("div",{class:t.ns.be("item","key")},[e.key||""]),L("div",{class:t.ns.be("item","value")},[e.value||""])])}))])])}}),rt=E({name:"FwzlPortal",props:{modelData:{type:j,required:!0},controller:{type:F,required:!0}},setup:function(t){vare=T("view-portlet");returnObject.assign(t.controller,{result:k(t.controller.result)}),{ns:e,ns2:T("fwzl-portal"),onNeuronInit:function(e){t.controller.setViewNeuron(e)}}},render:function(){vart=this,e=this.controller,r=[this.ns.b(),this.ns.m(this.modelData.modelClass),this.ns2.b()];returnL("portlet-layout",{attrs:{controller:this.controller},class:r},[L("div",{class:[t.ns2.b("content")]},[L("div",{class:t.ns2.e("text")},["总计退文"]),L("div",{class:t.ns2.e("value")},[e.result.data.ztws||0]),L("div",{class:t.ns2.e("text")},["件"]),L("div",{class:t.ns2.e("rate")},[L("rate-span",{attrs:{value:e.result.data.tqztwszf}})])]),L("ViewShell",{attrs:{context:e.viewContext,params:e.params,modal:{mode:a.EMBED},modelPath:e.model.embedView.source.modelPath},on:{neuronInit:this.onNeuronInit},key:e.model.embedView.codeName})])}}),nt=E({name:"FwzlCustomList",props:{modelData:{type:S,required:!0},context:{type:Object,required:!0},params:{type:Object,default:function(){return{}}},mdCtrlActiveMode:{type:Number,default:2},isSelectFirstDefault:{type:Boolean,required:!1},defaultSelectKeys:{type:Array,required:!1},isExpView:{type:Boolean,required:!1}},setup:function(t){vare,r=D().proxy,n=R(r,t.modelData,t.context,t.params),o=T("fwzl-custom-list"),i=V([]),a=null===(e=n.model.source.getPSControlParam())||void0===e?void0:e.ctrlParams;returna&&a.COLOR&&(i.value=JSON.parse(a.COLOR)),{c:n,ns:o,colorList:i}},render:function(){vart=this;returnL("control-layout",{attrs:{modelData:this.c.model}},[this.c.complete&&(t.c.items.length?L("div",{class:t.ns.b()},[L("div",{class:t.ns.b("item-icon")},[t.c.items.map((function(e,r){returnL("div",{class:t.ns.b("item")},[L("div",{class:t.ns.be("item","icon"),style:{"--background":"".concat(t.colorList[r]||"#5190ff")}})])}))]),L("div",{class:t.ns.b("item-text")},[t.c.items.map((function(e){returnL("div",{class:t.ns.b("item")},[e.text&&L("div",{class:t.ns.be("item","text")},[e.text])])}))]),L("div",{class:t.ns.b("item-value")},[t.c.items.map((function(e){returnL("div",{class:t.ns.b("item")},[null!=e.value&&L("div",{class:t.ns.be("item","value")},[e.value])])}))]),L("div",{class:t.ns.b("item-percentage")},[t.c.items.map((function(e){returnL("div",{class:t.ns.b("item")},[e.percentage&&L("div",{class:t.ns.be("item","percentage")},[e.percentage])])}))]),L("div",{class:t.ns.b("item-rate")},[t.c.items.map((function(e){returnL("div",{class:t.ns.b("item")},[L("div",{class:t.ns.be("item","rate")},[L("rate-span",{attrs:{value:e.rate}})])])}))])]):L("div",{class:[t.ns.b(),t.ns.m("empty")]},["未有被退文部门"]))])}}),ot=E({name:"RateSpan",props:{value:{type:String}},setup:function(t){vare=T("rate-span"),r=V(""),n=V();returnC((function(){returnt.value}),(function(t){if(t&&parseInt(t,10)){if(t.startsWith("-"))returnr.value=t.slice(1),void(n.value="decrease");r.value=t,n.value="increase"}elser.value=""}),{immediate:!0}),{ns:e,text:r,type:n}},render:function(){if(this.text&&this.type)returnL("div",{class:[this.ns.b(),this.ns.m(this.type)]},[this.text])}}),it=function(t){f(r,t);vare=h(r);functionr(){returng(this,r),e.apply(this,arguments)}returnw(r,[{key:"connect",value:function(t,e){varn;(l(y(r.prototype),"connect",this).call(this,t,e),"dashboard"===t)&&(null===(n=this.dashboard)||void0===n||n.evt.on("contextOrParamsChange",this.controller.setContextOrParams.bind(this.controller)))}}]),r}(m),at=function(t){f(r,t);vare=h(r);functionr(){returng(this,r),e.apply(this,arguments)}returnw(r,[{key:"createNerve",value:function(){returnnewit(this)}}]),r}(b);varst=E({name:"GwxnAppPortalView",props:{context:Object,params:{type:Object},modelPath:{type:String,required:!0},modal:{type:Object},noLoadDefault:{type:Boolean,required:!1}},setup:function(t){vare,r,n=D().proxy;return{c:(e=n,r=t.modelPath,B(e,(function(t,e){returnnewat(r,t,e)})))}},render:function(t){vare=null;if(this.c.complete){varr=this.c.model.dashboard;this.c.providers[r.name]&&(e=t(this.c.providers[r.name].component,{props:{modelData:r,context:this.c.context,params:this.c.params},on:{neuronInit:this.c.nerve.onNeuronInit(r.name)}}))}returnt("view-base",{attrs:{controller:this.c}},[e])}});t("default",{mateUrl:r.meta.url,install:function(t){G.loadStyle(["/style.css"]),ibiz.register.view.register("VIEW_CUSTOM_GwxnIndexCSS",newq),t.component("RateSpan",ot),t.component("GwxnAppPortalView",st),ibiz.register.view.register("VIEW_CUSTOM_GwxnAppPortalView",newQ),t.component("PortalDatePicker",X),ibiz.register.portletPart.register("PORTLET_CUSTOM_PortalDatePicker",newU),t.component("CustomTabExpView",Z),ibiz.register.view.register("VIEW_CUSTOM_CustomTabExpView",newK),t.component("GrowthRateSpan",tt),ibiz.register.editor.register("SPAN_GrowthRateSpan",newW),t.component("BwsdCustomList",et),ibiz.register.control.register("CUSTOM_BwsdCustomList",newH),t.component("FwzlPortal",rt),ibiz.register.portletPart.register("PORTLET_CUSTOM_FwzlPortal",new$),t.component("FwzlCustomList",nt),ibiz.register.control.register("CUSTOM_FwzlCustomList",newJ)}})}}}))}();