12 |
- var p=(w,C,b)=>new Promise((_,S)=>{var k=d=>{try{n(b.next(d))}catch(E){S(E)}},A=d=>{try{n(b.throw(d))}catch(E){S(E)}},n=d=>d.done?_(d.value):Promise.resolve(d.value).then(k,A);n((b=b.apply(w,C)).next())});import{F as f,d as ie,f as le,r as x,n as re,p as ne,g8 as F,u as g,y as N,o as z,l as L,a as e,N as ce,O as pe,t as O,q as de,b as me,e as u,aL as ue,w as h,aX as fe,aY as ge,_ as he,__tla as be}from"./index-b5895273.js";import"./index-df83bc1e.js";import{aV as v}from"./installSVGRenderer-a67ecca0.js";let X,ye=Promise.all([(()=>{try{return be}catch(w){}})()]).then(()=>p(void 0,null,function*(){function w(i="modal"){return p(this,null,function*(){return f.get({url:"/caseErpStock/caseErpInstoreLog/statistical-data"},{errorMessageMode:i})})}function C(i="modal"){return p(this,null,function*(){return f.get({url:"/caseErpStock/caseErpInstoreLog/doc-analysis"},{errorMessageMode:i})})}function b(i="modal"){return p(this,null,function*(){return f.get({url:"/caseErpStock/caseErpInstoreLog/doc-analysis-out"},{errorMessageMode:i})})}function _(i="modal"){return p(this,null,function*(){return f.get({url:"/caseErpStock/caseErpInstoreLog/trend"},{errorMessageMode:i})})}function S(i="modal"){return p(this,null,function*(){return f.get({url:"/caseErpStock/caseErpInstoreLog/trend-out"},{errorMessageMode:i})})}function k(i="modal"){return p(this,null,function*(){return f.get({url:"/caseErpStock/caseErpInstoreLog/warn"},{errorMessageMode:i})})}function A(i="modal"){return p(this,null,function*(){return f.get({url:"/caseErpStock/caseErpInstoreLog/materials"},{errorMessageMode:i})})}const n=i=>(fe("data-v-c08e963a"),i=i(),ge(),i),d={style:{padding:"10px","box-sizing":"border-box"}},E={class:"mumber-box"},j={class:"mum-left"},B=["src"],T={class:"mum-right"},U={class:"mum-title"},q={class:"mum-than"},R={class:"box-bg"},V=n(()=>e("div",{class:"box-bg-title"},[e("span",{class:"title-text"},"\u6708\u5165\u5E93\u5355\u5206\u6790")],-1)),Y={class:"box-bg"},J=n(()=>e("div",{class:"box-bg-title"},[e("span",{class:"title-text"},"\u5165\u5E93\u6570\u91CF\u589E\u957F\u8D8B\u52BF")],-1)),K={class:"box-bg"},Q=n(()=>e("div",{class:"box-bg-title"},[e("span",{class:"title-text"},"\u9884\u8B66\u7C7B\u578B\u5360\u6BD4")],-1)),Z={class:"box-bg"},$=n(()=>e("div",{class:"box-bg-title"},[e("span",{class:"title-text"},"\u6708\u51FA\u5E93\u5355\u5206\u6790")],-1)),ee={class:"box-bg"},te=n(()=>e("div",{class:"box-bg-title"},[e("span",{class:"title-text"},"\u51FA\u5E93\u6570\u91CF\u589E\u957F\u8D8B\u52BF")],-1)),ae={class:"box-bg"},se=n(()=>e("div",{class:"box-bg-title"},[e("span",{class:"title-text"},"\u5728\u5E93\u539F\u6750\u6599\u5360\u6BD4")],-1)),oe=ie({__name:"InventoryAnalysis",setup(i){const t=le({colors:["#5E95FF","#00CACF","#FF9100","#995EFF","#5E6EFF"],Statistics:[],bar2Option:{color:["#5E95FF","#00CACF","#5E6EFF","#995EFF","#2C8DD6"],title:{text:"\u5355\u4F4D\uFF1A\u5355",left:20,textStyle:{color:"#333",fontWeight:"normal",fontSize:12,lineHeight:30}},legend:{type:"scroll",itemWidth:10,itemHeight:10,itemGap:20,left:90,textStyle:{color:"#85878e",fontSize:12,lineHeight:30}},grid:{left:10,right:40,bottom:20,containLabel:!0},xAxis:{type:"value"},yAxis:{type:"category",data:[]},series:[]},line1Option:{color:["#00CACF","#995EFF","#FF8080","#5E95FF","#E8D316","#FF9100"],title:{text:"\u5355\u4F4D\uFF1A\u4E07\u5143",left:20,textStyle:{color:"#333",fontWeight:"normal",fontSize:12}},tooltip:{trigger:"axis",backgroundColor:"rgba(51, 51, 51, 0.7)",formatter:y=>{let m="";return y.forEach(l=>{m+=l.marker+'<span style="display:inline-flex;justify-content: space-between;width:138px;color:#fff">'+l.seriesName+"<span>"+l.data+"\u4E07\u5143</span></span><br/>"}),m}},legend:{itemWidth:20,itemHeight:10,itemGap:20,right:20,textStyle:{color:"#85878e"},data:[]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:[]},yAxis:{type:"value"},series:[]},pie2Option:{color:["#5E95FF","#FF9100","#995EFF","#00CACF"],tooltip:{trigger:"item",backgroundColor:"rgba(51, 51, 51, 0.7)",textStyle:{color:"#fff"},formatter:"{b}<br/>{c}\u6761 ({d}%)"},legend:{bottom:"10%",left:"center",itemWidth:10,itemHeight:10,itemGap:20,textStyle:{color:"#85878e"}},series:{type:"pie",radius:["40%","60%"],center:["50%","38%"],avoidLabelOverlap:!1,emphasis:{label:{show:!0,fontSize:"20",fontWeight:"bold"},itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}},labelLine:{show:!1},data:[]}},barOption:{color:["#5E95FF","#00CACF","#5E6EFF","#995EFF","#2C8DD6"],title:{text:"\u5355\u4F4D\uFF1A\u5355",left:20,textStyle:{color:"#333",fontWeight:"normal",fontSize:12,lineHeight:30}},legend:{type:"scroll",itemWidth:10,itemHeight:10,itemGap:20,left:90,textStyle:{color:"#85878e",fontSize:12,lineHeight:30}},grid:{left:10,right:40,bottom:20,containLabel:!0},xAxis:{type:"value"},yAxis:{type:"category",data:[]},series:[]},lineOption:{color:["#00CACF","#995EFF","#FF8080","#5E95FF","#E8D316","#FF9100"],title:{text:"\u5355\u4F4D\uFF1A\u4E07\u5143",left:20,textStyle:{color:"#333",fontWeight:"normal",fontSize:12}},tooltip:{trigger:"axis",backgroundColor:"rgba(51, 51, 51, 0.7)",formatter:y=>{let m="";return y.forEach(l=>{m+=l.marker+'<span style="display:inline-flex;justify-content: space-between;width:138px;color:#fff">'+l.seriesName+"<span>"+l.data+"\u4E07\u5143</span></span><br/>"}),m}},legend:{itemWidth:20,itemHeight:10,itemGap:20,right:20,textStyle:{color:"#85878e"},data:[]},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:[]},yAxis:{type:"value"},series:[]},pie3Option:{color:["#FF8080","#9863C1","#FF9100","#5E95FF","#00CACF"],series:{name:"",type:"pie",radius:"50%",selectedMode:"single",center:["50%","48%"],label:{color:"#6e7079",overflow:"none",formatter:`{b} {d}%
- {c}`},data:[],emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}}}),M=x(),W=x(),H=x(),I=x(),G=x(),D=x();return re(()=>p(this,null,function*(){let y=yield w();t.Statistics=y||[],(yield C()).forEach((a,s)=>{let o=[];a.data.forEach(r=>{o.push(r.value),s==1&&t.bar2Option.yAxis.data.push(r.name)});let c={name:a.name,type:"bar",stack:"total",label:{show:!0,color:"#fff"},emphasis:{focus:"series"},data:o};t.bar2Option.series.push(c)}),(yield k()).forEach((a,s)=>{s===0?t.pie2Option.series.data.push({value:a.value,name:a.name,label:{show:!1,position:"center",normal:{show:!0,formatter:"\u9884\u8B66\u7C7B\u578B",position:"center",fontSize:16,color:"#5E95FF",fontWeight:"bold"}}}):t.pie2Option.series.data.push({value:a.value,name:a.name,label:{show:!1,position:"center",normal:{show:!1}}})});let m=yield A();t.pie3Option.series.data=m,t.pie3Option.series.data[0].selected=!0;let l=yield b();l&&l.forEach((a,s)=>{let o=[];a.data.forEach(r=>{o.push(r.value),s==1&&t.barOption.yAxis.data.push(r.name)});let c={name:a.name,type:"bar",stack:"total",label:{show:!0,color:"#fff"},emphasis:{focus:"series"},data:o};t.barOption.series.push(c)}),(yield _()).forEach((a,s)=>{t.line1Option.legend.data.push(a.name);let o=[];a.data.forEach(r=>{o.push(r.value),s==1&&t.line1Option.xAxis.data.push(r.name)});let c={name:a.name,type:"line",stack:"Total",smooth:!0,showSymbol:!1,data:o};t.line1Option.series.push(c)}),(yield S()).forEach((a,s)=>{t.lineOption.legend.data.push(a.name);let o=[];a.data.forEach(r=>{o.push(r.value),s==1&&t.lineOption.xAxis.data.push(r.name)});let c={name:a.name,type:"line",stack:"Total",smooth:!0,showSymbol:!1,data:o};t.lineOption.series.push(c)}),ne(()=>{let a=F(v(g(M)));a.setOption(t.bar2Option,!0),a.resize();let s=F(v(g(W)));s.setOption(t.pie2Option,!0),s.resize();let o=F(v(g(H)));o.setOption(t.pie3Option,!0),o.resize();let c=F(v(g(I)));c.setOption(t.line1Option,!0),c.resize();let r=F(v(g(G)));r.setOption(t.barOption,!0),r.resize();let P=F(v(g(D)));P.setOption(t.lineOption,!0),P.resize()})})),(y,m)=>{const l=N("a-col"),a=N("a-row");return z(),L("div",d,[e("div",null,[e("div",E,[(z(!0),L(ce,null,pe(t.Statistics,(s,o)=>(z(),L("div",{class:"mumber",key:o},[e("div",j,[e("img",{class:"index-img",src:"/src/assets/erp/index-icon"+(o+1)+".svg"},null,8,B)]),e("div",T,[e("div",U,O(s.name)+"\uFF08"+O(s.unit)+"\uFF09",1),e("div",{class:"mum",style:de({color:t.colors[o]})},O(s.num),5),e("div",q,[me(O(o>1?"\u73AF\u6BD4":"\u540C\u6BD4")+"\xA0\xA0\xA0\xA0"+O(s.pecent)+"% ",1),u(g(ue),{icon:s.isUp?"ant-design:caret-up-outlined":"ant-design:caret-down-outlined",color:s.isUp?"#3dba84":"#ee3b3b",size:14,class:"icon"},null,8,["icon","color"])])])]))),128))]),u(a,{gutter:10},{default:h(()=>[u(l,{span:7},{default:h(()=>[e("div",R,[V,e("div",{class:"item",ref_key:"homePieChart",ref:M},null,512)])]),_:1}),u(l,{span:11},{default:h(()=>[e("div",Y,[J,e("div",{class:"item",ref_key:"homeLine1Chart",ref:I},null,512)])]),_:1}),u(l,{span:6},{default:h(()=>[e("div",K,[Q,e("div",{class:"item",ref_key:"homePieChart2",ref:W},null,512)])]),_:1}),u(l,{span:7},{default:h(()=>[e("div",Z,[$,e("div",{class:"item",ref_key:"homeRadarChart",ref:G},null,512)])]),_:1}),u(l,{span:11},{default:h(()=>[e("div",ee,[te,e("div",{class:"item",ref_key:"homeLineChart",ref:D},null,512)])]),_:1}),u(l,{span:6},{default:h(()=>[e("div",ae,[se,e("div",{class:"item",ref_key:"homePieChart3",ref:H},null,512)])]),_:1})]),_:1})])])}}});X=he(oe,[["__scopeId","data-v-c08e963a"]])}));export{ye as __tla,X as default};
|