!function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||i(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var e=1;e<arguments.length;e++){var n=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))}))}return t}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(l){u=!0,o=l}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||i(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){if(t){if("string"==typeof t)return a(t,e);var r=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):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function c(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */c=function(){return e};var e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(D){l=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new k(n||[]);return o(a,"_invoke",{value:O(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(D){return{type:"throw",arg:D}}}e.wrap=p;var d={};function h(){}function m(){}function v(){}var y={};l(y,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(C([])));w&&w!==r&&n.call(w,a)&&(y=w);var g=v.prototype=h.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function P(e,r){function i(o,a,c,s){var u=f(e[o],e,a);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==t(p)&&n.call(p,"__await")?r.resolve(p.__await).then((function(t){i("next",t,c,s)}),(function(t){i("throw",t,c,s)})):r.resolve(p).then((function(t){l.value=t,c(l)}),(function(t){return i("throw",t,c,s)}))}s(u.arg)}var a;o(this,"_invoke",{value:function(t,e){function n(){return new r((function(r,n){i(t,e,r,n)}))}return a=a?a.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=S(a,r);if(c){if(c===d)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=f(t,e,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)}}}function S(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=f(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function C(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:L}}function L(){return{value:void 0,done:!0}}return m.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){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.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,s,(function(){return this})),e.AsyncIterator=P,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new P(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(g),l(g,u,"Generator"),l(g,a,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=C,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.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)throw t.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(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function s(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function u(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){s(i,n,o,a,c,"next",t)}function c(t){s(i,n,o,a,c,"throw",t)}a(void 0)}))}}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=p(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},l.apply(this,arguments)}function p(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("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)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=y(t);if(e){var o=y(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,r){if(r&&("object"===t(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return v(e)}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function b(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,P(n.key),n)}}function w(t,e,r){return e&&b(t.prototype,e),r&&b(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x(t,e,r){return(e=P(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function P(e){var r=function(e,r){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!==t(o))return o;throw new TypeError("@@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";var i,a,s,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){s=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(){var G=new i(r.meta.url),q=w((function t(){g(this,t),x(this,"component","IndexView")})),Y=function(t){f(i,t);var e,r=h(i);function i(){var t;g(this,i);for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return x(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){var r=P();t.data.selectDate=[r.subtract(e,"month").add(1,"day").toDate(),r.toDate()]})),t}return w(i,[{key:"onInit",value:(e=u(c().mark((function t(){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l(y(i.prototype),"onInit",this).call(this);case 2:this.onItemValueChange(this.data.itemValue),this.changeViewParams();case 4:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"changeViewParams",value:function(){var t=o(this.data.selectDate,2),e=t[0],r=t[1];if(e&&r){var i=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}(s),F=function(t){f(o,t);var e,r,n=h(o);function o(){var t;g(this,o);for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return x(v(t=n.call.apply(n,[this].concat(r))),"entityService",void 0),x(v(t),"result",{data:{}}),t}return w(o,[{key:"onInit",value:(r=u(c().mark((function t(){var e=this;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l(y(o.prototype),"onInit",this).call(this);case 2:return t.next=4,ibiz.entityService.getService("GwxnFwzl",this.context);case 4:this.entityService=t.sent,this.dashboard.nerve.self.evt.on("mounted",(function(){e.load()}));case 6:case"end":return t.stop()}}),t,this)}))),function(){return r.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(c().mark((function t(){var e;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.entityService){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.entityService.exec("Getfwzldata",this.context,this.params);case 4:(e=t.sent).ok&&e.data?this.result.data=e.data:this.result.data={};case 6:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})}]),o}(p),U=function(){function t(){g(this,t),x(this,"component","PortalDatePicker")}var e;return w(t,[{key:"createController",value:(e=u(c().mark((function t(e,r,n){var o;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=new Y(e,r,n),t.next=3,o.init();case 3:return t.abrupt("return",o);case 4:case"end":return t.stop()}}),t)}))),function(t,r,n){return e.apply(this,arguments)})}]),t}(),K=w((function t(){g(this,t),x(this,"component","CustomTabExpView")})),W=function(){function t(e){g(this,t),x(this,"formEditor","GrowthRateSpan"),x(this,"gridEditor","IBizGridSpan"),"SPAN_LINK"===e&&(this.formEditor="IBizSpanLink",this.gridEditor="IBizSpanLink")}var e;return w(t,[{key:"createController",value:(e=u(c().mark((function t(e,r){var n;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=new d(e,r),t.next=3,n.init();case 3:return t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)}))),function(t,r){return e.apply(this,arguments)})}]),t}(),H=w((function t(){g(this,t),x(this,"component","BwsdCustomList")})),$=function(){function t(){g(this,t),x(this,"component","FwzlPortal")}var e;return w(t,[{key:"createController",value:(e=u(c().mark((function t(e,r,n){var o;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=new F(e,r,n),t.next=3,o.init();case 3:return t.abrupt("return",o);case 4:case"end":return t.stop()}}),t)}))),function(t,r,n){return e.apply(this,arguments)})}]),t}(),J=w((function t(){g(this,t),x(this,"component","FwzlCustomList")})),Q=w((function t(){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){var r=T("portal-date-picker"),n=t.controller;Object.assign(n,{data:k(n.data)});var i=P("2017-01-01"),a=P(),c={disabledDate:function(t){var e=P(t);return e.isBefore(i,"day")||a.isBefore(e,"day")}};return C((function(){return n.data.selectDate}),(function(t,e){var r=o(t.map((function(t){return P(t).format("YYYY-MM-DD")})),2),i=r[0],a=r[1],c=o(e.map((function(t){return P(t).format("YYYY-MM-DD")})),2),s=c[0],u=c[1];i===s&&a===u||n.changeViewParams()})),{ns:r,options:c,onSelectDateChange:function(t){if(Array.isArray(t)&&2===t.length){var r=o(t.map((function(t){return P(t)})),2),i=r[0],a=r[1];if(i.clone().add(1,"year").subtract(1,"day").isBefore(a,"day"))return n.data.selectDate=e(n.data.selectDate),void ibiz.message.error("统计期间不能超过一年");n.data.selectDate=[i.toDate(),a.toDate()],n.data.itemValue=0}}}},render:function(){var t=this,e=this.controller.model,r=[this.ns.b(),this.ns.m(this.modelData.modelClass)];return L("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){return L("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){var e=D().proxy,r=T("custom-tab-exp-view"),n=T("view"),o=_(e,t.modelPath),i=V([]),s=V(""),l=V(!1),p=I(e),f={},d=function(){var t=u(c().mark((function t(r){var n,a,u,d;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=A(e),a=n.fullPath,f[s.value]=a,!1!==(null==(u=o.model.tabExpPanel.tabExpPages.find((function(t){return t.name===r})))?void 0:u.embedView.initialized)){t.next=7;break}return t.next=7,u.embedView.init();case 7: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,s.value=r}),0)):i.value.includes(r)||(i.value.push(r),s.value=r);case 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();o.nerve.self.evt.on("created",(function(){var r=A(e),n=o.model.tabExpPanel.tabExpPages;if(o.context.isRouter){var i=t.modal.level+1,a=r.params["view".concat(i)];if(a){var c=n.find((function(t){return N(t.embedView.source)===a}));c&&(s.value=c.name)}}if(n.length&&!s.value){var u=n[0].name;d(u)}}));var h=z((function(){return Object.values(o.tabExpPages).map((function(t){return t.key}))})),m={mode:a.EMBED};return{c:o,ns:r,ns2:n,onTabClick:d,lazyList:i,deactivateAll:l,activeTab:s,keyHistory:h,embedViewModal:m}},render:function(){var t=this,e=this.c,r=!0===this.c.context.isRouter;return L("view-base",{class:[this.ns.b(),r?this.ns.m("route"):""],attrs:{controller:this.c},scopedSlots:{caption:function(){return L("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])return L("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){var r=t.c.tabExpPages[e.name];if(r)return L("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){var r=e.Component;return r&&L("appKeepAlive",{attrs:{keyList:t.keyHistory}},[L(r)])}])])]])}}),tt=E({name:"GrowthRateSpan",props:M(),setup:function(){return{ns:T("growth-rate-span")}},render:function(){return L("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){var e=D().proxy,r=T("bwsd-custom-list"),n=R(e,t.modelData,t.context,t.params);n.size=n.model.size;var o="",i=n.model,a=i.defaultSortField,c=i.defaultSortDir;return a&&c&&(o="".concat(a,",").concat(c)),n.nerve.self.evt.on("beforeLoad",(function(){return!n.model.source.noSort&&o?{sort:o}:{}})),{c:n,ns:r}},render:function(){var t=this;return L("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){return L("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){var e=T("view-portlet");Object.assign(t.controller,{result:k(t.controller.result)});return{ns:e,ns2:T("fwzl-portal"),onNeuronInit:function(e){t.controller.setViewNeuron(e)},format:function(t){if(null==t)return"";try{return ibiz.util.text.format("".concat(t),"#,##0.##")}catch(e){return ibiz.log.error("".concat(t," 值格式化错误")),"".concat(t)}}}},render:function(){var t=this,e=this.controller,r=[this.ns.b(),this.ns.m(this.modelData.modelClass),this.ns2.b()];return L("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")},[t.format(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){var e,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())||void 0===e?void 0:e.ctrlParams;a&&a.COLOR&&(i.value=JSON.parse(a.COLOR));return{c:n,ns:o,colorList:i,format:function(t){if(null==t)return"";try{return ibiz.util.text.format("".concat(t),"#,##0.##")}catch(e){return ibiz.log.error("".concat(t," 值格式化错误")),"".concat(t)}}}},render:function(){var t=this;return L("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){return L("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){return L("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){return L("div",{class:t.ns.b("item")},[null!=e.value&&L("div",{class:t.ns.be("item","value")},[t.format(e.value)])])}))]),L("div",{class:t.ns.b("item-percentage")},[t.c.items.map((function(e){return L("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){return L("div",{class:t.ns.b("item")},[L("div",{class:[t.ns.be("item","rate"),"--"===e.rate&&t.ns.bem("item","rate","empty")]},["--"===e.rate?e.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){var e=T("rate-span"),r=V(""),n=V();return C((function(){return t.value}),(function(t){if(t&&parseInt(t,10)){if(t.startsWith("-"))return r.value=t.slice(1),void(n.value="decrease");r.value=t,n.value="increase"}else r.value=""}),{immediate:!0}),{ns:e,text:r,type:n}},render:function(){if(this.text&&this.type)return L("div",{class:[this.ns.b(),this.ns.m(this.type)]},[this.text])}}),it=function(t){f(r,t);var e=h(r);function r(){return g(this,r),e.apply(this,arguments)}return w(r,[{key:"connect",value:function(t,e){var n;(l(y(r.prototype),"connect",this).call(this,t,e),"dashboard"===t)&&(null===(n=this.dashboard)||void 0===n||n.evt.on("contextOrParamsChange",this.controller.setContextOrParams.bind(this.controller)))}}]),r}(m),at=function(t){f(r,t);var e=h(r);function r(){return g(this,r),e.apply(this,arguments)}return w(r,[{key:"createNerve",value:function(){return new it(this)}}]),r}(b);var ct=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){var e,r,n=D().proxy;return{c:(e=n,r=t.modelPath,B(e,(function(t,e){return new at(r,t,e)})))}},render:function(t){var e=null;if(this.c.complete){var r=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)}}))}return t("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",new q),t.component("RateSpan",ot),t.component("GwxnAppPortalView",ct),ibiz.register.view.register("VIEW_CUSTOM_GwxnAppPortalView",new Q),t.component("PortalDatePicker",X),ibiz.register.portletPart.register("PORTLET_CUSTOM_PortalDatePicker",new U),t.component("CustomTabExpView",Z),ibiz.register.view.register("VIEW_CUSTOM_CustomTabExpView",new K),t.component("GrowthRateSpan",tt),ibiz.register.editor.register("SPAN_GrowthRateSpan",new W),t.component("BwsdCustomList",et),ibiz.register.control.register("CUSTOM_BwsdCustomList",new H),t.component("FwzlPortal",rt),ibiz.register.portletPart.register("PORTLET_CUSTOM_FwzlPortal",new $),t.component("FwzlCustomList",nt),ibiz.register.control.register("CUSTOM_FwzlCustomList",new J)}})}}}))}();