You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
11 KiB
1 lines
11 KiB
import{G as te,$ as re,a0 as se,a3 as oe,u as ie,a2 as ne,C as le,r as D,a9 as ae,H as ce,e as j,o as T,c as J,f as B,R as Y,m as R,D as L,h as v,A as ue,g as w,w as _,z as fe,i as Z,L as he,t as me}from"./index-9b4667b6.js";import{g as pe}from"./analysis_results-1bd8be45.js";var ge=20,de=1,C=1e6,K=1e6,ve=-7,we=21,be=!1,F="[big.js] ",P=F+"Invalid ",z=P+"decimal places",_e=P+"rounding mode",Q=F+"Division by zero",u={},E=void 0,Ee=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function y(){function e(r){var t=this;if(!(t instanceof e))return r===E?y():new e(r);if(r instanceof e)t.s=r.s,t.e=r.e,t.c=r.c.slice();else{if(typeof r!="string"){if(e.strict===!0&&typeof r!="bigint")throw TypeError(P+"value");r=r===0&&1/r<0?"-0":String(r)}xe(t,r)}t.constructor=e}return e.prototype=u,e.DP=ge,e.RM=de,e.NE=ve,e.PE=we,e.strict=be,e.roundDown=0,e.roundHalfUp=1,e.roundHalfEven=2,e.roundUp=3,e}function xe(e,r){var t,o,s;if(!Ee.test(r))throw Error(P+"number");for(e.s=r.charAt(0)=="-"?(r=r.slice(1),-1):1,(t=r.indexOf("."))>-1&&(r=r.replace(".","")),(o=r.search(/e/i))>0?(t<0&&(t=o),t+=+r.slice(o+1),r=r.substring(0,o)):t<0&&(t=r.length),s=r.length,o=0;o<s&&r.charAt(o)=="0";)++o;if(o==s)e.c=[e.e=0];else{for(;s>0&&r.charAt(--s)=="0";);for(e.e=t-o-1,e.c=[],t=0;o<=s;)e.c[t++]=+r.charAt(o++)}return e}function S(e,r,t,o){var s=e.c;if(t===E&&(t=e.constructor.RM),t!==0&&t!==1&&t!==2&&t!==3)throw Error(_e);if(r<1)o=t===3&&(o||!!s[0])||r===0&&(t===1&&s[0]>=5||t===2&&(s[0]>5||s[0]===5&&(o||s[1]!==E))),s.length=1,o?(e.e=e.e-r+1,s[0]=1):s[0]=e.e=0;else if(r<s.length){if(o=t===1&&s[r]>=5||t===2&&(s[r]>5||s[r]===5&&(o||s[r+1]!==E||s[r-1]&1))||t===3&&(o||!!s[0]),s.length=r,o){for(;++s[--r]>9;)if(s[r]=0,r===0){++e.e,s.unshift(1);break}}for(r=s.length;!s[--r];)s.pop()}return e}function O(e,r,t){var o=e.e,s=e.c.join(""),i=s.length;if(r)s=s.charAt(0)+(i>1?"."+s.slice(1):"")+(o<0?"e":"e+")+o;else if(o<0){for(;++o;)s="0"+s;s="0."+s}else if(o>0)if(++o>i)for(o-=i;o--;)s+="0";else o<i&&(s=s.slice(0,o)+"."+s.slice(o));else i>1&&(s=s.charAt(0)+"."+s.slice(1));return e.s<0&&t?"-"+s:s}u.abs=function(){var e=new this.constructor(this);return e.s=1,e};u.cmp=function(e){var r,t=this,o=t.c,s=(e=new t.constructor(e)).c,i=t.s,c=e.s,n=t.e,a=e.e;if(!o[0]||!s[0])return o[0]?i:s[0]?-c:0;if(i!=c)return i;if(r=i<0,n!=a)return n>a^r?1:-1;for(c=(n=o.length)<(a=s.length)?n:a,i=-1;++i<c;)if(o[i]!=s[i])return o[i]>s[i]^r?1:-1;return n==a?0:n>a^r?1:-1};u.div=function(e){var r=this,t=r.constructor,o=r.c,s=(e=new t(e)).c,i=r.s==e.s?1:-1,c=t.DP;if(c!==~~c||c<0||c>C)throw Error(z);if(!s[0])throw Error(Q);if(!o[0])return e.s=i,e.c=[e.e=0],e;var n,a,l,g,f,d=s.slice(),x=n=s.length,V=o.length,h=o.slice(0,n),p=h.length,N=e,I=N.c=[],M=0,A=c+(N.e=r.e-e.e)+1;for(N.s=i,i=A<0?0:A,d.unshift(0);p++<n;)h.push(0);do{for(l=0;l<10;l++){if(n!=(p=h.length))g=n>p?1:-1;else for(f=-1,g=0;++f<n;)if(s[f]!=h[f]){g=s[f]>h[f]?1:-1;break}if(g<0){for(a=p==n?s:d;p;){if(h[--p]<a[p]){for(f=p;f&&!h[--f];)h[f]=9;--h[f],h[p]+=10}h[p]-=a[p]}for(;!h[0];)h.shift()}else break}I[M++]=g?l:++l,h[0]&&g?h[p]=o[x]||0:h=[o[x]]}while((x++<V||h[0]!==E)&&i--);return!I[0]&&M!=1&&(I.shift(),N.e--,A--),M>A&&S(N,A,t.RM,h[0]!==E),N};u.eq=function(e){return this.cmp(e)===0};u.gt=function(e){return this.cmp(e)>0};u.gte=function(e){return this.cmp(e)>-1};u.lt=function(e){return this.cmp(e)<0};u.lte=function(e){return this.cmp(e)<1};u.minus=u.sub=function(e){var r,t,o,s,i=this,c=i.constructor,n=i.s,a=(e=new c(e)).s;if(n!=a)return e.s=-a,i.plus(e);var l=i.c.slice(),g=i.e,f=e.c,d=e.e;if(!l[0]||!f[0])return f[0]?e.s=-a:l[0]?e=new c(i):e.s=1,e;if(n=g-d){for((s=n<0)?(n=-n,o=l):(d=g,o=f),o.reverse(),a=n;a--;)o.push(0);o.reverse()}else for(t=((s=l.length<f.length)?l:f).length,n=a=0;a<t;a++)if(l[a]!=f[a]){s=l[a]<f[a];break}if(s&&(o=l,l=f,f=o,e.s=-e.s),(a=(t=f.length)-(r=l.length))>0)for(;a--;)l[r++]=0;for(a=r;t>n;){if(l[--t]<f[t]){for(r=t;r&&!l[--r];)l[r]=9;--l[r],l[t]+=10}l[t]-=f[t]}for(;l[--a]===0;)l.pop();for(;l[0]===0;)l.shift(),--d;return l[0]||(e.s=1,l=[d=0]),e.c=l,e.e=d,e};u.mod=function(e){var r,t=this,o=t.constructor,s=t.s,i=(e=new o(e)).s;if(!e.c[0])throw Error(Q);return t.s=e.s=1,r=e.cmp(t)==1,t.s=s,e.s=i,r?new o(t):(s=o.DP,i=o.RM,o.DP=o.RM=0,t=t.div(e),o.DP=s,o.RM=i,this.minus(t.times(e)))};u.neg=function(){var e=new this.constructor(this);return e.s=-e.s,e};u.plus=u.add=function(e){var r,t,o,s=this,i=s.constructor;if(e=new i(e),s.s!=e.s)return e.s=-e.s,s.minus(e);var c=s.e,n=s.c,a=e.e,l=e.c;if(!n[0]||!l[0])return l[0]||(n[0]?e=new i(s):e.s=s.s),e;if(n=n.slice(),r=c-a){for(r>0?(a=c,o=l):(r=-r,o=n),o.reverse();r--;)o.push(0);o.reverse()}for(n.length-l.length<0&&(o=l,l=n,n=o),r=l.length,t=0;r;n[r]%=10)t=(n[--r]=n[r]+l[r]+t)/10|0;for(t&&(n.unshift(t),++a),r=n.length;n[--r]===0;)n.pop();return e.c=n,e.e=a,e};u.pow=function(e){var r=this,t=new r.constructor("1"),o=t,s=e<0;if(e!==~~e||e<-K||e>K)throw Error(P+"exponent");for(s&&(e=-e);e&1&&(o=o.times(r)),e>>=1,!!e;)r=r.times(r);return s?t.div(o):o};u.prec=function(e,r){if(e!==~~e||e<1||e>C)throw Error(P+"precision");return S(new this.constructor(this),e,r)};u.round=function(e,r){if(e===E)e=0;else if(e!==~~e||e<-C||e>C)throw Error(z);return S(new this.constructor(this),e+this.e+1,r)};u.sqrt=function(){var e,r,t,o=this,s=o.constructor,i=o.s,c=o.e,n=new s("0.5");if(!o.c[0])return new s(o);if(i<0)throw Error(F+"No square root");i=Math.sqrt(o+""),i===0||i===1/0?(r=o.c.join(""),r.length+c&1||(r+="0"),i=Math.sqrt(r),c=((c+1)/2|0)-(c<0||c&1),e=new s((i==1/0?"5e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+c)):e=new s(i+""),c=e.e+(s.DP+=4);do t=e,e=n.times(t.plus(o.div(t)));while(t.c.slice(0,c).join("")!==e.c.slice(0,c).join(""));return S(e,(s.DP-=4)+e.e+1,s.RM)};u.times=u.mul=function(e){var r,t=this,o=t.constructor,s=t.c,i=(e=new o(e)).c,c=s.length,n=i.length,a=t.e,l=e.e;if(e.s=t.s==e.s?1:-1,!s[0]||!i[0])return e.c=[e.e=0],e;for(e.e=a+l,c<n&&(r=s,s=i,i=r,l=c,c=n,n=l),r=new Array(l=c+n);l--;)r[l]=0;for(a=n;a--;){for(n=0,l=c+a;l>a;)n=r[l]+i[a]*s[l-a-1]+n,r[l--]=n%10,n=n/10|0;r[l]=n}for(n?++e.e:r.shift(),a=r.length;!r[--a];)r.pop();return e.c=r,e};u.toExponential=function(e,r){var t=this,o=t.c[0];if(e!==E){if(e!==~~e||e<0||e>C)throw Error(z);for(t=S(new t.constructor(t),++e,r);t.c.length<e;)t.c.push(0)}return O(t,!0,!!o)};u.toFixed=function(e,r){var t=this,o=t.c[0];if(e!==E){if(e!==~~e||e<0||e>C)throw Error(z);for(t=S(new t.constructor(t),e+t.e+1,r),e=e+t.e+1;t.c.length<e;)t.c.push(0)}return O(t,!1,!!o)};u[Symbol.for("nodejs.util.inspect.custom")]=u.toJSON=u.toString=function(){var e=this,r=e.constructor;return O(e,e.e<=r.NE||e.e>=r.PE,!!e.c[0])};u.toNumber=function(){var e=Number(O(this,!0,!0));if(this.constructor.strict===!0&&!this.eq(e.toString()))throw Error(F+"Imprecise conversion");return e};u.toPrecision=function(e,r){var t=this,o=t.constructor,s=t.c[0];if(e!==E){if(e!==~~e||e<1||e>C)throw Error(P+"precision");for(t=S(new o(t),e,r);t.c.length<e;)t.c.push(0)}return O(t,e<=t.e||t.e<=o.NE||t.e>=o.PE,!!s)};u.valueOf=function(){var e=this,r=e.constructor;if(r.strict===!0)throw Error(F+"valueOf disallowed");return O(e,e.e<=r.NE||e.e>=r.PE,!0)};var Ne=y();function ke(){const e=(t,o)=>{const s=t.map(i=>Number(i[o]||0));return s.length===0?0:s.reduce((i,c)=>Number(r(i).plus(c)))},r=t=>(t=Number(t),typeof t!="number"&&t!=NaN&&(t=0),new Ne(t));return{statistics:e,toBig:r}}const Re={class:"flex-items-center font-size-14px"},Ae={class:"text-red font-bold"},De={key:0,class:"ml40px"},Be={class:"text-red"},Ce={class:"ml100px"},Pe={class:"w100% flex-items-center flex-justify-between"},Se={class:"dialog-footer"},Ve=te({name:"tableFooter"}),je=Object.assign(Ve,{props:{tableRef:Object,list:{type:Array,default:()=>[]},options:Object,transactionAmountShow:{type:Boolean,default:!1},balanceShow:{type:Boolean,default:!1},custom:{type:Boolean,default:!1}},emits:["onSaveFilterData"],setup(e,{emit:r}){const t=e,o=re(()=>se(()=>import("./saveResult-77bef4e4.js"),["static/js/saveResult-77bef4e4.js","static/js/index-9b4667b6.js","static/css/index-03655e05.css","static/js/analysis_results-1bd8be45.js","static/css/saveResult-fb271214.css"])),{statistics:s}=ke(),i=oe(),{userInfo:c}=ie(),n=ne(),a=le(()=>n.sideTheme==="theme-dark"),{proxy:l}=me(),g=D(0),f=D(0);ae(()=>{g.value=s(t.list,t.options.amount1),f.value=s(t.list,t.options.amount2)});const d=D(),x=D(!1),V=D(!1),h=ce({name:"",operator:c.userName,userId:c.userId}),p=D({name:[{required:!0,message:"\u8BF7\u9009\u62E9\u6210\u679C",trigger:"blur"}]}),N=D([]),I=async()=>{var m;const{rows:H}=await pe({caseId:(m=i.currentCase)==null?void 0:m.id});N.value=H.map(b=>({label:b.name,value:b.id}))},M=()=>{if(!t.custom&&t.list.length===0)return l.$modal.msgWarning("\u8BF7\u52FE\u9009\u9700\u8981\u4FDD\u5B58\u7684\u6570\u636E\uFF01");I(),x.value=!0},A=async()=>{if(!await d.value.validate().catch(()=>{}))return;const{id:m="id",key:b="ids",fn:W,isBatch:U=!0}=t.options,q={analysisResultId:h.name};U?q[b]=t.list.map(G=>G[m]):q[m]=t.list[0][m];const X=await W(q);l.$modal.msgSuccess(X.msg),$()},$=()=>{x.value=!1,ee()},ee=()=>{d.value.resetFields(),t.list.length!==0&&!t.custom&&t.tableRef.clearSelection()};return(H,m)=>{const b=j("el-button"),W=j("el-select-v2"),U=j("el-form-item"),q=j("el-input"),X=j("el-form"),G=j("el-dialog");return T(),J(Y,null,[B("div",Re,[e.custom?(T(),fe(b,{key:1,type:"primary",onClick:M},{default:_(()=>[R(L(e.options.saveText),1)]),_:1})):(T(),J(Y,{key:0},[B("div",null,[R(" \u9009\u62E9 "),B("span",Ae,L(e.list.length),1),R(" \u6761 ")]),e.transactionAmountShow?(T(),J("div",De,[R(L(e.options.t1)+": ",1),B("span",Be,L(v(g)),1)])):ue("",!0),B("div",Ce,[w(b,{type:"primary",size:"small",onClick:M},{default:_(()=>[R("\u4FDD\u5B58\u7B5B\u9009\u6570\u636E")]),_:1})])],64))]),w(G,{modelValue:v(x),"onUpdate:modelValue":m[3]||(m[3]=k=>Z(x)?x.value=k:null),title:"\u4FDD\u5B58\u6570\u636E",width:"450px","align-center":"",draggable:"","close-on-click-modal":"","destroy-on-close":"","before-close":$,class:he({"dialog-dark":v(a)})},{footer:_(()=>[B("span",Se,[w(b,{type:"primary",onClick:A},{default:_(()=>[R("\u786E\u5B9A")]),_:1}),w(b,{onClick:$},{default:_(()=>[R("\u53D6\u6D88")]),_:1})])]),default:_(()=>[w(X,{ref_key:"ruleFormRef",ref:d,model:v(h),rules:v(p),"label-width":"90px",class:"mt-12px"},{default:_(()=>[w(U,{label:"\u6210\u679C",prop:"name"},{default:_(()=>[B("div",Pe,[w(W,{modelValue:v(h).name,"onUpdate:modelValue":m[0]||(m[0]=k=>v(h).name=k),options:v(N),placeholder:"\u8BF7\u9009\u62E9\u6210\u679C",filterable:"",teleported:!1},null,8,["modelValue","options"]),w(b,{type:"primary",onClick:m[1]||(m[1]=k=>V.value=!0)},{default:_(()=>[R("\u65B0\u589E\u6210\u679C")]),_:1})])]),_:1}),w(U,{label:"\u64CD\u4F5C\u4EBA",prop:"operator"},{default:_(()=>[w(q,{modelValue:v(h).operator,"onUpdate:modelValue":m[2]||(m[2]=k=>v(h).operator=k),disabled:""},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue","class"]),w(v(o),{visible:v(V),"onUpdate:visible":m[4]||(m[4]=k=>Z(V)?V.value=k:null),onCallback:m[5]||(m[5]=()=>I())},null,8,["visible"])],64)}}});export{je as default};
|