ocpview-plus 0.0.1 → 0.0.2
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.
|
@@ -454,11 +454,11 @@ common.initEview = function(ViewUI2) {
|
|
|
454
454
|
};
|
|
455
455
|
const name = "ocpview-plus";
|
|
456
456
|
const version = "0.0.1";
|
|
457
|
-
const title = "
|
|
457
|
+
const title = "ocpviewPlus";
|
|
458
458
|
const description = "A high quality Service UI components Library with Vue.js";
|
|
459
459
|
const homepage = "";
|
|
460
460
|
const keywords = [
|
|
461
|
-
"
|
|
461
|
+
"ocpview",
|
|
462
462
|
"iview",
|
|
463
463
|
"vue",
|
|
464
464
|
"viewui",
|
|
@@ -469,7 +469,7 @@ const keywords = [
|
|
|
469
469
|
"ui",
|
|
470
470
|
"framework"
|
|
471
471
|
];
|
|
472
|
-
const main = "dist/
|
|
472
|
+
const main = "dist/ocpviewplus.min.js";
|
|
473
473
|
const typings = "types/index.d.ts";
|
|
474
474
|
const files = [
|
|
475
475
|
"dist",
|
|
@@ -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).efviewPlus={},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,i,o,r,a,s,l,u,c,A,h,d,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 i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var y=g(t),v=g(n),C=g(i),w=g(o),b=g(r),B=m(a),x=m(s),_=g(c),E=g(A),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 i;if("array"===t)i=[];else{if("object"!==t)return e;i={}}if("array"===t)for(let o=0;o<e.length;o++)i.push(D(e[o]));else if("object"===t)for(let o in e)i[o]=D(e[o]);return i}let F={};function O(){let e=[],t=[];for(let i in this.objData){const n=this.objData[i];n._isChecked&&e.push(parseInt(i)),n.children&&n.children.length&&(t=t.concat(this.getSelectionChildrenRowKeys(n,t)))}t=[...new Set(t)];let n=[];return this.data.forEach(((i,o)=>{e.indexOf(o)>-1&&(i._customIndex=o,n=n.concat(i)),i.children&&i.children.length&&t.length&&(n=n.concat(this.getSelectionChildren(i,n,t)))})),n=[...new Set(n)],JSON.parse(JSON.stringify(n))}function T(){let e=this.$el.parentNode.offsetWidth,t={},n=0,i=[],o=[],r=[];this.cloneColumns.forEach((e=>{e.width?i.push(e):(o.push(e),e.minWidth&&(n+=e.minWidth),e.maxWidth||r.push(e)),e._width=null}));let a=e-i.map((e=>e.width)).reduce(((e,t)=>e+t),0)-n-(this.showVerticalScrollBar?this.scrollBarWidth:0)-1,s=o.length,l=0;a>0&&s>0&&(l=parseInt(a/s));for(let u=0;u<this.cloneColumns.length;u++){const e=this.cloneColumns[u];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 i=n._width+l;s>1?(s--,a-=l,l=parseInt(a/s)):l=0,n._width=i,t[n._index]={width:i}}}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 I(e,t){const n=t?this.getDataByRowKey(t):this.objData[e];n&&this.highlightRow&&!n._isHighlight&&this.handleCurrentRow("highlight",e,t)}function N(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 i="";for(let o=0;o<e;o++)i+=t.charAt(Math.floor(Math.random()*n));return i}(6),e)))}function U(){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 Q(){this.itemDisabled||(this.$parent&&this.$parent.onClick?this.$parent.onClick():this.$refs.input&&this.$refs.input.click())}function L(){this.$refs.pickerPanel&&this.$refs.pickerPanel.reset&&this.$refs.pickerPanel.reset()}function R(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),i=this.focusedTime.time[n];return void e[n].chooseValue(i)}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 V(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 M="undefined"!=typeof window;function j(e,t){const n=t?"scrollTop":"scrollLeft";let i=e[t?"pageYOffset":"pageXOffset"];return M&&"number"!=typeof i&&(i=window.document.documentElement[n]),i}function H(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 $(){if(!M)return;const e=this.affix,t=j(window,!0),n=function(e){if(!M)return;const t=e.getBoundingClientRect(),n=j(window,!0),i=j(window),o=window.document.body,r=o.clientTop||0,a=o.clientLeft||0;return{top:t.top+n-r,left:t.left+i-a}}(this.$el),i=window.innerHeight,o=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+o>t+i&&"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+o<t+i&&"bottom"==this.offsetType&&e&&(this.affix=!1,this.styles=null,this.$emit("on-change",!1))}F.initTable=function(e){e.methods.getSelection=O,e.methods.handleResize=T,e.methods.highlightCurrentRow=I,e.methods.makeColumnsId=N,e.components.tableHead.methods.scrollBarCellClass=U},F.initBreadcrumbItem=function(e){e.mixins[0].methods.handleCheckClick=P},F.initButton=function(e){e.mixins[0].methods.handleCheckClick=P},F.initCard=function(e){e.mixins[0].methods.handleCheckClick=P},F.initCell=function(e){e.mixins[0].methods.handleCheckClick=P},F.initMenuItem=function(e){e.mixins[1].methods.handleCheckClick=P},F.initUpload=function(e){e.methods.handleClick=Q},F.initDatePicker=function(e){e.mixins[0].methods.reset=L,e.mixins[0].methods.handleBlur=V,e.mixins[0].methods.handleKeydown=R},F.initAffix=function(e){e.methods.handleScroll=$},F.initAnchor=function(e){e.methods.handleScroll=H},F.initEview=function(e){F.initTable(e.Table),F.initBreadcrumbItem(e.BreadcrumbItem),F.initButton(e.Button),F.initCard(e.Card),F.initCell(e.Cell),F.initMenuItem(e.MenuItem),F.initUpload(e.Upload),F.initDatePicker(e.DatePicker),F.initAffix(e.Affix),F.initAnchor(e.Anchor)};var K="0.0.1";let z={},G={};function q(e,t,n){let i=z.getToken(),o=z.getEnt_id(),r=t;r||(r={});let a=e.OmdUrl.portalkey;if(z.getUrlParam("portalkey")||(a=z.getUrlParam("portalkey")),"cloud"===z.getUrlParam("srvkey")&&(a="cloud"),"1"===n){let t="";if(i&&""!==i.trim()){if(t=t+"&ent_id="+o+"&token="+i+"×tamp="+(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="+i;void 0!==e.OmdUrl.getMd5&&(n=e.OmdUrl.getMd5(r,i)),t+=b.default(n)}}else{let n={ent_id:o,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(i&&""!==i.trim()){t.ent_id=o,t.token=i,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="+i;void 0!==e.OmdUrl.getMd5&&(n=e.OmdUrl.getMd5(r,i)),t.sign=b.default(n)}else{let n={ent_id:o,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,i,o){let r=null;try{if(r="string"==typeof e?JSON.parse(e):e,0===parseInt(r.returncode)){try{t&&t(r.data)}catch(_Q){o.$Spin&&o.$Spin.hide(),o.$nextTick((()=>{setTimeout((()=>{o.alert(_Q,null,2)}),1e3)}))}return}if(parseInt(r.returncode)>0){if(n){try{n(r.data)}catch(_Q){o.$Spin&&o.$Spin.hide(),o.$nextTick((()=>{setTimeout((()=>{o.alert(_Q,null,2)}),1e3)}))}return}throw r.data}if(i){try{i(r.data)}catch(_Q){o.$Spin&&o.$Spin.hide(),o.$nextTick((()=>{setTimeout((()=>{o.alert(_Q,null,2)}),1e3)}))}return}throw r.data}catch(_Q){o.$Spin&&o.$Spin.hide(),o.$nextTick((()=>{setTimeout((()=>{"string"==typeof e?o.alert(_Q+"<br/>"+e,null,2):o.alert(_Q,null,2)}),1e3)}))}}function X(e,t,n,i){let o="";o=t?"method="+t:"method=",o+=q(i,n,"1"),o=e&&-1!=e.indexOf("?")?e+"&"+o:e+"?"+o;let r=z.getUrlParam("menuCode");return r&&(o=o+"&menuCode="+r),encodeURI(o)}function Y(e){if(!e)return"";try{let t=JSON.parse(e);return t=t.state,t?t.split(":")[1]:e}catch(_Q){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"),i=e.$Method.getLocalStorage("modulecodeHelp_"+e.OmdUrl.helpType+"_"+n);if(i)return i;if(n){var o=e.OmdUrl.helpUrl;if(o||e.getHelpdocumenturl&&(o=e.getHelpdocumenturl()),o){let i=e.getHelpId(e.OmdUrl.helpType,n);t=i?"http://"+o+"/web/#/p/"+i:"http://"+o+"/web/#/"+e.OmdUrl.helpType+"?page_id="+n}e.$Method.setLocalStorage("modulecodeHelp_"+e.OmdUrl.helpType+"_"+n,t,e.OmdUrl.uiConfigExpire)}}return t},z.OmdUrl=G,z.alert=function(e,n,i){i||(i="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"===(i+="")?t.Modal.error({title:"系统警告",content:'<div style="word-wrap:break-word">'+e+"</div>"}):"3"===i?(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>"}))},z.asyncPost=function(e,t,n,i,o,r,a){let s=this;e.startsWith("/")||(e="/"+e),function(e,t,n,i,o){let r={};t&&(r.method=t);let a=q(i,n,"2");for(let l in a)r[l]=a[l];n||(n={});let s=z.getUrlParam("menuCode");return s&&(r.menuCode=s),new Promise("get"===o?(t,i)=>{v.default.get(e,n,{params:r}).then((e=>{t(e.data)}),(e=>{i(e)})).catch((e=>{i(e)}))}:(t,i)=>{v.default.post(e,n,{params:r}).then((e=>{t(e.data)}),(e=>{i(e)})).catch((e=>{i(e)}))})}(e,t,n,s,a).then((function(e){return W(e,i,o,null,s)}),(function(e){o?o(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)}))},z.getResturl=X,z.synchroPost=function(e,t,n,i,o,r,a){let s=this,l="POST";a&&(l=a);let u=X(e,t,n,s);u.startsWith("/")||(u="/"+u),C.default.ajaxSetup({cache:!1});let c={type:l,contentType:"text/plain; charset=UTF-8",async:!1,dataType:"JSON",processData:!1,success:function(e){return W(e,i,o,r,s)},error:function(e,t,n){s.$Spin&&s.$Spin.hide();try{let e=JSON.stringify(n);s.alert(e,null,"2")}catch(_Q){setTimeout((()=>{s.alert(n,null,"2")}),1e3)}return!1}};n||(n={}),"POST"===l?c.data=JSON.stringify(n):delete c.data,C.default.ajax(u,c)},z.getOmdUrlConfig=function(e){C.default.ajax({url:"/amp-glod/config.json",type:"GET",dataType:"json",success:function(t){let n=t,i={};if(n)for(let e in n)n[e]instanceof Array?n[e].forEach((e=>{i[e.name]=e.value})):i[e]=n[e];e.config.globalProperties.OmdUrl=Object.assign({},e.config.globalProperties.OmdUrl,i)}})},z.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}}})},z.getUserCode=function(e){let t=null;t=e||this;let n=z.getToken(e),i="",o="";return i=t.portalkey,o=t.OmdUrl.uid,n&&("congou"==i?o=Y(w.default.get("user_code")):w.default.get("user_code")&&(o=w.default.get("user_code"))),o},z.getUserName=function(e){let t=null;t=e||this;let n=z.getToken(e),i="",o="";return i=t.portalkey,o="["+t.OmdUrl.uid+"]"+t.OmdUrl.uname,n&&("congou"==i?o="["+Y(w.default.get("user_code"))+"]"+Y(w.default.get("user_name")):w.default.get("user_code")&&(o="["+w.default.get("user_code")+"]"+w.default.get("user_name"))),o},z.getPortalMkt=function(){let e={};return e.shopId=w.default.get("shopId"),e.shopCode=w.default.get("shopCode"),e.shopName=w.default.get("shopName"),e},z.getSession=function(){let e={},t=z.getUserName(),n=z.getUserCode(),i=w.default.get("user_id"),o=z.getEnt_id(),r=z.getToken();return e.user_name=t||"",e.user_code=n||"",e.user_id=i||"",e.ent_id=o||"",e.token=r||"",JSON.stringify(e)},z.getUrlParam=function(e){let t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.href.split("?"),i="";return n.length>1&&(i=n[1].match(t)),i||n.length>2&&(i=n[2].match(t)),i?decodeURI(i[2]):""},z.initGlobal=function(e,t,n){let i={};e.config.globalProperties.OmdUrl||(e.config.globalProperties.OmdUrl={}),t&&(i=Object.assign({},e.config.globalProperties.OmdUrl,t));let o=z.getUrlParam("portalkey");o&&(i.portalkey=o),i.eid=z.getEnt_id(e.config.globalProperties),i.modulecode=z.getUrlParam("modulecode"),i.modulecode||(i.modulecode=z.getUrlParam("billmoduleid")),i.helpindex=z.getUrlParam("helpindex"),i.billmoduleid=e.config.globalProperties.modulecode,i.openbillno=z.getUrlParam("billno"),i.opentaskid=z.getUrlParam("taskid"),i.nocheck=z.getUrlParam("nocheck")?z.getUrlParam("nocheck"):"N",e.config.globalProperties.OmdUrl=Object.assign({},e.config.globalProperties.OmdUrl,i),z.getPortalConfig(e)},z.getUserModuleMethod=function(e){let t=null,n=z.getToken();if(!n)return t;let i="";if(e)i=e;else if(i=z.getUrlParam("modulecode"),!i)return t;let o="/mall-portal-rest/portalesb/ocmrest";this.OmdUrl&&this.OmdUrl.portal&&(o=this.OmdUrl.portal),"cloud"===z.getUrlParam("srvkey")&&(o=this.OmdUrl.mdm);let r={};return r.token=n,r.modulecode=i,this.synchroPost(o,"runtime.modulesrivce.getUserModuleMethod",r,(function(e){t=e}),null),t},z.checkModuleByToken=function(){let e=!1,t=z.getToken();if(!t)return e;let n=z.getUrlParam("modulecode");if(!n)return e;if(!location.pathname)return e;if("congou"!=this.portalkey)return e;let i="/mall-portal-rest/portalesb/ocmrest";this.OmdUrl.portal&&(i=this.OmdUrl.portal);let o={token:t,modulecode:n,execmodule:location.pathname};"cloud"===z.getUrlParam("srvkey")&&(i=this.OmdUrl.mdm);return this.synchroPost(i,"runtime.modulesrivce.checkmodulebytoken",o,(function(t){"-1"===t.flag&&(e=!0)}),null),e},z.getDict=function(e,t){let n="code,name";t&&(n=t);let i={},o={fields:n,dict_group_code:e};return this.synchroPost(this.OmdUrl.omp,"omp.work.dict.getbydictgroupcode",o,(function(e){i=e}),null),i},z.setQueryConfig=function(e){Object.assign(this.query.Config,e)},z.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},z.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},z.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},z.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},z.getHelpId=function(e,t){let n="",i={};return i.helpType=e,i.helpIndex=t,this.synchroPost(this.OmdUrl.amp,"usercenter.helpconfig.getHelpId",i,(function(e){e&&e.helpId&&(n=e.helpId)}),(function(e){n=""}),(function(e){n=""})),n},z.getConditionValue=function(e,t,n,i){let o={};if("=="===n)if("DateBox"===i.type){o[e]={};let n={};n[">="]=t,"month"===i.vtype?n["<"]=this.$Method.getNextMonthFirstDay(t):n["<"]=this.$Method.getTomorrow(t),o[e]=n}else if("inputer"===e||"auditor"===e||"canceler"===e){let n={};n[e]={"==":t};let i={};i[e+"_name"]={LIKE:"[%]"+t},o.$or=[],o.$or.push(n),o.$or.push(i)}else o[e]={},void 0!==t.value?o[e][n]=t.value:o[e][n]=t;return"LIKE"===n&&(o[e]={},o[e][n]="%"+t+"%"),"LIKE"!==n&&"=="!==n&&(o[e]={},o[e][n]=t),o},z.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},z.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!==w.default.get("ent_id")&&""!==w.default.get("ent_id"))t=w.default.get("ent_id");else{let e=z.getUrlParam("ent_id");void 0!==e&&""!==e&&(t=e)}if("cloud"===n){let e=z.getUrlParam("lock_entid");void 0!==e&&""!==e&&(t=e)}return t},z.getToken=function(e){let t="";if(e?e.token&&(t=e.token):this.token&&(t=this.token),w.default.get("token"))t=w.default.get("token");else{let e=z.getUrlParam("token");e&&(t=e)}return t},z.getModulecode=function(){let e="";return e=z.getUrlParam("modulecode"),e||(e=z.getUrlParam("billmoduleid")),e},z.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,i=decodeURI(this.getResponseHeader("content-disposition")).replace("attachment;filename*=UTF-8''","");i=i.replace("attachment;filename=",""),n.readAsDataURL(e),i=decodeURIComponent(i),i=i.replace(/\ +/g,""),i=i.replace(/[\r\n]/g,""),n.onload=function(){let n=document.createElement("a");n.download=i,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)},z.exportExcelback=function(e){e.child?setTimeout(e.exportExcelback(e),100):e.$Spin.hide()},z.doExportExcel=function(e,t,n,i,o){let r=e;n||(n={}),r=X(r,t,n,o);let a=JSON.stringify(n);a=a.replaceAll("#","%23"),a=a.replaceAll("&","%26"),a=a.replaceAll("+","%2B"),r=encodeURI(r+"¶m="+a);let s=w.default.get("user_id"),l=w.default.get("user_code");if(s&&(r+=encodeURI("&user_id="+s)),l&&(r+=encodeURI("&user_code="+l)),o.$Spin.show({render:e=>e("div","导出中...,请勿关闭!")}),i||(i="2"),"2"===i)z.downloadFile(r,o);else{const e=window.open(r,"_blank");var u=setInterval((function(){e.closed&&(o.$Spin.hide(),clearInterval(u))}),100)}},z.doExportReport=function(e,t,n,i){let o=e;n||(n={}),o=X(o,t,n,i);let r=JSON.stringify(n);r=r.replaceAll("#","%23"),r=r.replaceAll("&","%26"),r=r.replaceAll("+","%2B"),o=encodeURI(o+"¶m="+r),i.$Spin.show({render:e=>e("div","导出中...,请勿关闭!")}),z.downloadFile(o,i)},z.getFilesInfo=function(e,t,n,i,o){let r=z.getUserCode(),a=z.getUserName(),s=z.getToken(),l=G.getfile+"billno="+e+"&billmoduleid="+t+"&scenetype="+i,u="&usercode="+r+"&username="+a+"&token="+s;u+="Y"!==n?"¬delfile=N":"¬delfile=Y",u=encodeURI(u),z.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+u,n.delUrl=G.delfile+n.filekey+u,n.title=n.filename,n.url=n.downUrl,n.modflag=e.modflag,t.push(n)})),o(t)}),null,null,"get")},z.getFilesInfoByIdkey=function(e,t){let n=z.getUserCode(),i=z.getUserName(),o=z.getToken(),r=G.getfile+"idkey="+e,a="&usercode="+n+"&username="+i+"&token="+o;a=encodeURI(a),z.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")},z.getFileInfo=function(e,t){let n=z.getUserCode(),i=z.getUserName(),o=z.getToken(),r=G.getfile+"filekey="+e,a="&usercode="+n+"&username="+i+"&token="+o;a=encodeURI(a),z.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")},z.setUrlSuffix=function(e,t){let n=z.getUrlParam("srvkey"),i=z.getUrlParam("token"),o=z.getUrlParam("usercode"),r=z.getUrlParam("portalkey");return e?-1!=e.indexOf("?")?e+"&token="+i+"&srvkey="+n+"&app_key="+t.OmdUrl.appKey+"&secret="+t.OmdUrl.secret+"&portalkey="+r+"&usercode="+o:e+"?token="+i+"&srvkey="+n+"&app_key="+t.OmdUrl.appKey+"&secret="+t.OmdUrl.secret+"&portalkey="+r+"&usercode="+o:e};var J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}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(_Q){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(_Q){ee.disabled=!0}function ie(e,t){return t&&(e+=1462),(Date.parse(e)-new Date(Date.UTC(1899,11,30)))/864e5}function oe(e,t){for(var n={},i={s:{c:1e7,r:1e7},e:{c:0,r:0}},o=0;o!=e.length;++o)for(var r=0;r!=e[o].length;++r){i.s.r>o&&(i.s.r=o),i.s.c>r&&(i.s.c=r),i.e.r<o&&(i.e.r=o),i.e.c<r&&(i.e.c=r);var a={v:e[o][r]};if(null!=a.v){var s=B.utils.encode_cell({c:r,r:o});"number"==typeof a.v?a.t="n":"boolean"==typeof a.v?a.t="b":a.v instanceof Date?(a.t="n",a.z=B.SSF._table[14],a.v=ie(a.v)):a.t="s",n[s]=a}}return i.s.c<1e7&&(n["!ref"]=B.utils.encode_range(i)),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),i=0;i!=e.length;++i)n[i]=255&e.charCodeAt(i);return t}function se(e,t){return t.map((t=>e.map((e=>t[e]))))}function le(e,t,n,i,o){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 o=le(e,t,n+1,i,s);a+=o})),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],i=e.format[1],o="0";"n"===n||"p"===n?o="0":"c"===n&&(o="¥#,##0");let r="";if(Number(i)>0)for(let e=0;e<Number(i);e++)r+="0";r&&(o=o+"."+r),"p"===n&&(o+="%"),t.numFmt=o}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),i.push(r)}return(o||0===o)&&0!==n&&(r.fIndex=o),t[n].push(r),r.num}return 0}e.forEach((e=>{le(e,t,n,i,o)}))}!function(e){if(e.URL=e.URL||e.webkitURL,e.Blob&&e.URL)try{return void new Blob}catch(_Q){}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=[]},i=function(e,t,n){this.data=e,this.size=e.length,this.type=t,this.encoding=n},o=n.prototype,r=i.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(" "),u=l.length,c=e.URL||e.webkitURL||e,A=c.createObjectURL,h=c.revokeObjectURL,d=c,f=e.btoa,p=e.atob,g=e.ArrayBuffer,m=e.Uint8Array;for(i.fake=r.fake=!0;u--;)s.prototype[l[u]]=u+1;return c.createObjectURL||(d=e.URL={}),d.createObjectURL=function(e){var t,n=e.type;return null===n&&(n="application/octet-stream"),e instanceof i?(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)):A?A.call(c,e):void 0},d.revokeObjectURL=function(e){"data:"!==e.substring(0,5)&&h&&h.call(c,e)},o.append=function(e){var n=this.data;if(m&&(e instanceof g||e instanceof m)){for(var o="",r=new m(e),l=0,u=r.length;l<u;l++)o+=String.fromCharCode(r[l]);n.push(o)}else if("Blob"===t(e)||"File"===t(e)){if(!a)throw new s("NOT_READABLE_ERR");var c=new a;n.push(c.readAsBinaryString(e))}else e instanceof i?"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))))},o.getBlob=function(e){return arguments.length||(e=null),new i(this.data.join(""),e,"raw")},o.toString=function(){return"[object BlobBuilder]"},r.slice=function(e,t,n){var o=arguments.length;return o<3&&(n=null),new i(this.data.slice(e,o>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 i=n&&n.type||"",o=new t;if(e)for(var r=0,a=e.length;r<a;r++)o.append(e[r]);return o.getBlob(i)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||globalThis.content||globalThis);const ue="postMessage"in window;class ce{constructor(e,t,n){let i="";if(arguments.length<2?i="target error - target and name are both required":"object"!=typeof e?i="target error - target itself must be window object":"string"!=typeof t&&(i="target error - target name must be string type"),i)throw new Error(i);this.target=e,this.name=t,this.prefix=n}send(e){if(ue)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 Ae{constructor(e,t){this.targets={},this.name=e,this.listenFunc=[],this.prefix=t,this.initListen()}addTarget(e,t){const n=new ce(e,t,this.prefix);this.targets[t]=n}listen(e){let t=0;const n=this.listenFunc.length;let i=!1;for(;t<n;t++){if(this.listenFunc[t].toString()===e.toString()){this.listenFunc[t]=e,i=!0;break}}i||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 i=n[0].split("|"),o=i[0],r=i[1];for(let a=0;a<e.listenFunc.length;a++)o+r===e.prefix+e.name&&e.listenFunc[a](t)}};ue?"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 Ae(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 de(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,i,o,r=e[t][0],a=e[t][1],s=e[t][2];if(0==+a)n=i=o=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),i=e(l,t,r),o=e(l,t,r-1/3)}e[t][0]=Math.round(255*n),e[t][1]=Math.round(255*i),e[t][2]=Math.round(255*o)}}(t),function(e){let t=[],n="";for(let i=0;i<e.length;i++){let o=e[i];n="#";for(let e=0;e<o.length;e++){let t=Number(o[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 i in n)if(new RegExp(`(${i})`).test(t)){let e=n[i]+"";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)),i=Number(n.getMonth())+1;return n.getFullYear()+"-"+he.padLeftZero("00",i+"")+"-"+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),i=new Date(n-864e5),o=Number(i.getMonth())+1;return i.getFullYear()+"-"+he.padLeftZero("00",o+"")+"-"+he.padLeftZero("00",i.getDate()+"")},he.getNextMonthFirstDay=function(e){let t;t=e?new Date(e):new Date;let n=new Date(t.getFullYear(),t.getMonth()+1,1),i=Number(n.getMonth())+1;return n.getFullYear()+"-"+he.padLeftZero("00",i+"")+"-"+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),i=Number(n.getMonth())+1;return n.getFullYear()+"-"+he.padLeftZero("00",i+"")+"-"+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("?"),i="";return n.length>1&&(i=n[1].match(t)),i||n.length>2&&(i=n[2].match(t)),i?decodeURI(i[2]):""},he.formatNumber=function(e,t,n){let i=0;e?isNaN(e)||(e+=""):e="0",t?2===t.length&&Number(t[1])&&(i=Number(t[1])):t="n";let o=Number(e).toFixed(i);t.startsWith("p")&&(o=(100*Number(e)).toFixed(i));let r=o.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 i=de(n),o=!1;for(;;){o=!1;for(let t=0;t<i.length;t++)for(let n=0;n<e.length;n++)if(i[t]===e[n]){o=!0;break}if(!o){i=e.concat(i);break}i=de(n)}return i},he.getColor=function(){return de(1)[0]},he.getGlobalColor=function(e,t,n,i){let o=[];if(e>0){let r=i.$Store.state.app.mychartColor[n];e>r.length?t?(o=i.$Method.getColorList(r,e),i.$nextTick((()=>{i.$Store.commit("setMychartColor",n,o)}))):o=r.concat(r.slice(0,e-r.length)):o=r.slice(0,e)}return o},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 i="code",o="name";t.valueField&&(i=t.valueField),t.textField&&(o=t.textField);const r=t.data.findIndex((t=>t[i]===e));r>-1&&t.data[r][o]&&(n=!1===t.codeWithName?t.data[r][o]:"["+e+"]"+t.data[r][o])}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 i=n.type.toLowerCase();return"textbox"===i?e:"numberbox"===i?e||e!==n.defaultValue?he.formatNumber(e,n.format,n.notzero):e:"combobox"===i?he.formatComboBox(e,n):"datebox"===i?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 i="";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",i=i+"d="+t+"=center"}if("NumberBox"===e.type){let t="";t=void 0!==e.format?e.format:"n2",i=i+t+"=right"}if("ComboBox"===e.type){let o=e.dictkey;o||(o=e.name);let r="t="+o;!1===e.codeWithName?r+="=N":r+="=Y",i=i+r+"=left";let a="code",s="name";e.valueField&&(a=e.valueField),e.textField&&(s=e.textField),t[o]&&!n[o]?(n[o]=[],t[o].forEach((e=>{let t={};t.code=e[a],t.name=e[s],n[o].push(t)}))):null!=e.data&&(n[o]=he.copy(e.data))}return i},he.getGridField=function(e,t,n,i){let o="";for(let r=0;r<e.length;r++){let a=e[r];if(!1!==a.visible&&!1!==a.isExport){if(a.name){o+=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,i),o+=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,o+=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,i),o+=s?t+s+",":","}}}}return o.length>0&&(o=o.substring(0,o.length-1)),o},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 i=window.open("Print.htm","print");if(i.document.write(n),t){let e=document.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t,i.document.getElementsByTagName("head")[0].appendChild(e)}i.document.close(),i.print(),i.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 i={};i.data=t,i.time=Date.now(),i.expire=n,ee.set(e,JSON.stringify(i))},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,i,o=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=o[0]+"元",l;if(e<0&&(l="负",e*=-1),-1===(e=e.toString()).indexOf(".")?(t=e,n=""):(i=e.split("."),t=i[0],n=i[1].substr(0,4)),parseInt(t,10)>0){let e=0,n=t.length;for(let i=0;i<n;i++){let s=t.substr(i,1),u=n-i-1,c=u/4,A=u%4;"0"==s?e++:(e>0&&(l+=o[0]),e=0,l+=o[parseInt(s)]+r[A]),0==A&&e<4&&(l+=a[c])}l+="元"}if(""!==n){let e=n.length;for(let t=0;t<e;t++){let e=n.substr(t,1);"0"!=e&&(l+=o[Number(e)]+s[t])}}return""===l&&(l+=o[0]+"元"),l},he.exportExcel=function(e,t,n,i){var o=[],r=[];e.forEach((e=>{e.label?o.push(e.label):o.push(e.name),r.push(e.name)}));var a=se(r,t);a.unshift(o);var s="SheetJS";n&&(s=n);var u=new re,c=oe(a);u.SheetNames.push(s),u.Sheets[s]=c;var A=B.write(u,{bookType:"xlsx",bookSST:!1,type:"binary"}),h=i||"列表";l.saveAs(new Blob([ae(A)],{type:"application/octet-stream"}),h+".xlsx")},he.exportMultiSheetExcel=function(e,t){var n=new re,i=[],o=[],r="";e.forEach(((e,t)=>{i=[],o=[],e.config.forEach((e=>{e.label?i.push(e.label):i.push(e.name),o.push(e.name)}));var a=se(o,e.data);a.unshift(i),r="SheetJS"+t,e.sheetName&&(r=e.sheetName),n.SheetNames.push(r),n.Sheets[r]=oe(a)}));var a=B.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,i){let o=[];for(let l=0;l<n;l++)o.push([]);let r=[];le(e,o,0,r);let a=[],s=[];!function(e,t,n,i){let o=0;for(let r=0;r<t.length;r++){let a=new Array(e.length).fill("");o=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&&(o=n,s=n)}a[o]=t[r][e].label,t[r][e].sIndex=o;let n={s:{}};n.s.r=r,n.s.c=o,n.e={},n.e.r=n.s.r,o+=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=o-1,r!==t.length-1&&i.push(n)}n.push(a)}}(r,o,s,a);let u=[];r.forEach((e=>{u.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 i=ie(new Date(e[n.name]));t.push(i),n.excelPro.t="n"}else t.push(e[n.name])})),s.push(t)}));let c=r.length,A={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"}}},d="example.xlsx";i&&(d=i);const f=B.utils.book_new(),p=B.utils.aoa_to_sheet(s);B.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=A,g<c*n)p[l].s=A;else{let e=Object.assign({},{},h),t=g%c;Object.assign(e,r[t].excelPro),p[l].s=e}g++}p["!cols"]=u;let m=x.write(f,{bookType:"xlsx",bookSST:!1,type:"binary"});l.saveAs(new Blob([ae(m)],{type:"application/octet-stream"}),d)};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:z,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 we{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 i=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},n);try{const e=localStorage.getItem(i),t=JSON.parse(e);Object.assign(o,t)}catch(_Q){}this.fallbacks={getSettings:()=>o,setSettings(e){try{localStorage.setItem(i,JSON.stringify(e))}catch(_Q){}o=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 be(e,t){const n=e,i=ge(),o=ge().__VUE_DEVTOOLS_GLOBAL_HOOK__,r=me&&n.enableEarlyProxy;if(!o||!i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&r){const e=r?new we(n,o):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else o.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,i,o,r,a,s,l,u,c,A,h,d,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 i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var y=g(t),v=g(n),C=g(i),w=g(o),b=g(r),B=m(a),x=m(s),_=g(c),E=g(A),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 i;if("array"===t)i=[];else{if("object"!==t)return e;i={}}if("array"===t)for(let o=0;o<e.length;o++)i.push(D(e[o]));else if("object"===t)for(let o in e)i[o]=D(e[o]);return i}let F={};function O(){let e=[],t=[];for(let i in this.objData){const n=this.objData[i];n._isChecked&&e.push(parseInt(i)),n.children&&n.children.length&&(t=t.concat(this.getSelectionChildrenRowKeys(n,t)))}t=[...new Set(t)];let n=[];return this.data.forEach(((i,o)=>{e.indexOf(o)>-1&&(i._customIndex=o,n=n.concat(i)),i.children&&i.children.length&&t.length&&(n=n.concat(this.getSelectionChildren(i,n,t)))})),n=[...new Set(n)],JSON.parse(JSON.stringify(n))}function T(){let e=this.$el.parentNode.offsetWidth,t={},n=0,i=[],o=[],r=[];this.cloneColumns.forEach((e=>{e.width?i.push(e):(o.push(e),e.minWidth&&(n+=e.minWidth),e.maxWidth||r.push(e)),e._width=null}));let a=e-i.map((e=>e.width)).reduce(((e,t)=>e+t),0)-n-(this.showVerticalScrollBar?this.scrollBarWidth:0)-1,s=o.length,l=0;a>0&&s>0&&(l=parseInt(a/s));for(let u=0;u<this.cloneColumns.length;u++){const e=this.cloneColumns[u];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 i=n._width+l;s>1?(s--,a-=l,l=parseInt(a/s)):l=0,n._width=i,t[n._index]={width:i}}}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 I(e,t){const n=t?this.getDataByRowKey(t):this.objData[e];n&&this.highlightRow&&!n._isHighlight&&this.handleCurrentRow("highlight",e,t)}function N(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 i="";for(let o=0;o<e;o++)i+=t.charAt(Math.floor(Math.random()*n));return i}(6),e)))}function U(){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 Q(){this.itemDisabled||(this.$parent&&this.$parent.onClick?this.$parent.onClick():this.$refs.input&&this.$refs.input.click())}function L(){this.$refs.pickerPanel&&this.$refs.pickerPanel.reset&&this.$refs.pickerPanel.reset()}function R(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),i=this.focusedTime.time[n];return void e[n].chooseValue(i)}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 V(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 M="undefined"!=typeof window;function j(e,t){const n=t?"scrollTop":"scrollLeft";let i=e[t?"pageYOffset":"pageXOffset"];return M&&"number"!=typeof i&&(i=window.document.documentElement[n]),i}function H(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 $(){if(!M)return;const e=this.affix,t=j(window,!0),n=function(e){if(!M)return;const t=e.getBoundingClientRect(),n=j(window,!0),i=j(window),o=window.document.body,r=o.clientTop||0,a=o.clientLeft||0;return{top:t.top+n-r,left:t.left+i-a}}(this.$el),i=window.innerHeight,o=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+o>t+i&&"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+o<t+i&&"bottom"==this.offsetType&&e&&(this.affix=!1,this.styles=null,this.$emit("on-change",!1))}F.initTable=function(e){e.methods.getSelection=O,e.methods.handleResize=T,e.methods.highlightCurrentRow=I,e.methods.makeColumnsId=N,e.components.tableHead.methods.scrollBarCellClass=U},F.initBreadcrumbItem=function(e){e.mixins[0].methods.handleCheckClick=P},F.initButton=function(e){e.mixins[0].methods.handleCheckClick=P},F.initCard=function(e){e.mixins[0].methods.handleCheckClick=P},F.initCell=function(e){e.mixins[0].methods.handleCheckClick=P},F.initMenuItem=function(e){e.mixins[1].methods.handleCheckClick=P},F.initUpload=function(e){e.methods.handleClick=Q},F.initDatePicker=function(e){e.mixins[0].methods.reset=L,e.mixins[0].methods.handleBlur=V,e.mixins[0].methods.handleKeydown=R},F.initAffix=function(e){e.methods.handleScroll=$},F.initAnchor=function(e){e.methods.handleScroll=H},F.initEview=function(e){F.initTable(e.Table),F.initBreadcrumbItem(e.BreadcrumbItem),F.initButton(e.Button),F.initCard(e.Card),F.initCell(e.Cell),F.initMenuItem(e.MenuItem),F.initUpload(e.Upload),F.initDatePicker(e.DatePicker),F.initAffix(e.Affix),F.initAnchor(e.Anchor)};var K="0.0.1";let z={},G={};function q(e,t,n){let i=z.getToken(),o=z.getEnt_id(),r=t;r||(r={});let a=e.OmdUrl.portalkey;if(z.getUrlParam("portalkey")||(a=z.getUrlParam("portalkey")),"cloud"===z.getUrlParam("srvkey")&&(a="cloud"),"1"===n){let t="";if(i&&""!==i.trim()){if(t=t+"&ent_id="+o+"&token="+i+"×tamp="+(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="+i;void 0!==e.OmdUrl.getMd5&&(n=e.OmdUrl.getMd5(r,i)),t+=b.default(n)}}else{let n={ent_id:o,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(i&&""!==i.trim()){t.ent_id=o,t.token=i,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="+i;void 0!==e.OmdUrl.getMd5&&(n=e.OmdUrl.getMd5(r,i)),t.sign=b.default(n)}else{let n={ent_id:o,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,i,o){let r=null;try{if(r="string"==typeof e?JSON.parse(e):e,0===parseInt(r.returncode)){try{t&&t(r.data)}catch(_Q){o.$Spin&&o.$Spin.hide(),o.$nextTick((()=>{setTimeout((()=>{o.alert(_Q,null,2)}),1e3)}))}return}if(parseInt(r.returncode)>0){if(n){try{n(r.data)}catch(_Q){o.$Spin&&o.$Spin.hide(),o.$nextTick((()=>{setTimeout((()=>{o.alert(_Q,null,2)}),1e3)}))}return}throw r.data}if(i){try{i(r.data)}catch(_Q){o.$Spin&&o.$Spin.hide(),o.$nextTick((()=>{setTimeout((()=>{o.alert(_Q,null,2)}),1e3)}))}return}throw r.data}catch(_Q){o.$Spin&&o.$Spin.hide(),o.$nextTick((()=>{setTimeout((()=>{"string"==typeof e?o.alert(_Q+"<br/>"+e,null,2):o.alert(_Q,null,2)}),1e3)}))}}function X(e,t,n,i){let o="";o=t?"method="+t:"method=",o+=q(i,n,"1"),o=e&&-1!=e.indexOf("?")?e+"&"+o:e+"?"+o;let r=z.getUrlParam("menuCode");return r&&(o=o+"&menuCode="+r),encodeURI(o)}function Y(e){if(!e)return"";try{let t=JSON.parse(e);return t=t.state,t?t.split(":")[1]:e}catch(_Q){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"),i=e.$Method.getLocalStorage("modulecodeHelp_"+e.OmdUrl.helpType+"_"+n);if(i)return i;if(n){var o=e.OmdUrl.helpUrl;if(o||e.getHelpdocumenturl&&(o=e.getHelpdocumenturl()),o){let i=e.getHelpId(e.OmdUrl.helpType,n);t=i?"http://"+o+"/web/#/p/"+i:"http://"+o+"/web/#/"+e.OmdUrl.helpType+"?page_id="+n}e.$Method.setLocalStorage("modulecodeHelp_"+e.OmdUrl.helpType+"_"+n,t,e.OmdUrl.uiConfigExpire)}}return t},z.OmdUrl=G,z.alert=function(e,n,i){i||(i="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"===(i+="")?t.Modal.error({title:"系统警告",content:'<div style="word-wrap:break-word">'+e+"</div>"}):"3"===i?(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>"}))},z.asyncPost=function(e,t,n,i,o,r,a){let s=this;e.startsWith("/")||(e="/"+e),function(e,t,n,i,o){let r={};t&&(r.method=t);let a=q(i,n,"2");for(let l in a)r[l]=a[l];n||(n={});let s=z.getUrlParam("menuCode");return s&&(r.menuCode=s),new Promise("get"===o?(t,i)=>{v.default.get(e,n,{params:r}).then((e=>{t(e.data)}),(e=>{i(e)})).catch((e=>{i(e)}))}:(t,i)=>{v.default.post(e,n,{params:r}).then((e=>{t(e.data)}),(e=>{i(e)})).catch((e=>{i(e)}))})}(e,t,n,s,a).then((function(e){return W(e,i,o,null,s)}),(function(e){o?o(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)}))},z.getResturl=X,z.synchroPost=function(e,t,n,i,o,r,a){let s=this,l="POST";a&&(l=a);let u=X(e,t,n,s);u.startsWith("/")||(u="/"+u),C.default.ajaxSetup({cache:!1});let c={type:l,contentType:"text/plain; charset=UTF-8",async:!1,dataType:"JSON",processData:!1,success:function(e){return W(e,i,o,r,s)},error:function(e,t,n){s.$Spin&&s.$Spin.hide();try{let e=JSON.stringify(n);s.alert(e,null,"2")}catch(_Q){setTimeout((()=>{s.alert(n,null,"2")}),1e3)}return!1}};n||(n={}),"POST"===l?c.data=JSON.stringify(n):delete c.data,C.default.ajax(u,c)},z.getOmdUrlConfig=function(e){C.default.ajax({url:"/amp-glod/config.json",type:"GET",dataType:"json",success:function(t){let n=t,i={};if(n)for(let e in n)n[e]instanceof Array?n[e].forEach((e=>{i[e.name]=e.value})):i[e]=n[e];e.config.globalProperties.OmdUrl=Object.assign({},e.config.globalProperties.OmdUrl,i)}})},z.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}}})},z.getUserCode=function(e){let t=null;t=e||this;let n=z.getToken(e),i="",o="";return i=t.portalkey,o=t.OmdUrl.uid,n&&("congou"==i?o=Y(w.default.get("user_code")):w.default.get("user_code")&&(o=w.default.get("user_code"))),o},z.getUserName=function(e){let t=null;t=e||this;let n=z.getToken(e),i="",o="";return i=t.portalkey,o="["+t.OmdUrl.uid+"]"+t.OmdUrl.uname,n&&("congou"==i?o="["+Y(w.default.get("user_code"))+"]"+Y(w.default.get("user_name")):w.default.get("user_code")&&(o="["+w.default.get("user_code")+"]"+w.default.get("user_name"))),o},z.getPortalMkt=function(){let e={};return e.shopId=w.default.get("shopId"),e.shopCode=w.default.get("shopCode"),e.shopName=w.default.get("shopName"),e},z.getSession=function(){let e={},t=z.getUserName(),n=z.getUserCode(),i=w.default.get("user_id"),o=z.getEnt_id(),r=z.getToken();return e.user_name=t||"",e.user_code=n||"",e.user_id=i||"",e.ent_id=o||"",e.token=r||"",JSON.stringify(e)},z.getUrlParam=function(e){let t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.href.split("?"),i="";return n.length>1&&(i=n[1].match(t)),i||n.length>2&&(i=n[2].match(t)),i?decodeURI(i[2]):""},z.initGlobal=function(e,t,n){let i={};e.config.globalProperties.OmdUrl||(e.config.globalProperties.OmdUrl={}),t&&(i=Object.assign({},e.config.globalProperties.OmdUrl,t));let o=z.getUrlParam("portalkey");o&&(i.portalkey=o),i.eid=z.getEnt_id(e.config.globalProperties),i.modulecode=z.getUrlParam("modulecode"),i.modulecode||(i.modulecode=z.getUrlParam("billmoduleid")),i.helpindex=z.getUrlParam("helpindex"),i.billmoduleid=e.config.globalProperties.modulecode,i.openbillno=z.getUrlParam("billno"),i.opentaskid=z.getUrlParam("taskid"),i.nocheck=z.getUrlParam("nocheck")?z.getUrlParam("nocheck"):"N",e.config.globalProperties.OmdUrl=Object.assign({},e.config.globalProperties.OmdUrl,i),z.getPortalConfig(e)},z.getUserModuleMethod=function(e){let t=null,n=z.getToken();if(!n)return t;let i="";if(e)i=e;else if(i=z.getUrlParam("modulecode"),!i)return t;let o="/mall-portal-rest/portalesb/ocmrest";this.OmdUrl&&this.OmdUrl.portal&&(o=this.OmdUrl.portal),"cloud"===z.getUrlParam("srvkey")&&(o=this.OmdUrl.mdm);let r={};return r.token=n,r.modulecode=i,this.synchroPost(o,"runtime.modulesrivce.getUserModuleMethod",r,(function(e){t=e}),null),t},z.checkModuleByToken=function(){let e=!1,t=z.getToken();if(!t)return e;let n=z.getUrlParam("modulecode");if(!n)return e;if(!location.pathname)return e;if("congou"!=this.portalkey)return e;let i="/mall-portal-rest/portalesb/ocmrest";this.OmdUrl.portal&&(i=this.OmdUrl.portal);let o={token:t,modulecode:n,execmodule:location.pathname};"cloud"===z.getUrlParam("srvkey")&&(i=this.OmdUrl.mdm);return this.synchroPost(i,"runtime.modulesrivce.checkmodulebytoken",o,(function(t){"-1"===t.flag&&(e=!0)}),null),e},z.getDict=function(e,t){let n="code,name";t&&(n=t);let i={},o={fields:n,dict_group_code:e};return this.synchroPost(this.OmdUrl.omp,"omp.work.dict.getbydictgroupcode",o,(function(e){i=e}),null),i},z.setQueryConfig=function(e){Object.assign(this.query.Config,e)},z.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},z.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},z.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},z.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},z.getHelpId=function(e,t){let n="",i={};return i.helpType=e,i.helpIndex=t,this.synchroPost(this.OmdUrl.amp,"usercenter.helpconfig.getHelpId",i,(function(e){e&&e.helpId&&(n=e.helpId)}),(function(e){n=""}),(function(e){n=""})),n},z.getConditionValue=function(e,t,n,i){let o={};if("=="===n)if("DateBox"===i.type){o[e]={};let n={};n[">="]=t,"month"===i.vtype?n["<"]=this.$Method.getNextMonthFirstDay(t):n["<"]=this.$Method.getTomorrow(t),o[e]=n}else if("inputer"===e||"auditor"===e||"canceler"===e){let n={};n[e]={"==":t};let i={};i[e+"_name"]={LIKE:"[%]"+t},o.$or=[],o.$or.push(n),o.$or.push(i)}else o[e]={},void 0!==t.value?o[e][n]=t.value:o[e][n]=t;return"LIKE"===n&&(o[e]={},o[e][n]="%"+t+"%"),"LIKE"!==n&&"=="!==n&&(o[e]={},o[e][n]=t),o},z.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},z.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!==w.default.get("ent_id")&&""!==w.default.get("ent_id"))t=w.default.get("ent_id");else{let e=z.getUrlParam("ent_id");void 0!==e&&""!==e&&(t=e)}if("cloud"===n){let e=z.getUrlParam("lock_entid");void 0!==e&&""!==e&&(t=e)}return t},z.getToken=function(e){let t="";if(e?e.token&&(t=e.token):this.token&&(t=this.token),w.default.get("token"))t=w.default.get("token");else{let e=z.getUrlParam("token");e&&(t=e)}return t},z.getModulecode=function(){let e="";return e=z.getUrlParam("modulecode"),e||(e=z.getUrlParam("billmoduleid")),e},z.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,i=decodeURI(this.getResponseHeader("content-disposition")).replace("attachment;filename*=UTF-8''","");i=i.replace("attachment;filename=",""),n.readAsDataURL(e),i=decodeURIComponent(i),i=i.replace(/\ +/g,""),i=i.replace(/[\r\n]/g,""),n.onload=function(){let n=document.createElement("a");n.download=i,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)},z.exportExcelback=function(e){e.child?setTimeout(e.exportExcelback(e),100):e.$Spin.hide()},z.doExportExcel=function(e,t,n,i,o){let r=e;n||(n={}),r=X(r,t,n,o);let a=JSON.stringify(n);a=a.replaceAll("#","%23"),a=a.replaceAll("&","%26"),a=a.replaceAll("+","%2B"),r=encodeURI(r+"¶m="+a);let s=w.default.get("user_id"),l=w.default.get("user_code");if(s&&(r+=encodeURI("&user_id="+s)),l&&(r+=encodeURI("&user_code="+l)),o.$Spin.show({render:e=>e("div","导出中...,请勿关闭!")}),i||(i="2"),"2"===i)z.downloadFile(r,o);else{const e=window.open(r,"_blank");var u=setInterval((function(){e.closed&&(o.$Spin.hide(),clearInterval(u))}),100)}},z.doExportReport=function(e,t,n,i){let o=e;n||(n={}),o=X(o,t,n,i);let r=JSON.stringify(n);r=r.replaceAll("#","%23"),r=r.replaceAll("&","%26"),r=r.replaceAll("+","%2B"),o=encodeURI(o+"¶m="+r),i.$Spin.show({render:e=>e("div","导出中...,请勿关闭!")}),z.downloadFile(o,i)},z.getFilesInfo=function(e,t,n,i,o){let r=z.getUserCode(),a=z.getUserName(),s=z.getToken(),l=G.getfile+"billno="+e+"&billmoduleid="+t+"&scenetype="+i,u="&usercode="+r+"&username="+a+"&token="+s;u+="Y"!==n?"¬delfile=N":"¬delfile=Y",u=encodeURI(u),z.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+u,n.delUrl=G.delfile+n.filekey+u,n.title=n.filename,n.url=n.downUrl,n.modflag=e.modflag,t.push(n)})),o(t)}),null,null,"get")},z.getFilesInfoByIdkey=function(e,t){let n=z.getUserCode(),i=z.getUserName(),o=z.getToken(),r=G.getfile+"idkey="+e,a="&usercode="+n+"&username="+i+"&token="+o;a=encodeURI(a),z.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")},z.getFileInfo=function(e,t){let n=z.getUserCode(),i=z.getUserName(),o=z.getToken(),r=G.getfile+"filekey="+e,a="&usercode="+n+"&username="+i+"&token="+o;a=encodeURI(a),z.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")},z.setUrlSuffix=function(e,t){let n=z.getUrlParam("srvkey"),i=z.getUrlParam("token"),o=z.getUrlParam("usercode"),r=z.getUrlParam("portalkey");return e?-1!=e.indexOf("?")?e+"&token="+i+"&srvkey="+n+"&app_key="+t.OmdUrl.appKey+"&secret="+t.OmdUrl.secret+"&portalkey="+r+"&usercode="+o:e+"?token="+i+"&srvkey="+n+"&app_key="+t.OmdUrl.appKey+"&secret="+t.OmdUrl.secret+"&portalkey="+r+"&usercode="+o:e};var J=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}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(_Q){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(_Q){ee.disabled=!0}function ie(e,t){return t&&(e+=1462),(Date.parse(e)-new Date(Date.UTC(1899,11,30)))/864e5}function oe(e,t){for(var n={},i={s:{c:1e7,r:1e7},e:{c:0,r:0}},o=0;o!=e.length;++o)for(var r=0;r!=e[o].length;++r){i.s.r>o&&(i.s.r=o),i.s.c>r&&(i.s.c=r),i.e.r<o&&(i.e.r=o),i.e.c<r&&(i.e.c=r);var a={v:e[o][r]};if(null!=a.v){var s=B.utils.encode_cell({c:r,r:o});"number"==typeof a.v?a.t="n":"boolean"==typeof a.v?a.t="b":a.v instanceof Date?(a.t="n",a.z=B.SSF._table[14],a.v=ie(a.v)):a.t="s",n[s]=a}}return i.s.c<1e7&&(n["!ref"]=B.utils.encode_range(i)),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),i=0;i!=e.length;++i)n[i]=255&e.charCodeAt(i);return t}function se(e,t){return t.map((t=>e.map((e=>t[e]))))}function le(e,t,n,i,o){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 o=le(e,t,n+1,i,s);a+=o})),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],i=e.format[1],o="0";"n"===n||"p"===n?o="0":"c"===n&&(o="¥#,##0");let r="";if(Number(i)>0)for(let e=0;e<Number(i);e++)r+="0";r&&(o=o+"."+r),"p"===n&&(o+="%"),t.numFmt=o}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),i.push(r)}return(o||0===o)&&0!==n&&(r.fIndex=o),t[n].push(r),r.num}return 0}e.forEach((e=>{le(e,t,n,i,o)}))}!function(e){if(e.URL=e.URL||e.webkitURL,e.Blob&&e.URL)try{return void new Blob}catch(_Q){}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=[]},i=function(e,t,n){this.data=e,this.size=e.length,this.type=t,this.encoding=n},o=n.prototype,r=i.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(" "),u=l.length,c=e.URL||e.webkitURL||e,A=c.createObjectURL,h=c.revokeObjectURL,d=c,f=e.btoa,p=e.atob,g=e.ArrayBuffer,m=e.Uint8Array;for(i.fake=r.fake=!0;u--;)s.prototype[l[u]]=u+1;return c.createObjectURL||(d=e.URL={}),d.createObjectURL=function(e){var t,n=e.type;return null===n&&(n="application/octet-stream"),e instanceof i?(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)):A?A.call(c,e):void 0},d.revokeObjectURL=function(e){"data:"!==e.substring(0,5)&&h&&h.call(c,e)},o.append=function(e){var n=this.data;if(m&&(e instanceof g||e instanceof m)){for(var o="",r=new m(e),l=0,u=r.length;l<u;l++)o+=String.fromCharCode(r[l]);n.push(o)}else if("Blob"===t(e)||"File"===t(e)){if(!a)throw new s("NOT_READABLE_ERR");var c=new a;n.push(c.readAsBinaryString(e))}else e instanceof i?"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))))},o.getBlob=function(e){return arguments.length||(e=null),new i(this.data.join(""),e,"raw")},o.toString=function(){return"[object BlobBuilder]"},r.slice=function(e,t,n){var o=arguments.length;return o<3&&(n=null),new i(this.data.slice(e,o>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 i=n&&n.type||"",o=new t;if(e)for(var r=0,a=e.length;r<a;r++)o.append(e[r]);return o.getBlob(i)}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||globalThis.content||globalThis);const ue="postMessage"in window;class ce{constructor(e,t,n){let i="";if(arguments.length<2?i="target error - target and name are both required":"object"!=typeof e?i="target error - target itself must be window object":"string"!=typeof t&&(i="target error - target name must be string type"),i)throw new Error(i);this.target=e,this.name=t,this.prefix=n}send(e){if(ue)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 Ae{constructor(e,t){this.targets={},this.name=e,this.listenFunc=[],this.prefix=t,this.initListen()}addTarget(e,t){const n=new ce(e,t,this.prefix);this.targets[t]=n}listen(e){let t=0;const n=this.listenFunc.length;let i=!1;for(;t<n;t++){if(this.listenFunc[t].toString()===e.toString()){this.listenFunc[t]=e,i=!0;break}}i||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 i=n[0].split("|"),o=i[0],r=i[1];for(let a=0;a<e.listenFunc.length;a++)o+r===e.prefix+e.name&&e.listenFunc[a](t)}};ue?"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 Ae(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 de(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,i,o,r=e[t][0],a=e[t][1],s=e[t][2];if(0==+a)n=i=o=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),i=e(l,t,r),o=e(l,t,r-1/3)}e[t][0]=Math.round(255*n),e[t][1]=Math.round(255*i),e[t][2]=Math.round(255*o)}}(t),function(e){let t=[],n="";for(let i=0;i<e.length;i++){let o=e[i];n="#";for(let e=0;e<o.length;e++){let t=Number(o[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 i in n)if(new RegExp(`(${i})`).test(t)){let e=n[i]+"";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)),i=Number(n.getMonth())+1;return n.getFullYear()+"-"+he.padLeftZero("00",i+"")+"-"+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),i=new Date(n-864e5),o=Number(i.getMonth())+1;return i.getFullYear()+"-"+he.padLeftZero("00",o+"")+"-"+he.padLeftZero("00",i.getDate()+"")},he.getNextMonthFirstDay=function(e){let t;t=e?new Date(e):new Date;let n=new Date(t.getFullYear(),t.getMonth()+1,1),i=Number(n.getMonth())+1;return n.getFullYear()+"-"+he.padLeftZero("00",i+"")+"-"+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),i=Number(n.getMonth())+1;return n.getFullYear()+"-"+he.padLeftZero("00",i+"")+"-"+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("?"),i="";return n.length>1&&(i=n[1].match(t)),i||n.length>2&&(i=n[2].match(t)),i?decodeURI(i[2]):""},he.formatNumber=function(e,t,n){let i=0;e?isNaN(e)||(e+=""):e="0",t?2===t.length&&Number(t[1])&&(i=Number(t[1])):t="n";let o=Number(e).toFixed(i);t.startsWith("p")&&(o=(100*Number(e)).toFixed(i));let r=o.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 i=de(n),o=!1;for(;;){o=!1;for(let t=0;t<i.length;t++)for(let n=0;n<e.length;n++)if(i[t]===e[n]){o=!0;break}if(!o){i=e.concat(i);break}i=de(n)}return i},he.getColor=function(){return de(1)[0]},he.getGlobalColor=function(e,t,n,i){let o=[];if(e>0){let r=i.$Store.state.app.mychartColor[n];e>r.length?t?(o=i.$Method.getColorList(r,e),i.$nextTick((()=>{i.$Store.commit("setMychartColor",n,o)}))):o=r.concat(r.slice(0,e-r.length)):o=r.slice(0,e)}return o},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 i="code",o="name";t.valueField&&(i=t.valueField),t.textField&&(o=t.textField);const r=t.data.findIndex((t=>t[i]===e));r>-1&&t.data[r][o]&&(n=!1===t.codeWithName?t.data[r][o]:"["+e+"]"+t.data[r][o])}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 i=n.type.toLowerCase();return"textbox"===i?e:"numberbox"===i?e||e!==n.defaultValue?he.formatNumber(e,n.format,n.notzero):e:"combobox"===i?he.formatComboBox(e,n):"datebox"===i?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 i="";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",i=i+"d="+t+"=center"}if("NumberBox"===e.type){let t="";t=void 0!==e.format?e.format:"n2",i=i+t+"=right"}if("ComboBox"===e.type){let o=e.dictkey;o||(o=e.name);let r="t="+o;!1===e.codeWithName?r+="=N":r+="=Y",i=i+r+"=left";let a="code",s="name";e.valueField&&(a=e.valueField),e.textField&&(s=e.textField),t[o]&&!n[o]?(n[o]=[],t[o].forEach((e=>{let t={};t.code=e[a],t.name=e[s],n[o].push(t)}))):null!=e.data&&(n[o]=he.copy(e.data))}return i},he.getGridField=function(e,t,n,i){let o="";for(let r=0;r<e.length;r++){let a=e[r];if(!1!==a.visible&&!1!==a.isExport){if(a.name){o+=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,i),o+=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,o+=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,i),o+=s?t+s+",":","}}}}return o.length>0&&(o=o.substring(0,o.length-1)),o},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 i=window.open("Print.htm","print");if(i.document.write(n),t){let e=document.createElement("style");e.setAttribute("type","text/css"),e.innerHTML=t,i.document.getElementsByTagName("head")[0].appendChild(e)}i.document.close(),i.print(),i.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 i={};i.data=t,i.time=Date.now(),i.expire=n,ee.set(e,JSON.stringify(i))},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,i,o=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=o[0]+"元",l;if(e<0&&(l="负",e*=-1),-1===(e=e.toString()).indexOf(".")?(t=e,n=""):(i=e.split("."),t=i[0],n=i[1].substr(0,4)),parseInt(t,10)>0){let e=0,n=t.length;for(let i=0;i<n;i++){let s=t.substr(i,1),u=n-i-1,c=u/4,A=u%4;"0"==s?e++:(e>0&&(l+=o[0]),e=0,l+=o[parseInt(s)]+r[A]),0==A&&e<4&&(l+=a[c])}l+="元"}if(""!==n){let e=n.length;for(let t=0;t<e;t++){let e=n.substr(t,1);"0"!=e&&(l+=o[Number(e)]+s[t])}}return""===l&&(l+=o[0]+"元"),l},he.exportExcel=function(e,t,n,i){var o=[],r=[];e.forEach((e=>{e.label?o.push(e.label):o.push(e.name),r.push(e.name)}));var a=se(r,t);a.unshift(o);var s="SheetJS";n&&(s=n);var u=new re,c=oe(a);u.SheetNames.push(s),u.Sheets[s]=c;var A=B.write(u,{bookType:"xlsx",bookSST:!1,type:"binary"}),h=i||"列表";l.saveAs(new Blob([ae(A)],{type:"application/octet-stream"}),h+".xlsx")},he.exportMultiSheetExcel=function(e,t){var n=new re,i=[],o=[],r="";e.forEach(((e,t)=>{i=[],o=[],e.config.forEach((e=>{e.label?i.push(e.label):i.push(e.name),o.push(e.name)}));var a=se(o,e.data);a.unshift(i),r="SheetJS"+t,e.sheetName&&(r=e.sheetName),n.SheetNames.push(r),n.Sheets[r]=oe(a)}));var a=B.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,i){let o=[];for(let l=0;l<n;l++)o.push([]);let r=[];le(e,o,0,r);let a=[],s=[];!function(e,t,n,i){let o=0;for(let r=0;r<t.length;r++){let a=new Array(e.length).fill("");o=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&&(o=n,s=n)}a[o]=t[r][e].label,t[r][e].sIndex=o;let n={s:{}};n.s.r=r,n.s.c=o,n.e={},n.e.r=n.s.r,o+=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=o-1,r!==t.length-1&&i.push(n)}n.push(a)}}(r,o,s,a);let u=[];r.forEach((e=>{u.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 i=ie(new Date(e[n.name]));t.push(i),n.excelPro.t="n"}else t.push(e[n.name])})),s.push(t)}));let c=r.length,A={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"}}},d="example.xlsx";i&&(d=i);const f=B.utils.book_new(),p=B.utils.aoa_to_sheet(s);B.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=A,g<c*n)p[l].s=A;else{let e=Object.assign({},{},h),t=g%c;Object.assign(e,r[t].excelPro),p[l].s=e}g++}p["!cols"]=u;let m=x.write(f,{bookType:"xlsx",bookSST:!1,type:"binary"});l.saveAs(new Blob([ae(m)],{type:"application/octet-stream"}),d)};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:z,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 we{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 i=`__vue-devtools-plugin-settings__${e.id}`;let o=Object.assign({},n);try{const e=localStorage.getItem(i),t=JSON.parse(e);Object.assign(o,t)}catch(_Q){}this.fallbacks={getSettings:()=>o,setSettings(e){try{localStorage.setItem(i,JSON.stringify(e))}catch(_Q){}o=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 be(e,t){const n=e,i=ge(),o=ge().__VUE_DEVTOOLS_GLOBAL_HOOK__,r=me&&n.enableEarlyProxy;if(!o||!i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&r){const e=r?new we(n,o):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else o.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,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ocpview-plus",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"title": "
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"title": "ocpviewPlus",
|
|
5
5
|
"description": "A high quality Service UI components Library with Vue.js",
|
|
6
6
|
"homepage": "",
|
|
7
7
|
"keywords": [
|
|
8
|
-
"
|
|
8
|
+
"ocpview",
|
|
9
9
|
"iview",
|
|
10
10
|
"vue",
|
|
11
11
|
"viewui",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"ui",
|
|
17
17
|
"framework"
|
|
18
18
|
],
|
|
19
|
-
"main": "dist/
|
|
19
|
+
"main": "dist/ocpviewplus.min.js",
|
|
20
20
|
"typings": "types/index.d.ts",
|
|
21
21
|
"files": [
|
|
22
22
|
"dist",
|