ocpview-plus 1.3.14 → 1.3.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -453,7 +453,7 @@ common.initEview = function(ViewUI2) {
453
453
  common.initAnchor(ViewUI2.Anchor);
454
454
  };
455
455
  const name = "ocpview-plus";
456
- const version$2 = "1.3.13";
456
+ const version$2 = "1.3.14";
457
457
  const title = "ocpviewPlus";
458
458
  const description = "A high quality Service UI components Library with Vue.js";
459
459
  const homepage = "";
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("view-ui-plus"),require("axios"),require("jquery"),require("js-cookie"),require("js-md5"),require("xlsx"),require("xlsx-style-vite"),require("file-saver"),require("vue"),require("element-resize-detector"),require("pako"),require("viewerjs"),require("pdfobject"),require("echarts-liquidfill"),require("vue-draggable-plus")):"function"==typeof define&&define.amd?define(["exports","view-ui-plus","axios","jquery","js-cookie","js-md5","xlsx","xlsx-style-vite","file-saver","vue","element-resize-detector","pako","viewerjs","pdfobject","echarts-liquidfill","vue-draggable-plus"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ocpviewPlus={},e.ViewUiPlus,e.Axios,e.Jquery,e.JsCookie,e.JsMd5,e.Xlsx,e.XlsxStyleVite,e.FileSaver,e.Vue,e.ElementResizeDetector,e.Pako,e.Viewerjs,e.Pdfobject,e.EchartsLiquidfill,e.VueDraggablePlus)}(this,(function(e,t,n,o,i,r,a,s,l,c,u,d,h,A,f,p){"use strict";function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function m(e){if(e&&e.__esModule)return e;var t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var y=g(t),v=g(n),C=g(o),b=g(i),w=g(r),x=m(a),B=m(s),E=g(u),_=g(d),k=g(h);function S(e,t){for(let n=0;n<t.length;n++)if(e===t[n])return!0;return!1}function D(e){const t=(n=e,{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"}[Object.prototype.toString.call(n)]);var n;let o;if("array"===t)o=[];else{if("object"!==t)return e;o={}}if("array"===t)for(let i=0;i<e.length;i++)o.push(D(e[i]));else if("object"===t)for(let i in e)o[i]=D(e[i]);return o}let O={};function F(){let e=[],t=[];for(let o in this.objData){const n=this.objData[o];n._isChecked&&e.push(parseInt(o)),n.children&&n.children.length&&(t=t.concat(this.getSelectionChildrenRowKeys(n,t)))}t=[...new Set(t)];let n=[];return this.data.forEach(((o,i)=>{e.indexOf(i)>-1&&(o._customIndex=i,n=n.concat(o)),o.children&&o.children.length&&t.length&&(n=n.concat(this.getSelectionChildren(o,n,t)))})),n=[...new Set(n)],JSON.parse(JSON.stringify(n))}function T(){let e=this.$el.parentNode.offsetWidth,t={},n=0,o=[],i=[],r=[];this.cloneColumns.forEach((e=>{e.width?o.push(e):(i.push(e),e.minWidth&&(n+=e.minWidth),e.maxWidth||r.push(e)),e._width=null}));let a=e-o.map((e=>e.width)).reduce(((e,t)=>e+t),0)-n-(this.showVerticalScrollBar?this.scrollBarWidth:0)-1,s=i.length,l=0;a>0&&s>0&&(l=parseInt(a/s));for(let c=0;c<this.cloneColumns.length;c++){const e=this.cloneColumns[c];let n=l+(e.minWidth?e.minWidth:0);e.width?n=e.width:e._width?n=e._width:(e.minWidth>n?n=e.minWidth:e.maxWidth<n&&(n=e.maxWidth),a>0?(a-=n-(e.minWidth?e.minWidth:0),s--,l=s>0?parseInt(a/s):0):l=0),e._width=n,t[e._index]={width:n}}if(a>0){s=r.length,l=parseInt(a/s);for(let e=0;e<r.length;e++){const n=r[e];let o=n._width+l;s>1?(s--,a-=l,l=parseInt(a/s)):l=0,n._width=o,t[n._index]={width:o}}}this.tableWidth=this.cloneColumns.map((e=>e._width)).reduce(((e,t)=>e+t),0)+(this.showVerticalScrollBar?this.scrollBarWidth:0)+1,this.columnsWidth=t,this.fixedHeader()}function N(e,t){const n=t?this.getDataByRowKey(t):this.objData[e];n&&this.highlightRow&&!n._isHighlight&&this.handleCurrentRow("highlight",e,t)}function I(e){return D(e).map((e=>("children"in e&&(e.children=this.makeColumnsId(e.children)),e.__id=function(e=32){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",n=t.length;let o="";for(let i=0;i<e;i++)o+=t.charAt(Math.floor(Math.random()*n));return o}(6),e)))}function R(){let e=!1;for(let t in this.headRows)for(let n in this.headRows[t]){if("right"===this.headRows[t][n].fixed){e=!0;break}if(e)break}return[{[`${this.prefixCls}-hidden`]:e,"efuture-table-scroll-th":!0}]}function P(e,t=!1){if(this.to){if("_blank"===this.target)return!1;e.preventDefault(),"click"===this.to?this.$emit("click",e):this.handleClick(t)}}function V(){this.itemDisabled||(this.$parent&&this.$parent.onClick?this.$parent.onClick():this.$refs.input&&this.$refs.input.click())}function M(){this.$refs.pickerPanel&&this.$refs.pickerPanel.reset&&this.$refs.pickerPanel.reset()}function U(e){const t=e.keyCode;if(9===t)if(this.visible)if(e.stopPropagation(),e.preventDefault(),this.isConfirm){const t=".ivu-picker-confirm > *",n=this.$refs.drop.$el.querySelectorAll(t);this.internalFocus=!0;[...n][e.shiftKey?"pop":"shift"]().focus()}else this.handleClose();else this.focused=!1;const n=[37,38,39,40];if(this.visible||!n.includes(t)){if(27===t&&this.visible&&(e.stopPropagation(),this.handleClose()),13===t){const e=this.timeSpinnerList.map((e=>e.timeSpinner));if(e.length>0){const t=e[0].showSeconds?3:2,n=Math.floor(this.focusedTime.column/t),o=this.focusedTime.time[n];return void e[n].chooseValue(o)}if(this.type.match(/range/))this.$refs.pickerPanel.handleRangePick(this.focusedDate,"date");else{const e=this.panelTableList.map((e=>e.panelTable)),t=e=>{const t=["year","month","date"].indexOf(this.type)+1;return[e.getFullYear(),e.getMonth(),e.getDate()].slice(0,t).join("-")};e.find((({cells:e})=>e.find((({date:e,disabled:n})=>t(e)===t(this.focusedDate)&&!n))))&&(null===this.modelValue?this.onPick(null,!1,"date"):this.onPick(this.focusedDate,!1,"date"))}}n.includes(t)&&(this.focusedTime.active&&e.preventDefault(),this.navigateDatePanel(keyValueMapper[t],e.shiftKey))}else this.visible=!0}function L(e){this.internalFocus?this.internalFocus=!1:this.visible?e.preventDefault():(this.isFocused=!1,this.onSelectionModeChange(this.type),this.internalValue=this.internalValue.slice(),this.reset(),this.$refs.pickerPanel&&this.$refs.pickerPanel.onToggleVisibility(!1))}const $="undefined"!=typeof window;function j(e,t){const n=t?"scrollTop":"scrollLeft";let o=e[t?"pageYOffset":"pageXOffset"];return $&&"number"!=typeof o&&(o=window.document.documentElement[n]),o}function Q(e){if(this.upperFirstTitle=!!this.titlesOffsetArr[0]&&e.target.scrollTop<this.titlesOffsetArr[0].offset,this.animating)return;const t=this.scrollContainer.scrollTop;this.getCurrentScrollAtTitleId(t)}function H(){if(!$)return;const e=this.affix,t=j(window,!0),n=function(e){if(!$)return;const t=e.getBoundingClientRect(),n=j(window,!0),o=j(window),i=window.document.body,r=i.clientTop||0,a=i.clientLeft||0;return{top:t.top+n-r,left:t.left+o-a}}(this.$el),o=window.innerHeight,i=this.$el.getElementsByTagName("div")[0].offsetHeight;n.top-this.offsetTop<t&&"top"==this.offsetType&&!e?(this.affix=!0,this.slotStyle={width:this.$refs.point.clientWidth+"px",height:this.$refs.point.clientHeight+"px"},this.slot=!0,this.styles={top:`${this.offsetTop}px`},n.left&&(this.styles.left=`${n.left}px`),this.$el.offsetWidth&&(this.styles.width=`${this.$el.offsetWidth}px`),this.$emit("on-change",!0)):n.top-this.offsetTop>t&&"top"==this.offsetType&&e&&(this.slot=!1,this.slotStyle={},this.affix=!1,this.styles=null,this.$emit("on-change",!1)),n.top+this.offsetBottom+i>t+o&&"bottom"==this.offsetType&&!e?(this.affix=!0,this.styles={bottom:`${this.offsetBottom}px`,left:`${n.left}px`,width:`${this.$el.offsetWidth}px`},this.$emit("on-change",!0)):n.top+this.offsetBottom+i<t+o&&"bottom"==this.offsetType&&e&&(this.affix=!1,this.styles=null,this.$emit("on-change",!1))}O.initTable=function(e){e.methods.getSelection=F,e.methods.handleResize=T,e.methods.highlightCurrentRow=N,e.methods.makeColumnsId=I,e.components.tableHead.methods.scrollBarCellClass=R},O.initBreadcrumbItem=function(e){e.mixins[0].methods.handleCheckClick=P},O.initButton=function(e){e.mixins[0].methods.handleCheckClick=P},O.initCard=function(e){e.mixins[0].methods.handleCheckClick=P},O.initCell=function(e){e.mixins[0].methods.handleCheckClick=P},O.initMenuItem=function(e){e.mixins[1].methods.handleCheckClick=P},O.initUpload=function(e){e.methods.handleClick=V},O.initDatePicker=function(e){e.mixins[0].methods.reset=M,e.mixins[0].methods.handleBlur=L,e.mixins[0].methods.handleKeydown=U},O.initAffix=function(e){e.methods.handleScroll=H},O.initAnchor=function(e){e.methods.handleScroll=Q},O.initEview=function(e){O.initTable(e.Table),O.initBreadcrumbItem(e.BreadcrumbItem),O.initButton(e.Button),O.initCard(e.Card),O.initCell(e.Cell),O.initMenuItem(e.MenuItem),O.initUpload(e.Upload),O.initDatePicker(e.DatePicker),O.initAffix(e.Affix),O.initAnchor(e.Anchor)};var z="1.3.13";let K={},G={};function q(e,t,n){let o=K.getToken(),i=K.getEnt_id(),r=t;r||(r={});let a=e.OmdUrl.portalkey;if(K.getUrlParam("portalkey")||(a=K.getUrlParam("portalkey")),"cloud"===K.getUrlParam("srvkey")&&(a="cloud"),"1"===n){let t="";if(o&&""!==o.trim()){if(t=t+"&ent_id="+i+"&token="+o+"&timestamp="+(new Date).getTime()+"&format="+e.OmdUrl.format+"&app_key="+e.OmdUrl.appKey+"&portalkey="+a+"&ver="+e.OmdUrl.ver,0!==e.OmdUrl.signMethod.trim().length&&0!=e.OmdUrl.secret.trim().length){t=t+"&sign_method="+e.OmdUrl.signMethod+"&sign=";let n=e.OmdUrl.appKey+"="+e.OmdUrl.secret+"&body="+JSON.stringify(r).toString()+"&token="+o;void 0!==e.OmdUrl.getMd5&&(n=e.OmdUrl.getMd5(r,o)),t+=w.default(n)}}else{let n={ent_id:i,user_id:e.OmdUrl.uid,user_code:e.OmdUrl.uid,user_name:e.OmdUrl.uname};t=t+"&session="+JSON.stringify(n)}return t}{let t={};if(o&&""!==o.trim()){t.ent_id=i,t.token=o,t.timestamp=(new Date).getTime(),t.format=e.OmdUrl.format,t.app_key=e.OmdUrl.appKey,t.ver=e.OmdUrl.ver,t.portalkey=a,t.sign_method=e.OmdUrl.signMethod;let n=e.OmdUrl.appKey+"="+e.OmdUrl.secret+"&body="+JSON.stringify(r).toString()+"&token="+o;void 0!==e.OmdUrl.getMd5&&(n=e.OmdUrl.getMd5(r,o)),t.sign=w.default(n)}else{let n={ent_id:i,user_id:e.OmdUrl.uid,user_code:e.OmdUrl.uid,user_name:e.OmdUrl.uname};t.session=JSON.stringify(n)}return t}}function W(e,t,n,o,i){let r=null;try{if(r="string"==typeof e?JSON.parse(e):e,0===parseInt(r.returncode)){try{t&&t(r.data)}catch(IM){i.$Spin&&i.$Spin.hide(),i.$nextTick((()=>{setTimeout((()=>{i.alert(IM,null,2)}),1e3)}))}return}if(parseInt(r.returncode)>0){if(n){try{n(r.data)}catch(IM){i.$Spin&&i.$Spin.hide(),i.$nextTick((()=>{setTimeout((()=>{i.alert(IM,null,2)}),1e3)}))}return}throw r.data}if(o){try{o(r.data)}catch(IM){i.$Spin&&i.$Spin.hide(),i.$nextTick((()=>{setTimeout((()=>{i.alert(IM,null,2)}),1e3)}))}return}throw r.data}catch(IM){i.$Spin&&i.$Spin.hide(),i.$nextTick((()=>{setTimeout((()=>{"string"==typeof e?i.alert(IM+"<br/>"+e,null,2):i.alert(IM,null,2)}),1e3)}))}}function X(e,t,n,o){let i="";i=t?"method="+t:"method=",i+=q(o,n,"1"),i=e&&-1!=e.indexOf("?")?e+"&"+i:e+"?"+i;let r=K.getUrlParam("menuCode");return r&&(i=i+"&menuCode="+r),encodeURI(i)}function Y(e){if(!e)return"";try{let t=JSON.parse(e);return t=t.state,t?t.split(":")[1]:e}catch(IM){return e}}G.eid="0",G.uid="0",G.uname="future",G.format="json",G.appKey="mall",G.portalkey="congou",G.checktoken="Y",G.ver="1.0",G.signMethod="MD5",G.secret="",G.omp="/mall-work-webin/rest",G.mall="/mall-work-webin/rest",G.mss="/mall-work-webin/rest",G.portal="/mall-portal-rest/portalesb/ocmrest",G.mdm="/ocm-mdm-webin/rest",G.omc="/omc-tags-webin/rest",G.member="/omc-membership-webin/rest",G.accnt="/omc-accnt-webin/rest",G.work="/omc-work-webin/rest",G.investment="/mall-investment-webin/rest",G.uploadfile="/mss-sysconf-boot/upload",G.delfile="/mss-sysconf-boot/delete?filekey=",G.downfile="/mss-sysconf-boot/download?filekey=",G.getfile="/mss-sysconf-boot/filedata?",G.amp="/ampOpenapiService/",G.uidespath=G.amp,G.helpUrl="docs.sjhgo.com",G.mallmdm="/mall-mdm-webin/rest",G.mallmaster="/mall-master-webin/rest",G.portal=G.mallmdm,G.uiConfigExpire=24,G.fairyConfigExpire=24,G.dictExpire=24,G.operbilllog="/mss-sysconf-query/rest",G.getCurHelpUrl=function(e){var t="";if("Y"===e.OmdUrl.startHelp&&e.OmdUrl.helpType){var n=e.$Method.getUrlParam("helpindex"),o=e.$Method.getLocalStorage("modulecodeHelp_"+e.OmdUrl.helpType+"_"+n);if(o)return o;if(n){var i=e.OmdUrl.helpUrl;if(i||e.getHelpdocumenturl&&(i=e.getHelpdocumenturl()),i){let o=e.getHelpId(e.OmdUrl.helpType,n);t=o?"http://"+i+"/web/#/p/"+o:"http://"+i+"/web/#/"+e.OmdUrl.helpType+"?page_id="+n}e.$Method.setLocalStorage("modulecodeHelp_"+e.OmdUrl.helpType+"_"+n,t,e.OmdUrl.uiConfigExpire)}}return t},K.OmdUrl=G,K.alert=function(e,n,o){o||(o="1"),e&&"string"==typeof e&&(e='<xmp style="margin: 0;white-space:break-spaces;">'+(e=(e=e.replace(new RegExp("</xmp>","gi"),"</txmp>")).replace(new RegExp("<xmp","gi"),"<txmp"))+"</xmp>"),"2"===(o+="")?t.Modal.error({title:"系统警告",content:'<div style="word-wrap:break-word">'+e+"</div>"}):"3"===o?(n||(n="成功"),t.Modal.success({title:n,content:'<div style="word-wrap:break-word">'+e+"</div>"})):(n||(n="提醒"),t.Modal.warning({title:n,content:'<div style="word-wrap:break-word">'+e+"</div>"}))},K.asyncPost=function(e,t,n,o,i,r,a){let s=this;e.startsWith("/")||(e="/"+e),function(e,t,n,o,i){let r={};t&&(r.method=t);let a=q(o,n,"2");for(let l in a)r[l]=a[l];n||(n={});let s=K.getUrlParam("menuCode");return s&&(r.menuCode=s),new Promise("get"===i?(t,o)=>{v.default.get(e,n,{params:r}).then((e=>{t(e.data)}),(e=>{o(e)})).catch((e=>{o(e)}))}:(t,o)=>{v.default.post(e,n,{params:r}).then((e=>{t(e.data)}),(e=>{o(e)})).catch((e=>{o(e)}))})}(e,t,n,s,a).then((function(e){return W(e,o,i,null,s)}),(function(e){i?i(e):(s.$Spin&&s.$Spin.hide(),s.$nextTick((()=>{setTimeout((()=>{s.alert(e.message+"<br/>"+e.response.data,null,"2")}),1e3)})))})).catch((e=>{if(!r){s.$Spin&&s.$Spin.hide();let t=JSON.stringify(e);return s.$nextTick((()=>{setTimeout((()=>{s.alert(t,null,"2")}),1e3)})),!1}r(e)}))},K.getResturl=X,K.synchroPost=function(e,t,n,o,i,r,a){let s=this,l="POST";a&&(l=a);let c=X(e,t,n,s);c.startsWith("/")||(c="/"+c),C.default.ajaxSetup({cache:!1});let u={type:l,contentType:"text/plain; charset=UTF-8",async:!1,dataType:"JSON",processData:!1,success:function(e){return W(e,o,i,r,s)},error:function(e,t,n){s.$Spin&&s.$Spin.hide();try{let e=JSON.stringify(n);s.alert(e,null,"2")}catch(IM){setTimeout((()=>{s.alert(n,null,"2")}),1e3)}return!1}};n||(n={}),"POST"===l?u.data=JSON.stringify(n):delete u.data,C.default.ajax(c,u)},K.getOmdUrlConfig=function(e){C.default.ajax({url:"/amp-glod/config.json",type:"GET",dataType:"json",success:function(t){let n=t,o={};if(n)for(let e in n)n[e]instanceof Array?n[e].forEach((e=>{o[e.name]=e.value})):o[e]=n[e];e.config.globalProperties.OmdUrl=Object.assign({},e.config.globalProperties.OmdUrl,o)}})},K.getPortalConfig=function(e){C.default.ajax({url:"/ampOpenapiService?method=usercenter.portal.getConfig",type:"POST",data:{},dataType:"json",success:function(t){if(0==t.returncode&&t.data){if(t.data.OmdUrl){let n=JSON.parse(t.data.OmdUrl);e.config.globalProperties.OmdUrl=Object.assign({},e.config.globalProperties.OmdUrl,n)}e.config.globalProperties.portalConfig=t.data}}})},K.getUserCode=function(e){let t=null;t=e||this;let n=K.getToken(e),o="",i="";return o=t.portalkey,i=t.OmdUrl.uid,n&&("congou"==o?i=Y(b.default.get("user_code")):b.default.get("user_code")&&(i=b.default.get("user_code"))),i},K.getUserName=function(e){let t=null;t=e||this;let n=K.getToken(e),o="",i="";return o=t.portalkey,i="["+t.OmdUrl.uid+"]"+t.OmdUrl.uname,n&&("congou"==o?i="["+Y(b.default.get("user_code"))+"]"+Y(b.default.get("user_name")):b.default.get("user_code")&&(i="["+b.default.get("user_code")+"]"+b.default.get("user_name"))),i},K.getPortalMkt=function(){let e={};return e.shopId=b.default.get("shopId"),e.shopCode=b.default.get("shopCode"),e.shopName=b.default.get("shopName"),e},K.getSession=function(){let e={},t=K.getUserName(),n=K.getUserCode(),o=b.default.get("user_id"),i=K.getEnt_id(),r=K.getToken();return e.user_name=t||"",e.user_code=n||"",e.user_id=o||"",e.ent_id=i||"",e.token=r||"",JSON.stringify(e)},K.getUrlParam=function(e){let t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.href.split("?"),o="";return n.length>1&&(o=n[1].match(t)),o||n.length>2&&(o=n[2].match(t)),o?decodeURI(o[2]):""},K.initGlobal=function(e,t,n){let o={};e.config.globalProperties.OmdUrl||(e.config.globalProperties.OmdUrl={}),t&&(o=Object.assign({},e.config.globalProperties.OmdUrl,t));let i=K.getUrlParam("portalkey");i&&(o.portalkey=i),o.eid=K.getEnt_id(e.config.globalProperties),o.modulecode=K.getUrlParam("modulecode"),o.modulecode||(o.modulecode=K.getUrlParam("billmoduleid")),o.helpindex=K.getUrlParam("helpindex"),o.billmoduleid=e.config.globalProperties.modulecode,o.openbillno=K.getUrlParam("billno"),o.opentaskid=K.getUrlParam("taskid"),o.nocheck=K.getUrlParam("nocheck")?K.getUrlParam("nocheck"):"N",e.config.globalProperties.OmdUrl=Object.assign({},e.config.globalProperties.OmdUrl,o),K.getPortalConfig(e)},K.getUserModuleMethod=function(e){let t=null,n=K.getToken();if(!n)return t;let o="";if(e)o=e;else if(o=K.getUrlParam("modulecode"),!o)return t;let i="/mall-portal-rest/portalesb/ocmrest";this.OmdUrl&&this.OmdUrl.portal&&(i=this.OmdUrl.portal),"cloud"===K.getUrlParam("srvkey")&&(i=this.OmdUrl.mdm);let r={};return r.token=n,r.modulecode=o,this.synchroPost(i,"runtime.modulesrivce.getUserModuleMethod",r,(function(e){t=e}),null),t},K.checkModuleByToken=function(){let e=!1,t=K.getToken();if(!t)return e;let n=K.getUrlParam("modulecode");if(!n)return e;if(!location.pathname)return e;if("congou"!=this.portalkey)return e;let o="/mall-portal-rest/portalesb/ocmrest";this.OmdUrl.portal&&(o=this.OmdUrl.portal);let i={token:t,modulecode:n,execmodule:location.pathname};"cloud"===K.getUrlParam("srvkey")&&(o=this.OmdUrl.mdm);return this.synchroPost(o,"runtime.modulesrivce.checkmodulebytoken",i,(function(t){"-1"===t.flag&&(e=!0)}),null),e},K.getDict=function(e,t){let n="code,name";t&&(n=t);let o={},i={fields:n,dict_group_code:e};return this.synchroPost(this.OmdUrl.omp,"omp.work.dict.getbydictgroupcode",i,(function(e){o=e}),null),o},K.setQueryConfig=function(e){Object.assign(this.query.Config,e)},K.getQueryConfig=function(e){let t=null;return t=this.query.Config[e]?JSON.parse(JSON.stringify(this.query.Config[e])):{},void 0===t.width&&(t.isTree?t.width=.3:t.width=.4),void 0===t.height&&(t.height=.6),void 0===t.responseId&&(t.responseId=t.responseCode),void 0===t.manualLoad&&(t.manualLoad=!0),void 0===t.multiSelect&&(t.multiSelect=!1),void 0===t.showCondition&&(t.showCondition=!0),t.isConfig?t:this.query.customQueryConfig?this.query.customQueryConfig(t):t},K.getBillmoduleid=function(e){let t="",n={billtype:e,order_field:"modeid"};return this.synchroPost(this.OmdUrl.mall,"mss.base.billmain.search",n,(function(e){e&&e.billmain&&e.billmain.length>0&&(t=e.billmain[0].modeid)}),null),t},K.getBilltype=function(e){let t="",n={modeid:e};return this.synchroPost(this.OmdUrl.mall,"mss.base.billmain.search",n,(function(e){e&&e.billmain&&e.billmain.length>0&&(t=e.billmain[0].billtype)}),null),t},K.getHelpdocumenturl=function(){let e="";return this.synchroPost(this.OmdUrl.mall,"mss.work.report.query",{queryid:"select_fgetmanapara",mpmkt:"00",mpcode:"HELPDOCUMENTURL"},(function(t){t&&t.report&&t.report.length>0&&(e=t.report[0].mpvalue)}),null),e},K.getHelpId=function(e,t){let n="",o={};return o.helpType=e,o.helpIndex=t,this.synchroPost(this.OmdUrl.amp,"usercenter.helpconfig.getHelpId",o,(function(e){e&&e.helpId&&(n=e.helpId)}),(function(e){n=""}),(function(e){n=""})),n},K.getConditionValue=function(e,t,n,o){let i={};if("=="===n)if("DateBox"===o.type){i[e]={};let n={};n[">="]=t,"month"===o.vtype?n["<"]=this.$Method.getNextMonthFirstDay(t):n["<"]=this.$Method.getTomorrow(t),i[e]=n}else if("inputer"===e||"auditor"===e||"canceler"===e){let n={};n[e]={"==":t};let o={};o[e+"_name"]={LIKE:"[%]"+t},i.$or=[],i.$or.push(n),i.$or.push(o)}else i[e]={},void 0!==t.value?i[e][n]=t.value:i[e][n]=t;return"LIKE"===n&&(i[e]={},i[e][n]="%"+t+"%"),"LIKE"!==n&&"=="!==n&&(i[e]={},i[e][n]=t),i},K.getHelpUrl=function(){let e="";if(this.helpindex){let t="";t=this.OmdUrl.helpUrl?this.OmdUrl.helpUrl:this.getHelpdocumenturl(),t&&(e="http://"+t+"/web/#/"+this.OmdUrl.helpType+"?page_id="+this.helpindex)}return e},K.getEnt_id=function(e){let t="",n="";if(e?(t=e.OmdUrl.eid,n=e.OmdUrl.portalkey):(t=this.OmdUrl.eid,n=this.OmdUrl.portalkey),void 0!==b.default.get("ent_id")&&""!==b.default.get("ent_id"))t=b.default.get("ent_id");else{let e=K.getUrlParam("ent_id");void 0!==e&&""!==e&&(t=e)}if("cloud"===n){let e=K.getUrlParam("lock_entid");void 0!==e&&""!==e&&(t=e)}return t},K.getToken=function(e){let t="";if(e?e.token&&(t=e.token):this.token&&(t=this.token),b.default.get("token"))t=b.default.get("token");else{let e=K.getUrlParam("token");e&&(t=e)}return t},K.getModulecode=function(){let e="";return e=K.getUrlParam("modulecode"),e||(e=K.getUrlParam("billmoduleid")),e},K.downloadFile=function(e,t){if(!e)return;let n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(){if(200===this.status){let e=this.response,n=new FileReader,o=decodeURI(this.getResponseHeader("content-disposition")).replace("attachment;filename*=UTF-8''","");o=o.replace("attachment;filename=",""),n.readAsDataURL(e),o=decodeURIComponent(o),o=o.replace(/\ +/g,""),o=o.replace(/[\r\n]/g,""),n.onload=function(){let n=document.createElement("a");n.download=o,n.href=URL.createObjectURL(e),C.default("body").append(n),t.$Spin.hide(),n.click(),C.default(n).remove()}}else t.$Spin.hide(),t.alert("导出失败")},n.send(new Blob)},K.exportExcelback=function(e){e.child?setTimeout(e.exportExcelback(e),100):e.$Spin.hide()},K.doExportExcel=function(e,t,n,o,i){let r=e;n||(n={}),r=X(r,t,n,i);let a=JSON.stringify(n);a=a.replaceAll("#","%23"),a=a.replaceAll("&","%26"),a=a.replaceAll("+","%2B"),r=encodeURI(r+"&param="+a);let s=b.default.get("user_id"),l=b.default.get("user_code");if(s&&(r+=encodeURI("&user_id="+s)),l&&(r+=encodeURI("&user_code="+l)),i.$Spin.show({render:e=>e("div","导出中...,请勿关闭!")}),o||(o="2"),"2"===o)K.downloadFile(r,i);else{const e=window.open(r,"_blank");var c=setInterval((function(){e.closed&&(i.$Spin.hide(),clearInterval(c))}),100)}},K.doExportReport=function(e,t,n,o){let i=e;n||(n={}),i=X(i,t,n,o);let r=JSON.stringify(n);r=r.replaceAll("#","%23"),r=r.replaceAll("&","%26"),r=r.replaceAll("+","%2B"),i=encodeURI(i+"&param="+r),o.$Spin.show({render:e=>e("div","导出中...,请勿关闭!")}),K.downloadFile(i,o)},K.doBillExport=function(e,t,n,o){const i=Object.assign({},n),r=encodeURI(X(e,t,i,o)+"&param="+JSON.stringify(i));o.$Spin.show({render:e=>e("div","导出中...,请勿关闭!")}),K.downloadExcel(r,o,n)},K.downloadExcel=function(e,t,n={}){const o=new XMLHttpRequest;o.open("POST",e,!0),o.responseType="blob",o.setRequestHeader("Content-Type","application/json"),o.onload=function(){if(t.$Spin.hide(),200!==this.status)return void t.alert(`导出失败:${this.status} ${this.statusText}`);const e=this.response,i=new FileReader;i.onload=()=>{let r=i.result;try{const e=JSON.parse(r);if(e.returncode&&"0"!==e.returncode)return void t.alert(e.data||"导出失败")}catch(IM){}let a=function(e,t){let n=t.getResponseHeader("content-disposition");if(n&&n.includes("filename=")){let e=n.match(/filename\*=UTF-8''(.+)/i);if(e&&e[1])return decodeURIComponent(e[1]);let t=n.split("filename=")[1];if(t)return t.replace(/["']/g,"")}const o=new Date,i=[o.getFullYear(),String(o.getMonth()+1).padStart(2,"0"),String(o.getDate()).padStart(2,"0"),String(o.getHours()).padStart(2,"0"),String(o.getMinutes()).padStart(2,"0"),String(o.getSeconds()).padStart(2,"0")].join(""),r=e.billmoduleid||"export";return`${i}${r}.xls`}(n,o);const s=document.createElement("a");s.href=URL.createObjectURL(e),s.download=a,document.body.appendChild(s),s.click(),setTimeout((()=>document.body.removeChild(s)),120)},i.readAsText(e)},o.onerror=()=>{t.$Spin.hide(),t.alert("网络错误,导出失败")},o.send(JSON.stringify(n))},K.getFilesInfo=function(e,t,n,o,i){let r=K.getUserCode(),a=K.getUserName(),s=K.getToken(),l=G.getfile+"billno="+e+"&billmoduleid="+t+"&scenetype="+o,c="&usercode="+r+"&username="+a+"&token="+s;c+="Y"!==n?"&notdelfile=N":"&notdelfile=Y",c=encodeURI(c),K.synchroPost(l,"",{},(e=>{let t=[];e&&e.length>0&&e.forEach((e=>{let n=Object.assign({},{},e);n.filename=e.filename,n.filekey=e.filekey,n.downUrl=G.downfile+n.filekey+c,n.delUrl=G.delfile+n.filekey+c,n.title=n.filename,n.url=n.downUrl,n.modflag=e.modflag,t.push(n)})),i(t)}),null,null,"get")},K.getFilesInfoByIdkey=function(e,t){let n=K.getUserCode(),o=K.getUserName(),i=K.getToken(),r=G.getfile+"idkey="+e,a="&usercode="+n+"&username="+o+"&token="+i;a=encodeURI(a),K.synchroPost(r,"",{},(e=>{let n=[];e&&e.length>0&&e.forEach((e=>{let t=Object.assign({},{},e);t.filename=e.filename,t.filekey=e.filekey,t.downUrl=G.downfile+t.filekey+a,t.delUrl=G.delfile+t.filekey+a,t.title=t.filename,t.url=t.downUrl,t.modflag=e.modflag,n.push(t)})),t(n)}),null,null,"get")},K.getFileInfo=function(e,t){let n=K.getUserCode(),o=K.getUserName(),i=K.getToken(),r=G.getfile+"filekey="+e,a="&usercode="+n+"&username="+o+"&token="+i;a=encodeURI(a),K.synchroPost(r,"",{},(e=>{let n=[];e&&e.length>0&&e.forEach((e=>{let t=Object.assign({},{},e);t.filename=e.filename,t.filekey=e.filekey,t.downUrl=G.downfile+t.filekey+a,t.delUrl=G.delfile+t.filekey+a,t.title=t.filename,t.url=t.downUrl,t.modflag=e.modflag,n.push(t)})),t(n)}),null,null,"get")},K.setUrlSuffix=function(e,t){let n=K.getUrlParam("srvkey"),o=K.getUrlParam("token"),i=K.getUrlParam("usercode"),r=K.getUrlParam("portalkey");return e?-1!=e.indexOf("?")?e+"&token="+o+"&srvkey="+n+"&app_key="+t.OmdUrl.appKey+"&secret="+t.OmdUrl.secret+"&portalkey="+r+"&usercode="+i:e+"?token="+o+"&srvkey="+n+"&app_key="+t.OmdUrl.appKey+"&secret="+t.OmdUrl.secret+"&portalkey="+r+"&usercode="+i:e};var J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Z="undefined"==typeof window,ee={version:"1.1.1",storage:Z?null:window.localStorage,session:{storage:Z?null:window.sessionStorage}},te={set:function(e,t){if(!this.disabled)return void 0===t?this.remove(e):(this.storage.setItem(e,function(e){return JSON.stringify(e)}(t)),t)},get:function(e,t){if(this.disabled)return t;var n=function(e){if("string"!=typeof e)return;try{return JSON.parse(e)}catch(IM){return e||void 0}}(this.storage.getItem(e));return void 0===n?t:n},has:function(e){return void 0!==this.get(e)},remove:function(e){this.disabled||this.storage.removeItem(e)},clear:function(){this.disabled||this.storage.clear()},getAll:function(){if(this.disabled)return null;var e={};return this.forEach((function(t,n){e[t]=n})),e},forEach:function(e){if(!this.disabled)for(var t=0;t<this.storage.length;t++){var n=this.storage.key(t);e(n,this.get(n))}}};J(ee,te),J(ee.session,te);try{var ne="__storejs__";ee.set(ne,ne),ee.get(ne)!==ne&&(ee.disabled=!0),ee.remove(ne)}catch(IM){ee.disabled=!0}function oe(e,t){return t&&(e+=1462),(Date.parse(e)-new Date(Date.UTC(1899,11,30)))/864e5}function ie(e,t){for(var n={},o={s:{c:1e7,r:1e7},e:{c:0,r:0}},i=0;i!=e.length;++i)for(var r=0;r!=e[i].length;++r){o.s.r>i&&(o.s.r=i),o.s.c>r&&(o.s.c=r),o.e.r<i&&(o.e.r=i),o.e.c<r&&(o.e.c=r);var a={v:e[i][r]};if(null!=a.v){var s=x.utils.encode_cell({c:r,r:i});"number"==typeof a.v?a.t="n":"boolean"==typeof a.v?a.t="b":a.v instanceof Date?(a.t="n",a.z=x.SSF._table[14],a.v=oe(a.v)):a.t="s",n[s]=a}}return o.s.c<1e7&&(n["!ref"]=x.utils.encode_range(o)),n}function re(){if(!(this instanceof re))return new re;this.SheetNames=[],this.Sheets={}}function ae(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),o=0;o!=e.length;++o)n[o]=255&e.charCodeAt(o);return t}function se(e,t){return t.map((t=>e.map((e=>t[e]))))}function le(e,t,n,o,i){if(!(e instanceof Array)){if(!1!==e.visible){let r={};r.label=e.label,r.num=1;let a=0,s=t[n].length;if(e.children&&e.children.length>0)e.children.forEach((e=>{let i=le(e,t,n+1,o,s);a+=i})),r.num=a;else if(e.name){r.name=e.name;let t=100;e.width?e.width>100&&(t=e.width):e.maxWidth?e.maxWidth>100&&(t=e.maxWidth):e.minWidth&&e.minWidth>100&&(t=e.minWidth),r.width=t,r.excelPro=function(e){let t={alignment:{vertical:"center",wrapText:!0}};if("NumberBox"===e.type){if(t.alignment.horizontal="right",e.format&&e.format.length>1){let n=e.format[0],o=e.format[1],i="0";"n"===n||"p"===n?i="0":"c"===n&&(i="¥#,##0");let r="";if(Number(o)>0)for(let e=0;e<Number(o);e++)r+="0";r&&(i=i+"."+r),"p"===n&&(i+="%"),t.numFmt=i}t.t="n"}else if("DataBox"===e.type){t.alignment.horizontal="center";let n="yyyy年m月d日";"datetime"===e.vtype&&(n="yyyy年m月d日 h:mm:ss"),t.numFmt=n,t.t="d"}else t.alignment.horizontal="left",t.numFmt="@",t.t="s";return t}(e),o.push(r)}return(i||0===i)&&0!==n&&(r.fIndex=i),t[n].push(r),r.num}return 0}e.forEach((e=>{le(e,t,n,o,i)}))}!function(e){if(e.URL=e.URL||e.webkitURL,e.Blob&&e.URL)try{return void new Blob}catch(IM){}var t=e.BlobBuilder||e.WebKitBlobBuilder||e.MozBlobBuilder||function(e){var t=function(e){return Object.prototype.toString.call(e).match(/^\[object\s(.*)\]$/)[1]},n=function(){this.data=[]},o=function(e,t,n){this.data=e,this.size=e.length,this.type=t,this.encoding=n},i=n.prototype,r=o.prototype,a=e.FileReaderSync,s=function(e){this.code=this[this.name=e]},l="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),c=l.length,u=e.URL||e.webkitURL||e,d=u.createObjectURL,h=u.revokeObjectURL,A=u,f=e.btoa,p=e.atob,g=e.ArrayBuffer,m=e.Uint8Array;for(o.fake=r.fake=!0;c--;)s.prototype[l[c]]=c+1;return u.createObjectURL||(A=e.URL={}),A.createObjectURL=function(e){var t,n=e.type;return null===n&&(n="application/octet-stream"),e instanceof o?(t="data:"+n,"base64"===e.encoding?t+";base64,"+e.data:"URI"===e.encoding?t+","+decodeURIComponent(e.data):f?t+";base64,"+f(e.data):t+","+encodeURIComponent(e.data)):d?d.call(u,e):void 0},A.revokeObjectURL=function(e){"data:"!==e.substring(0,5)&&h&&h.call(u,e)},i.append=function(e){var n=this.data;if(m&&(e instanceof g||e instanceof m)){for(var i="",r=new m(e),l=0,c=r.length;l<c;l++)i+=String.fromCharCode(r[l]);n.push(i)}else if("Blob"===t(e)||"File"===t(e)){if(!a)throw new s("NOT_READABLE_ERR");var u=new a;n.push(u.readAsBinaryString(e))}else e instanceof o?"base64"===e.encoding&&p?n.push(p(e.data)):"URI"===e.encoding?n.push(decodeURIComponent(e.data)):"raw"===e.encoding&&n.push(e.data):("string"!=typeof e&&(e+=""),n.push(unescape(encodeURIComponent(e))))},i.getBlob=function(e){return arguments.length||(e=null),new o(this.data.join(""),e,"raw")},i.toString=function(){return"[object BlobBuilder]"},r.slice=function(e,t,n){var i=arguments.length;return i<3&&(n=null),new o(this.data.slice(e,i>1?t:this.data.length),n,this.encoding)},r.toString=function(){return"[object Blob]"},r.close=function(){this.size=this.data.length=0},n}(e);e.Blob=function(e,n){var o=n&&n.type||"",i=new t;if(e)for(var r=0,a=e.length;r<a;r++)i.append(e[r]);return i.getBlob(o)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||globalThis.content||globalThis);const ce="postMessage"in window;class ue{constructor(e,t,n){let o="";if(arguments.length<2?o="target error - target and name are both required":"object"!=typeof e?o="target error - target itself must be window object":"string"!=typeof t&&(o="target error - target name must be string type"),o)throw new Error(o);this.target=e,this.name=t,this.prefix=n}send(e){if(ce)this.target.postMessage(`${this.prefix}|${this.name}__Messenger__${e}`,"*");else{const t=window.navigator[this.prefix+this.name];if("function"!=typeof t)throw new Error("target callback function is not defined");t(this.prefix+e,window)}}}class de{constructor(e,t){this.targets={},this.name=e,this.listenFunc=[],this.prefix=t,this.initListen()}addTarget(e,t){const n=new ue(e,t,this.prefix);this.targets[t]=n}listen(e){let t=0;const n=this.listenFunc.length;let o=!1;for(;t<n;t++){if(this.listenFunc[t].toString()===e.toString()){this.listenFunc[t]=e,o=!0;break}}o||this.listenFunc.push(e)}clear(){this.listenFunc=[]}send(e){const{targets:t}=this;let n;for(n in t)t.hasOwnProperty(n)&&t[n].send(e)}initListen(){const e=this,t=function(t){if("object"==typeof t&&t.data&&(t=t.data),"string"==typeof t){const n=t.split("__Messenger__");t=n[1];const o=n[0].split("|"),i=o[0],r=o[1];for(let a=0;a<e.listenFunc.length;a++)i+r===e.prefix+e.name&&e.listenFunc[a](t)}};ce?"addEventListener"in document?window.addEventListener("message",t,!1):"attachEvent"in document&&window.attachEvent("onmessage",t):window.navigator[this.prefix+this.name]=t}}window.EfuMessenger=new class{constructor(e,t,n){this.messengerOBJ=null,this.messageName=t||"AMPclient",this.targetName=e||"AMPframe",this.projectName=n||"AMP",this.init()}init(){this.messengerOBJ=new de(this.messageName,this.projectName),this.messengerOBJ.addTarget(window.parent,this.targetName)}openPortalTabPage(e){this.messengerOBJ.targets[this.targetName].send(JSON.stringify({name:this.messageName,action:"openPortalTabPage",params:{...e}}))}openPortalTabByModuleCode(e){this.messengerOBJ.targets[this.targetName].send(JSON.stringify({name:this.messageName,action:"openPortalTabByModuleCode",params:{...e}}))}};let he={};function Ae(e){let t=[];for(let n=0;n<e;n++){let e=[Math.random(),Math.random(),Math.random()];n>0&&Math.abs(e[0]-t[n-1][0])<.25?n--:(e[1]=.7+.2*e[1],e[2]=.4+.4*e[2],e=e.map((function(e){return parseFloat(e.toFixed(2))})),t.push(e))}return function(e){for(let t=0;t<e.length;t++){let n,o,i,r=e[t][0],a=e[t][1],s=e[t][2];if(0==+a)n=o=i=s;else{let e=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},t=s<.5?s*(1+a):s+a-s*a,l=2*s-t;n=e(l,t,r+1/3),o=e(l,t,r),i=e(l,t,r-1/3)}e[t][0]=Math.round(255*n),e[t][1]=Math.round(255*o),e[t][2]=Math.round(255*i)}}(t),function(e){let t=[],n="";for(let o=0;o<e.length;o++){let i=e[o];n="#";for(let e=0;e<i.length;e++){let t=Number(i[e]).toString(16);"0"===t&&(t+=t),n+=t}t.push(n)}return t}(t)}he.padLeftZero=function(e,t){return(e+t).substr(t.length)},he.formatDate=function(e,t){/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));let n={"M+":e.getMonth()+1,"d+":e.getDate(),"H+":e.getHours(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(let o in n)if(new RegExp(`(${o})`).test(t)){let e=n[o]+"";t=t.replace(RegExp.$1,1===RegExp.$1.length?e:he.padLeftZero("00",e))}return t},he.getToday=function(){let e=new Date,t=Number(e.getMonth())+1;return e.getFullYear()+"-"+he.padLeftZero("00",t+"")+"-"+he.padLeftZero("00",e.getDate()+"")},he.getTomorrow=function(e){let t;t=e?new Date(e):new Date,t.setDate(t.getDate()+1);let n=Number(t.getMonth())+1;return t.getFullYear()+"-"+he.padLeftZero("00",n+"")+"-"+he.padLeftZero("00",t.getDate()+"")},he.getWeekFirstDay=function(){let e=new Date,t=new Date(e-864e5*(e.getDay()-1)),n=Number(t.getMonth())+1;return t.getFullYear()+"-"+he.padLeftZero("00",n+"")+"-"+he.padLeftZero("00",t.getDate()+"")},he.getWeekLastDay=function(){let e=new Date,t=new Date(e-864e5*(e.getDay()-1)),n=new Date(1e3*(t/1e3+518400)),o=Number(n.getMonth())+1;return n.getFullYear()+"-"+he.padLeftZero("00",o+"")+"-"+he.padLeftZero("00",n.getDate()+"")},he.getMonthFirstDay=function(){let e=new Date,t=new Date(e.getFullYear(),e.getMonth(),1),n=Number(t.getMonth())+1;return t.getFullYear()+"-"+he.padLeftZero("00",n+"")+"-"+he.padLeftZero("00",t.getDate()+"")},he.getMonthLastDay=function(e){let t;t=e?new Date(e):new Date;let n=new Date(t.getFullYear(),t.getMonth()+1,1),o=new Date(n-864e5),i=Number(o.getMonth())+1;return o.getFullYear()+"-"+he.padLeftZero("00",i+"")+"-"+he.padLeftZero("00",o.getDate()+"")},he.getNextMonthFirstDay=function(e){let t;t=e?new Date(e):new Date;let n=new Date(t.getFullYear(),t.getMonth()+1,1),o=Number(n.getMonth())+1;return n.getFullYear()+"-"+he.padLeftZero("00",o+"")+"-"+he.padLeftZero("00",n.getDate()+"")},he.getPreMonthFirstDay=function(e){let t;t=e?new Date(e):new Date;let n=new Date(t.getFullYear(),t.getMonth()-1,1),o=Number(n.getMonth())+1;return n.getFullYear()+"-"+he.padLeftZero("00",o+"")+"-"+he.padLeftZero("00",n.getDate()+"")},he.getYearFirstDay=function(){return(new Date).getFullYear()+"-01-01"},he.getYearLastDay=function(){return(new Date).getFullYear()+"-12-31"},he.getWeek=function(e){return new Date(e).getDay()},he.copy=D,he.getUrlParam=function(e){let t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.href.split("?"),o="";return n.length>1&&(o=n[1].match(t)),o||n.length>2&&(o=n[2].match(t)),o?decodeURI(o[2]):""},he.formatNumber=function(e,t,n){let o=0;e?isNaN(e)||(e+=""):e="0",t?2===t.length&&Number(t[1])&&(o=Number(t[1])):t="n";let i=Number(e).toFixed(o);t.startsWith("p")&&(i=(100*Number(e)).toFixed(o));let r=i.split("."),a="",s="";if(r.length>0&&(a=r[0]),t.startsWith("c")&&(a=a.replace(/(\d)(?=(?:\d{3})+$)/g,"$1,")),r.length>1&&(s=r[1]),s){let e=s;if(n)for(let t=s.length-1;t>=0&&0===Number(s[t]);t--)e=e.slice(0,-1);s=e}let l="";return l=s?a+"."+s:a,t.startsWith("p")&&(l+="%"),l},he.precisionNumber=function(e,t){let n=0;return e?isNaN(e)||(e+=""):e="0",t?2===t.length&&(Number(t[1])&&(n=Number(t[1])),t.startsWith("p")&&(n+=2)):t="n",Number(e).toFixed(n)},he.getColorList=function(e,t){let n=Number(t)-e.length;if(0===n)return e;let o=Ae(n),i=!1;for(;;){i=!1;for(let t=0;t<o.length;t++)for(let n=0;n<e.length;n++)if(o[t]===e[n]){i=!0;break}if(!i){o=e.concat(o);break}o=Ae(n)}return o},he.getColor=function(){return Ae(1)[0]},he.getGlobalColor=function(e,t,n,o){let i=[];if(e>0){let r=o.$Store.state.app.mychartColor[n];e>r.length?t?(i=o.$Method.getColorList(r,e),o.$nextTick((()=>{o.$Store.commit("setMychartColor",n,i)}))):i=r.concat(r.slice(0,e-r.length)):i=r.slice(0,e)}return i},he.getHeight=function(e){return e.$Store.state.app.clientHeight},he.getWidth=function(e){return e.$Store.state.app.clientWidth},he.getXDpi=function(){let e=0;if(window.screen.deviceXDPI)e=window.screen.deviceXDPI;else{let t=document.createElement("DIV");t.style.cssText="width:1in;height:1in;position:absolute;left:0px;top:0px;z-index:99;visibility:hidden",document.body.appendChild(t),e=parseInt(t.offsetWidth),document.body.removeChild(t)}return e},he.getYDpi=function(){let e=0;if(window.screen.deviceXDPI)e=window.screen.deviceYDPI;else{let t=document.createElement("DIV");t.style.cssText="width:1in;height:1in;position:absolute;left:0px;top:0px;z-index:99;visibility:hidden",document.body.appendChild(t),e=parseInt(t.offsetHeight),document.body.removeChild(t)}return e},he.mmToYpixe=function(e,t){let n=t;return n||(n=he.getYDpi()),Number((e/25.4*n).toFixed(2))},he.mmToXpixe=function(e,t){let n=t;return n||(n=he.getXDpi()),Number((e/25.4*n).toFixed(2))},he.xPixelToMm=function(e,t){let n=t;return n||(n=he.getXDpi()),Number((e/n*25.4).toFixed(2))},he.yPixelToMm=function(e,t){let n=t;return n||(n=he.getYDpi()),Number((e/n*25.4).toFixed(2))},he.unique=function(e){const t=new Map;return e.filter((e=>!t.has(e)&&t.set(e,1)))},he.formatComboBox=function(e,t){if(!e&&0!==e)return e;if(null==t.renderValue&&(t.renderValue={}),t.renderValue[e])return t.renderValue[e];let n=e;if(t.data&&t.data.length>0){let o="code",i="name";t.valueField&&(o=t.valueField),t.textField&&(i=t.textField);const r=t.data.findIndex((t=>t[o]===e));r>-1&&t.data[r][i]&&(n=!1===t.codeWithName?t.data[r][i]:"["+e+"]"+t.data[r][i])}return t.renderValue[e]=n,n},he.formatDataBox=function(e,t){return e?(null==t.renderFormat&&(t.renderFormat="yyyy-MM-dd",t&&void 0===t.format?"date"===t.vtype?t.renderFormat="yyyy-MM-dd":"datetime"===t.vtype?t.renderFormat="yyyy-MM-dd hh:mm:ss":"month"===t.vtype&&(t.renderFormat="yyyy-MM"):t.format&&(t.renderFormat=t.format)),"string"==typeof e||"number"==typeof e?he.formatDate(new Date(e),t.renderFormat):e.constructor===Date?he.formatDate(e,t.renderFormat):e):""},he.formatValue=function(e,t,n){if(n){if(n.type){let o=n.type.toLowerCase();return"textbox"===o?e:"numberbox"===o||"numberboxv1"===o?e||e!==n.defaultValue?he.formatNumber(e,n.format,n.notzero):e:"combobox"===o?he.formatComboBox(e,n):"datebox"===o?he.formatDataBox(e,n):n.textName?t[n.textName]?t[n.textName]:e||"":e}return e}return e},he.getDefaultFieldStyle=function(e,t,n){let o="";if("DateBox"===e.type){let t="";t=void 0!==e.format?e.format:"date"===e.vtype?"yyyy-MM-dd":"datetime"===e.vtype?"yyyy-MM-dd hh:mm:ss":"month"===e.vtype?"yyyy-MM":"yyyy-MM-dd",o=o+"d="+t+"=center"}if("NumberBox"===e.type){let t="";t=void 0!==e.format?e.format:"n2",o=o+t+"=right"}if("ComboBox"===e.type){let i=e.dictkey;i||(i=e.name);let r="t="+i;!1===e.codeWithName?r+="=N":r+="=Y",o=o+r+"=left";let a="code",s="name";e.valueField&&(a=e.valueField),e.textField&&(s=e.textField),t[i]&&!n[i]?(n[i]=[],t[i].forEach((e=>{let t={};t.code=e[a],t.name=e[s],n[i].push(t)}))):null!=e.data&&(n[i]=he.copy(e.data))}return o},he.getGridField=function(e,t,n,o){let i="";for(let r=0;r<e.length;r++){let a=e[r];if(!1!==a.visible&&!1!==a.isExport){if(a.name){i+=a.name+t+a.label;let e="";a.excel&&a.excel.type?(e=a.excel.type,a.excel.format?e+="="+a.excel.format:e+="=",a.excel.align?e+="="+a.excel.align:e+="="):e=he.getDefaultFieldStyle(a,n,o),i+=e?t+e+",":","}if(a.children)for(let e=0;e<a.children.length;e++){let r=a.children[e];if(r.name){let e="";e=a.label?a.label+"("+r.label+")":r.label,i+=r.name+t+e;let s="";r.excel&&r.excel.type?(s=r.excel.type,r.excel.format?s+="="+r.excel.format:s+="=",r.excel.align?s+="="+r.excel.align:s+="="):s=he.getDefaultFieldStyle(r,n,o),i+=s?t+s+",":","}}}}return i.length>0&&(i=i.substring(0,i.length-1)),i},he.print=function(e,t){let n="<html><head>"+document.head.innerHTML+"</head>";n=e?n+"<body>"+e.$el.innerHTML+"</body></html>":n+"<body>"+document.body.innerHTML+"</body></html>";let o=window.open("Print.htm","print");if(o.document.write(n),t){let e=document.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t,o.document.getElementsByTagName("head")[0].appendChild(e)}o.document.close(),o.print(),o.close()},he.openPage=function(e,t){let n={};n.moduleCode=e,n.params=t,window.EfuMessenger.openPortalTabByModuleCode(n)},he.setLocalStorage=function(e,t,n){let o={};o.data=t,o.time=Date.now(),o.expire=n,ee.set(e,JSON.stringify(o))},he.getLocalStorage=function(e){let t=ee.get(e);if(!t)return null;t=JSON.parse(t);let n=60*Number(t.expire)*60*1e3;return Date.now()-t.time>n?(ee.remove(e),null):t.data},he.getTextWidth=function(e){const t=document.createElement("span");t.style.display="inline-block;",t.textContent=e,document.body.appendChild(t);const n=t.offsetWidth;return document.body.removeChild(t),100*Math.ceil(n/100)+40},he.changeMoneyToChinese=function(e){let t,n,o,i=new Array("零","壹","贰","叁","肆","伍","陆","柒","捌","玖"),r=new Array("","拾","佰","仟"),a=new Array("","万","亿","兆"),s=new Array("角","分","毫","厘"),l="";if(""==e)return"";if((e=parseFloat(e))>=1e15)return this.alert("超出最大处理数字"),"";if(0==e)return l=i[0]+"元",l;if(e<0&&(l="负",e*=-1),-1===(e=e.toString()).indexOf(".")?(t=e,n=""):(o=e.split("."),t=o[0],n=o[1].substr(0,4)),parseInt(t,10)>0){let e=0,n=t.length;for(let o=0;o<n;o++){let s=t.substr(o,1),c=n-o-1,u=c/4,d=c%4;"0"==s?e++:(e>0&&(l+=i[0]),e=0,l+=i[parseInt(s)]+r[d]),0==d&&e<4&&(l+=a[u])}l+="元"}if(""!==n){let e=n.length;for(let t=0;t<e;t++){let e=n.substr(t,1);"0"!=e&&(l+=i[Number(e)]+s[t])}}return""===l&&(l+=i[0]+"元"),l},he.exportExcel=function(e,t,n,o){var i=[],r=[];e.forEach((e=>{e.label?i.push(e.label):i.push(e.name),r.push(e.name)}));var a=se(r,t);a.unshift(i);var s="SheetJS";n&&(s=n);var c=new re,u=ie(a);c.SheetNames.push(s),c.Sheets[s]=u;var d=x.write(c,{bookType:"xlsx",bookSST:!1,type:"binary"}),h=o||"列表";l.saveAs(new Blob([ae(d)],{type:"application/octet-stream"}),h+".xlsx")},he.exportMultiSheetExcel=function(e,t){var n=new re,o=[],i=[],r="";e.forEach(((e,t)=>{o=[],i=[],e.config.forEach((e=>{e.label?o.push(e.label):o.push(e.name),i.push(e.name)}));var a=se(i,e.data);a.unshift(o),r="SheetJS"+t,e.sheetName&&(r=e.sheetName),n.SheetNames.push(r),n.Sheets[r]=ie(a)}));var a=x.write(n,{bookType:"xlsx",bookSST:!1,type:"binary"}),s=t||"列表";l.saveAs(new Blob([ae(a)],{type:"application/octet-stream"}),s+".xlsx")},he.exportExcelStyle=function(e,t,n,o){let i=[];for(let l=0;l<n;l++)i.push([]);let r=[];le(e,i,0,r);let a=[],s=[];!function(e,t,n,o){let i=0;for(let r=0;r<t.length;r++){let a=new Array(e.length).fill("");i=0;let s="";for(let e=0;e<t[r].length;e++){if(t[r][e].fIndex||0===t[r][e].fIndex){let n=t[r-1][t[r][e].fIndex].sIndex;s!==n&&(i=n,s=n)}a[i]=t[r][e].label,t[r][e].sIndex=i;let n={s:{}};n.s.r=r,n.s.c=i,n.e={},n.e.r=n.s.r,i+=t[r][e].num,1===t[r][e].num?0===r&&(n.e.r=t.length-1,n.e.c=n.s.c):n.e.c=i-1,r!==t.length-1&&o.push(n)}n.push(a)}}(r,i,s,a);let c=[];r.forEach((e=>{c.push({wpx:e.width})})),t.forEach((e=>{let t=[];r.forEach((n=>{if("n"===n.excelPro.t)t.push(Number(e[n.name]));else if("d"===n.excelPro.t){let o=oe(new Date(e[n.name]));t.push(o),n.excelPro.t="n"}else t.push(e[n.name])})),s.push(t)}));let u=r.length,d={font:{name:"宋体",sz:9,bold:!0},border:{top:{style:"thin"},bottom:{style:"thin"},left:{style:"thin"},right:{style:"thin"}},alignment:{horizontal:"center",vertical:"center",wrapText:!0}},h={font:{name:"宋体",sz:9},border:{top:{style:"thin"},bottom:{style:"thin"},left:{style:"thin"},right:{style:"thin"}}},A="example.xlsx";o&&(A=o);const f=x.utils.book_new(),p=x.utils.aoa_to_sheet(s);x.utils.book_append_sheet(f,p,"Sheet1"),a.length>0&&(p["!merges"]=a);let g=0;for(let l in p)if("!merges"!==l&&"!ref"!==l&&"!cols"!==l){if(p[l].s=d,g<u*n)p[l].s=d;else{let e=Object.assign({},{},h),t=g%u;Object.assign(e,r[t].excelPro),p[l].s=e}g++}p["!cols"]=c;let m=B.write(f,{bookType:"xlsx",bookSST:!1,type:"binary"});l.saveAs(new Blob([ae(m)],{type:"application/octet-stream"}),A)};let fe={Config:{},customQueryConfig:function(e){return e.isTree?(e.popControl="SimpleTree",e.width||(e.width=.4)):(e.popControl="SimpleViewGrid",e.width?Number(e.width)<.55&&(e.width=.55):e.width=.55),e}};var pe={caseMethod:K,commonMethod:he,query:fe};function ge(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{}}const me="function"==typeof Proxy;let ye,ve;function Ce(){return void 0!==ye||("undefined"!=typeof window&&window.performance?(ye=!0,ve=window.performance):"undefined"!=typeof globalThis&&(null===(e=globalThis.perf_hooks)||void 0===e?void 0:e.performance)?(ye=!0,ve=globalThis.perf_hooks.performance):ye=!1),ye?ve.now():Date.now();var e}class be{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const r in e.settings){const t=e.settings[r];n[r]=t.defaultValue}const o=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},n);try{const e=localStorage.getItem(o),t=JSON.parse(e);Object.assign(i,t)}catch(IM){}this.fallbacks={getSettings:()=>i,setSettings(e){try{localStorage.setItem(o,JSON.stringify(e))}catch(IM){}i=e},now:()=>Ce()},t&&t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function we(e,t){const n=e,o=ge(),i=ge().__VUE_DEVTOOLS_GLOBAL_HOOK__,r=me&&n.enableEarlyProxy;if(!i||!o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&r){const e=r?new be(n,i):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else i.emit("devtools-plugin:setup",e,t)}
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("view-ui-plus"),require("axios"),require("jquery"),require("js-cookie"),require("js-md5"),require("xlsx"),require("xlsx-style-vite"),require("file-saver"),require("vue"),require("element-resize-detector"),require("pako"),require("viewerjs"),require("pdfobject"),require("echarts-liquidfill"),require("vue-draggable-plus")):"function"==typeof define&&define.amd?define(["exports","view-ui-plus","axios","jquery","js-cookie","js-md5","xlsx","xlsx-style-vite","file-saver","vue","element-resize-detector","pako","viewerjs","pdfobject","echarts-liquidfill","vue-draggable-plus"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ocpviewPlus={},e.ViewUiPlus,e.Axios,e.Jquery,e.JsCookie,e.JsMd5,e.Xlsx,e.XlsxStyleVite,e.FileSaver,e.Vue,e.ElementResizeDetector,e.Pako,e.Viewerjs,e.Pdfobject,e.EchartsLiquidfill,e.VueDraggablePlus)}(this,(function(e,t,n,o,i,r,a,s,l,c,u,d,h,A,f,p){"use strict";function g(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function m(e){if(e&&e.__esModule)return e;var t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var y=g(t),v=g(n),C=g(o),b=g(i),w=g(r),x=m(a),B=m(s),E=g(u),_=g(d),k=g(h);function S(e,t){for(let n=0;n<t.length;n++)if(e===t[n])return!0;return!1}function D(e){const t=(n=e,{"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Undefined]":"undefined","[object Null]":"null","[object Object]":"object"}[Object.prototype.toString.call(n)]);var n;let o;if("array"===t)o=[];else{if("object"!==t)return e;o={}}if("array"===t)for(let i=0;i<e.length;i++)o.push(D(e[i]));else if("object"===t)for(let i in e)o[i]=D(e[i]);return o}let O={};function F(){let e=[],t=[];for(let o in this.objData){const n=this.objData[o];n._isChecked&&e.push(parseInt(o)),n.children&&n.children.length&&(t=t.concat(this.getSelectionChildrenRowKeys(n,t)))}t=[...new Set(t)];let n=[];return this.data.forEach(((o,i)=>{e.indexOf(i)>-1&&(o._customIndex=i,n=n.concat(o)),o.children&&o.children.length&&t.length&&(n=n.concat(this.getSelectionChildren(o,n,t)))})),n=[...new Set(n)],JSON.parse(JSON.stringify(n))}function T(){let e=this.$el.parentNode.offsetWidth,t={},n=0,o=[],i=[],r=[];this.cloneColumns.forEach((e=>{e.width?o.push(e):(i.push(e),e.minWidth&&(n+=e.minWidth),e.maxWidth||r.push(e)),e._width=null}));let a=e-o.map((e=>e.width)).reduce(((e,t)=>e+t),0)-n-(this.showVerticalScrollBar?this.scrollBarWidth:0)-1,s=i.length,l=0;a>0&&s>0&&(l=parseInt(a/s));for(let c=0;c<this.cloneColumns.length;c++){const e=this.cloneColumns[c];let n=l+(e.minWidth?e.minWidth:0);e.width?n=e.width:e._width?n=e._width:(e.minWidth>n?n=e.minWidth:e.maxWidth<n&&(n=e.maxWidth),a>0?(a-=n-(e.minWidth?e.minWidth:0),s--,l=s>0?parseInt(a/s):0):l=0),e._width=n,t[e._index]={width:n}}if(a>0){s=r.length,l=parseInt(a/s);for(let e=0;e<r.length;e++){const n=r[e];let o=n._width+l;s>1?(s--,a-=l,l=parseInt(a/s)):l=0,n._width=o,t[n._index]={width:o}}}this.tableWidth=this.cloneColumns.map((e=>e._width)).reduce(((e,t)=>e+t),0)+(this.showVerticalScrollBar?this.scrollBarWidth:0)+1,this.columnsWidth=t,this.fixedHeader()}function N(e,t){const n=t?this.getDataByRowKey(t):this.objData[e];n&&this.highlightRow&&!n._isHighlight&&this.handleCurrentRow("highlight",e,t)}function I(e){return D(e).map((e=>("children"in e&&(e.children=this.makeColumnsId(e.children)),e.__id=function(e=32){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890",n=t.length;let o="";for(let i=0;i<e;i++)o+=t.charAt(Math.floor(Math.random()*n));return o}(6),e)))}function R(){let e=!1;for(let t in this.headRows)for(let n in this.headRows[t]){if("right"===this.headRows[t][n].fixed){e=!0;break}if(e)break}return[{[`${this.prefixCls}-hidden`]:e,"efuture-table-scroll-th":!0}]}function P(e,t=!1){if(this.to){if("_blank"===this.target)return!1;e.preventDefault(),"click"===this.to?this.$emit("click",e):this.handleClick(t)}}function V(){this.itemDisabled||(this.$parent&&this.$parent.onClick?this.$parent.onClick():this.$refs.input&&this.$refs.input.click())}function M(){this.$refs.pickerPanel&&this.$refs.pickerPanel.reset&&this.$refs.pickerPanel.reset()}function U(e){const t=e.keyCode;if(9===t)if(this.visible)if(e.stopPropagation(),e.preventDefault(),this.isConfirm){const t=".ivu-picker-confirm > *",n=this.$refs.drop.$el.querySelectorAll(t);this.internalFocus=!0;[...n][e.shiftKey?"pop":"shift"]().focus()}else this.handleClose();else this.focused=!1;const n=[37,38,39,40];if(this.visible||!n.includes(t)){if(27===t&&this.visible&&(e.stopPropagation(),this.handleClose()),13===t){const e=this.timeSpinnerList.map((e=>e.timeSpinner));if(e.length>0){const t=e[0].showSeconds?3:2,n=Math.floor(this.focusedTime.column/t),o=this.focusedTime.time[n];return void e[n].chooseValue(o)}if(this.type.match(/range/))this.$refs.pickerPanel.handleRangePick(this.focusedDate,"date");else{const e=this.panelTableList.map((e=>e.panelTable)),t=e=>{const t=["year","month","date"].indexOf(this.type)+1;return[e.getFullYear(),e.getMonth(),e.getDate()].slice(0,t).join("-")};e.find((({cells:e})=>e.find((({date:e,disabled:n})=>t(e)===t(this.focusedDate)&&!n))))&&(null===this.modelValue?this.onPick(null,!1,"date"):this.onPick(this.focusedDate,!1,"date"))}}n.includes(t)&&(this.focusedTime.active&&e.preventDefault(),this.navigateDatePanel(keyValueMapper[t],e.shiftKey))}else this.visible=!0}function L(e){this.internalFocus?this.internalFocus=!1:this.visible?e.preventDefault():(this.isFocused=!1,this.onSelectionModeChange(this.type),this.internalValue=this.internalValue.slice(),this.reset(),this.$refs.pickerPanel&&this.$refs.pickerPanel.onToggleVisibility(!1))}const $="undefined"!=typeof window;function j(e,t){const n=t?"scrollTop":"scrollLeft";let o=e[t?"pageYOffset":"pageXOffset"];return $&&"number"!=typeof o&&(o=window.document.documentElement[n]),o}function Q(e){if(this.upperFirstTitle=!!this.titlesOffsetArr[0]&&e.target.scrollTop<this.titlesOffsetArr[0].offset,this.animating)return;const t=this.scrollContainer.scrollTop;this.getCurrentScrollAtTitleId(t)}function H(){if(!$)return;const e=this.affix,t=j(window,!0),n=function(e){if(!$)return;const t=e.getBoundingClientRect(),n=j(window,!0),o=j(window),i=window.document.body,r=i.clientTop||0,a=i.clientLeft||0;return{top:t.top+n-r,left:t.left+o-a}}(this.$el),o=window.innerHeight,i=this.$el.getElementsByTagName("div")[0].offsetHeight;n.top-this.offsetTop<t&&"top"==this.offsetType&&!e?(this.affix=!0,this.slotStyle={width:this.$refs.point.clientWidth+"px",height:this.$refs.point.clientHeight+"px"},this.slot=!0,this.styles={top:`${this.offsetTop}px`},n.left&&(this.styles.left=`${n.left}px`),this.$el.offsetWidth&&(this.styles.width=`${this.$el.offsetWidth}px`),this.$emit("on-change",!0)):n.top-this.offsetTop>t&&"top"==this.offsetType&&e&&(this.slot=!1,this.slotStyle={},this.affix=!1,this.styles=null,this.$emit("on-change",!1)),n.top+this.offsetBottom+i>t+o&&"bottom"==this.offsetType&&!e?(this.affix=!0,this.styles={bottom:`${this.offsetBottom}px`,left:`${n.left}px`,width:`${this.$el.offsetWidth}px`},this.$emit("on-change",!0)):n.top+this.offsetBottom+i<t+o&&"bottom"==this.offsetType&&e&&(this.affix=!1,this.styles=null,this.$emit("on-change",!1))}O.initTable=function(e){e.methods.getSelection=F,e.methods.handleResize=T,e.methods.highlightCurrentRow=N,e.methods.makeColumnsId=I,e.components.tableHead.methods.scrollBarCellClass=R},O.initBreadcrumbItem=function(e){e.mixins[0].methods.handleCheckClick=P},O.initButton=function(e){e.mixins[0].methods.handleCheckClick=P},O.initCard=function(e){e.mixins[0].methods.handleCheckClick=P},O.initCell=function(e){e.mixins[0].methods.handleCheckClick=P},O.initMenuItem=function(e){e.mixins[1].methods.handleCheckClick=P},O.initUpload=function(e){e.methods.handleClick=V},O.initDatePicker=function(e){e.mixins[0].methods.reset=M,e.mixins[0].methods.handleBlur=L,e.mixins[0].methods.handleKeydown=U},O.initAffix=function(e){e.methods.handleScroll=H},O.initAnchor=function(e){e.methods.handleScroll=Q},O.initEview=function(e){O.initTable(e.Table),O.initBreadcrumbItem(e.BreadcrumbItem),O.initButton(e.Button),O.initCard(e.Card),O.initCell(e.Cell),O.initMenuItem(e.MenuItem),O.initUpload(e.Upload),O.initDatePicker(e.DatePicker),O.initAffix(e.Affix),O.initAnchor(e.Anchor)};var z="1.3.14";let K={},G={};function q(e,t,n){let o=K.getToken(),i=K.getEnt_id(),r=t;r||(r={});let a=e.OmdUrl.portalkey;if(K.getUrlParam("portalkey")||(a=K.getUrlParam("portalkey")),"cloud"===K.getUrlParam("srvkey")&&(a="cloud"),"1"===n){let t="";if(o&&""!==o.trim()){if(t=t+"&ent_id="+i+"&token="+o+"&timestamp="+(new Date).getTime()+"&format="+e.OmdUrl.format+"&app_key="+e.OmdUrl.appKey+"&portalkey="+a+"&ver="+e.OmdUrl.ver,0!==e.OmdUrl.signMethod.trim().length&&0!=e.OmdUrl.secret.trim().length){t=t+"&sign_method="+e.OmdUrl.signMethod+"&sign=";let n=e.OmdUrl.appKey+"="+e.OmdUrl.secret+"&body="+JSON.stringify(r).toString()+"&token="+o;void 0!==e.OmdUrl.getMd5&&(n=e.OmdUrl.getMd5(r,o)),t+=w.default(n)}}else{let n={ent_id:i,user_id:e.OmdUrl.uid,user_code:e.OmdUrl.uid,user_name:e.OmdUrl.uname};t=t+"&session="+JSON.stringify(n)}return t}{let t={};if(o&&""!==o.trim()){t.ent_id=i,t.token=o,t.timestamp=(new Date).getTime(),t.format=e.OmdUrl.format,t.app_key=e.OmdUrl.appKey,t.ver=e.OmdUrl.ver,t.portalkey=a,t.sign_method=e.OmdUrl.signMethod;let n=e.OmdUrl.appKey+"="+e.OmdUrl.secret+"&body="+JSON.stringify(r).toString()+"&token="+o;void 0!==e.OmdUrl.getMd5&&(n=e.OmdUrl.getMd5(r,o)),t.sign=w.default(n)}else{let n={ent_id:i,user_id:e.OmdUrl.uid,user_code:e.OmdUrl.uid,user_name:e.OmdUrl.uname};t.session=JSON.stringify(n)}return t}}function W(e,t,n,o,i){let r=null;try{if(r="string"==typeof e?JSON.parse(e):e,0===parseInt(r.returncode)){try{t&&t(r.data)}catch(IM){i.$Spin&&i.$Spin.hide(),i.$nextTick((()=>{setTimeout((()=>{i.alert(IM,null,2)}),1e3)}))}return}if(parseInt(r.returncode)>0){if(n){try{n(r.data)}catch(IM){i.$Spin&&i.$Spin.hide(),i.$nextTick((()=>{setTimeout((()=>{i.alert(IM,null,2)}),1e3)}))}return}throw r.data}if(o){try{o(r.data)}catch(IM){i.$Spin&&i.$Spin.hide(),i.$nextTick((()=>{setTimeout((()=>{i.alert(IM,null,2)}),1e3)}))}return}throw r.data}catch(IM){i.$Spin&&i.$Spin.hide(),i.$nextTick((()=>{setTimeout((()=>{"string"==typeof e?i.alert(IM+"<br/>"+e,null,2):i.alert(IM,null,2)}),1e3)}))}}function X(e,t,n,o){let i="";i=t?"method="+t:"method=",i+=q(o,n,"1"),i=e&&-1!=e.indexOf("?")?e+"&"+i:e+"?"+i;let r=K.getUrlParam("menuCode");return r&&(i=i+"&menuCode="+r),encodeURI(i)}function Y(e){if(!e)return"";try{let t=JSON.parse(e);return t=t.state,t?t.split(":")[1]:e}catch(IM){return e}}G.eid="0",G.uid="0",G.uname="future",G.format="json",G.appKey="mall",G.portalkey="congou",G.checktoken="Y",G.ver="1.0",G.signMethod="MD5",G.secret="",G.omp="/mall-work-webin/rest",G.mall="/mall-work-webin/rest",G.mss="/mall-work-webin/rest",G.portal="/mall-portal-rest/portalesb/ocmrest",G.mdm="/ocm-mdm-webin/rest",G.omc="/omc-tags-webin/rest",G.member="/omc-membership-webin/rest",G.accnt="/omc-accnt-webin/rest",G.work="/omc-work-webin/rest",G.investment="/mall-investment-webin/rest",G.uploadfile="/mss-sysconf-boot/upload",G.delfile="/mss-sysconf-boot/delete?filekey=",G.downfile="/mss-sysconf-boot/download?filekey=",G.getfile="/mss-sysconf-boot/filedata?",G.amp="/ampOpenapiService/",G.uidespath=G.amp,G.helpUrl="docs.sjhgo.com",G.mallmdm="/mall-mdm-webin/rest",G.mallmaster="/mall-master-webin/rest",G.portal=G.mallmdm,G.uiConfigExpire=24,G.fairyConfigExpire=24,G.dictExpire=24,G.operbilllog="/mss-sysconf-query/rest",G.getCurHelpUrl=function(e){var t="";if("Y"===e.OmdUrl.startHelp&&e.OmdUrl.helpType){var n=e.$Method.getUrlParam("helpindex"),o=e.$Method.getLocalStorage("modulecodeHelp_"+e.OmdUrl.helpType+"_"+n);if(o)return o;if(n){var i=e.OmdUrl.helpUrl;if(i||e.getHelpdocumenturl&&(i=e.getHelpdocumenturl()),i){let o=e.getHelpId(e.OmdUrl.helpType,n);t=o?"http://"+i+"/web/#/p/"+o:"http://"+i+"/web/#/"+e.OmdUrl.helpType+"?page_id="+n}e.$Method.setLocalStorage("modulecodeHelp_"+e.OmdUrl.helpType+"_"+n,t,e.OmdUrl.uiConfigExpire)}}return t},K.OmdUrl=G,K.alert=function(e,n,o){o||(o="1"),e&&"string"==typeof e&&(e='<xmp style="margin: 0;white-space:break-spaces;">'+(e=(e=e.replace(new RegExp("</xmp>","gi"),"</txmp>")).replace(new RegExp("<xmp","gi"),"<txmp"))+"</xmp>"),"2"===(o+="")?t.Modal.error({title:"系统警告",content:'<div style="word-wrap:break-word">'+e+"</div>"}):"3"===o?(n||(n="成功"),t.Modal.success({title:n,content:'<div style="word-wrap:break-word">'+e+"</div>"})):(n||(n="提醒"),t.Modal.warning({title:n,content:'<div style="word-wrap:break-word">'+e+"</div>"}))},K.asyncPost=function(e,t,n,o,i,r,a){let s=this;e.startsWith("/")||(e="/"+e),function(e,t,n,o,i){let r={};t&&(r.method=t);let a=q(o,n,"2");for(let l in a)r[l]=a[l];n||(n={});let s=K.getUrlParam("menuCode");return s&&(r.menuCode=s),new Promise("get"===i?(t,o)=>{v.default.get(e,n,{params:r}).then((e=>{t(e.data)}),(e=>{o(e)})).catch((e=>{o(e)}))}:(t,o)=>{v.default.post(e,n,{params:r}).then((e=>{t(e.data)}),(e=>{o(e)})).catch((e=>{o(e)}))})}(e,t,n,s,a).then((function(e){return W(e,o,i,null,s)}),(function(e){i?i(e):(s.$Spin&&s.$Spin.hide(),s.$nextTick((()=>{setTimeout((()=>{s.alert(e.message+"<br/>"+e.response.data,null,"2")}),1e3)})))})).catch((e=>{if(!r){s.$Spin&&s.$Spin.hide();let t=JSON.stringify(e);return s.$nextTick((()=>{setTimeout((()=>{s.alert(t,null,"2")}),1e3)})),!1}r(e)}))},K.getResturl=X,K.synchroPost=function(e,t,n,o,i,r,a){let s=this,l="POST";a&&(l=a);let c=X(e,t,n,s);c.startsWith("/")||(c="/"+c),C.default.ajaxSetup({cache:!1});let u={type:l,contentType:"text/plain; charset=UTF-8",async:!1,dataType:"JSON",processData:!1,success:function(e){return W(e,o,i,r,s)},error:function(e,t,n){s.$Spin&&s.$Spin.hide();try{let e=JSON.stringify(n);s.alert(e,null,"2")}catch(IM){setTimeout((()=>{s.alert(n,null,"2")}),1e3)}return!1}};n||(n={}),"POST"===l?u.data=JSON.stringify(n):delete u.data,C.default.ajax(c,u)},K.getOmdUrlConfig=function(e){C.default.ajax({url:"/amp-glod/config.json",type:"GET",dataType:"json",success:function(t){let n=t,o={};if(n)for(let e in n)n[e]instanceof Array?n[e].forEach((e=>{o[e.name]=e.value})):o[e]=n[e];e.config.globalProperties.OmdUrl=Object.assign({},e.config.globalProperties.OmdUrl,o)}})},K.getPortalConfig=function(e){C.default.ajax({url:"/ampOpenapiService?method=usercenter.portal.getConfig",type:"POST",data:{},dataType:"json",success:function(t){if(0==t.returncode&&t.data){if(t.data.OmdUrl){let n=JSON.parse(t.data.OmdUrl);e.config.globalProperties.OmdUrl=Object.assign({},e.config.globalProperties.OmdUrl,n)}e.config.globalProperties.portalConfig=t.data}}})},K.getUserCode=function(e){let t=null;t=e||this;let n=K.getToken(e),o="",i="";return o=t.portalkey,i=t.OmdUrl.uid,n&&("congou"==o?i=Y(b.default.get("user_code")):b.default.get("user_code")&&(i=b.default.get("user_code"))),i},K.getUserName=function(e){let t=null;t=e||this;let n=K.getToken(e),o="",i="";return o=t.portalkey,i="["+t.OmdUrl.uid+"]"+t.OmdUrl.uname,n&&("congou"==o?i="["+Y(b.default.get("user_code"))+"]"+Y(b.default.get("user_name")):b.default.get("user_code")&&(i="["+b.default.get("user_code")+"]"+b.default.get("user_name"))),i},K.getPortalMkt=function(){let e={};return e.shopId=b.default.get("shopId"),e.shopCode=b.default.get("shopCode"),e.shopName=b.default.get("shopName"),e},K.getSession=function(){let e={},t=K.getUserName(),n=K.getUserCode(),o=b.default.get("user_id"),i=K.getEnt_id(),r=K.getToken();return e.user_name=t||"",e.user_code=n||"",e.user_id=o||"",e.ent_id=i||"",e.token=r||"",JSON.stringify(e)},K.getUrlParam=function(e){let t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.href.split("?"),o="";return n.length>1&&(o=n[1].match(t)),o||n.length>2&&(o=n[2].match(t)),o?decodeURI(o[2]):""},K.initGlobal=function(e,t,n){let o={};e.config.globalProperties.OmdUrl||(e.config.globalProperties.OmdUrl={}),t&&(o=Object.assign({},e.config.globalProperties.OmdUrl,t));let i=K.getUrlParam("portalkey");i&&(o.portalkey=i),o.eid=K.getEnt_id(e.config.globalProperties),o.modulecode=K.getUrlParam("modulecode"),o.modulecode||(o.modulecode=K.getUrlParam("billmoduleid")),o.helpindex=K.getUrlParam("helpindex"),o.billmoduleid=e.config.globalProperties.modulecode,o.openbillno=K.getUrlParam("billno"),o.opentaskid=K.getUrlParam("taskid"),o.nocheck=K.getUrlParam("nocheck")?K.getUrlParam("nocheck"):"N",e.config.globalProperties.OmdUrl=Object.assign({},e.config.globalProperties.OmdUrl,o),K.getPortalConfig(e)},K.getUserModuleMethod=function(e){let t=null,n=K.getToken();if(!n)return t;let o="";if(e)o=e;else if(o=K.getUrlParam("modulecode"),!o)return t;let i="/mall-portal-rest/portalesb/ocmrest";this.OmdUrl&&this.OmdUrl.portal&&(i=this.OmdUrl.portal),"cloud"===K.getUrlParam("srvkey")&&(i=this.OmdUrl.mdm);let r={};return r.token=n,r.modulecode=o,this.synchroPost(i,"runtime.modulesrivce.getUserModuleMethod",r,(function(e){t=e}),null),t},K.checkModuleByToken=function(){let e=!1,t=K.getToken();if(!t)return e;let n=K.getUrlParam("modulecode");if(!n)return e;if(!location.pathname)return e;if("congou"!=this.portalkey)return e;let o="/mall-portal-rest/portalesb/ocmrest";this.OmdUrl.portal&&(o=this.OmdUrl.portal);let i={token:t,modulecode:n,execmodule:location.pathname};"cloud"===K.getUrlParam("srvkey")&&(o=this.OmdUrl.mdm);return this.synchroPost(o,"runtime.modulesrivce.checkmodulebytoken",i,(function(t){"-1"===t.flag&&(e=!0)}),null),e},K.getDict=function(e,t){let n="code,name";t&&(n=t);let o={},i={fields:n,dict_group_code:e};return this.synchroPost(this.OmdUrl.omp,"omp.work.dict.getbydictgroupcode",i,(function(e){o=e}),null),o},K.setQueryConfig=function(e){Object.assign(this.query.Config,e)},K.getQueryConfig=function(e){let t=null;return t=this.query.Config[e]?JSON.parse(JSON.stringify(this.query.Config[e])):{},void 0===t.width&&(t.isTree?t.width=.3:t.width=.4),void 0===t.height&&(t.height=.6),void 0===t.responseId&&(t.responseId=t.responseCode),void 0===t.manualLoad&&(t.manualLoad=!0),void 0===t.multiSelect&&(t.multiSelect=!1),void 0===t.showCondition&&(t.showCondition=!0),t.isConfig?t:this.query.customQueryConfig?this.query.customQueryConfig(t):t},K.getBillmoduleid=function(e){let t="",n={billtype:e,order_field:"modeid"};return this.synchroPost(this.OmdUrl.mall,"mss.base.billmain.search",n,(function(e){e&&e.billmain&&e.billmain.length>0&&(t=e.billmain[0].modeid)}),null),t},K.getBilltype=function(e){let t="",n={modeid:e};return this.synchroPost(this.OmdUrl.mall,"mss.base.billmain.search",n,(function(e){e&&e.billmain&&e.billmain.length>0&&(t=e.billmain[0].billtype)}),null),t},K.getHelpdocumenturl=function(){let e="";return this.synchroPost(this.OmdUrl.mall,"mss.work.report.query",{queryid:"select_fgetmanapara",mpmkt:"00",mpcode:"HELPDOCUMENTURL"},(function(t){t&&t.report&&t.report.length>0&&(e=t.report[0].mpvalue)}),null),e},K.getHelpId=function(e,t){let n="",o={};return o.helpType=e,o.helpIndex=t,this.synchroPost(this.OmdUrl.amp,"usercenter.helpconfig.getHelpId",o,(function(e){e&&e.helpId&&(n=e.helpId)}),(function(e){n=""}),(function(e){n=""})),n},K.getConditionValue=function(e,t,n,o){let i={};if("=="===n)if("DateBox"===o.type){i[e]={};let n={};n[">="]=t,"month"===o.vtype?n["<"]=this.$Method.getNextMonthFirstDay(t):n["<"]=this.$Method.getTomorrow(t),i[e]=n}else if("inputer"===e||"auditor"===e||"canceler"===e){let n={};n[e]={"==":t};let o={};o[e+"_name"]={LIKE:"[%]"+t},i.$or=[],i.$or.push(n),i.$or.push(o)}else i[e]={},void 0!==t.value?i[e][n]=t.value:i[e][n]=t;return"LIKE"===n&&(i[e]={},i[e][n]="%"+t+"%"),"LIKE"!==n&&"=="!==n&&(i[e]={},i[e][n]=t),i},K.getHelpUrl=function(){let e="";if(this.helpindex){let t="";t=this.OmdUrl.helpUrl?this.OmdUrl.helpUrl:this.getHelpdocumenturl(),t&&(e="http://"+t+"/web/#/"+this.OmdUrl.helpType+"?page_id="+this.helpindex)}return e},K.getEnt_id=function(e){let t="",n="";if(e?(t=e.OmdUrl.eid,n=e.OmdUrl.portalkey):(t=this.OmdUrl.eid,n=this.OmdUrl.portalkey),void 0!==b.default.get("ent_id")&&""!==b.default.get("ent_id"))t=b.default.get("ent_id");else{let e=K.getUrlParam("ent_id");void 0!==e&&""!==e&&(t=e)}if("cloud"===n){let e=K.getUrlParam("lock_entid");void 0!==e&&""!==e&&(t=e)}return t},K.getToken=function(e){let t="";if(e?e.token&&(t=e.token):this.token&&(t=this.token),b.default.get("token"))t=b.default.get("token");else{let e=K.getUrlParam("token");e&&(t=e)}return t},K.getModulecode=function(){let e="";return e=K.getUrlParam("modulecode"),e||(e=K.getUrlParam("billmoduleid")),e},K.downloadFile=function(e,t){if(!e)return;let n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(){if(200===this.status){let e=this.response,n=new FileReader,o=decodeURI(this.getResponseHeader("content-disposition")).replace("attachment;filename*=UTF-8''","");o=o.replace("attachment;filename=",""),n.readAsDataURL(e),o=decodeURIComponent(o),o=o.replace(/\ +/g,""),o=o.replace(/[\r\n]/g,""),n.onload=function(){let n=document.createElement("a");n.download=o,n.href=URL.createObjectURL(e),C.default("body").append(n),t.$Spin.hide(),n.click(),C.default(n).remove()}}else t.$Spin.hide(),t.alert("导出失败")},n.send(new Blob)},K.exportExcelback=function(e){e.child?setTimeout(e.exportExcelback(e),100):e.$Spin.hide()},K.doExportExcel=function(e,t,n,o,i){let r=e;n||(n={}),r=X(r,t,n,i);let a=JSON.stringify(n);a=a.replaceAll("#","%23"),a=a.replaceAll("&","%26"),a=a.replaceAll("+","%2B"),r=encodeURI(r+"&param="+a);let s=b.default.get("user_id"),l=b.default.get("user_code");if(s&&(r+=encodeURI("&user_id="+s)),l&&(r+=encodeURI("&user_code="+l)),i.$Spin.show({render:e=>e("div","导出中...,请勿关闭!")}),o||(o="2"),"2"===o)K.downloadFile(r,i);else{const e=window.open(r,"_blank");var c=setInterval((function(){e.closed&&(i.$Spin.hide(),clearInterval(c))}),100)}},K.doExportReport=function(e,t,n,o){let i=e;n||(n={}),i=X(i,t,n,o);let r=JSON.stringify(n);r=r.replaceAll("#","%23"),r=r.replaceAll("&","%26"),r=r.replaceAll("+","%2B"),i=encodeURI(i+"&param="+r),o.$Spin.show({render:e=>e("div","导出中...,请勿关闭!")}),K.downloadFile(i,o)},K.doBillExport=function(e,t,n,o){const i=Object.assign({},n),r=encodeURI(X(e,t,i,o)+"&param="+JSON.stringify(i));o.$Spin.show({render:e=>e("div","导出中...,请勿关闭!")}),K.downloadExcel(r,o,n)},K.downloadExcel=function(e,t,n={}){const o=new XMLHttpRequest;o.open("POST",e,!0),o.responseType="blob",o.setRequestHeader("Content-Type","application/json"),o.onload=function(){if(t.$Spin.hide(),200!==this.status)return void t.alert(`导出失败:${this.status} ${this.statusText}`);const e=this.response,i=new FileReader;i.onload=()=>{let r=i.result;try{const e=JSON.parse(r);if(e.returncode&&"0"!==e.returncode)return void t.alert(e.data||"导出失败")}catch(IM){}let a=function(e,t){let n=t.getResponseHeader("content-disposition");if(n&&n.includes("filename=")){let e=n.match(/filename\*=UTF-8''(.+)/i);if(e&&e[1])return decodeURIComponent(e[1]);let t=n.split("filename=")[1];if(t)return t.replace(/["']/g,"")}const o=new Date,i=[o.getFullYear(),String(o.getMonth()+1).padStart(2,"0"),String(o.getDate()).padStart(2,"0"),String(o.getHours()).padStart(2,"0"),String(o.getMinutes()).padStart(2,"0"),String(o.getSeconds()).padStart(2,"0")].join(""),r=e.billmoduleid||"export";return`${i}${r}.xls`}(n,o);const s=document.createElement("a");s.href=URL.createObjectURL(e),s.download=a,document.body.appendChild(s),s.click(),setTimeout((()=>document.body.removeChild(s)),120)},i.readAsText(e)},o.onerror=()=>{t.$Spin.hide(),t.alert("网络错误,导出失败")},o.send(JSON.stringify(n))},K.getFilesInfo=function(e,t,n,o,i){let r=K.getUserCode(),a=K.getUserName(),s=K.getToken(),l=G.getfile+"billno="+e+"&billmoduleid="+t+"&scenetype="+o,c="&usercode="+r+"&username="+a+"&token="+s;c+="Y"!==n?"&notdelfile=N":"&notdelfile=Y",c=encodeURI(c),K.synchroPost(l,"",{},(e=>{let t=[];e&&e.length>0&&e.forEach((e=>{let n=Object.assign({},{},e);n.filename=e.filename,n.filekey=e.filekey,n.downUrl=G.downfile+n.filekey+c,n.delUrl=G.delfile+n.filekey+c,n.title=n.filename,n.url=n.downUrl,n.modflag=e.modflag,t.push(n)})),i(t)}),null,null,"get")},K.getFilesInfoByIdkey=function(e,t){let n=K.getUserCode(),o=K.getUserName(),i=K.getToken(),r=G.getfile+"idkey="+e,a="&usercode="+n+"&username="+o+"&token="+i;a=encodeURI(a),K.synchroPost(r,"",{},(e=>{let n=[];e&&e.length>0&&e.forEach((e=>{let t=Object.assign({},{},e);t.filename=e.filename,t.filekey=e.filekey,t.downUrl=G.downfile+t.filekey+a,t.delUrl=G.delfile+t.filekey+a,t.title=t.filename,t.url=t.downUrl,t.modflag=e.modflag,n.push(t)})),t(n)}),null,null,"get")},K.getFileInfo=function(e,t){let n=K.getUserCode(),o=K.getUserName(),i=K.getToken(),r=G.getfile+"filekey="+e,a="&usercode="+n+"&username="+o+"&token="+i;a=encodeURI(a),K.synchroPost(r,"",{},(e=>{let n=[];e&&e.length>0&&e.forEach((e=>{let t=Object.assign({},{},e);t.filename=e.filename,t.filekey=e.filekey,t.downUrl=G.downfile+t.filekey+a,t.delUrl=G.delfile+t.filekey+a,t.title=t.filename,t.url=t.downUrl,t.modflag=e.modflag,n.push(t)})),t(n)}),null,null,"get")},K.setUrlSuffix=function(e,t){let n=K.getUrlParam("srvkey"),o=K.getUrlParam("token"),i=K.getUrlParam("usercode"),r=K.getUrlParam("portalkey");return e?-1!=e.indexOf("?")?e+"&token="+o+"&srvkey="+n+"&app_key="+t.OmdUrl.appKey+"&secret="+t.OmdUrl.secret+"&portalkey="+r+"&usercode="+i:e+"?token="+o+"&srvkey="+n+"&app_key="+t.OmdUrl.appKey+"&secret="+t.OmdUrl.secret+"&portalkey="+r+"&usercode="+i:e};var J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Z="undefined"==typeof window,ee={version:"1.1.1",storage:Z?null:window.localStorage,session:{storage:Z?null:window.sessionStorage}},te={set:function(e,t){if(!this.disabled)return void 0===t?this.remove(e):(this.storage.setItem(e,function(e){return JSON.stringify(e)}(t)),t)},get:function(e,t){if(this.disabled)return t;var n=function(e){if("string"!=typeof e)return;try{return JSON.parse(e)}catch(IM){return e||void 0}}(this.storage.getItem(e));return void 0===n?t:n},has:function(e){return void 0!==this.get(e)},remove:function(e){this.disabled||this.storage.removeItem(e)},clear:function(){this.disabled||this.storage.clear()},getAll:function(){if(this.disabled)return null;var e={};return this.forEach((function(t,n){e[t]=n})),e},forEach:function(e){if(!this.disabled)for(var t=0;t<this.storage.length;t++){var n=this.storage.key(t);e(n,this.get(n))}}};J(ee,te),J(ee.session,te);try{var ne="__storejs__";ee.set(ne,ne),ee.get(ne)!==ne&&(ee.disabled=!0),ee.remove(ne)}catch(IM){ee.disabled=!0}function oe(e,t){return t&&(e+=1462),(Date.parse(e)-new Date(Date.UTC(1899,11,30)))/864e5}function ie(e,t){for(var n={},o={s:{c:1e7,r:1e7},e:{c:0,r:0}},i=0;i!=e.length;++i)for(var r=0;r!=e[i].length;++r){o.s.r>i&&(o.s.r=i),o.s.c>r&&(o.s.c=r),o.e.r<i&&(o.e.r=i),o.e.c<r&&(o.e.c=r);var a={v:e[i][r]};if(null!=a.v){var s=x.utils.encode_cell({c:r,r:i});"number"==typeof a.v?a.t="n":"boolean"==typeof a.v?a.t="b":a.v instanceof Date?(a.t="n",a.z=x.SSF._table[14],a.v=oe(a.v)):a.t="s",n[s]=a}}return o.s.c<1e7&&(n["!ref"]=x.utils.encode_range(o)),n}function re(){if(!(this instanceof re))return new re;this.SheetNames=[],this.Sheets={}}function ae(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),o=0;o!=e.length;++o)n[o]=255&e.charCodeAt(o);return t}function se(e,t){return t.map((t=>e.map((e=>t[e]))))}function le(e,t,n,o,i){if(!(e instanceof Array)){if(!1!==e.visible){let r={};r.label=e.label,r.num=1;let a=0,s=t[n].length;if(e.children&&e.children.length>0)e.children.forEach((e=>{let i=le(e,t,n+1,o,s);a+=i})),r.num=a;else if(e.name){r.name=e.name;let t=100;e.width?e.width>100&&(t=e.width):e.maxWidth?e.maxWidth>100&&(t=e.maxWidth):e.minWidth&&e.minWidth>100&&(t=e.minWidth),r.width=t,r.excelPro=function(e){let t={alignment:{vertical:"center",wrapText:!0}};if("NumberBox"===e.type){if(t.alignment.horizontal="right",e.format&&e.format.length>1){let n=e.format[0],o=e.format[1],i="0";"n"===n||"p"===n?i="0":"c"===n&&(i="¥#,##0");let r="";if(Number(o)>0)for(let e=0;e<Number(o);e++)r+="0";r&&(i=i+"."+r),"p"===n&&(i+="%"),t.numFmt=i}t.t="n"}else if("DataBox"===e.type){t.alignment.horizontal="center";let n="yyyy年m月d日";"datetime"===e.vtype&&(n="yyyy年m月d日 h:mm:ss"),t.numFmt=n,t.t="d"}else t.alignment.horizontal="left",t.numFmt="@",t.t="s";return t}(e),o.push(r)}return(i||0===i)&&0!==n&&(r.fIndex=i),t[n].push(r),r.num}return 0}e.forEach((e=>{le(e,t,n,o,i)}))}!function(e){if(e.URL=e.URL||e.webkitURL,e.Blob&&e.URL)try{return void new Blob}catch(IM){}var t=e.BlobBuilder||e.WebKitBlobBuilder||e.MozBlobBuilder||function(e){var t=function(e){return Object.prototype.toString.call(e).match(/^\[object\s(.*)\]$/)[1]},n=function(){this.data=[]},o=function(e,t,n){this.data=e,this.size=e.length,this.type=t,this.encoding=n},i=n.prototype,r=o.prototype,a=e.FileReaderSync,s=function(e){this.code=this[this.name=e]},l="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),c=l.length,u=e.URL||e.webkitURL||e,d=u.createObjectURL,h=u.revokeObjectURL,A=u,f=e.btoa,p=e.atob,g=e.ArrayBuffer,m=e.Uint8Array;for(o.fake=r.fake=!0;c--;)s.prototype[l[c]]=c+1;return u.createObjectURL||(A=e.URL={}),A.createObjectURL=function(e){var t,n=e.type;return null===n&&(n="application/octet-stream"),e instanceof o?(t="data:"+n,"base64"===e.encoding?t+";base64,"+e.data:"URI"===e.encoding?t+","+decodeURIComponent(e.data):f?t+";base64,"+f(e.data):t+","+encodeURIComponent(e.data)):d?d.call(u,e):void 0},A.revokeObjectURL=function(e){"data:"!==e.substring(0,5)&&h&&h.call(u,e)},i.append=function(e){var n=this.data;if(m&&(e instanceof g||e instanceof m)){for(var i="",r=new m(e),l=0,c=r.length;l<c;l++)i+=String.fromCharCode(r[l]);n.push(i)}else if("Blob"===t(e)||"File"===t(e)){if(!a)throw new s("NOT_READABLE_ERR");var u=new a;n.push(u.readAsBinaryString(e))}else e instanceof o?"base64"===e.encoding&&p?n.push(p(e.data)):"URI"===e.encoding?n.push(decodeURIComponent(e.data)):"raw"===e.encoding&&n.push(e.data):("string"!=typeof e&&(e+=""),n.push(unescape(encodeURIComponent(e))))},i.getBlob=function(e){return arguments.length||(e=null),new o(this.data.join(""),e,"raw")},i.toString=function(){return"[object BlobBuilder]"},r.slice=function(e,t,n){var i=arguments.length;return i<3&&(n=null),new o(this.data.slice(e,i>1?t:this.data.length),n,this.encoding)},r.toString=function(){return"[object Blob]"},r.close=function(){this.size=this.data.length=0},n}(e);e.Blob=function(e,n){var o=n&&n.type||"",i=new t;if(e)for(var r=0,a=e.length;r<a;r++)i.append(e[r]);return i.getBlob(o)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||globalThis.content||globalThis);const ce="postMessage"in window;class ue{constructor(e,t,n){let o="";if(arguments.length<2?o="target error - target and name are both required":"object"!=typeof e?o="target error - target itself must be window object":"string"!=typeof t&&(o="target error - target name must be string type"),o)throw new Error(o);this.target=e,this.name=t,this.prefix=n}send(e){if(ce)this.target.postMessage(`${this.prefix}|${this.name}__Messenger__${e}`,"*");else{const t=window.navigator[this.prefix+this.name];if("function"!=typeof t)throw new Error("target callback function is not defined");t(this.prefix+e,window)}}}class de{constructor(e,t){this.targets={},this.name=e,this.listenFunc=[],this.prefix=t,this.initListen()}addTarget(e,t){const n=new ue(e,t,this.prefix);this.targets[t]=n}listen(e){let t=0;const n=this.listenFunc.length;let o=!1;for(;t<n;t++){if(this.listenFunc[t].toString()===e.toString()){this.listenFunc[t]=e,o=!0;break}}o||this.listenFunc.push(e)}clear(){this.listenFunc=[]}send(e){const{targets:t}=this;let n;for(n in t)t.hasOwnProperty(n)&&t[n].send(e)}initListen(){const e=this,t=function(t){if("object"==typeof t&&t.data&&(t=t.data),"string"==typeof t){const n=t.split("__Messenger__");t=n[1];const o=n[0].split("|"),i=o[0],r=o[1];for(let a=0;a<e.listenFunc.length;a++)i+r===e.prefix+e.name&&e.listenFunc[a](t)}};ce?"addEventListener"in document?window.addEventListener("message",t,!1):"attachEvent"in document&&window.attachEvent("onmessage",t):window.navigator[this.prefix+this.name]=t}}window.EfuMessenger=new class{constructor(e,t,n){this.messengerOBJ=null,this.messageName=t||"AMPclient",this.targetName=e||"AMPframe",this.projectName=n||"AMP",this.init()}init(){this.messengerOBJ=new de(this.messageName,this.projectName),this.messengerOBJ.addTarget(window.parent,this.targetName)}openPortalTabPage(e){this.messengerOBJ.targets[this.targetName].send(JSON.stringify({name:this.messageName,action:"openPortalTabPage",params:{...e}}))}openPortalTabByModuleCode(e){this.messengerOBJ.targets[this.targetName].send(JSON.stringify({name:this.messageName,action:"openPortalTabByModuleCode",params:{...e}}))}};let he={};function Ae(e){let t=[];for(let n=0;n<e;n++){let e=[Math.random(),Math.random(),Math.random()];n>0&&Math.abs(e[0]-t[n-1][0])<.25?n--:(e[1]=.7+.2*e[1],e[2]=.4+.4*e[2],e=e.map((function(e){return parseFloat(e.toFixed(2))})),t.push(e))}return function(e){for(let t=0;t<e.length;t++){let n,o,i,r=e[t][0],a=e[t][1],s=e[t][2];if(0==+a)n=o=i=s;else{let e=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},t=s<.5?s*(1+a):s+a-s*a,l=2*s-t;n=e(l,t,r+1/3),o=e(l,t,r),i=e(l,t,r-1/3)}e[t][0]=Math.round(255*n),e[t][1]=Math.round(255*o),e[t][2]=Math.round(255*i)}}(t),function(e){let t=[],n="";for(let o=0;o<e.length;o++){let i=e[o];n="#";for(let e=0;e<i.length;e++){let t=Number(i[e]).toString(16);"0"===t&&(t+=t),n+=t}t.push(n)}return t}(t)}he.padLeftZero=function(e,t){return(e+t).substr(t.length)},he.formatDate=function(e,t){/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));let n={"M+":e.getMonth()+1,"d+":e.getDate(),"H+":e.getHours(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(let o in n)if(new RegExp(`(${o})`).test(t)){let e=n[o]+"";t=t.replace(RegExp.$1,1===RegExp.$1.length?e:he.padLeftZero("00",e))}return t},he.getToday=function(){let e=new Date,t=Number(e.getMonth())+1;return e.getFullYear()+"-"+he.padLeftZero("00",t+"")+"-"+he.padLeftZero("00",e.getDate()+"")},he.getTomorrow=function(e){let t;t=e?new Date(e):new Date,t.setDate(t.getDate()+1);let n=Number(t.getMonth())+1;return t.getFullYear()+"-"+he.padLeftZero("00",n+"")+"-"+he.padLeftZero("00",t.getDate()+"")},he.getWeekFirstDay=function(){let e=new Date,t=new Date(e-864e5*(e.getDay()-1)),n=Number(t.getMonth())+1;return t.getFullYear()+"-"+he.padLeftZero("00",n+"")+"-"+he.padLeftZero("00",t.getDate()+"")},he.getWeekLastDay=function(){let e=new Date,t=new Date(e-864e5*(e.getDay()-1)),n=new Date(1e3*(t/1e3+518400)),o=Number(n.getMonth())+1;return n.getFullYear()+"-"+he.padLeftZero("00",o+"")+"-"+he.padLeftZero("00",n.getDate()+"")},he.getMonthFirstDay=function(){let e=new Date,t=new Date(e.getFullYear(),e.getMonth(),1),n=Number(t.getMonth())+1;return t.getFullYear()+"-"+he.padLeftZero("00",n+"")+"-"+he.padLeftZero("00",t.getDate()+"")},he.getMonthLastDay=function(e){let t;t=e?new Date(e):new Date;let n=new Date(t.getFullYear(),t.getMonth()+1,1),o=new Date(n-864e5),i=Number(o.getMonth())+1;return o.getFullYear()+"-"+he.padLeftZero("00",i+"")+"-"+he.padLeftZero("00",o.getDate()+"")},he.getNextMonthFirstDay=function(e){let t;t=e?new Date(e):new Date;let n=new Date(t.getFullYear(),t.getMonth()+1,1),o=Number(n.getMonth())+1;return n.getFullYear()+"-"+he.padLeftZero("00",o+"")+"-"+he.padLeftZero("00",n.getDate()+"")},he.getPreMonthFirstDay=function(e){let t;t=e?new Date(e):new Date;let n=new Date(t.getFullYear(),t.getMonth()-1,1),o=Number(n.getMonth())+1;return n.getFullYear()+"-"+he.padLeftZero("00",o+"")+"-"+he.padLeftZero("00",n.getDate()+"")},he.getYearFirstDay=function(){return(new Date).getFullYear()+"-01-01"},he.getYearLastDay=function(){return(new Date).getFullYear()+"-12-31"},he.getWeek=function(e){return new Date(e).getDay()},he.copy=D,he.getUrlParam=function(e){let t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.href.split("?"),o="";return n.length>1&&(o=n[1].match(t)),o||n.length>2&&(o=n[2].match(t)),o?decodeURI(o[2]):""},he.formatNumber=function(e,t,n){let o=0;e?isNaN(e)||(e+=""):e="0",t?2===t.length&&Number(t[1])&&(o=Number(t[1])):t="n";let i=Number(e).toFixed(o);t.startsWith("p")&&(i=(100*Number(e)).toFixed(o));let r=i.split("."),a="",s="";if(r.length>0&&(a=r[0]),t.startsWith("c")&&(a=a.replace(/(\d)(?=(?:\d{3})+$)/g,"$1,")),r.length>1&&(s=r[1]),s){let e=s;if(n)for(let t=s.length-1;t>=0&&0===Number(s[t]);t--)e=e.slice(0,-1);s=e}let l="";return l=s?a+"."+s:a,t.startsWith("p")&&(l+="%"),l},he.precisionNumber=function(e,t){let n=0;return e?isNaN(e)||(e+=""):e="0",t?2===t.length&&(Number(t[1])&&(n=Number(t[1])),t.startsWith("p")&&(n+=2)):t="n",Number(e).toFixed(n)},he.getColorList=function(e,t){let n=Number(t)-e.length;if(0===n)return e;let o=Ae(n),i=!1;for(;;){i=!1;for(let t=0;t<o.length;t++)for(let n=0;n<e.length;n++)if(o[t]===e[n]){i=!0;break}if(!i){o=e.concat(o);break}o=Ae(n)}return o},he.getColor=function(){return Ae(1)[0]},he.getGlobalColor=function(e,t,n,o){let i=[];if(e>0){let r=o.$Store.state.app.mychartColor[n];e>r.length?t?(i=o.$Method.getColorList(r,e),o.$nextTick((()=>{o.$Store.commit("setMychartColor",n,i)}))):i=r.concat(r.slice(0,e-r.length)):i=r.slice(0,e)}return i},he.getHeight=function(e){return e.$Store.state.app.clientHeight},he.getWidth=function(e){return e.$Store.state.app.clientWidth},he.getXDpi=function(){let e=0;if(window.screen.deviceXDPI)e=window.screen.deviceXDPI;else{let t=document.createElement("DIV");t.style.cssText="width:1in;height:1in;position:absolute;left:0px;top:0px;z-index:99;visibility:hidden",document.body.appendChild(t),e=parseInt(t.offsetWidth),document.body.removeChild(t)}return e},he.getYDpi=function(){let e=0;if(window.screen.deviceXDPI)e=window.screen.deviceYDPI;else{let t=document.createElement("DIV");t.style.cssText="width:1in;height:1in;position:absolute;left:0px;top:0px;z-index:99;visibility:hidden",document.body.appendChild(t),e=parseInt(t.offsetHeight),document.body.removeChild(t)}return e},he.mmToYpixe=function(e,t){let n=t;return n||(n=he.getYDpi()),Number((e/25.4*n).toFixed(2))},he.mmToXpixe=function(e,t){let n=t;return n||(n=he.getXDpi()),Number((e/25.4*n).toFixed(2))},he.xPixelToMm=function(e,t){let n=t;return n||(n=he.getXDpi()),Number((e/n*25.4).toFixed(2))},he.yPixelToMm=function(e,t){let n=t;return n||(n=he.getYDpi()),Number((e/n*25.4).toFixed(2))},he.unique=function(e){const t=new Map;return e.filter((e=>!t.has(e)&&t.set(e,1)))},he.formatComboBox=function(e,t){if(!e&&0!==e)return e;if(null==t.renderValue&&(t.renderValue={}),t.renderValue[e])return t.renderValue[e];let n=e;if(t.data&&t.data.length>0){let o="code",i="name";t.valueField&&(o=t.valueField),t.textField&&(i=t.textField);const r=t.data.findIndex((t=>t[o]===e));r>-1&&t.data[r][i]&&(n=!1===t.codeWithName?t.data[r][i]:"["+e+"]"+t.data[r][i])}return t.renderValue[e]=n,n},he.formatDataBox=function(e,t){return e?(null==t.renderFormat&&(t.renderFormat="yyyy-MM-dd",t&&void 0===t.format?"date"===t.vtype?t.renderFormat="yyyy-MM-dd":"datetime"===t.vtype?t.renderFormat="yyyy-MM-dd hh:mm:ss":"month"===t.vtype&&(t.renderFormat="yyyy-MM"):t.format&&(t.renderFormat=t.format)),"string"==typeof e||"number"==typeof e?he.formatDate(new Date(e),t.renderFormat):e.constructor===Date?he.formatDate(e,t.renderFormat):e):""},he.formatValue=function(e,t,n){if(n){if(n.type){let o=n.type.toLowerCase();return"textbox"===o?e:"numberbox"===o||"numberboxv1"===o?e||e!==n.defaultValue?he.formatNumber(e,n.format,n.notzero):e:"combobox"===o?he.formatComboBox(e,n):"datebox"===o?he.formatDataBox(e,n):n.textName?t[n.textName]?t[n.textName]:e||"":e}return e}return e},he.getDefaultFieldStyle=function(e,t,n){let o="";if("DateBox"===e.type){let t="";t=void 0!==e.format?e.format:"date"===e.vtype?"yyyy-MM-dd":"datetime"===e.vtype?"yyyy-MM-dd hh:mm:ss":"month"===e.vtype?"yyyy-MM":"yyyy-MM-dd",o=o+"d="+t+"=center"}if("NumberBox"===e.type){let t="";t=void 0!==e.format?e.format:"n2",o=o+t+"=right"}if("ComboBox"===e.type){let i=e.dictkey;i||(i=e.name);let r="t="+i;!1===e.codeWithName?r+="=N":r+="=Y",o=o+r+"=left";let a="code",s="name";e.valueField&&(a=e.valueField),e.textField&&(s=e.textField),t[i]&&!n[i]?(n[i]=[],t[i].forEach((e=>{let t={};t.code=e[a],t.name=e[s],n[i].push(t)}))):null!=e.data&&(n[i]=he.copy(e.data))}return o},he.getGridField=function(e,t,n,o){let i="";for(let r=0;r<e.length;r++){let a=e[r];if(!1!==a.visible&&!1!==a.isExport){if(a.name){i+=a.name+t+a.label;let e="";a.excel&&a.excel.type?(e=a.excel.type,a.excel.format?e+="="+a.excel.format:e+="=",a.excel.align?e+="="+a.excel.align:e+="="):e=he.getDefaultFieldStyle(a,n,o),i+=e?t+e+",":","}if(a.children)for(let e=0;e<a.children.length;e++){let r=a.children[e];if(r.name){let e="";e=a.label?a.label+"("+r.label+")":r.label,i+=r.name+t+e;let s="";r.excel&&r.excel.type?(s=r.excel.type,r.excel.format?s+="="+r.excel.format:s+="=",r.excel.align?s+="="+r.excel.align:s+="="):s=he.getDefaultFieldStyle(r,n,o),i+=s?t+s+",":","}}}}return i.length>0&&(i=i.substring(0,i.length-1)),i},he.print=function(e,t){let n="<html><head>"+document.head.innerHTML+"</head>";n=e?n+"<body>"+e.$el.innerHTML+"</body></html>":n+"<body>"+document.body.innerHTML+"</body></html>";let o=window.open("Print.htm","print");if(o.document.write(n),t){let e=document.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t,o.document.getElementsByTagName("head")[0].appendChild(e)}o.document.close(),o.print(),o.close()},he.openPage=function(e,t){let n={};n.moduleCode=e,n.params=t,window.EfuMessenger.openPortalTabByModuleCode(n)},he.setLocalStorage=function(e,t,n){let o={};o.data=t,o.time=Date.now(),o.expire=n,ee.set(e,JSON.stringify(o))},he.getLocalStorage=function(e){let t=ee.get(e);if(!t)return null;t=JSON.parse(t);let n=60*Number(t.expire)*60*1e3;return Date.now()-t.time>n?(ee.remove(e),null):t.data},he.getTextWidth=function(e){const t=document.createElement("span");t.style.display="inline-block;",t.textContent=e,document.body.appendChild(t);const n=t.offsetWidth;return document.body.removeChild(t),100*Math.ceil(n/100)+40},he.changeMoneyToChinese=function(e){let t,n,o,i=new Array("零","壹","贰","叁","肆","伍","陆","柒","捌","玖"),r=new Array("","拾","佰","仟"),a=new Array("","万","亿","兆"),s=new Array("角","分","毫","厘"),l="";if(""==e)return"";if((e=parseFloat(e))>=1e15)return this.alert("超出最大处理数字"),"";if(0==e)return l=i[0]+"元",l;if(e<0&&(l="负",e*=-1),-1===(e=e.toString()).indexOf(".")?(t=e,n=""):(o=e.split("."),t=o[0],n=o[1].substr(0,4)),parseInt(t,10)>0){let e=0,n=t.length;for(let o=0;o<n;o++){let s=t.substr(o,1),c=n-o-1,u=c/4,d=c%4;"0"==s?e++:(e>0&&(l+=i[0]),e=0,l+=i[parseInt(s)]+r[d]),0==d&&e<4&&(l+=a[u])}l+="元"}if(""!==n){let e=n.length;for(let t=0;t<e;t++){let e=n.substr(t,1);"0"!=e&&(l+=i[Number(e)]+s[t])}}return""===l&&(l+=i[0]+"元"),l},he.exportExcel=function(e,t,n,o){var i=[],r=[];e.forEach((e=>{e.label?i.push(e.label):i.push(e.name),r.push(e.name)}));var a=se(r,t);a.unshift(i);var s="SheetJS";n&&(s=n);var c=new re,u=ie(a);c.SheetNames.push(s),c.Sheets[s]=u;var d=x.write(c,{bookType:"xlsx",bookSST:!1,type:"binary"}),h=o||"列表";l.saveAs(new Blob([ae(d)],{type:"application/octet-stream"}),h+".xlsx")},he.exportMultiSheetExcel=function(e,t){var n=new re,o=[],i=[],r="";e.forEach(((e,t)=>{o=[],i=[],e.config.forEach((e=>{e.label?o.push(e.label):o.push(e.name),i.push(e.name)}));var a=se(i,e.data);a.unshift(o),r="SheetJS"+t,e.sheetName&&(r=e.sheetName),n.SheetNames.push(r),n.Sheets[r]=ie(a)}));var a=x.write(n,{bookType:"xlsx",bookSST:!1,type:"binary"}),s=t||"列表";l.saveAs(new Blob([ae(a)],{type:"application/octet-stream"}),s+".xlsx")},he.exportExcelStyle=function(e,t,n,o){let i=[];for(let l=0;l<n;l++)i.push([]);let r=[];le(e,i,0,r);let a=[],s=[];!function(e,t,n,o){let i=0;for(let r=0;r<t.length;r++){let a=new Array(e.length).fill("");i=0;let s="";for(let e=0;e<t[r].length;e++){if(t[r][e].fIndex||0===t[r][e].fIndex){let n=t[r-1][t[r][e].fIndex].sIndex;s!==n&&(i=n,s=n)}a[i]=t[r][e].label,t[r][e].sIndex=i;let n={s:{}};n.s.r=r,n.s.c=i,n.e={},n.e.r=n.s.r,i+=t[r][e].num,1===t[r][e].num?0===r&&(n.e.r=t.length-1,n.e.c=n.s.c):n.e.c=i-1,r!==t.length-1&&o.push(n)}n.push(a)}}(r,i,s,a);let c=[];r.forEach((e=>{c.push({wpx:e.width})})),t.forEach((e=>{let t=[];r.forEach((n=>{if("n"===n.excelPro.t)t.push(Number(e[n.name]));else if("d"===n.excelPro.t){let o=oe(new Date(e[n.name]));t.push(o),n.excelPro.t="n"}else t.push(e[n.name])})),s.push(t)}));let u=r.length,d={font:{name:"宋体",sz:9,bold:!0},border:{top:{style:"thin"},bottom:{style:"thin"},left:{style:"thin"},right:{style:"thin"}},alignment:{horizontal:"center",vertical:"center",wrapText:!0}},h={font:{name:"宋体",sz:9},border:{top:{style:"thin"},bottom:{style:"thin"},left:{style:"thin"},right:{style:"thin"}}},A="example.xlsx";o&&(A=o);const f=x.utils.book_new(),p=x.utils.aoa_to_sheet(s);x.utils.book_append_sheet(f,p,"Sheet1"),a.length>0&&(p["!merges"]=a);let g=0;for(let l in p)if("!merges"!==l&&"!ref"!==l&&"!cols"!==l){if(p[l].s=d,g<u*n)p[l].s=d;else{let e=Object.assign({},{},h),t=g%u;Object.assign(e,r[t].excelPro),p[l].s=e}g++}p["!cols"]=c;let m=B.write(f,{bookType:"xlsx",bookSST:!1,type:"binary"});l.saveAs(new Blob([ae(m)],{type:"application/octet-stream"}),A)};let fe={Config:{},customQueryConfig:function(e){return e.isTree?(e.popControl="SimpleTree",e.width||(e.width=.4)):(e.popControl="SimpleViewGrid",e.width?Number(e.width)<.55&&(e.width=.55):e.width=.55),e}};var pe={caseMethod:K,commonMethod:he,query:fe};function ge(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:{}}const me="function"==typeof Proxy;let ye,ve;function Ce(){return void 0!==ye||("undefined"!=typeof window&&window.performance?(ye=!0,ve=window.performance):"undefined"!=typeof globalThis&&(null===(e=globalThis.perf_hooks)||void 0===e?void 0:e.performance)?(ye=!0,ve=globalThis.perf_hooks.performance):ye=!1),ye?ve.now():Date.now();var e}class be{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const r in e.settings){const t=e.settings[r];n[r]=t.defaultValue}const o=`__vue-devtools-plugin-settings__${e.id}`;let i=Object.assign({},n);try{const e=localStorage.getItem(o),t=JSON.parse(e);Object.assign(i,t)}catch(IM){}this.fallbacks={getSettings:()=>i,setSettings(e){try{localStorage.setItem(o,JSON.stringify(e))}catch(IM){}i=e},now:()=>Ce()},t&&t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function we(e,t){const n=e,o=ge(),i=ge().__VUE_DEVTOOLS_GLOBAL_HOOK__,r=me&&n.enableEarlyProxy;if(!i||!o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&r){const e=r?new be(n,i):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else i.emit("devtools-plugin:setup",e,t)}
2
2
  /*!
3
3
  * vuex v4.1.0
4
4
  * (c) 2022 Evan You
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ocpview-plus",
3
- "version": "1.3.14",
3
+ "version": "1.3.15",
4
4
  "title": "ocpviewPlus",
5
5
  "description": "A high quality Service UI components Library with Vue.js",
6
6
  "homepage": "",