.
18516761980
2022-03-19 9ff5e64187837a3bbd78370c1cfaadf2329f97f0
1
2
(function(t){function e(e){for(var a,o,l=e[0],c=e[1],s=e[2],u=0,f=[];u<l.length;u++)o=l[u],i[o]&&f.push(i[o][0]),i[o]=0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(t[a]=c[a]);d&&d(e);while(f.length)f.shift()();return r.push.apply(r,s||[]),n()}function n(){for(var t,e=0;e<r.length;e++){for(var n=r[e],a=!0,l=1;l<n.length;l++){var c=n[l];0!==i[c]&&(a=!1)}a&&(r.splice(e--,1),t=o(o.s=n[0]))}return t}var a={},i={app:0},r=[];function o(e){if(a[e])return a[e].exports;var n=a[e]={i:e,l:!1,exports:{}};return t[e].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=t,o.c=a,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)o.d(n,a,function(e){return t[e]}.bind(null,a));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="";var l=window["webpackJsonp"]=window["webpackJsonp"]||[],c=l.push.bind(l);l.push=e,l=l.slice();for(var s=0;s<l.length;s++)e(l[s]);var d=c;r.push([0,"chunk-vendors"]),n()})({0:function(t,e,n){t.exports=n("56d7")},"03c6":function(t,e,n){},1395:function(t,e,n){},"2cf5":function(t,e,n){"use strict";var a=n("03c6"),i=n.n(a);i.a},"3c4a":function(t,e,n){"use strict";var a=n("c87c"),i=n.n(a);i.a},4656:function(t,e,n){},"46a76":function(t,e,n){"use strict";var a=n("4656"),i=n.n(a);i.a},"56d7":function(t,e,n){"use strict";n.r(e);n("cadf"),n("551c"),n("f751"),n("097d");var a=n("2b0e"),i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"app"}},[n("datav")],1)},r=[],o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"data-view"}},[n("dv-full-screen-container",[n("top-header"),n("div",{staticClass:"main-content"},[n("digital-flop"),n("div",{staticClass:"block-left-right-content"},[n("ranking-board"),n("div",{staticClass:"block-top-bottom-content"},[n("div",{staticClass:"block-top-content"},[n("rose-chart"),n("water-level-chart"),n("scroll-board")],1),n("cards")],1)],1)],1)],1)],1)},l=[],c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"top-header"}},[n("dv-decoration-8",{staticClass:"header-left-decoration"}),n("dv-decoration-5",{staticClass:"header-center-decoration"}),n("dv-decoration-8",{staticClass:"header-right-decoration",attrs:{reverse:!0}}),n("div",{staticClass:"center-title"},[t._v("仓库管理综合数据")])],1)},s=[],d={name:"TopHeader"},u=d,f=(n("2cf5"),n("2877")),v=Object(f["a"])(u,c,s,!1,null,null,null),h=v.exports,g=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"digital-flop"}},[t._l(t.digitalFlopData,function(e){return n("div",{key:e.title,staticClass:"digital-flop-item"},[n("div",{staticClass:"digital-flop-title"},[t._v(t._s(e.title))]),n("div",{staticClass:"digital-flop"},[n("dv-digital-flop",{staticStyle:{width:"100px",height:"50px"},attrs:{config:e.number}}),n("div",{staticClass:"unit"},[t._v(t._s(e.unit))])],1)])}),n("dv-decoration-10")],2)},p=[],b=n("bc3a"),m=n.n(b),_={name:"DigitalFlop",data:function(){return{digitalFlopData:[]}},methods:{initData:function(){var t=this;m()({method:"get",url:t.baseUrl+"/datav/head/auth"}).then(function(e){var n=e.data;if(200===n.code){var a=n.data;t.digitalFlopData=[{title:"入库数量",number:{number:[a.pakin],content:"{nt}",textAlign:"right",style:{fill:"#4d99fc",fontWeight:"bold"}},unit:""},{title:"出库数量",number:{number:[a.pakout],content:"{nt}",textAlign:"right",style:{fill:"#f46827",fontWeight:"bold"}},unit:""},{title:"在库数量",number:{number:[a.locDetl],content:"{nt}",textAlign:"right",style:{fill:"#40faee",fontWeight:"bold"}},unit:""},{title:"订单量",number:{number:[a.order],content:"{nt}",textAlign:"right",style:{fill:"#4d99fc",fontWeight:"bold"}},unit:""},{title:"商品总量",number:{number:[a.mat],content:"{nt}",textAlign:"right",style:{fill:"#f46827",fontWeight:"bold"}},unit:""},{title:"货位总数",number:{number:[a.node],content:"{nt}",textAlign:"right",style:{fill:"#40faee",fontWeight:"bold"}},unit:""},{title:"客户数",number:{number:[a.cstmr],content:"{nt}",textAlign:"right",style:{fill:"#4d99fc",fontWeight:"bold"}},unit:""},{title:"用户数量",number:{number:[a.user],content:"{nt}",textAlign:"right",style:{fill:"#f46827",fontWeight:"bold"}},unit:""},{title:"操作次数",number:{number:[a.opt],content:"{nt}",textAlign:"right",style:{fill:"#40faee",fontWeight:"bold"}},unit:""}]}}).catch(function(t){console.log("请求失败:"+t.status+","+t.statusText)})}},mounted:function(){var t=this.initData;t(),setInterval(t,1e4)}},x=_,y=(n("a7b4"),Object(f["a"])(x,g,p,!1,null,null,null)),C=y.exports,w=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"ranking-board"}},[n("div",{staticClass:"ranking-board-title"},[t._v("库存记录数量")]),n("dv-scroll-ranking-board",{attrs:{config:t.config}})],1)},O=[],j=n("cebc"),k={name:"RankingBoard",data:function(){return{config:{data:[],rowNum:9}}},methods:{initData:function(){var t=this;m()({method:"get",url:t.baseUrl+"/datav/left/auth"}).then(function(e){var n=e.data;if(200===n.code){var a=n.data;t.config.data=a,t.config=Object(j["a"])({},t.config)}}).catch(function(t){console.log("请求失败:"+t.status+","+t.statusText)})}},mounted:function(){var t=this.initData;t(),setInterval(t,1e4)}},D=k,A=(n("ba40"),Object(f["a"])(D,w,O,!1,null,null,null)),W=A.exports,E=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"rose-chart"}},[n("div",{staticClass:"rose-chart-title"},[t._v("累计出库商品分布")]),n("dv-charts",{attrs:{option:t.option}})],1)},S=[],T={name:"RoseChart",data:function(){return{option:{}}},methods:{initData:function(){var t=this;m()({method:"get",url:t.baseUrl+"/datav/rose/chart/auth"}).then(function(e){var n=e.data;if(200===n.code){var a=n.data;t.option={series:[{type:"pie",radius:"50%",roseSort:!1,data:[],insideLabel:{show:!1},outsideLabel:{formatter:"{name} {percent}%",labelLineEndLength:20,style:{fill:"#fff"},labelLineStyle:{stroke:"#fff"}},roseType:!0}],color:["#da2f00","#fa3600","#ff4411","#ff724c","#541200","#801b00","#a02200","#5d1400","#b72700"]},t.option.series[0].data=a,t.option=Object(j["a"])({},t.option)}}).catch(function(t){console.log("请求失败:"+t.status+","+t.statusText)})}},mounted:function(){var t=this.initData;t(),setInterval(t,1e4)}},I=T,$=(n("46a76"),Object(f["a"])(I,E,S,!1,null,null,null)),L=$.exports,M=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"water-level-chart"}},[n("div",{staticClass:"water-level-chart-title"},[t._v("库存占比情况")]),n("div",{staticClass:"water-level-chart-details"},[t._v("\n    已使用库位"),n("span",[t._v(t._s(t.usedNode))]),t._v("个\n  ")]),n("div",{staticClass:"chart-container"},[n("dv-water-level-pond",{attrs:{config:t.config}})],1)])},P=[],B={name:"WaterLevelChart",data:function(){return{config:{data:[45],shape:"round",waveHeight:25,waveNum:2},usedNode:0}},methods:{initData:function(){var t=this;m()({method:"get",url:t.baseUrl+"/datav/water/level/auth"}).then(function(e){var n=e.data;if(200===n.code){var a=n.data;t.config.data=a.percentage,t.usedNode=a.usedNode,t.config=Object(j["a"])({},t.config)}}).catch(function(t){console.log("请求失败:"+t.status+","+t.statusText)})}},mounted:function(){var t=this.initData;t(),setInterval(t,1e4)}},N=B,U=(n("da5a"),Object(f["a"])(N,M,P,!1,null,null,null)),F=U.exports,H=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"scroll-board"}},[n("dv-scroll-board",{attrs:{config:t.config}})],1)},R=[],G={name:"ScrollBoard",data:function(){return{config:{header:["时间","产品信息","数量","操作"],data:[],index:!0,columnWidth:[50,170,300],align:["center"],rowNum:7,headerBGC:"#1981f6",headerHeight:45,oddRowBGC:"rgba(0, 44, 81, 0.8)",evenRowBGC:"rgba(10, 29, 50, 0.8)"}}},methods:{initData:function(){var t=this;m()({method:"get",url:t.baseUrl+"/datav/opt/latest/auth"}).then(function(e){var n=e.data;if(200===n.code){var a=n.data;t.config.data=a,t.config=Object(j["a"])({},t.config)}}).catch(function(t){console.log("请求失败:"+t.status+","+t.statusText)})}},mounted:function(){var t=this.initData;t(),setInterval(t,1e4)}},J=G,z=(n("b325"),Object(f["a"])(J,H,R,!1,null,null,null)),V=z.exports,q=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{attrs:{id:"cards"}},t._l(t.cards,function(e,a){return n("div",{key:e.title,staticClass:"card-item"},[n("div",{staticClass:"card-header"},[n("div",{staticClass:"card-header-left"},[t._v(t._s(e.title))]),n("div",{staticClass:"card-header-right"},[t._v(t._s("0"+(a+1)))])]),n("dv-charts",{staticClass:"ring-charts",attrs:{option:e.ring}}),n("div",{staticClass:"card-footer"},[n("div",{staticClass:"card-footer-item"},[n("div",{staticClass:"footer-title"},[t._v("累计数量")]),n("div",{staticClass:"footer-detail"},[n("dv-digital-flop",{staticStyle:{width:"70%",height:"35px"},attrs:{config:e.total}}),t._v("个\n        ")],1)]),n("div",{staticClass:"card-footer-item"},[n("div",{staticClass:"footer-title"},[t._v("物料品类")]),n("div",{staticClass:"footer-detail"},[n("dv-digital-flop",{staticStyle:{width:"70%",height:"35px"},attrs:{config:e.num}}),t._v("种\n        ")],1)])])],1)}),0)},K=[],Q=(n("6c7b"),{name:"Cards",data:function(){return{cards:[]}},methods:{createData:function(){var t=this.randomExtend;this.cards=new Array(5).fill(0).map(function(e,n){return{title:"订单编号"+(n+n),total:{number:[t(9e3,1e4)],content:"{nt}",textAlign:"right",style:{fill:"#ea6027",fontWeight:"bold"}},num:{number:[t(30,60)],content:"{nt}",textAlign:"right",style:{fill:"#26fcd8",fontWeight:"bold"}},ring:{series:[{type:"gauge",startAngle:-Math.PI/2,endAngle:1.5*Math.PI,arcLineWidth:13,radius:"80%",data:[{name:"资源占比",value:t(40,60)}],axisLabel:{show:!1},axisTick:{show:!1},pointer:{show:!1},backgroundArc:{style:{stroke:"#224590"}},details:{show:!0,formatter:"资源占比{value}%",style:{fill:"#1ed3e5",fontSize:20}}}],color:["#03d3ec"]}}})},randomExtend:function(t,e){return 1===arguments.length?parseInt(Math.random()*t+1,10):parseInt(Math.random()*(e-t+1)+t,10)}},mounted:function(){var t=this.createData;t(),setInterval(this.createData,1e4)}}),X=Q,Y=(n("d773"),Object(f["a"])(X,q,K,!1,null,null,null)),Z=Y.exports,tt={name:"DataView",components:{topHeader:h,digitalFlop:C,rankingBoard:W,roseChart:L,waterLevelChart:F,scrollBoard:V,cards:Z},data:function(){return{}},methods:{}},et=tt,nt=(n("3c4a"),Object(f["a"])(et,o,l,!1,null,null,null)),at=nt.exports,it={name:"app",components:{datav:at},data:function(){return{}}},rt=it,ot=(n("7c55"),Object(f["a"])(rt,i,r,!1,null,null,null)),lt=ot.exports,ct=(n("1395"),n("6c29"));a["a"].prototype.baseUrl="http://localhost:8080/wms",a["a"].config.productionTip=!1,a["a"].use(ct["a"]),new a["a"]({render:function(t){return t(lt)}}).$mount("#app")},"5c48":function(t,e,n){},"7c55":function(t,e,n){"use strict";var a=n("5c48"),i=n.n(a);i.a},"898f":function(t,e,n){},"8fee":function(t,e,n){},a7b4:function(t,e,n){"use strict";var a=n("e865"),i=n.n(a);i.a},b325:function(t,e,n){"use strict";var a=n("b870"),i=n.n(a);i.a},b870:function(t,e,n){},ba40:function(t,e,n){"use strict";var a=n("d5c2"),i=n.n(a);i.a},c87c:function(t,e,n){},d5c2:function(t,e,n){},d773:function(t,e,n){"use strict";var a=n("898f"),i=n.n(a);i.a},da5a:function(t,e,n){"use strict";var a=n("8fee"),i=n.n(a);i.a},e865:function(t,e,n){}});
//# sourceMappingURL=app.844d622a.js.map