@indfnd/utils 0.0.33 → 0.0.34

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.0.34](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.0.33...v0.0.34) (2024-02-22)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **table:** 修改列定义中没有key时报错的问题 ([a37636e](http://git.inspur.com/imp-ec/ind-front/ind-utils/commit/a37636edde00f9dbdfd38c593e4c812fad81898d))
11
+
5
12
  ### [0.0.33](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.0.32...v0.0.33) (2024-01-31)
6
13
 
7
14
 
@@ -10547,7 +10547,7 @@ function row2column(data = [], columnGroups = [], rowKey, option = {}) {
10547
10547
  const rowGroupData = groupData[item[rowKey]] || [];
10548
10548
  const newItem = __spreadValues({}, item);
10549
10549
  leafColumns.forEach((column) => {
10550
- const columnKey = column[option.keyPropName || "key"];
10550
+ const columnKey = column[option.keyPropName || "key"] || "";
10551
10551
  const keys = columnKey.split(GROUP_SEP) || [];
10552
10552
  const value = renderRowData(rowGroupData, keys);
10553
10553
  newItem[columnKey] = value;
@@ -10568,7 +10568,7 @@ function flattenRowData(rowData = {}, leafColumns = [], option = {}) {
10568
10568
  });
10569
10569
  leafColumns.forEach((column) => {
10570
10570
  const cellData = {};
10571
- const columnKey = column[option.keyPropName || "key"];
10571
+ const columnKey = column[option.keyPropName || "key"] || "";
10572
10572
  if (columnKey.includes(GROUP_SEP)) {
10573
10573
  const keys2 = columnKey.split(GROUP_SEP);
10574
10574
  keys2.forEach((key, idx) => {
@@ -33,4 +33,4 @@ __p += '`),le&&(F+=`' +
33
33
  function print() { __p += __j.call(arguments, '') }
34
34
  `:`;
35
35
  `)+F+`return __p
36
- }`;var ne=Yc(function(){return ce(p,G+"return "+F).apply(u,v)});if(ne.source=F,sa(ne))throw ne;return ne}function AS(e){return pe(e).toLowerCase()}function bS(e){return pe(e).toUpperCase()}function OS(e,t,r){if(e=pe(e),e&&(r||t===u))return Zs(e);if(!e||!(t=ft(t)))return e;var o=$t(e),f=$t(t),p=Xs(o,f),v=js(o,f)+1;return dn(o,p,v).join("")}function CS(e,t,r){if(e=pe(e),e&&(r||t===u))return e.slice(0,tl(e)+1);if(!e||!(t=ft(t)))return e;var o=$t(e),f=js(o,$t(t))+1;return dn(o,0,f).join("")}function xS(e,t,r){if(e=pe(e),e&&(r||t===u))return e.replace(fo,"");if(!e||!(t=ft(t)))return e;var o=$t(e),f=Xs(o,$t(t));return dn(o,f).join("")}function TS(e,t){var r=ve,o=fe;if(Oe(t)){var f="separator"in t?t.separator:f;r="length"in t?te(t.length):r,o="omission"in t?ft(t.omission):o}e=pe(e);var p=e.length;if(Qn(e)){var v=$t(e);p=v.length}if(r>=p)return e;var m=r-Zn(o);if(m<1)return o;var b=v?dn(v,0,m).join(""):e.slice(0,m);if(f===u)return b+o;if(v&&(m+=b.length-m),la(f)){if(e.slice(m).search(f)){var T,$=b;for(f.global||(f=Co(f.source,pe(_s.exec(f))+"g")),f.lastIndex=0;T=f.exec($);)var F=T.index;b=b.slice(0,F===u?m:F)}}else if(e.indexOf(ft(f),m)!=m){var U=b.lastIndexOf(f);U>-1&&(b=b.slice(0,U))}return b+o}function $S(e){return e=pe(e),e&&Wv.test(e)?e.replace(vs,iy):e}var IS=ir(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),ha=kl("toUpperCase");function Hc(e,t,r){return e=pe(e),t=r?u:t,t===u?j1(e)?ay(e):G1(e):e.match(t)||[]}var Yc=ie(function(e,t){try{return ot(e,u,t)}catch(r){return sa(r)?r:new Z(r)}}),FS=Xt(function(e,t){return dt(t,function(r){r=Ht(r),Qt(e,r,aa(e[r],e))}),e});function PS(e){var t=e==null?0:e.length,r=K();return e=t?Ee(e,function(o){if(typeof o[1]!="function")throw new vt(g);return[r(o[0]),o[1]]}):[],ie(function(o){for(var f=-1;++f<t;){var p=e[f];if(ot(p[0],this,o))return ot(p[1],this,o)}})}function MS(e){return im(mt(e,w))}function ga(e){return function(){return e}}function DS(e,t){return e==null||e!==e?t:e}var RS=ql(),LS=ql(!0);function nt(e){return e}function da(e){return El(typeof e=="function"?e:mt(e,w))}function NS(e){return Al(mt(e,w))}function BS(e,t){return bl(e,mt(t,w))}var US=ie(function(e,t){return function(r){return Lr(r,e,t)}}),WS=ie(function(e,t){return function(r){return Lr(e,r,t)}});function va(e,t,r){var o=Be(t),f=Ri(t,o);r==null&&!(Oe(t)&&(f.length||!o.length))&&(r=t,t=e,e=this,f=Ri(t,Be(t)));var p=!(Oe(r)&&"chain"in r)||!!r.chain,v=en(e);return dt(f,function(m){var b=t[m];e[m]=b,v&&(e.prototype[m]=function(){var T=this.__chain__;if(p||T){var $=e(this.__wrapped__),F=$.__actions__=je(this.__actions__);return F.push({func:b,args:arguments,thisArg:e}),$.__chain__=T,$}return b.apply(e,sn([this.value()],arguments))})}),e}function HS(){return We._===this&&(We._=hy),this}function ya(){}function YS(e){return e=te(e),ie(function(t){return Ol(t,e)})}var kS=Jo(Ee),GS=Jo(zs),qS=Jo(_o);function kc(e){return ta(e)?wo(Ht(e)):Em(e)}function zS(e){return function(t){return e==null?u:$n(e,t)}}var KS=Kl(),JS=Kl(!0);function ma(){return[]}function _a(){return!1}function VS(){return{}}function QS(){return""}function ZS(){return!0}function XS(e,t){if(e=te(e),e<1||e>B)return[];var r=ue,o=ze(e,ue);t=K(t),e-=ue;for(var f=Ao(o,t);++r<e;)t(r);return f}function jS(e){return ee(e)?Ee(e,Ht):st(e)?[e]:je(sc(pe(e)))}function eA(e){var t=++cy;return pe(e)+t}var tA=Hi(function(e,t){return e+t},0),nA=Vo("ceil"),rA=Hi(function(e,t){return e/t},1),iA=Vo("floor");function uA(e){return e&&e.length?Di(e,nt,Do):u}function oA(e,t){return e&&e.length?Di(e,K(t,2),Do):u}function aA(e){return Vs(e,nt)}function fA(e,t){return Vs(e,K(t,2))}function sA(e){return e&&e.length?Di(e,nt,Bo):u}function lA(e,t){return e&&e.length?Di(e,K(t,2),Bo):u}var cA=Hi(function(e,t){return e*t},1),pA=Vo("round"),hA=Hi(function(e,t){return e-t},0);function gA(e){return e&&e.length?So(e,nt):0}function dA(e,t){return e&&e.length?So(e,K(t,2)):0}return l.after=Nw,l.ary=wc,l.assign=bE,l.assignIn=Dc,l.assignInWith=eu,l.assignWith=OE,l.at=CE,l.before=Ec,l.bind=aa,l.bindAll=FS,l.bindKey=Sc,l.castArray=Vw,l.chain=yc,l.chunk=i_,l.compact=u_,l.concat=o_,l.cond=PS,l.conforms=MS,l.constant=ga,l.countBy=gw,l.create=xE,l.curry=Ac,l.curryRight=bc,l.debounce=Oc,l.defaults=TE,l.defaultsDeep=$E,l.defer=Bw,l.delay=Uw,l.difference=a_,l.differenceBy=f_,l.differenceWith=s_,l.drop=l_,l.dropRight=c_,l.dropRightWhile=p_,l.dropWhile=h_,l.fill=g_,l.filter=vw,l.flatMap=_w,l.flatMapDeep=ww,l.flatMapDepth=Ew,l.flatten=hc,l.flattenDeep=d_,l.flattenDepth=v_,l.flip=Ww,l.flow=RS,l.flowRight=LS,l.fromPairs=y_,l.functions=LE,l.functionsIn=NE,l.groupBy=Sw,l.initial=__,l.intersection=w_,l.intersectionBy=E_,l.intersectionWith=S_,l.invert=UE,l.invertBy=WE,l.invokeMap=bw,l.iteratee=da,l.keyBy=Ow,l.keys=Be,l.keysIn=tt,l.map=Ji,l.mapKeys=YE,l.mapValues=kE,l.matches=NS,l.matchesProperty=BS,l.memoize=Qi,l.merge=GE,l.mergeWith=Rc,l.method=US,l.methodOf=WS,l.mixin=va,l.negate=Zi,l.nthArg=YS,l.omit=qE,l.omitBy=zE,l.once=Hw,l.orderBy=Cw,l.over=kS,l.overArgs=Yw,l.overEvery=GS,l.overSome=qS,l.partial=fa,l.partialRight=Cc,l.partition=xw,l.pick=KE,l.pickBy=Lc,l.property=kc,l.propertyOf=zS,l.pull=C_,l.pullAll=dc,l.pullAllBy=x_,l.pullAllWith=T_,l.pullAt=$_,l.range=KS,l.rangeRight=JS,l.rearg=kw,l.reject=Iw,l.remove=I_,l.rest=Gw,l.reverse=ua,l.sampleSize=Pw,l.set=VE,l.setWith=QE,l.shuffle=Mw,l.slice=F_,l.sortBy=Lw,l.sortedUniq=B_,l.sortedUniqBy=U_,l.split=_S,l.spread=qw,l.tail=W_,l.take=H_,l.takeRight=Y_,l.takeRightWhile=k_,l.takeWhile=G_,l.tap=uw,l.throttle=zw,l.thru=Ki,l.toArray=Fc,l.toPairs=Nc,l.toPairsIn=Bc,l.toPath=jS,l.toPlainObject=Mc,l.transform=ZE,l.unary=Kw,l.union=q_,l.unionBy=z_,l.unionWith=K_,l.uniq=J_,l.uniqBy=V_,l.uniqWith=Q_,l.unset=XE,l.unzip=oa,l.unzipWith=vc,l.update=jE,l.updateWith=eS,l.values=ar,l.valuesIn=tS,l.without=Z_,l.words=Hc,l.wrap=Jw,l.xor=X_,l.xorBy=j_,l.xorWith=ew,l.zip=tw,l.zipObject=nw,l.zipObjectDeep=rw,l.zipWith=iw,l.entries=Nc,l.entriesIn=Bc,l.extend=Dc,l.extendWith=eu,va(l,l),l.add=tA,l.attempt=Yc,l.camelCase=uS,l.capitalize=Uc,l.ceil=nA,l.clamp=nS,l.clone=Qw,l.cloneDeep=Xw,l.cloneDeepWith=jw,l.cloneWith=Zw,l.conformsTo=eE,l.deburr=Wc,l.defaultTo=DS,l.divide=rA,l.endsWith=oS,l.eq=Ft,l.escape=aS,l.escapeRegExp=fS,l.every=dw,l.find=yw,l.findIndex=cc,l.findKey=IE,l.findLast=mw,l.findLastIndex=pc,l.findLastKey=FE,l.floor=iA,l.forEach=mc,l.forEachRight=_c,l.forIn=PE,l.forInRight=ME,l.forOwn=DE,l.forOwnRight=RE,l.get=ca,l.gt=tE,l.gte=nE,l.has=BE,l.hasIn=pa,l.head=gc,l.identity=nt,l.includes=Aw,l.indexOf=m_,l.inRange=rS,l.invoke=HE,l.isArguments=Pn,l.isArray=ee,l.isArrayBuffer=rE,l.isArrayLike=et,l.isArrayLikeObject=Te,l.isBoolean=iE,l.isBuffer=vn,l.isDate=uE,l.isElement=oE,l.isEmpty=aE,l.isEqual=fE,l.isEqualWith=sE,l.isError=sa,l.isFinite=lE,l.isFunction=en,l.isInteger=xc,l.isLength=Xi,l.isMap=Tc,l.isMatch=cE,l.isMatchWith=pE,l.isNaN=hE,l.isNative=gE,l.isNil=vE,l.isNull=dE,l.isNumber=$c,l.isObject=Oe,l.isObjectLike=Ce,l.isPlainObject=Yr,l.isRegExp=la,l.isSafeInteger=yE,l.isSet=Ic,l.isString=ji,l.isSymbol=st,l.isTypedArray=or,l.isUndefined=mE,l.isWeakMap=_E,l.isWeakSet=wE,l.join=A_,l.kebabCase=sS,l.last=wt,l.lastIndexOf=b_,l.lowerCase=lS,l.lowerFirst=cS,l.lt=EE,l.lte=SE,l.max=uA,l.maxBy=oA,l.mean=aA,l.meanBy=fA,l.min=sA,l.minBy=lA,l.stubArray=ma,l.stubFalse=_a,l.stubObject=VS,l.stubString=QS,l.stubTrue=ZS,l.multiply=cA,l.nth=O_,l.noConflict=HS,l.noop=ya,l.now=Vi,l.pad=pS,l.padEnd=hS,l.padStart=gS,l.parseInt=dS,l.random=iS,l.reduce=Tw,l.reduceRight=$w,l.repeat=vS,l.replace=yS,l.result=JE,l.round=pA,l.runInContext=S,l.sample=Fw,l.size=Dw,l.snakeCase=mS,l.some=Rw,l.sortedIndex=P_,l.sortedIndexBy=M_,l.sortedIndexOf=D_,l.sortedLastIndex=R_,l.sortedLastIndexBy=L_,l.sortedLastIndexOf=N_,l.startCase=wS,l.startsWith=ES,l.subtract=hA,l.sum=gA,l.sumBy=dA,l.template=SS,l.times=XS,l.toFinite=tn,l.toInteger=te,l.toLength=Pc,l.toLower=AS,l.toNumber=Et,l.toSafeInteger=AE,l.toString=pe,l.toUpper=bS,l.trim=OS,l.trimEnd=CS,l.trimStart=xS,l.truncate=TS,l.unescape=$S,l.uniqueId=eA,l.upperCase=IS,l.upperFirst=ha,l.each=mc,l.eachRight=_c,l.first=gc,va(l,function(){var e={};return Ut(l,function(t,r){de.call(l.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),l.VERSION=a,dt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),dt(["drop","take"],function(e,t){se.prototype[e]=function(r){r=r===u?1:Me(te(r),0);var o=this.__filtered__&&!t?new se(this):this.clone();return o.__filtered__?o.__takeCount__=ze(r,o.__takeCount__):o.__views__.push({size:ze(r,ue),type:e+(o.__dir__<0?"Right":"")}),o},se.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),dt(["filter","map","takeWhile"],function(e,t){var r=t+1,o=r==z||r==R;se.prototype[e]=function(f){var p=this.clone();return p.__iteratees__.push({iteratee:K(f,3),type:r}),p.__filtered__=p.__filtered__||o,p}}),dt(["head","last"],function(e,t){var r="take"+(t?"Right":"");se.prototype[e]=function(){return this[r](1).value()[0]}}),dt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");se.prototype[e]=function(){return this.__filtered__?new se(this):this[r](1)}}),se.prototype.compact=function(){return this.filter(nt)},se.prototype.find=function(e){return this.filter(e).head()},se.prototype.findLast=function(e){return this.reverse().find(e)},se.prototype.invokeMap=ie(function(e,t){return typeof e=="function"?new se(this):this.map(function(r){return Lr(r,e,t)})}),se.prototype.reject=function(e){return this.filter(Zi(K(e)))},se.prototype.slice=function(e,t){e=te(e);var r=this;return r.__filtered__&&(e>0||t<0)?new se(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==u&&(t=te(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},se.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},se.prototype.toArray=function(){return this.take(ue)},Ut(se.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=l[o?"take"+(t=="last"?"Right":""):t],p=o||/^find/.test(t);!f||(l.prototype[t]=function(){var v=this.__wrapped__,m=o?[1]:arguments,b=v instanceof se,T=m[0],$=b||ee(v),F=function(oe){var le=f.apply(l,sn([oe],m));return o&&U?le[0]:le};$&&r&&typeof T=="function"&&T.length!=1&&(b=$=!1);var U=this.__chain__,G=!!this.__actions__.length,J=p&&!U,ne=b&&!G;if(!p&&$){v=ne?v:new se(this);var V=e.apply(v,m);return V.__actions__.push({func:Ki,args:[F],thisArg:u}),new yt(V,U)}return J&&ne?e.apply(this,m):(V=this.thru(F),J?o?V.value()[0]:V.value():V)})}),dt(["pop","push","shift","sort","splice","unshift"],function(e){var t=_i[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var p=this.value();return t.apply(ee(p)?p:[],f)}return this[r](function(v){return t.apply(ee(v)?v:[],f)})}}),Ut(se.prototype,function(e,t){var r=l[t];if(r){var o=r.name+"";de.call(tr,o)||(tr[o]=[]),tr[o].push({name:t,func:r})}}),tr[Wi(u,M).name]=[{name:"wrapper",func:u}],se.prototype.clone=$y,se.prototype.reverse=Iy,se.prototype.value=Fy,l.prototype.at=ow,l.prototype.chain=aw,l.prototype.commit=fw,l.prototype.next=sw,l.prototype.plant=cw,l.prototype.reverse=pw,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=hw,l.prototype.first=l.prototype.head,$r&&(l.prototype[$r]=lw),l},Xn=fy();bn?((bn.exports=Xn)._=Xn,go._=Xn):We._=Xn}).call(yn)})(Vu,Vu.exports);var Ae=Vu.exports;const ts="IS_ENUM",a0={1:"\u662F",0:"\u5426"},ns=[{K:"1",V:"\u662F"},{K:"0",V:"\u5426"}],f0={MANAGE_UNIT_ID:"00000000000000000000000020370001",ORG_CODE_ADMIN:"default",ORG_CODE_MKT:"08",ORG_CODE_LOG:"08",ORG_CODE_ACTIVITY:"08",ADMIN_LEVEL_IND:"01",ADMIN_LEVEL_CENTER:"02",ADMIN_LEVEL_FAC:"03",ADMIN_LEVEL_DIST:"04",ADMIN_LEVEL_COMMON_DEPT:"08",ADMIN_LEVEL_COMMON_POST:"80",LEVEL_IND:"01",LEVEL_CENTER:"02",LEVEL_FAC:"02",LEVEL_DIST:"04",LEVEL_CIGAR_DIST:"05",LEVEL_COMMON_DEPT:"03",LEVEL_COMMON_POST:"80",LEVEL_DIST_MANAGE_POST:"81",LEVEL_CUST_MANAGE_POST:"82",LEVEL_CIGAR_DIST_MANAGE_POST:"83",LEVEL_CIGAR_CUST_MANAGE_POST:"84",LEVEL_INTERNAL_POST:"85"};function s0(n=[],i="K",u="V"){return n.map(a=>({K:a[i],V:a[u]}))}function l0(n=[],i="K",u="V"){return n.reduce(a=>Mt(pt({},a),{[a[i]]:a[u]}),{})}function c0(n=[],i={}){const u=Ae.cloneDeep(n),a=Object.keys(i);return u.forEach(s=>{const c=s.field||s.key,g=["enum","select"].includes(s.type);if(a.includes(c)&&g){s.cellRendererParams||(s.cellRendererParams={});const h=i[c];s.type==="enum"?Ju(h)?s.cellRendererParams.enumList=h:s.cellRendererParams.enumData=h:s.type==="select"&&(s.cellRendererParams.datas=h)}}),u}function p0(n=[],i={}){const u=Ae.cloneDeep(n),a=Object.keys(i);return u.forEach(s=>{const c=s.formKey;if(a.includes(c)){const g=i[c];Ju(g)?s.enumList=g:s.enumData=g}}),u}const h0={bold:!0,fontSize:"14",horizontalAlignment:"center",verticalAlignment:"center"},g0={fontSize:"10",horizontalAlignment:"left",verticalAlignment:"center",topBorder:!0,bottomBorder:!0},d0={fontSize:"10",horizontalAlignment:"right",verticalAlignment:"center",topBorder:!0,bottomBorder:!0},v0={bold:!0,fontSize:"10",horizontalAlignment:"center",verticalAlignment:"center",fill:"bdc3c7",topBorder:!0,bottomBorder:!0,leftBorder:!0,rightBorder:!0},Sr={fontSize:"10",horizontalAlignment:"center",verticalAlignment:"center",topBorder:!0,bottomBorder:!0,leftBorder:!0,rightBorder:!0},y0=27,m0=18,_0=18,w0=18;function rs({columns:n,datas:i}){var u=Ae.cloneDeep(n),a=Ae.cloneDeep(i);Ae.remove(u,P=>{var L;return P.cellClass&&((L=P==null?void 0:P.cellClass)==null?void 0:L.indexOf("button"))!=-1}),a.forEach((P,L)=>{P.__seq=L+1}),Ae.forEach(u,P=>{var L;P.cellClass&&((L=P==null?void 0:P.cellClass)==null?void 0:L.indexOf("enum"))!=-1&&a.forEach(N=>{N[P.field]=P.cellRendererParams.datas[N[P.field]]})});const s=P=>{if(P.children){var L=1+Math.max(...P.children.map(N=>s(N)));return P.deepth=L,L}else return 1};var c=Math.max(...u.map(P=>{var L=s(P);return P.deepth=L,L}));console.log("calc deepth = ",c);const g=P=>{if(P.children){var L=Ae.sum(P.children.map(N=>g(N)));return P.width=L,L}else return 1};var h=Ae.sum(u.map(P=>{var L=g(P);return P.width=L,L}));console.log("calc width = ",h),console.log("now columnsClo is ",u);var d=[],y=1,E=0;function w(P,L){E+=1,P.reduce((N,re,X)=>(re.children?(N.push({text:re.excelName||re.headerName||re.title,srow:E,scol:y,erow:E,ecol:y+re.width-1}),w(re.children,N)):(N.push({text:re.excelName||re.headerName||re.title,srow:E,scol:y,erow:c,ecol:y}),y+=1),N),L),E-=1}w(u,d);var _=[];function A(P,L){P.reduce((N,re)=>(re.children?A(re.children,N):N.push(re),N),L)}A(u,_);var I=_.map(P=>P.align||"left"),D=_.map(P=>P.align=="right"||P.align=="rightNum"?"n":"s"),W=_.map(P=>P.excelWidth?P.excelWidth:P.width?Math.floor(P.width/10):10),M=_.map(P=>P.numberFormat===void 0?P.align=="rightNum"?"#,##0.0000":P.align=="right"?"#,##0.00":"":P.numberFormat);_.map((P,L)=>{P.field=P.field?P.field:P.key;var N=P.excelName||P.headerName||P.title;N=N.replace(/<br\/>/g,""),P.columnWidth!==void 0?W[L]=P.columnWidth:N&&W[L]<N.length*2&&(W[L]=N.length*2)});var q=a.map(P=>_.map((L,N)=>{L.columnWidth!==void 0?W[N]=L.columnWidth:P[L.field]&&W[N]<(""+P[L.field]).length*2&&(W[N]=(""+P[L.field]).length*2);let re=null;L.cellStyle&&(L.cellStyle instanceof Function?re=L.cellStyle(P[L.field],P,a):re=L.cellStyle);let X=null;return L.formula&&(L.formula instanceof Function?X=L.formula(P[L.field],P,a):X=L.formula),{cellStyle:re,formula:X,value:P[L.field]}}));return{deepth:c,columnAlign:I,columnType:D,columnWidth:W,exportData:q,numberFormat:M,columnTitle:d,columnsCalc:_}}var is=[];function E0(n){if(n.rowSpanColumns){let a=function(s,c){var g=Ae.findIndex(n.columns,{field:s});if(!i[s]){var h=[],d="CUR_VAL",y={};Ae.forEach(n.datas,function(E,w){var _=c?E[s]!=d||w==(u[""+w]||{}).first:E[s]!=d;if(_){if(!c&&y.first!==void 0)for(var A=y.first;A<=y.last;A++)u[""+A]={first:y.first,last:y.last};d=E[s],y={col:s,val:d,first:w,last:w,rowSpan:1},h.push(y)}else if(y.last=w,y.rowSpan=y.last-y.first+1,h.push({rowSpan:0}),!c&&w==n.datas.length-1)for(var A=y.first;A<=y.last;A++)u[""+A]={first:y.first,last:y.last}}),i[s]=h,Ae.forEach(h,function(E,w){E.rowSpan>1&&is.push({mergeRowS:w,mergeRowE:w+E.rowSpan-1,megerColS:g,megerColE:g})})}};n.rowSpanIndexCol&&(n.rowSpanIndexCol=n.rowSpanColumns[0]);var i={},u={};a(n.rowSpanIndexCol),Ae.forEach(n.rowSpanColumns,function(s){a(s,!0)})}}function S0(n){var i=rs(n);console.log("calcExportDatas",i);var u=n.title,a=i.deepth,s=n.columnAlign||i.columnAlign,c=n.columnType||i.columnType,g=i.columnTitle,h=n.columnWidth||i.columnWidth,d=s.length,y=n.paramLeft,E=n.paramRight,w=i.exportData,_=n.numberFormat||i.numberFormat;XlsxPopulate.fromBlankAsync().then(A=>{var I=A.sheet("Sheet1");I.name(u);for(var D=0;D<d;D++)I.column(D+1).width(h[D]==0?10:h[D]);var W=I.range(1,1,1,d);W.merged(!0),W.style(h0),W.cell(0,0).value(u),I.row(1).height(y0);var M=2;if(!!n.paramLeft||!!n.paramRight){var q=I.range(2,1,2,Math.round(d/2));q.cell(0,0).value(y||""),q.merged(!0),q.style(g0);var P=I.range(2,Math.round(d/2)+1,2,d);P.cell(0,0).value(E||""),P.merged(!0),P.style(d0),I.row(2).height(m0),M+=1}g.forEach(X=>{var ge=I.range(X.srow+M-1,X.scol,X.erow+M-1,X.ecol);ge.merged(!0),ge.style(v0),ge.cell(0,0).value(X.text.replace(/<br\/>/g,""))});for(let X=0;X<a;X++)I.row(M+X).height(_0);M+=a;for(var D=0;D<w.length;D++){for(var L=w[D],N=0;N<L.length;N++)if(c[N]==="s"&&L[N]?(I.cell(M+D,N+1).value(L[N].value),Sr.numberFormat=""):c[N]==="n"&&L[N]?(I.cell(M+D,N+1).value(L[N].value?parseFloat(L[N].value):L[N].value),Sr.numberFormat=_[N]):I.cell(M+D,N+1).value(""),L[N].formula&&I.cell(M+D,N+1).formula(L[N].formula),Sr.horizontalAlignment=s[N],L[N].cellStyle){let ge=Ae.merge({},Sr,L[N].cellStyle);I.cell(M+D,N+1).style(ge)}else I.cell(M+D,N+1).style(Sr);if(n.rowColor&&D%2!=0){var re=I.range(M+D,1,M+D,d);re.style({fill:"f8f8f9"})}I.row(M+D).height(w0)}n.rowSpanColumns&&(E0(Mt(pt({},n),{columns:i.columnsCalc})),Ae.forEach(is,function(X){var ge=I.range(X.mergeRowS+M,X.megerColS+1,X.mergeRowE+M,X.megerColE+1);ge.merged(!0)})),I.freezePanes(n.leftColumns||0,(n.topRows||0)+M-1),A.outputAsync().then(function(X){if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(X,u+".xlsx");else{var ge=window.URL.createObjectURL(X),xe=document.createElement("a");document.body.appendChild(xe),xe.href=ge,xe.download=u+".xlsx",xe.click(),window.URL.revokeObjectURL(ge),document.body.removeChild(xe)}})}).catch(A=>console.log(A))}function A0(n){return new Promise((i,u)=>{var a=rs(n),s=a.deepth;a.exportData;const c=new FileReader;c.onload=g=>nu(this,null,function*(){XlsxPopulate.fromDataAsync(g.target.result).then(h=>{var _;var d=h.sheet(0),y=2;(!!n.paramLeft||!!n.paramRight)&&(y+=1),y+=s;let E=[];for(let A=y;A<d._rows.length;A++){var w=d.row(A);let I={};E.push(I);for(let D=1;D<w._cells.length;D++){let W=(_=w._cells[D])==null?void 0:_._value;if(D>a.columnsCalc.length)continue;let M=a.columnsCalc[D-1];I[M.field]=W}}i(E)}).catch(h=>console.log(h))}),c.readAsArrayBuffer(n.file)})}const us=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];function b0(n){if(!n)return"";let i="";const u=us.length;for(;n>=0;){const a=n%u;i=us[a]+i,n=parseInt((n-a)/u)-1}return i}function O0(){return document.addEventListener?function(n,i,u){n&&i&&u&&n.addEventListener(i,u,!1)}:function(n,i,u){n&&i&&u&&n.attachEvent("on"+i,u)}}function C0(){return window.document.removeEventListener?function(n,i,u){n&&i&&n.removeEventListener(i,u,!1)}:function(n,i,u){n&&i&&n.detachEvent("on"+i,u)}}function x0(n,i,u){const a=O0();return a(n,i,u),a}function T0(n,i,u){const a=C0();return a(n,i,u),a}function $0(n){if(!n||n.length<6)return"";const i=n.substring(0,4),u=n.substring(4,6),a=os(parseInt(u));return`${i}H${a}`}function os(n){if(typeof n=="string"){if(isNaN(parseInt(n)))return 0;n=parseInt(n)}return n<=6?1:2}function I0(n){if(!n||n.length<6)return n;const i=n.substring(0,4),a=parseInt(n.substring(5))===1?"\u4E0A\u534A\u5E74":"\u4E0B\u534A\u5E74";return`${i}${a}`}function F0(n){if(!n||n.length<6)return n;const i=n.substring(0,4),a=parseInt(n.substring(5))*6-5,s=a<10?`0${a}`:`${a}`;return`${i}${s}`}function P0(n){if(!n||n.length<6)return n;const i=n.substring(0,4),a=parseInt(n.substring(5))*2,s=a<10?`0${a}`:`${a}`;return`${i}${s}`}const M0={aac:"audio/aac",abw:"application/x-abiword",arc:"application/x-freearc",avi:"video/x-msvideo",azw:"application/vnd.amazon.ebook",bin:"application/octet-stream",bmp:"image/bmp",bz:"application/x-bzip",bz2:"application/x-bzip2",csh:"application/x-csh",css:"text/css",csv:"text/csv",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",eot:"application/vnd.ms-fontobject",epub:"application/epub+zip",gif:"image/gif",html:"text/html",ico:"image/vnd.microsoft.icon",ics:"text/calendar",jar:"application/java-archive",jpg:"image/jpeg",jpeg:"image/jpeg",js:"text/javascript",json:"application/json",jsonld:"application/ld+json",mid:"audio/midi",midi:"audio/x-midi",mjs:"text/javascript",mp3:"audio/mpeg",mpeg:"video/mpeg",mpkg:"application/vnd.apple.installer+xml",odp:"application/vnd.oasis.opendocument.presentation",ods:"application/vnd.oasis.opendocument.spreadsheet",odt:"application/vnd.oasis.opendocument.text",oga:"audio/ogg",ogv:"video/ogg",ogx:"application/ogg",otf:"font/otf",png:"image/png",pdf:"application/pdf",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",rar:"application/x-rar-compressed",rtf:"application/rtf",sh:"application/x-sh",svg:"image/svg+xml",swf:"application/x-shockwave-flash",tar:"application/x-tar",tiff:"image/tiff",ttf:"font/ttf",txt:"text/plain",vsd:"application/vnd.visio",wav:"audio/wav",weba:"audio/webm",webm:"video/webm",webp:"image/webp",woff:"font/woff",woff2:"font/woff2",xhtml:"application/xhtml+xml",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xul:"application/vnd.mozilla.xul+xml",zip:"application/zip","7z":"application/x-7z-compressed"};function D0(n){let i="";for(n=(n||0).toString();n.length>3;)i=","+n.slice(-3)+i,n=n.slice(0,n.length-3);return n&&(i=n+i),i}function R0(n){const i=n.length,u=["\u96F6","\u58F9","\u8D30","\u53C1","\u8086","\u4F0D","\u9646","\u67D2","\u634C","\u7396"],a=["\u4EDF","\u4F70","\u62FE","\u4EBF","\u4EDF","\u4F70","\u62FE","\u4E07","\u4EDF","\u4F70","\u62FE"];let s=[],c=[],g="";for(let h=0;h<i;h++)s.push(parseInt(n[h])),c[h]=u[s[h]];for(let h=i-1,d=1;h>0;h--)c.splice(h,0,a[a.length-d++]);return g=c.join(""),i>=1&&(g+="\u5143\u6574"),g}function L0(n){if(!/^(0|[1-9]\d*)(\.\d+)?$/.test(n))return"\u6570\u636E\u975E\u6CD5";let i="\u5343\u767E\u62FE\u4EBF\u5343\u767E\u62FE\u4E07\u5343\u767E\u62FE\u5143\u89D2\u5206",u="";n+="00";let a=n.indexOf(".");a>=0&&(n=n.substring(0,a)+n.substr(a+1,2)),i=i.substr(i.length-n.length);for(let s=0;s<n.length;s++)u+="\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396".charAt(parseInt(n.charAt(s)))+i.charAt(s);return u.replace(/零(千|百|拾|角)/g,"\u96F6").replace(/(零)+/g,"\u96F6").replace(/零(万|亿|元)/g,"$1").replace(/(亿)万|壹(拾)/g,"$1$2").replace(/^元零?|零分/g,"").replace(/元$/g,"\u5143\u6574")}function N0(n,i=2){n=n.toString();let u=n.indexOf(".");return u!==-1?n=n.substring(0,i+u+1):n=n.substring(0),parseFloat(n).toFixed(i)}function as(n,i=2){if(typeof n=="number"){const a=/([0-9])+e([-0-9]+)/.exec(n+"")||[];if(a.length>2){const s=a[1],c=a[2];return Math.round(parseInt(+s+"e"+(+c+i)))/Math.pow(10,i)}return Math.round(parseInt(+n+"e"+i))/Math.pow(10,i)}return n}function B0(n,i=2){const u=parseFloat(n+"");return!isNaN(u)&&(u||u===0)?as(u,i).toFixed(i):n}const U0=n=>{if(isNaN(n))throw"numToChineseNumerals: \u6570\u636E\u975E\u6CD5";return n=Number(n),fs(n).replace(/^零/,"").replace(/^一十/,"\u5341")},W0=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],H0=["","\u5341","\u767E","\u5343"];function fs(n){if(n===0)return"";const i=Math.floor(Math.log10(n)),u=Math.floor(i/8),a=Math.floor(i%8/4);let s=Math.floor(n/Math.pow(10,4*a+8*u)),c=n%Math.pow(10,4*a+8*u),g=Ae(String(s).padStart(4,"0")).split("").map((h,d)=>W0[h]+(h==="0"?"":H0[3-d])).uniq().value().join("").replace(/零$/,"");for(let h=0;h<a;h++)g+="\u4E07";for(let h=0;h<u;h++)g+="\u4EBF";return g+fs(c)}function ss(n){return n?["\u4E00","\u4E8C","\u4E09","\u56DB"][n-1]:""}function Y0(n){if(!n||n.length<6)return"";const i=n.substring(0,4),u=n.substring(4,6),a=ls(parseInt(u));return`${i}Q${a}`}function ls(n){if(typeof n=="string"){if(isNaN(parseInt(n)))return 0;n=parseInt(n)}return Math.ceil(n/3)}function k0(n){if(!n||n.length<6)return n;const i=n.substring(0,4),u=parseInt(n.substring(5));return`${i}\u7B2C${ss(u)}\u5B63\u5EA6`}function G0(n){if(!n||n.length<6)return n;const i=n.substring(0,4),a=parseInt(n.substring(5))*3-2,s=a<10?`0${a}`:`${a}`;return`${i}${s}`}function q0(n){if(!n||n.length<6)return n;const i=n.substring(0,4),a=parseInt(n.substring(5))*3,s=a<10?`0${a}`:`${a}`;return`${i}${s}`}const Gn="__",qn="--";function Qu(n,i,u={}){const I=i,{key:a,keyProp:s,title:c,titleProp:g,titleFormatter:h,children:d}=I,y=Jc(I,["key","keyProp","title","titleProp","titleFormatter","children"]),{keyPropName:E="key",titlePropName:w="title",keyPrefix:_="",keyLastSuffix:A=""}=u;if(s)return Ae.uniqBy(n,i.keyProp).map(W=>{const M=h?h(W[g]):W[g];if(d&&d.length){const P=`${_}${s}${qn}${W[s]}${Gn}`,L=d.map(N=>Qu(n,N,Mt(pt({},u),{keyPrefix:P})));return Mt(pt({},y),{[w]:M,children:Ae.flatten(L)})}const q=A?`${Gn}${A}`:"";return Mt(pt({},y),{[E]:`${_}${s}${qn}${W[s]}${q}`,[w]:M})});if(d&&d.length){const D=`${_}${a}`,W=d.map(M=>Qu(n,M,Mt(pt({},u),{keyPrefix:D})));return Mt(pt({},y),{[w]:c,children:Ae.flatten(W)})}return Mt(pt({},y),{[E]:`${_}${a}`,[w]:c})}function Zu(n=[]){return!n||!n.length?[]:n.reduce((i,u)=>u.children?[...i,...Zu(u.children)]:[...i,u],[])}function cs(n,i){var s;if(!i.length)return;const u=i[0];if(i=i.slice(1),u.includes(qn)&&i.length){const[c,g]=u.split(qn),h=Ae.filter(n,{[c]:g});return cs(h,i)}return i.length&&console.error("\u600E\u4E48\u4F1A\u4E0D\u662F\u6700\u540E\u4E00\u5C42\u5206\u7EC4\u5462\uFF0C\u8BF7\u8054\u7CFB\u5F00\u53D1\u4EBA\u5458\u67E5\u770B\uFF01"),(s=n==null?void 0:n[0])==null?void 0:s[u]}function z0(n=[],i=[],u,a={}){const s=Ae.flatten(i.map(y=>Qu(n,y,a))),c=Zu(s),g=Ae.uniqBy(n,u),h=Ae.groupBy(n,u);return{data:g.map(y=>{const E=h[y[u]]||[],w=pt({},y);return c.forEach(_=>{const A=_[a.keyPropName||"key"],I=A.split(Gn)||[],D=cs(E,I);w[A]=D,delete w[I[I.length-1]]}),w}),columns:s}}function K0(n={},i=[],u={}){const a=[],s={};return Object.keys(n).forEach(g=>{g.includes(Gn)||(s[g]=n[g])}),i.forEach(g=>{const h={},d=g[u.keyPropName||"key"];if(d.includes(Gn)){const y=d.split(Gn);y.forEach((E,w)=>{if(E.includes(qn)&&y.length){const[_,A]=E.split(qn);h[_]=A}else if(y.length!==w+1)console.error("columns\u6709\u95EE\u9898\uFF0C\u8BF7\u68C0\u67E5\uFF01");else{const _=Ae.find(a,h);_?_[E]=n[d]:a.push(Mt(pt(pt({},s),h),{[E]:n[d]}))}})}}),a}function J0(n=[],i=[],u={}){const a=Zu(i);return n.reduce((s,c)=>[...s,...K0(c,a,u)],[])}let V0=n=>crypto.getRandomValues(new Uint8Array(n)),Q0=(n,i,u)=>{let a=(2<<Math.log(n.length-1)/Math.LN2)-1,s=-~(1.6*a*i/n.length);return(c=i)=>{let g="";for(;;){let h=u(s),d=s;for(;d--;)if(g+=n[h[d]&a]||"",g.length===c)return g}}};const Z0=((n,i=21)=>Q0(n,i,V0))("0123456789abcdef",32);function X0(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var i=Math.random()*16|0,u=n==="x"?i:i&3|8;return u.toString(16)})}function j0(n){var i=new Array("\u9A8C\u8BC1\u901A\u8FC7!","\u8EAB\u4EFD\u8BC1\u53F7\u7801\u4F4D\u6570\u4E0D\u5BF9!","\u8EAB\u4EFD\u8BC1\u53F7\u7801\u51FA\u751F\u65E5\u671F\u8D85\u51FA\u8303\u56F4\u6216\u542B\u6709\u975E\u6CD5\u5B57\u7B26!","\u8EAB\u4EFD\u8BC1\u53F7\u7801\u6821\u9A8C\u9519\u8BEF!","\u8EAB\u4EFD\u8BC1\u5730\u533A\u975E\u6CD5!"),u={11:"\u5317\u4EAC",12:"\u5929\u6D25",13:"\u6CB3\u5317",14:"\u5C71\u897F",15:"\u5185\u8499\u53E4",21:"\u8FBD\u5B81",22:"\u5409\u6797",23:"\u9ED1\u9F99\u6C5F",31:"\u4E0A\u6D77",32:"\u6C5F\u82CF",33:"\u6D59\u6C5F",34:"\u5B89\u5FBD",35:"\u798F\u5EFA",36:"\u6C5F\u897F",37:"\u5C71\u4E1C",41:"\u6CB3\u5357",42:"\u6E56\u5317",43:"\u6E56\u5357",44:"\u5E7F\u4E1C",45:"\u5E7F\u897F",46:"\u6D77\u5357",50:"\u91CD\u5E86",51:"\u56DB\u5DDD",52:"\u8D35\u5DDE",53:"\u4E91\u5357",54:"\u897F\u85CF",61:"\u9655\u897F",62:"\u7518\u8083",63:"\u9752\u6D77",64:"\u5B81\u590F",65:"\u65B0\u7586",71:"\u53F0\u6E7E",81:"\u9999\u6E2F",82:"\u6FB3\u95E8",91:"\u56FD\u5916"},a,s,c,g,h,d=new Array;if(d=n.split(""),u[parseInt(n.substr(0,2))]==null)return i[4];switch(n.length){case 15:return(parseInt(n.substr(6,2))+1900)%4==0||(parseInt(n.substr(6,2))+1900)%100==0&&(parseInt(n.substr(6,2))+1900)%4==0?h=/^[1-9][0-9]{5}19[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}$/:h=/^[1-9][0-9]{5}19[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8]))[0-9]{3}$/,h.test(n)?i[0]:i[2];case 18:return parseInt(n.substr(6,4))%4==0||parseInt(n.substr(6,4))%100==0&&parseInt(n.substr(6,4))%4==0?h=/^[1-9][0-9]{5}(19|20)[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}[0-9Xx]$/:h=/^[1-9][0-9]{5}(19|20)[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8]))[0-9]{3}[0-9Xx]$/,h.test(n)?(c=(parseInt(d[0])+parseInt(d[10]))*7+(parseInt(d[1])+parseInt(d[11]))*9+(parseInt(d[2])+parseInt(d[12]))*10+(parseInt(d[3])+parseInt(d[13]))*5+(parseInt(d[4])+parseInt(d[14]))*8+(parseInt(d[5])+parseInt(d[15]))*4+(parseInt(d[6])+parseInt(d[16]))*2+parseInt(d[7])*1+parseInt(d[8])*6+parseInt(d[9])*3,a=c%11,g="F",s="10X98765432",g=s.substr(a,1),g==d[17]?i[0]:i[3]):i[2];default:return i[1]}}function ev(n){var i=/^1[3456789]\d{9}$/;return!!i.test(n)}function tv(n){var i=/^([0-9]{3,4}-)?[0-9]{7,8}$/,u=/^((\+?86)|(\(\+86\)))?(13[0123456789][0-9]{8}|15[012356789][0-9]{8}|18[0123456789][0-9]{8}|14[57][0-9]{8}|17[678][0-9]{8})$/;return!!(u.test(n)||i.test(n))}function nv(n){return/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z]-(([DF]((?![IO])[a-zA-Z0-9](?![IO]))[0-9]{4})|([0-9]{5}[DF]))$/.test(n)?!0:/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z]-[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]$/.test(n)}const ps="ind-dict_";function rv(n){return me(`${ps}${n}`)}function iv(n,i){Se(`${ps}${n}`,i)}const hs=kt.authServerContext;function uv(n){return he.get(`${hs}/anon/dict/getDictsMap`,{params:{dictId:n}})}function gs(n){return nu(this,null,function*(){if(n===ts)return ns;const i=rv(n);if(i)return i;try{const{data:u}=yield he.get(`${hs}/dict/getDicts`,{params:{dictId:n}});return iv(n,u),u}catch(u){console.error(`getDict error dictId=${n}`,u)}})}function ov(n){return nu(this,null,function*(){const i={},u=yield Promise.all(n.map(a=>gs(a)));return n.forEach((a,s)=>{if(u[s]){const c={};u[s].forEach(g=>{c[g.K]=g.V}),i[a]={data:c,renderData:u[s]}}}),i})}const Nt=kt.authServerContext;function av(){return he.get(`${Nt}/manage/menu/getAllPermission`)}function fv(){return he.get(`${Nt}/manage/upmsMenuHistory/list`)}function sv(n){return he.post(`${Nt}/manage/upmsMenuHistory/add`,null,{params:n})}function lv(n){return he.get(`${Nt}/manage/upmsMenuHistory/delete/`+n)}function cv(){return he.get(`${Nt}/manage/upmsMenuCollect/list`)}function pv(n){return he.post(`${Nt}/manage/upmsMenuCollect/add`,null,{params:n})}function hv(n){return he.get(`${Nt}/manage/upmsMenuCollect/delete/`+n)}function gv(n){return he.post(`${Nt}/manage/upmsMenuCollect/remove`,null,{params:n})}function dv(){return he.get(`${Nt}/manage/app/list`)}function vv(){return he.get(`${Nt}/ipm/bc/basic/item/getMaxTabNum`)}const yv=kt.ossServerContext;function mv(n){return he.get(`${yv}/oss/file/get/${n}`)}const zn=kt.authServerContext;function _v({userName:n,password:i,validCodeId:u,validCodeInput:a}){const s={username:n,password:i,validCodeId:u,validCodeInput:a};return he.formPost(zn+"/sso/login",s)}function wv(){return he.get(`${zn}/manage/user/getCurrentInfo`)}function Ev(){return he.get(`${zn}/anon/user/getGlobalPolicy`)}function Sv(n){return he.post(`${zn}/manage/user/updatePassword`,n)}function Av(n){return`${zn}/anon/user/getCaptcha/`+n}function bv(){return he.get(`${zn}/sso/logout`)}const Ov=kt.ismAmServerContext;function Cv(n){return he.get(`${Ov}/tree/com/listComTree`,{params:n})}const ci=kt.ismAmServerContext;function xv(n){return he.get(`${ci}/tree/item/listItemTree`,{params:n})}function Tv(n){return he.get(`${ci}/tree/item/listComTree`,{params:n})}function $v(n){return he.get(`${ci}/tree/item/listComTree`,{params:n})}function Iv(n){return he.get(`${ci}/tree/item/listComTree`,{params:n})}const Fv=kt.ucExtServerContext;function Pv(n){return he.get(`${Fv}/tree/uc-user/listUserTree`,{params:n})}O.CONTENT_TYPE=ai,O.IS_OR_NOT_ENUM=a0,O.IS_OR_NOT_ENUM_KEY=ts,O.IS_OR_NOT_ENUM_LIST=ns,O.MIME_TYPE=M0,O.UC_ENUM=f0,O.addMenuCollectApi=pv,O.axios=he,O.checkIdCard=j0,O.checkPhone=ev,O.checkTel=tv,O.checkVehicleNo=nv,O.clearPermissionCache=Qc,O.clearSessionStorage=kr,O.clearUserInfoCache=jc,O.config=kt,O.cryptor=Rd,O.deleteMenuCollectApi=hv,O.deleteMenuHistoryApi=lv,O.exportJsonToExcel=S0,O.flattenRow2ColumnData=J0,O.formatDate=Nd,O.formatDateChinese=Bd,O.formatDecimal=N0,O.formatHalfYear=I0,O.formatQuarter=k0,O.getAppListApi=dv,O.getCaptchaURL=Av,O.getContentType=Hu,O.getDictApi=gs,O.getDictMapApi=ov,O.getDictsMapApi=uv,O.getExcelColumnIdx=b0,O.getGlobalPolicyApi=Ev,O.getHalfYear=$0,O.getHalfYearBeginMonth=F0,O.getHalfYearEndMonth=P0,O.getHalfYearNum=os,O.getItem=Iv,O.getLocalStorage=fr,O.getMaxTabNumValueApi=vv,O.getMenuCollectApi=cv,O.getMenuHistoryApi=fv,O.getOssFileApi=mv,O.getPermissionApi=av,O.getPermissionCache=lr,O.getPriceCode=Tv,O.getPriceSeg=$v,O.getQuarter=Y0,O.getQuarterBeginMonth=G0,O.getQuarterEndMonth=q0,O.getQuarterNum=ls,O.getSessionStorage=me,O.getToken=Lf,O.getType=Xf,O.getUrlParams=Pf,O.getUserInfoApi=wv,O.getUserInfoCache=Zc,O.guid=X0,O.importJsonFromExcel=A0,O.isArguments=Kd,O.isArray=Ju,O.isArrayLike=fi,O.isBoolean=Yd,O.isDate=zd,O.isDecimal=n0,O.isElement=Qd,O.isEmpty=Zd,O.isEqual=li,O.isEqualWith=o0,O.isError=Vd,O.isEven=Xd,O.isFinite=e0,O.isFunction=es,O.isInteger=t0,O.isNegative=r0,O.isNil=Zf,O.isNull=Vf,O.isNumber=an,O.isNumberEqual=u0,O.isObject=kd,O.isObjectLike=si,O.isOdd=jd,O.isPlainObject=Gd,O.isPositive=i0,O.isPromise=qd,O.isPrototype=jf,O.isRegExp=Jd,O.isString=Ku,O.isType=bt,O.isUndefined=Qf,O.listComTreeApi=Cv,O.listItemTreeApi=xv,O.listUserTreeApi=Pv,O.loginApi=_v,O.logoutApi=bv,O.menuHistoryApi=sv,O.numToChineseNumerals=U0,O.numToDX=L0,O.off=T0,O.on=x0,O.quarter2Chinese=ss,O.removeLocalStorage=Mn,O.removeMenuCollectApi=gv,O.removeSessionStorage=Ze,O.renderColumnEnums=c0,O.renderEnumData=l0,O.renderEnumList=s0,O.renderFieldEnums=p0,O.responseInterceptors=Uf,O.round=as,O.row2column=z0,O.setContentType=Df,O.setLocalStorage=sr,O.setPermissionCache=Vc,O.setSessionStorage=Se,O.setToken=yd,O.setUserInfoCache=Xc,O.str2Date=Ld,O.toChies=R0,O.toFixed=B0,O.toThousands=D0,O.updatePasswordApi=Sv,O.useConfig=Bf,O.uuid=Z0,Object.defineProperties(O,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
36
+ }`;var ne=Yc(function(){return ce(p,G+"return "+F).apply(u,v)});if(ne.source=F,sa(ne))throw ne;return ne}function AS(e){return pe(e).toLowerCase()}function bS(e){return pe(e).toUpperCase()}function OS(e,t,r){if(e=pe(e),e&&(r||t===u))return Zs(e);if(!e||!(t=ft(t)))return e;var o=$t(e),f=$t(t),p=Xs(o,f),v=js(o,f)+1;return dn(o,p,v).join("")}function CS(e,t,r){if(e=pe(e),e&&(r||t===u))return e.slice(0,tl(e)+1);if(!e||!(t=ft(t)))return e;var o=$t(e),f=js(o,$t(t))+1;return dn(o,0,f).join("")}function xS(e,t,r){if(e=pe(e),e&&(r||t===u))return e.replace(fo,"");if(!e||!(t=ft(t)))return e;var o=$t(e),f=Xs(o,$t(t));return dn(o,f).join("")}function TS(e,t){var r=ve,o=fe;if(Oe(t)){var f="separator"in t?t.separator:f;r="length"in t?te(t.length):r,o="omission"in t?ft(t.omission):o}e=pe(e);var p=e.length;if(Qn(e)){var v=$t(e);p=v.length}if(r>=p)return e;var m=r-Zn(o);if(m<1)return o;var b=v?dn(v,0,m).join(""):e.slice(0,m);if(f===u)return b+o;if(v&&(m+=b.length-m),la(f)){if(e.slice(m).search(f)){var T,$=b;for(f.global||(f=Co(f.source,pe(_s.exec(f))+"g")),f.lastIndex=0;T=f.exec($);)var F=T.index;b=b.slice(0,F===u?m:F)}}else if(e.indexOf(ft(f),m)!=m){var U=b.lastIndexOf(f);U>-1&&(b=b.slice(0,U))}return b+o}function $S(e){return e=pe(e),e&&Wv.test(e)?e.replace(vs,iy):e}var IS=ir(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),ha=kl("toUpperCase");function Hc(e,t,r){return e=pe(e),t=r?u:t,t===u?j1(e)?ay(e):G1(e):e.match(t)||[]}var Yc=ie(function(e,t){try{return ot(e,u,t)}catch(r){return sa(r)?r:new Z(r)}}),FS=Xt(function(e,t){return dt(t,function(r){r=Ht(r),Qt(e,r,aa(e[r],e))}),e});function PS(e){var t=e==null?0:e.length,r=K();return e=t?Ee(e,function(o){if(typeof o[1]!="function")throw new vt(g);return[r(o[0]),o[1]]}):[],ie(function(o){for(var f=-1;++f<t;){var p=e[f];if(ot(p[0],this,o))return ot(p[1],this,o)}})}function MS(e){return im(mt(e,w))}function ga(e){return function(){return e}}function DS(e,t){return e==null||e!==e?t:e}var RS=ql(),LS=ql(!0);function nt(e){return e}function da(e){return El(typeof e=="function"?e:mt(e,w))}function NS(e){return Al(mt(e,w))}function BS(e,t){return bl(e,mt(t,w))}var US=ie(function(e,t){return function(r){return Lr(r,e,t)}}),WS=ie(function(e,t){return function(r){return Lr(e,r,t)}});function va(e,t,r){var o=Be(t),f=Ri(t,o);r==null&&!(Oe(t)&&(f.length||!o.length))&&(r=t,t=e,e=this,f=Ri(t,Be(t)));var p=!(Oe(r)&&"chain"in r)||!!r.chain,v=en(e);return dt(f,function(m){var b=t[m];e[m]=b,v&&(e.prototype[m]=function(){var T=this.__chain__;if(p||T){var $=e(this.__wrapped__),F=$.__actions__=je(this.__actions__);return F.push({func:b,args:arguments,thisArg:e}),$.__chain__=T,$}return b.apply(e,sn([this.value()],arguments))})}),e}function HS(){return We._===this&&(We._=hy),this}function ya(){}function YS(e){return e=te(e),ie(function(t){return Ol(t,e)})}var kS=Jo(Ee),GS=Jo(zs),qS=Jo(_o);function kc(e){return ta(e)?wo(Ht(e)):Em(e)}function zS(e){return function(t){return e==null?u:$n(e,t)}}var KS=Kl(),JS=Kl(!0);function ma(){return[]}function _a(){return!1}function VS(){return{}}function QS(){return""}function ZS(){return!0}function XS(e,t){if(e=te(e),e<1||e>B)return[];var r=ue,o=ze(e,ue);t=K(t),e-=ue;for(var f=Ao(o,t);++r<e;)t(r);return f}function jS(e){return ee(e)?Ee(e,Ht):st(e)?[e]:je(sc(pe(e)))}function eA(e){var t=++cy;return pe(e)+t}var tA=Hi(function(e,t){return e+t},0),nA=Vo("ceil"),rA=Hi(function(e,t){return e/t},1),iA=Vo("floor");function uA(e){return e&&e.length?Di(e,nt,Do):u}function oA(e,t){return e&&e.length?Di(e,K(t,2),Do):u}function aA(e){return Vs(e,nt)}function fA(e,t){return Vs(e,K(t,2))}function sA(e){return e&&e.length?Di(e,nt,Bo):u}function lA(e,t){return e&&e.length?Di(e,K(t,2),Bo):u}var cA=Hi(function(e,t){return e*t},1),pA=Vo("round"),hA=Hi(function(e,t){return e-t},0);function gA(e){return e&&e.length?So(e,nt):0}function dA(e,t){return e&&e.length?So(e,K(t,2)):0}return l.after=Nw,l.ary=wc,l.assign=bE,l.assignIn=Dc,l.assignInWith=eu,l.assignWith=OE,l.at=CE,l.before=Ec,l.bind=aa,l.bindAll=FS,l.bindKey=Sc,l.castArray=Vw,l.chain=yc,l.chunk=i_,l.compact=u_,l.concat=o_,l.cond=PS,l.conforms=MS,l.constant=ga,l.countBy=gw,l.create=xE,l.curry=Ac,l.curryRight=bc,l.debounce=Oc,l.defaults=TE,l.defaultsDeep=$E,l.defer=Bw,l.delay=Uw,l.difference=a_,l.differenceBy=f_,l.differenceWith=s_,l.drop=l_,l.dropRight=c_,l.dropRightWhile=p_,l.dropWhile=h_,l.fill=g_,l.filter=vw,l.flatMap=_w,l.flatMapDeep=ww,l.flatMapDepth=Ew,l.flatten=hc,l.flattenDeep=d_,l.flattenDepth=v_,l.flip=Ww,l.flow=RS,l.flowRight=LS,l.fromPairs=y_,l.functions=LE,l.functionsIn=NE,l.groupBy=Sw,l.initial=__,l.intersection=w_,l.intersectionBy=E_,l.intersectionWith=S_,l.invert=UE,l.invertBy=WE,l.invokeMap=bw,l.iteratee=da,l.keyBy=Ow,l.keys=Be,l.keysIn=tt,l.map=Ji,l.mapKeys=YE,l.mapValues=kE,l.matches=NS,l.matchesProperty=BS,l.memoize=Qi,l.merge=GE,l.mergeWith=Rc,l.method=US,l.methodOf=WS,l.mixin=va,l.negate=Zi,l.nthArg=YS,l.omit=qE,l.omitBy=zE,l.once=Hw,l.orderBy=Cw,l.over=kS,l.overArgs=Yw,l.overEvery=GS,l.overSome=qS,l.partial=fa,l.partialRight=Cc,l.partition=xw,l.pick=KE,l.pickBy=Lc,l.property=kc,l.propertyOf=zS,l.pull=C_,l.pullAll=dc,l.pullAllBy=x_,l.pullAllWith=T_,l.pullAt=$_,l.range=KS,l.rangeRight=JS,l.rearg=kw,l.reject=Iw,l.remove=I_,l.rest=Gw,l.reverse=ua,l.sampleSize=Pw,l.set=VE,l.setWith=QE,l.shuffle=Mw,l.slice=F_,l.sortBy=Lw,l.sortedUniq=B_,l.sortedUniqBy=U_,l.split=_S,l.spread=qw,l.tail=W_,l.take=H_,l.takeRight=Y_,l.takeRightWhile=k_,l.takeWhile=G_,l.tap=uw,l.throttle=zw,l.thru=Ki,l.toArray=Fc,l.toPairs=Nc,l.toPairsIn=Bc,l.toPath=jS,l.toPlainObject=Mc,l.transform=ZE,l.unary=Kw,l.union=q_,l.unionBy=z_,l.unionWith=K_,l.uniq=J_,l.uniqBy=V_,l.uniqWith=Q_,l.unset=XE,l.unzip=oa,l.unzipWith=vc,l.update=jE,l.updateWith=eS,l.values=ar,l.valuesIn=tS,l.without=Z_,l.words=Hc,l.wrap=Jw,l.xor=X_,l.xorBy=j_,l.xorWith=ew,l.zip=tw,l.zipObject=nw,l.zipObjectDeep=rw,l.zipWith=iw,l.entries=Nc,l.entriesIn=Bc,l.extend=Dc,l.extendWith=eu,va(l,l),l.add=tA,l.attempt=Yc,l.camelCase=uS,l.capitalize=Uc,l.ceil=nA,l.clamp=nS,l.clone=Qw,l.cloneDeep=Xw,l.cloneDeepWith=jw,l.cloneWith=Zw,l.conformsTo=eE,l.deburr=Wc,l.defaultTo=DS,l.divide=rA,l.endsWith=oS,l.eq=Ft,l.escape=aS,l.escapeRegExp=fS,l.every=dw,l.find=yw,l.findIndex=cc,l.findKey=IE,l.findLast=mw,l.findLastIndex=pc,l.findLastKey=FE,l.floor=iA,l.forEach=mc,l.forEachRight=_c,l.forIn=PE,l.forInRight=ME,l.forOwn=DE,l.forOwnRight=RE,l.get=ca,l.gt=tE,l.gte=nE,l.has=BE,l.hasIn=pa,l.head=gc,l.identity=nt,l.includes=Aw,l.indexOf=m_,l.inRange=rS,l.invoke=HE,l.isArguments=Pn,l.isArray=ee,l.isArrayBuffer=rE,l.isArrayLike=et,l.isArrayLikeObject=Te,l.isBoolean=iE,l.isBuffer=vn,l.isDate=uE,l.isElement=oE,l.isEmpty=aE,l.isEqual=fE,l.isEqualWith=sE,l.isError=sa,l.isFinite=lE,l.isFunction=en,l.isInteger=xc,l.isLength=Xi,l.isMap=Tc,l.isMatch=cE,l.isMatchWith=pE,l.isNaN=hE,l.isNative=gE,l.isNil=vE,l.isNull=dE,l.isNumber=$c,l.isObject=Oe,l.isObjectLike=Ce,l.isPlainObject=Yr,l.isRegExp=la,l.isSafeInteger=yE,l.isSet=Ic,l.isString=ji,l.isSymbol=st,l.isTypedArray=or,l.isUndefined=mE,l.isWeakMap=_E,l.isWeakSet=wE,l.join=A_,l.kebabCase=sS,l.last=wt,l.lastIndexOf=b_,l.lowerCase=lS,l.lowerFirst=cS,l.lt=EE,l.lte=SE,l.max=uA,l.maxBy=oA,l.mean=aA,l.meanBy=fA,l.min=sA,l.minBy=lA,l.stubArray=ma,l.stubFalse=_a,l.stubObject=VS,l.stubString=QS,l.stubTrue=ZS,l.multiply=cA,l.nth=O_,l.noConflict=HS,l.noop=ya,l.now=Vi,l.pad=pS,l.padEnd=hS,l.padStart=gS,l.parseInt=dS,l.random=iS,l.reduce=Tw,l.reduceRight=$w,l.repeat=vS,l.replace=yS,l.result=JE,l.round=pA,l.runInContext=S,l.sample=Fw,l.size=Dw,l.snakeCase=mS,l.some=Rw,l.sortedIndex=P_,l.sortedIndexBy=M_,l.sortedIndexOf=D_,l.sortedLastIndex=R_,l.sortedLastIndexBy=L_,l.sortedLastIndexOf=N_,l.startCase=wS,l.startsWith=ES,l.subtract=hA,l.sum=gA,l.sumBy=dA,l.template=SS,l.times=XS,l.toFinite=tn,l.toInteger=te,l.toLength=Pc,l.toLower=AS,l.toNumber=Et,l.toSafeInteger=AE,l.toString=pe,l.toUpper=bS,l.trim=OS,l.trimEnd=CS,l.trimStart=xS,l.truncate=TS,l.unescape=$S,l.uniqueId=eA,l.upperCase=IS,l.upperFirst=ha,l.each=mc,l.eachRight=_c,l.first=gc,va(l,function(){var e={};return Ut(l,function(t,r){de.call(l.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),l.VERSION=a,dt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),dt(["drop","take"],function(e,t){se.prototype[e]=function(r){r=r===u?1:Me(te(r),0);var o=this.__filtered__&&!t?new se(this):this.clone();return o.__filtered__?o.__takeCount__=ze(r,o.__takeCount__):o.__views__.push({size:ze(r,ue),type:e+(o.__dir__<0?"Right":"")}),o},se.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),dt(["filter","map","takeWhile"],function(e,t){var r=t+1,o=r==z||r==R;se.prototype[e]=function(f){var p=this.clone();return p.__iteratees__.push({iteratee:K(f,3),type:r}),p.__filtered__=p.__filtered__||o,p}}),dt(["head","last"],function(e,t){var r="take"+(t?"Right":"");se.prototype[e]=function(){return this[r](1).value()[0]}}),dt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");se.prototype[e]=function(){return this.__filtered__?new se(this):this[r](1)}}),se.prototype.compact=function(){return this.filter(nt)},se.prototype.find=function(e){return this.filter(e).head()},se.prototype.findLast=function(e){return this.reverse().find(e)},se.prototype.invokeMap=ie(function(e,t){return typeof e=="function"?new se(this):this.map(function(r){return Lr(r,e,t)})}),se.prototype.reject=function(e){return this.filter(Zi(K(e)))},se.prototype.slice=function(e,t){e=te(e);var r=this;return r.__filtered__&&(e>0||t<0)?new se(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==u&&(t=te(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},se.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},se.prototype.toArray=function(){return this.take(ue)},Ut(se.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),f=l[o?"take"+(t=="last"?"Right":""):t],p=o||/^find/.test(t);!f||(l.prototype[t]=function(){var v=this.__wrapped__,m=o?[1]:arguments,b=v instanceof se,T=m[0],$=b||ee(v),F=function(oe){var le=f.apply(l,sn([oe],m));return o&&U?le[0]:le};$&&r&&typeof T=="function"&&T.length!=1&&(b=$=!1);var U=this.__chain__,G=!!this.__actions__.length,J=p&&!U,ne=b&&!G;if(!p&&$){v=ne?v:new se(this);var V=e.apply(v,m);return V.__actions__.push({func:Ki,args:[F],thisArg:u}),new yt(V,U)}return J&&ne?e.apply(this,m):(V=this.thru(F),J?o?V.value()[0]:V.value():V)})}),dt(["pop","push","shift","sort","splice","unshift"],function(e){var t=_i[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var f=arguments;if(o&&!this.__chain__){var p=this.value();return t.apply(ee(p)?p:[],f)}return this[r](function(v){return t.apply(ee(v)?v:[],f)})}}),Ut(se.prototype,function(e,t){var r=l[t];if(r){var o=r.name+"";de.call(tr,o)||(tr[o]=[]),tr[o].push({name:t,func:r})}}),tr[Wi(u,M).name]=[{name:"wrapper",func:u}],se.prototype.clone=$y,se.prototype.reverse=Iy,se.prototype.value=Fy,l.prototype.at=ow,l.prototype.chain=aw,l.prototype.commit=fw,l.prototype.next=sw,l.prototype.plant=cw,l.prototype.reverse=pw,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=hw,l.prototype.first=l.prototype.head,$r&&(l.prototype[$r]=lw),l},Xn=fy();bn?((bn.exports=Xn)._=Xn,go._=Xn):We._=Xn}).call(yn)})(Vu,Vu.exports);var Ae=Vu.exports;const ts="IS_ENUM",a0={1:"\u662F",0:"\u5426"},ns=[{K:"1",V:"\u662F"},{K:"0",V:"\u5426"}],f0={MANAGE_UNIT_ID:"00000000000000000000000020370001",ORG_CODE_ADMIN:"default",ORG_CODE_MKT:"08",ORG_CODE_LOG:"08",ORG_CODE_ACTIVITY:"08",ADMIN_LEVEL_IND:"01",ADMIN_LEVEL_CENTER:"02",ADMIN_LEVEL_FAC:"03",ADMIN_LEVEL_DIST:"04",ADMIN_LEVEL_COMMON_DEPT:"08",ADMIN_LEVEL_COMMON_POST:"80",LEVEL_IND:"01",LEVEL_CENTER:"02",LEVEL_FAC:"02",LEVEL_DIST:"04",LEVEL_CIGAR_DIST:"05",LEVEL_COMMON_DEPT:"03",LEVEL_COMMON_POST:"80",LEVEL_DIST_MANAGE_POST:"81",LEVEL_CUST_MANAGE_POST:"82",LEVEL_CIGAR_DIST_MANAGE_POST:"83",LEVEL_CIGAR_CUST_MANAGE_POST:"84",LEVEL_INTERNAL_POST:"85"};function s0(n=[],i="K",u="V"){return n.map(a=>({K:a[i],V:a[u]}))}function l0(n=[],i="K",u="V"){return n.reduce(a=>Mt(pt({},a),{[a[i]]:a[u]}),{})}function c0(n=[],i={}){const u=Ae.cloneDeep(n),a=Object.keys(i);return u.forEach(s=>{const c=s.field||s.key,g=["enum","select"].includes(s.type);if(a.includes(c)&&g){s.cellRendererParams||(s.cellRendererParams={});const h=i[c];s.type==="enum"?Ju(h)?s.cellRendererParams.enumList=h:s.cellRendererParams.enumData=h:s.type==="select"&&(s.cellRendererParams.datas=h)}}),u}function p0(n=[],i={}){const u=Ae.cloneDeep(n),a=Object.keys(i);return u.forEach(s=>{const c=s.formKey;if(a.includes(c)){const g=i[c];Ju(g)?s.enumList=g:s.enumData=g}}),u}const h0={bold:!0,fontSize:"14",horizontalAlignment:"center",verticalAlignment:"center"},g0={fontSize:"10",horizontalAlignment:"left",verticalAlignment:"center",topBorder:!0,bottomBorder:!0},d0={fontSize:"10",horizontalAlignment:"right",verticalAlignment:"center",topBorder:!0,bottomBorder:!0},v0={bold:!0,fontSize:"10",horizontalAlignment:"center",verticalAlignment:"center",fill:"bdc3c7",topBorder:!0,bottomBorder:!0,leftBorder:!0,rightBorder:!0},Sr={fontSize:"10",horizontalAlignment:"center",verticalAlignment:"center",topBorder:!0,bottomBorder:!0,leftBorder:!0,rightBorder:!0},y0=27,m0=18,_0=18,w0=18;function rs({columns:n,datas:i}){var u=Ae.cloneDeep(n),a=Ae.cloneDeep(i);Ae.remove(u,P=>{var L;return P.cellClass&&((L=P==null?void 0:P.cellClass)==null?void 0:L.indexOf("button"))!=-1}),a.forEach((P,L)=>{P.__seq=L+1}),Ae.forEach(u,P=>{var L;P.cellClass&&((L=P==null?void 0:P.cellClass)==null?void 0:L.indexOf("enum"))!=-1&&a.forEach(N=>{N[P.field]=P.cellRendererParams.datas[N[P.field]]})});const s=P=>{if(P.children){var L=1+Math.max(...P.children.map(N=>s(N)));return P.deepth=L,L}else return 1};var c=Math.max(...u.map(P=>{var L=s(P);return P.deepth=L,L}));console.log("calc deepth = ",c);const g=P=>{if(P.children){var L=Ae.sum(P.children.map(N=>g(N)));return P.width=L,L}else return 1};var h=Ae.sum(u.map(P=>{var L=g(P);return P.width=L,L}));console.log("calc width = ",h),console.log("now columnsClo is ",u);var d=[],y=1,E=0;function w(P,L){E+=1,P.reduce((N,re,X)=>(re.children?(N.push({text:re.excelName||re.headerName||re.title,srow:E,scol:y,erow:E,ecol:y+re.width-1}),w(re.children,N)):(N.push({text:re.excelName||re.headerName||re.title,srow:E,scol:y,erow:c,ecol:y}),y+=1),N),L),E-=1}w(u,d);var _=[];function A(P,L){P.reduce((N,re)=>(re.children?A(re.children,N):N.push(re),N),L)}A(u,_);var I=_.map(P=>P.align||"left"),D=_.map(P=>P.align=="right"||P.align=="rightNum"?"n":"s"),W=_.map(P=>P.excelWidth?P.excelWidth:P.width?Math.floor(P.width/10):10),M=_.map(P=>P.numberFormat===void 0?P.align=="rightNum"?"#,##0.0000":P.align=="right"?"#,##0.00":"":P.numberFormat);_.map((P,L)=>{P.field=P.field?P.field:P.key;var N=P.excelName||P.headerName||P.title;N=N.replace(/<br\/>/g,""),P.columnWidth!==void 0?W[L]=P.columnWidth:N&&W[L]<N.length*2&&(W[L]=N.length*2)});var q=a.map(P=>_.map((L,N)=>{L.columnWidth!==void 0?W[N]=L.columnWidth:P[L.field]&&W[N]<(""+P[L.field]).length*2&&(W[N]=(""+P[L.field]).length*2);let re=null;L.cellStyle&&(L.cellStyle instanceof Function?re=L.cellStyle(P[L.field],P,a):re=L.cellStyle);let X=null;return L.formula&&(L.formula instanceof Function?X=L.formula(P[L.field],P,a):X=L.formula),{cellStyle:re,formula:X,value:P[L.field]}}));return{deepth:c,columnAlign:I,columnType:D,columnWidth:W,exportData:q,numberFormat:M,columnTitle:d,columnsCalc:_}}var is=[];function E0(n){if(n.rowSpanColumns){let a=function(s,c){var g=Ae.findIndex(n.columns,{field:s});if(!i[s]){var h=[],d="CUR_VAL",y={};Ae.forEach(n.datas,function(E,w){var _=c?E[s]!=d||w==(u[""+w]||{}).first:E[s]!=d;if(_){if(!c&&y.first!==void 0)for(var A=y.first;A<=y.last;A++)u[""+A]={first:y.first,last:y.last};d=E[s],y={col:s,val:d,first:w,last:w,rowSpan:1},h.push(y)}else if(y.last=w,y.rowSpan=y.last-y.first+1,h.push({rowSpan:0}),!c&&w==n.datas.length-1)for(var A=y.first;A<=y.last;A++)u[""+A]={first:y.first,last:y.last}}),i[s]=h,Ae.forEach(h,function(E,w){E.rowSpan>1&&is.push({mergeRowS:w,mergeRowE:w+E.rowSpan-1,megerColS:g,megerColE:g})})}};n.rowSpanIndexCol&&(n.rowSpanIndexCol=n.rowSpanColumns[0]);var i={},u={};a(n.rowSpanIndexCol),Ae.forEach(n.rowSpanColumns,function(s){a(s,!0)})}}function S0(n){var i=rs(n);console.log("calcExportDatas",i);var u=n.title,a=i.deepth,s=n.columnAlign||i.columnAlign,c=n.columnType||i.columnType,g=i.columnTitle,h=n.columnWidth||i.columnWidth,d=s.length,y=n.paramLeft,E=n.paramRight,w=i.exportData,_=n.numberFormat||i.numberFormat;XlsxPopulate.fromBlankAsync().then(A=>{var I=A.sheet("Sheet1");I.name(u);for(var D=0;D<d;D++)I.column(D+1).width(h[D]==0?10:h[D]);var W=I.range(1,1,1,d);W.merged(!0),W.style(h0),W.cell(0,0).value(u),I.row(1).height(y0);var M=2;if(!!n.paramLeft||!!n.paramRight){var q=I.range(2,1,2,Math.round(d/2));q.cell(0,0).value(y||""),q.merged(!0),q.style(g0);var P=I.range(2,Math.round(d/2)+1,2,d);P.cell(0,0).value(E||""),P.merged(!0),P.style(d0),I.row(2).height(m0),M+=1}g.forEach(X=>{var ge=I.range(X.srow+M-1,X.scol,X.erow+M-1,X.ecol);ge.merged(!0),ge.style(v0),ge.cell(0,0).value(X.text.replace(/<br\/>/g,""))});for(let X=0;X<a;X++)I.row(M+X).height(_0);M+=a;for(var D=0;D<w.length;D++){for(var L=w[D],N=0;N<L.length;N++)if(c[N]==="s"&&L[N]?(I.cell(M+D,N+1).value(L[N].value),Sr.numberFormat=""):c[N]==="n"&&L[N]?(I.cell(M+D,N+1).value(L[N].value?parseFloat(L[N].value):L[N].value),Sr.numberFormat=_[N]):I.cell(M+D,N+1).value(""),L[N].formula&&I.cell(M+D,N+1).formula(L[N].formula),Sr.horizontalAlignment=s[N],L[N].cellStyle){let ge=Ae.merge({},Sr,L[N].cellStyle);I.cell(M+D,N+1).style(ge)}else I.cell(M+D,N+1).style(Sr);if(n.rowColor&&D%2!=0){var re=I.range(M+D,1,M+D,d);re.style({fill:"f8f8f9"})}I.row(M+D).height(w0)}n.rowSpanColumns&&(E0(Mt(pt({},n),{columns:i.columnsCalc})),Ae.forEach(is,function(X){var ge=I.range(X.mergeRowS+M,X.megerColS+1,X.mergeRowE+M,X.megerColE+1);ge.merged(!0)})),I.freezePanes(n.leftColumns||0,(n.topRows||0)+M-1),A.outputAsync().then(function(X){if(window.navigator&&window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(X,u+".xlsx");else{var ge=window.URL.createObjectURL(X),xe=document.createElement("a");document.body.appendChild(xe),xe.href=ge,xe.download=u+".xlsx",xe.click(),window.URL.revokeObjectURL(ge),document.body.removeChild(xe)}})}).catch(A=>console.log(A))}function A0(n){return new Promise((i,u)=>{var a=rs(n),s=a.deepth;a.exportData;const c=new FileReader;c.onload=g=>nu(this,null,function*(){XlsxPopulate.fromDataAsync(g.target.result).then(h=>{var _;var d=h.sheet(0),y=2;(!!n.paramLeft||!!n.paramRight)&&(y+=1),y+=s;let E=[];for(let A=y;A<d._rows.length;A++){var w=d.row(A);let I={};E.push(I);for(let D=1;D<w._cells.length;D++){let W=(_=w._cells[D])==null?void 0:_._value;if(D>a.columnsCalc.length)continue;let M=a.columnsCalc[D-1];I[M.field]=W}}i(E)}).catch(h=>console.log(h))}),c.readAsArrayBuffer(n.file)})}const us=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];function b0(n){if(!n)return"";let i="";const u=us.length;for(;n>=0;){const a=n%u;i=us[a]+i,n=parseInt((n-a)/u)-1}return i}function O0(){return document.addEventListener?function(n,i,u){n&&i&&u&&n.addEventListener(i,u,!1)}:function(n,i,u){n&&i&&u&&n.attachEvent("on"+i,u)}}function C0(){return window.document.removeEventListener?function(n,i,u){n&&i&&n.removeEventListener(i,u,!1)}:function(n,i,u){n&&i&&n.detachEvent("on"+i,u)}}function x0(n,i,u){const a=O0();return a(n,i,u),a}function T0(n,i,u){const a=C0();return a(n,i,u),a}function $0(n){if(!n||n.length<6)return"";const i=n.substring(0,4),u=n.substring(4,6),a=os(parseInt(u));return`${i}H${a}`}function os(n){if(typeof n=="string"){if(isNaN(parseInt(n)))return 0;n=parseInt(n)}return n<=6?1:2}function I0(n){if(!n||n.length<6)return n;const i=n.substring(0,4),a=parseInt(n.substring(5))===1?"\u4E0A\u534A\u5E74":"\u4E0B\u534A\u5E74";return`${i}${a}`}function F0(n){if(!n||n.length<6)return n;const i=n.substring(0,4),a=parseInt(n.substring(5))*6-5,s=a<10?`0${a}`:`${a}`;return`${i}${s}`}function P0(n){if(!n||n.length<6)return n;const i=n.substring(0,4),a=parseInt(n.substring(5))*2,s=a<10?`0${a}`:`${a}`;return`${i}${s}`}const M0={aac:"audio/aac",abw:"application/x-abiword",arc:"application/x-freearc",avi:"video/x-msvideo",azw:"application/vnd.amazon.ebook",bin:"application/octet-stream",bmp:"image/bmp",bz:"application/x-bzip",bz2:"application/x-bzip2",csh:"application/x-csh",css:"text/css",csv:"text/csv",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",eot:"application/vnd.ms-fontobject",epub:"application/epub+zip",gif:"image/gif",html:"text/html",ico:"image/vnd.microsoft.icon",ics:"text/calendar",jar:"application/java-archive",jpg:"image/jpeg",jpeg:"image/jpeg",js:"text/javascript",json:"application/json",jsonld:"application/ld+json",mid:"audio/midi",midi:"audio/x-midi",mjs:"text/javascript",mp3:"audio/mpeg",mpeg:"video/mpeg",mpkg:"application/vnd.apple.installer+xml",odp:"application/vnd.oasis.opendocument.presentation",ods:"application/vnd.oasis.opendocument.spreadsheet",odt:"application/vnd.oasis.opendocument.text",oga:"audio/ogg",ogv:"video/ogg",ogx:"application/ogg",otf:"font/otf",png:"image/png",pdf:"application/pdf",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",rar:"application/x-rar-compressed",rtf:"application/rtf",sh:"application/x-sh",svg:"image/svg+xml",swf:"application/x-shockwave-flash",tar:"application/x-tar",tiff:"image/tiff",ttf:"font/ttf",txt:"text/plain",vsd:"application/vnd.visio",wav:"audio/wav",weba:"audio/webm",webm:"video/webm",webp:"image/webp",woff:"font/woff",woff2:"font/woff2",xhtml:"application/xhtml+xml",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xul:"application/vnd.mozilla.xul+xml",zip:"application/zip","7z":"application/x-7z-compressed"};function D0(n){let i="";for(n=(n||0).toString();n.length>3;)i=","+n.slice(-3)+i,n=n.slice(0,n.length-3);return n&&(i=n+i),i}function R0(n){const i=n.length,u=["\u96F6","\u58F9","\u8D30","\u53C1","\u8086","\u4F0D","\u9646","\u67D2","\u634C","\u7396"],a=["\u4EDF","\u4F70","\u62FE","\u4EBF","\u4EDF","\u4F70","\u62FE","\u4E07","\u4EDF","\u4F70","\u62FE"];let s=[],c=[],g="";for(let h=0;h<i;h++)s.push(parseInt(n[h])),c[h]=u[s[h]];for(let h=i-1,d=1;h>0;h--)c.splice(h,0,a[a.length-d++]);return g=c.join(""),i>=1&&(g+="\u5143\u6574"),g}function L0(n){if(!/^(0|[1-9]\d*)(\.\d+)?$/.test(n))return"\u6570\u636E\u975E\u6CD5";let i="\u5343\u767E\u62FE\u4EBF\u5343\u767E\u62FE\u4E07\u5343\u767E\u62FE\u5143\u89D2\u5206",u="";n+="00";let a=n.indexOf(".");a>=0&&(n=n.substring(0,a)+n.substr(a+1,2)),i=i.substr(i.length-n.length);for(let s=0;s<n.length;s++)u+="\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396".charAt(parseInt(n.charAt(s)))+i.charAt(s);return u.replace(/零(千|百|拾|角)/g,"\u96F6").replace(/(零)+/g,"\u96F6").replace(/零(万|亿|元)/g,"$1").replace(/(亿)万|壹(拾)/g,"$1$2").replace(/^元零?|零分/g,"").replace(/元$/g,"\u5143\u6574")}function N0(n,i=2){n=n.toString();let u=n.indexOf(".");return u!==-1?n=n.substring(0,i+u+1):n=n.substring(0),parseFloat(n).toFixed(i)}function as(n,i=2){if(typeof n=="number"){const a=/([0-9])+e([-0-9]+)/.exec(n+"")||[];if(a.length>2){const s=a[1],c=a[2];return Math.round(parseInt(+s+"e"+(+c+i)))/Math.pow(10,i)}return Math.round(parseInt(+n+"e"+i))/Math.pow(10,i)}return n}function B0(n,i=2){const u=parseFloat(n+"");return!isNaN(u)&&(u||u===0)?as(u,i).toFixed(i):n}const U0=n=>{if(isNaN(n))throw"numToChineseNumerals: \u6570\u636E\u975E\u6CD5";return n=Number(n),fs(n).replace(/^零/,"").replace(/^一十/,"\u5341")},W0=["\u96F6","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D"],H0=["","\u5341","\u767E","\u5343"];function fs(n){if(n===0)return"";const i=Math.floor(Math.log10(n)),u=Math.floor(i/8),a=Math.floor(i%8/4);let s=Math.floor(n/Math.pow(10,4*a+8*u)),c=n%Math.pow(10,4*a+8*u),g=Ae(String(s).padStart(4,"0")).split("").map((h,d)=>W0[h]+(h==="0"?"":H0[3-d])).uniq().value().join("").replace(/零$/,"");for(let h=0;h<a;h++)g+="\u4E07";for(let h=0;h<u;h++)g+="\u4EBF";return g+fs(c)}function ss(n){return n?["\u4E00","\u4E8C","\u4E09","\u56DB"][n-1]:""}function Y0(n){if(!n||n.length<6)return"";const i=n.substring(0,4),u=n.substring(4,6),a=ls(parseInt(u));return`${i}Q${a}`}function ls(n){if(typeof n=="string"){if(isNaN(parseInt(n)))return 0;n=parseInt(n)}return Math.ceil(n/3)}function k0(n){if(!n||n.length<6)return n;const i=n.substring(0,4),u=parseInt(n.substring(5));return`${i}\u7B2C${ss(u)}\u5B63\u5EA6`}function G0(n){if(!n||n.length<6)return n;const i=n.substring(0,4),a=parseInt(n.substring(5))*3-2,s=a<10?`0${a}`:`${a}`;return`${i}${s}`}function q0(n){if(!n||n.length<6)return n;const i=n.substring(0,4),a=parseInt(n.substring(5))*3,s=a<10?`0${a}`:`${a}`;return`${i}${s}`}const Gn="__",qn="--";function Qu(n,i,u={}){const I=i,{key:a,keyProp:s,title:c,titleProp:g,titleFormatter:h,children:d}=I,y=Jc(I,["key","keyProp","title","titleProp","titleFormatter","children"]),{keyPropName:E="key",titlePropName:w="title",keyPrefix:_="",keyLastSuffix:A=""}=u;if(s)return Ae.uniqBy(n,i.keyProp).map(W=>{const M=h?h(W[g]):W[g];if(d&&d.length){const P=`${_}${s}${qn}${W[s]}${Gn}`,L=d.map(N=>Qu(n,N,Mt(pt({},u),{keyPrefix:P})));return Mt(pt({},y),{[w]:M,children:Ae.flatten(L)})}const q=A?`${Gn}${A}`:"";return Mt(pt({},y),{[E]:`${_}${s}${qn}${W[s]}${q}`,[w]:M})});if(d&&d.length){const D=`${_}${a}`,W=d.map(M=>Qu(n,M,Mt(pt({},u),{keyPrefix:D})));return Mt(pt({},y),{[w]:c,children:Ae.flatten(W)})}return Mt(pt({},y),{[E]:`${_}${a}`,[w]:c})}function Zu(n=[]){return!n||!n.length?[]:n.reduce((i,u)=>u.children?[...i,...Zu(u.children)]:[...i,u],[])}function cs(n,i){var s;if(!i.length)return;const u=i[0];if(i=i.slice(1),u.includes(qn)&&i.length){const[c,g]=u.split(qn),h=Ae.filter(n,{[c]:g});return cs(h,i)}return i.length&&console.error("\u600E\u4E48\u4F1A\u4E0D\u662F\u6700\u540E\u4E00\u5C42\u5206\u7EC4\u5462\uFF0C\u8BF7\u8054\u7CFB\u5F00\u53D1\u4EBA\u5458\u67E5\u770B\uFF01"),(s=n==null?void 0:n[0])==null?void 0:s[u]}function z0(n=[],i=[],u,a={}){const s=Ae.flatten(i.map(y=>Qu(n,y,a))),c=Zu(s),g=Ae.uniqBy(n,u),h=Ae.groupBy(n,u);return{data:g.map(y=>{const E=h[y[u]]||[],w=pt({},y);return c.forEach(_=>{const A=_[a.keyPropName||"key"]||"",I=A.split(Gn)||[],D=cs(E,I);w[A]=D,delete w[I[I.length-1]]}),w}),columns:s}}function K0(n={},i=[],u={}){const a=[],s={};return Object.keys(n).forEach(g=>{g.includes(Gn)||(s[g]=n[g])}),i.forEach(g=>{const h={},d=g[u.keyPropName||"key"]||"";if(d.includes(Gn)){const y=d.split(Gn);y.forEach((E,w)=>{if(E.includes(qn)&&y.length){const[_,A]=E.split(qn);h[_]=A}else if(y.length!==w+1)console.error("columns\u6709\u95EE\u9898\uFF0C\u8BF7\u68C0\u67E5\uFF01");else{const _=Ae.find(a,h);_?_[E]=n[d]:a.push(Mt(pt(pt({},s),h),{[E]:n[d]}))}})}}),a}function J0(n=[],i=[],u={}){const a=Zu(i);return n.reduce((s,c)=>[...s,...K0(c,a,u)],[])}let V0=n=>crypto.getRandomValues(new Uint8Array(n)),Q0=(n,i,u)=>{let a=(2<<Math.log(n.length-1)/Math.LN2)-1,s=-~(1.6*a*i/n.length);return(c=i)=>{let g="";for(;;){let h=u(s),d=s;for(;d--;)if(g+=n[h[d]&a]||"",g.length===c)return g}}};const Z0=((n,i=21)=>Q0(n,i,V0))("0123456789abcdef",32);function X0(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var i=Math.random()*16|0,u=n==="x"?i:i&3|8;return u.toString(16)})}function j0(n){var i=new Array("\u9A8C\u8BC1\u901A\u8FC7!","\u8EAB\u4EFD\u8BC1\u53F7\u7801\u4F4D\u6570\u4E0D\u5BF9!","\u8EAB\u4EFD\u8BC1\u53F7\u7801\u51FA\u751F\u65E5\u671F\u8D85\u51FA\u8303\u56F4\u6216\u542B\u6709\u975E\u6CD5\u5B57\u7B26!","\u8EAB\u4EFD\u8BC1\u53F7\u7801\u6821\u9A8C\u9519\u8BEF!","\u8EAB\u4EFD\u8BC1\u5730\u533A\u975E\u6CD5!"),u={11:"\u5317\u4EAC",12:"\u5929\u6D25",13:"\u6CB3\u5317",14:"\u5C71\u897F",15:"\u5185\u8499\u53E4",21:"\u8FBD\u5B81",22:"\u5409\u6797",23:"\u9ED1\u9F99\u6C5F",31:"\u4E0A\u6D77",32:"\u6C5F\u82CF",33:"\u6D59\u6C5F",34:"\u5B89\u5FBD",35:"\u798F\u5EFA",36:"\u6C5F\u897F",37:"\u5C71\u4E1C",41:"\u6CB3\u5357",42:"\u6E56\u5317",43:"\u6E56\u5357",44:"\u5E7F\u4E1C",45:"\u5E7F\u897F",46:"\u6D77\u5357",50:"\u91CD\u5E86",51:"\u56DB\u5DDD",52:"\u8D35\u5DDE",53:"\u4E91\u5357",54:"\u897F\u85CF",61:"\u9655\u897F",62:"\u7518\u8083",63:"\u9752\u6D77",64:"\u5B81\u590F",65:"\u65B0\u7586",71:"\u53F0\u6E7E",81:"\u9999\u6E2F",82:"\u6FB3\u95E8",91:"\u56FD\u5916"},a,s,c,g,h,d=new Array;if(d=n.split(""),u[parseInt(n.substr(0,2))]==null)return i[4];switch(n.length){case 15:return(parseInt(n.substr(6,2))+1900)%4==0||(parseInt(n.substr(6,2))+1900)%100==0&&(parseInt(n.substr(6,2))+1900)%4==0?h=/^[1-9][0-9]{5}19[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}$/:h=/^[1-9][0-9]{5}19[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8]))[0-9]{3}$/,h.test(n)?i[0]:i[2];case 18:return parseInt(n.substr(6,4))%4==0||parseInt(n.substr(6,4))%100==0&&parseInt(n.substr(6,4))%4==0?h=/^[1-9][0-9]{5}(19|20)[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|[1-2][0-9]))[0-9]{3}[0-9Xx]$/:h=/^[1-9][0-9]{5}(19|20)[0-9]{2}((01|03|05|07|08|10|12)(0[1-9]|[1-2][0-9]|3[0-1])|(04|06|09|11)(0[1-9]|[1-2][0-9]|30)|02(0[1-9]|1[0-9]|2[0-8]))[0-9]{3}[0-9Xx]$/,h.test(n)?(c=(parseInt(d[0])+parseInt(d[10]))*7+(parseInt(d[1])+parseInt(d[11]))*9+(parseInt(d[2])+parseInt(d[12]))*10+(parseInt(d[3])+parseInt(d[13]))*5+(parseInt(d[4])+parseInt(d[14]))*8+(parseInt(d[5])+parseInt(d[15]))*4+(parseInt(d[6])+parseInt(d[16]))*2+parseInt(d[7])*1+parseInt(d[8])*6+parseInt(d[9])*3,a=c%11,g="F",s="10X98765432",g=s.substr(a,1),g==d[17]?i[0]:i[3]):i[2];default:return i[1]}}function ev(n){var i=/^1[3456789]\d{9}$/;return!!i.test(n)}function tv(n){var i=/^([0-9]{3,4}-)?[0-9]{7,8}$/,u=/^((\+?86)|(\(\+86\)))?(13[0123456789][0-9]{8}|15[012356789][0-9]{8}|18[0123456789][0-9]{8}|14[57][0-9]{8}|17[678][0-9]{8})$/;return!!(u.test(n)||i.test(n))}function nv(n){return/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z]-(([DF]((?![IO])[a-zA-Z0-9](?![IO]))[0-9]{4})|([0-9]{5}[DF]))$/.test(n)?!0:/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z]-[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]$/.test(n)}const ps="ind-dict_";function rv(n){return me(`${ps}${n}`)}function iv(n,i){Se(`${ps}${n}`,i)}const hs=kt.authServerContext;function uv(n){return he.get(`${hs}/anon/dict/getDictsMap`,{params:{dictId:n}})}function gs(n){return nu(this,null,function*(){if(n===ts)return ns;const i=rv(n);if(i)return i;try{const{data:u}=yield he.get(`${hs}/dict/getDicts`,{params:{dictId:n}});return iv(n,u),u}catch(u){console.error(`getDict error dictId=${n}`,u)}})}function ov(n){return nu(this,null,function*(){const i={},u=yield Promise.all(n.map(a=>gs(a)));return n.forEach((a,s)=>{if(u[s]){const c={};u[s].forEach(g=>{c[g.K]=g.V}),i[a]={data:c,renderData:u[s]}}}),i})}const Nt=kt.authServerContext;function av(){return he.get(`${Nt}/manage/menu/getAllPermission`)}function fv(){return he.get(`${Nt}/manage/upmsMenuHistory/list`)}function sv(n){return he.post(`${Nt}/manage/upmsMenuHistory/add`,null,{params:n})}function lv(n){return he.get(`${Nt}/manage/upmsMenuHistory/delete/`+n)}function cv(){return he.get(`${Nt}/manage/upmsMenuCollect/list`)}function pv(n){return he.post(`${Nt}/manage/upmsMenuCollect/add`,null,{params:n})}function hv(n){return he.get(`${Nt}/manage/upmsMenuCollect/delete/`+n)}function gv(n){return he.post(`${Nt}/manage/upmsMenuCollect/remove`,null,{params:n})}function dv(){return he.get(`${Nt}/manage/app/list`)}function vv(){return he.get(`${Nt}/ipm/bc/basic/item/getMaxTabNum`)}const yv=kt.ossServerContext;function mv(n){return he.get(`${yv}/oss/file/get/${n}`)}const zn=kt.authServerContext;function _v({userName:n,password:i,validCodeId:u,validCodeInput:a}){const s={username:n,password:i,validCodeId:u,validCodeInput:a};return he.formPost(zn+"/sso/login",s)}function wv(){return he.get(`${zn}/manage/user/getCurrentInfo`)}function Ev(){return he.get(`${zn}/anon/user/getGlobalPolicy`)}function Sv(n){return he.post(`${zn}/manage/user/updatePassword`,n)}function Av(n){return`${zn}/anon/user/getCaptcha/`+n}function bv(){return he.get(`${zn}/sso/logout`)}const Ov=kt.ismAmServerContext;function Cv(n){return he.get(`${Ov}/tree/com/listComTree`,{params:n})}const ci=kt.ismAmServerContext;function xv(n){return he.get(`${ci}/tree/item/listItemTree`,{params:n})}function Tv(n){return he.get(`${ci}/tree/item/listComTree`,{params:n})}function $v(n){return he.get(`${ci}/tree/item/listComTree`,{params:n})}function Iv(n){return he.get(`${ci}/tree/item/listComTree`,{params:n})}const Fv=kt.ucExtServerContext;function Pv(n){return he.get(`${Fv}/tree/uc-user/listUserTree`,{params:n})}O.CONTENT_TYPE=ai,O.IS_OR_NOT_ENUM=a0,O.IS_OR_NOT_ENUM_KEY=ts,O.IS_OR_NOT_ENUM_LIST=ns,O.MIME_TYPE=M0,O.UC_ENUM=f0,O.addMenuCollectApi=pv,O.axios=he,O.checkIdCard=j0,O.checkPhone=ev,O.checkTel=tv,O.checkVehicleNo=nv,O.clearPermissionCache=Qc,O.clearSessionStorage=kr,O.clearUserInfoCache=jc,O.config=kt,O.cryptor=Rd,O.deleteMenuCollectApi=hv,O.deleteMenuHistoryApi=lv,O.exportJsonToExcel=S0,O.flattenRow2ColumnData=J0,O.formatDate=Nd,O.formatDateChinese=Bd,O.formatDecimal=N0,O.formatHalfYear=I0,O.formatQuarter=k0,O.getAppListApi=dv,O.getCaptchaURL=Av,O.getContentType=Hu,O.getDictApi=gs,O.getDictMapApi=ov,O.getDictsMapApi=uv,O.getExcelColumnIdx=b0,O.getGlobalPolicyApi=Ev,O.getHalfYear=$0,O.getHalfYearBeginMonth=F0,O.getHalfYearEndMonth=P0,O.getHalfYearNum=os,O.getItem=Iv,O.getLocalStorage=fr,O.getMaxTabNumValueApi=vv,O.getMenuCollectApi=cv,O.getMenuHistoryApi=fv,O.getOssFileApi=mv,O.getPermissionApi=av,O.getPermissionCache=lr,O.getPriceCode=Tv,O.getPriceSeg=$v,O.getQuarter=Y0,O.getQuarterBeginMonth=G0,O.getQuarterEndMonth=q0,O.getQuarterNum=ls,O.getSessionStorage=me,O.getToken=Lf,O.getType=Xf,O.getUrlParams=Pf,O.getUserInfoApi=wv,O.getUserInfoCache=Zc,O.guid=X0,O.importJsonFromExcel=A0,O.isArguments=Kd,O.isArray=Ju,O.isArrayLike=fi,O.isBoolean=Yd,O.isDate=zd,O.isDecimal=n0,O.isElement=Qd,O.isEmpty=Zd,O.isEqual=li,O.isEqualWith=o0,O.isError=Vd,O.isEven=Xd,O.isFinite=e0,O.isFunction=es,O.isInteger=t0,O.isNegative=r0,O.isNil=Zf,O.isNull=Vf,O.isNumber=an,O.isNumberEqual=u0,O.isObject=kd,O.isObjectLike=si,O.isOdd=jd,O.isPlainObject=Gd,O.isPositive=i0,O.isPromise=qd,O.isPrototype=jf,O.isRegExp=Jd,O.isString=Ku,O.isType=bt,O.isUndefined=Qf,O.listComTreeApi=Cv,O.listItemTreeApi=xv,O.listUserTreeApi=Pv,O.loginApi=_v,O.logoutApi=bv,O.menuHistoryApi=sv,O.numToChineseNumerals=U0,O.numToDX=L0,O.off=T0,O.on=x0,O.quarter2Chinese=ss,O.removeLocalStorage=Mn,O.removeMenuCollectApi=gv,O.removeSessionStorage=Ze,O.renderColumnEnums=c0,O.renderEnumData=l0,O.renderEnumList=s0,O.renderFieldEnums=p0,O.responseInterceptors=Uf,O.round=as,O.row2column=z0,O.setContentType=Df,O.setLocalStorage=sr,O.setPermissionCache=Vc,O.setSessionStorage=Se,O.setToken=yd,O.setUserInfoCache=Xc,O.str2Date=Ld,O.toChies=R0,O.toFixed=B0,O.toThousands=D0,O.updatePasswordApi=Sv,O.useConfig=Bf,O.uuid=Z0,Object.defineProperties(O,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indfnd/utils",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "author": "huxuetong",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -2,7 +2,7 @@
2
2
  * @Author: huxuetong
3
3
  * @Date: 2023-10-27 15:05:25
4
4
  * @Last Modified by: huxuetong
5
- * @Last Modified time: 2024-01-08 22:58:03
5
+ * @Last Modified time: 2024-02-21 17:34:35
6
6
  */
7
7
 
8
8
  import _ from 'lodash'
@@ -170,7 +170,7 @@ export function row2column(
170
170
  const newItem = { ...item }
171
171
 
172
172
  leafColumns.forEach((column) => {
173
- const columnKey: string = column[option.keyPropName || 'key']
173
+ const columnKey: string = column[option.keyPropName || 'key'] || ''
174
174
  const keys = columnKey.split(GROUP_SEP) || []
175
175
  const value = renderRowData(rowGroupData, keys)
176
176
  newItem[columnKey] = value
@@ -203,7 +203,7 @@ function flattenRowData(
203
203
 
204
204
  leafColumns.forEach((column) => {
205
205
  const cellData = {}
206
- const columnKey: string = column[option.keyPropName || 'key']
206
+ const columnKey: string = column[option.keyPropName || 'key'] || ''
207
207
 
208
208
  if (columnKey.includes(GROUP_SEP)) {
209
209
  // 动态列