欧伦电气WMS
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.
 
 
 
 
 

2 lines
11 KiB

webpackJsonp([3],{AGA6:function(t,e){},BtfW:function(t,e){},M5a0:function(t,e){},oqMl:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("Xxa5"),i=s.n(a),l=s("exGp"),r=s.n(l),o=s("Cz8s"),n={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"box zd-col-10 mgr8"},[s("div",{staticClass:"relative wraper_2 wraper_3"},[s("div",{staticClass:"absolute bg_j bg_j_1"}),t._v(" "),s("div",{staticClass:"absolute bg_j bg_j_2"}),t._v(" "),s("div",{staticClass:"absolute bg_j bg_j_3"}),t._v(" "),s("div",{staticClass:"absolute bg_j bg_j_4"}),t._v(" "),s("p",{staticClass:"title"},[t._v("实时库存分析")]),t._v(" "),s("div",{staticClass:"zd-row wraper_4"},[s("div",{staticClass:"box zd-col-8 mgr8"},[s("div",{ref:"echartsRef1",staticStyle:{width:"100%",height:"100%"}})]),t._v(" "),s("div",{staticClass:"box zd-col-16 zd-row flexwrap jcflexstart aligncenter flexstart"},t._l(t.weobj.ivtAnalyse.data,function(e,a){return s("div",{key:a,staticClass:"zd-col-12 zd-row flexstart pie_item_wrap"},[s("div",{staticClass:"zd-col-3 pie_legend_icon",style:{backgroundColor:["#1980EA","#67D470","#B4C9EF","#BCBF5C","#EF5252","#6d5edd","#bf41bb","#f65621","#21f6eb","#64b0ad"][a]}}),t._v(" "),s("div",{staticClass:"zd-col-21"},[s("p",{staticClass:"pie_legend_txt_1"},[t._v(t._s(e.material_name))]),t._v(" "),s("div",{staticClass:"zd-row jcflexstart"},[s("p",{staticClass:"pie_legend_txt_2"},[t._v(t._s(e.ivt_qty))]),t._v(" "),s("p",{staticClass:"pie_legend_txt_3"},[t._v(t._s(e.percentage))])])])])}))])])])},staticRenderFns:[]};var c=s("VU/8")({name:"SecTwo",data:function(){return{myChart1:null}},props:{weobj:{}},mounted:function(){this.myChart1=this.$echarts.init(this.$refs.echartsRef1),this.setEchart1(this.weobj)},destroyed:function(){null!==this.myChart1&&(this.myChart1.dispose(),this.myChart1=null)},methods:{setEchart1:function(t){var e=["rgba(15, 45, 115, .1)","#67D470","#B4C9EF","#BCBF5C","#EF5252","#6d5edd","#bf41bb","#f65621","#21f6eb","#64b0ad"],s=["#1980EA","rgba(15, 45, 115, .1)","rgba(15, 45, 115, .1)","rgba(15, 45, 115, .1)","rgba(15, 45, 115, .1)","rgba(15, 45, 115, .1)","rgba(15, 45, 115, .1)","rgba(15, 45, 115, .1)","rgba(15, 45, 115, .1)","rgba(15, 45, 115, .1)"],a=t.ivtAnalyse.data;a.map(function(t){t.value=t.ivt_qty,t.name=t.material_name});var i={color:["#1980EA","#67D470","#B4C9EF","#BCBF5C","#EF5252","#6d5edd","#bf41bb","#f65621","#21f6eb","#64b0ad"],grid:{top:0,left:0,right:0,bottom:0,containLabel:!0},title:{left:"50%",top:"50%",text:"{a|总数}\n{b|"+t.ivtAnalyse.total_qty+"}",textAlign:"center",textVerticalAlign:"middle",padding:0,textStyle:{rich:{a:{fontSize:12,lineHeight:18,color:"#A8C3E6"},b:{fontSize:17,lineHeight:17,fontWeight:"bold",color:"#DBE7F6"}}}},series:[{name:"内层实心圆",type:"pie",hoverOffset:0,radius:"58%",center:["50%","50%"],startAngle:270,label:{show:!1},itemStyle:{borderColor:"#2C4E6E",borderWidth:6,color:"#132942"},data:[{value:0}]},{name:"外层空心圆",type:"pie",hoverOffset:0,radius:["97%","97%"],center:["50%","50%"],startAngle:270,label:{show:!1},itemStyle:{borderColor:"#4677B8",borderWidth:1},data:[{value:0}]},{name:"设备运行统计内圈",type:"pie",radius:["70%","80%"],center:["50%","50%"],startAngle:270,labelLine:{show:!1},tooltip:{show:!1},itemStyle:{borderColor:"rgba(15, 45, 115, .1)",borderWidth:1,color:function(t){return e[t.dataIndex]}},label:{show:!1},data:a},{name:"设备运行统计外圈",type:"pie",radius:["80%","90%"],center:["50%","50%"],startAngle:270,labelLine:{show:!1},tooltip:{show:!1},itemStyle:{borderColor:"rgba(15, 45, 115, .1)",borderWidth:1,color:function(t){return s[t.dataIndex]}},label:{show:!1},data:a}]};this.myChart1.setOption(i,!0)}}},n,!1,function(t){s("M5a0")},"data-v-18d3d0cd",null).exports,d={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"box zd-col-7"},[e("div",{staticClass:"relative wraper_2 wraper_3"},[e("div",{staticClass:"absolute bg_j bg_j_1"}),this._v(" "),e("div",{staticClass:"absolute bg_j bg_j_2"}),this._v(" "),e("div",{staticClass:"absolute bg_j bg_j_3"}),this._v(" "),e("div",{staticClass:"absolute bg_j bg_j_4"}),this._v(" "),e("p",{staticClass:"title"},[this._v("出入库趋势")]),this._v(" "),e("div",{staticClass:"zd-row wraper_4"},[e("div",{ref:"echartsRef2",staticStyle:{width:"100%",height:"100%"}})])])])},staticRenderFns:[]};var _=s("VU/8")({name:"SecThree",data:function(){return{myChart2:null}},props:{weobj:{}},mounted:function(){this.myChart2=this.$echarts.init(this.$refs.echartsRef2),this.setEchart2(this.weobj)},destroyed:function(){null!==this.myChart2&&(this.myChart2.dispose(),this.myChart2=null)},methods:{setEchart2:function(t){var e=[],s=[],a=[];t.inAndOutTrend.in.map(function(t){s.push(t.qty)}),t.inAndOutTrend.out.map(function(t){e.push(t.date),a.push(t.qty)});var i={grid:{top:30,left:0,right:0,bottom:0,containLabel:!0},legend:{icon:"rect",top:"0",right:"0",textStyle:{color:"#9BB9DD",fontSize:12,lineHeight:16},itemGap:16,itemWidth:8,itemHeight:8,data:[{name:"入库",itemStyle:{color:"#67D470"}},{name:"出库",itemStyle:{color:"#1980EA"}}]},xAxis:{type:"category",axisTick:{show:!1},axisLine:{show:!0,lineStyle:{width:1,color:"#3C5787"}},axisLabel:{interval:0,rotate:45,color:"#7591B2",fontSize:12,lineHeight:12},data:e},yAxis:{type:"value",axisLine:{show:!1},splitNumber:4,axisTick:{show:!1},axisLabel:{color:"#B5C5D4",fontSize:12},splitLine:{show:!0,lineStyle:{type:[2,1],color:"#455C86"}}},series:[{name:"入库",type:"line",showSymbol:!1,itemStyle:{color:"#67D470",lineStyle:{color:"#67D470",width:1}},areaStyle:{color:new this.$echarts.graphic.LinearGradient(0,1,0,0,[{offset:0,color:"rgba(103,212,112,0.1)"},{offset:1,color:"rgba(103,212,112,0.74)"}])},data:s},{name:"出库",type:"line",showSymbol:!1,itemStyle:{color:"#58A2E3",lineStyle:{color:"#58A2E3",width:1}},areaStyle:{color:new this.$echarts.graphic.LinearGradient(0,1,0,0,[{offset:0,color:"rgba(45,144,255,0)"},{offset:1,color:"rgba(45,144,255,0.85)"}])},data:a}]};this.myChart2.setOption(i,!0)}}},d,!1,function(t){s("AGA6")},"data-v-4dc38b7c",null).exports,v=s("4ijW"),b={components:{THeader:o.a,SecTwo:c,SecThree:_},data:function(){return{interTime:this.$store.getters.setTime,intervalId:null,materList:[],historyList:[],pointUse:{},toDayInAndOut:{},inw:"0",inqty1:"0",outw:"0",outqty1:"0",resDataArr:[]}},created:function(){var t={baseUrl:this.$store.getters.baseUrl,setTime:this.$store.getters.setTime,setJxtTime:this.$store.getters.setJxtTime,pageNo:this.$store.getters.pageNo,iskb:"02",secCode:this.$store.getters.secCode};this.$store.dispatch("setConfig",t),this._synthesizeInfo(),this.timerFun(this._synthesizeInfo,this.interTime)()},mounted:function(){},destroyed:function(){null!==this.intervalId&&(clearTimeout(this.intervalId),this.intervalId=null)},methods:{getPercentage:function(t,e){return 0===Number(e)?0:(t/e*100).toFixed(2)+"%"},timerFun:function(t,e){var s=this;return function a(){clearTimeout(s.intervalId),s.intervalId=setTimeout(function(){t(),a()},e)}},_synthesizeInfo:function(){var t=this;return r()(i.a.mark(function e(){var s;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(v.c)(t.$store.getters.secCode);case 2:s=e.sent,t.resDataArr=s.content,t.pointUse=s.content[0].pointUse,t.toDayInAndOut=s.content[0].toDayInAndOut,t.inw=t.getPercentage(t.toDayInAndOut.in.vehicle_qty,t.toDayInAndOut.in.total_qty),t.inqty1=t.toDayInAndOut.in.total_qty,t.outw=t.getPercentage(t.toDayInAndOut.out.vehicle_qty,t.toDayInAndOut.out.total_qty),t.outqty1=t.toDayInAndOut.out.total_qty;case 10:case"end":return e.stop()}},e,t)}))()}}},u={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"box relative"},[s("t-header",{attrs:{type:"1",title1:"仓储监控",title2:" "}}),t._v(" "),s("div",{staticClass:"box body_container"},t._l(t.resDataArr,function(e,a){return s("div",{key:a,staticClass:"acon"},[s("div",{staticClass:"relative b_title"},[s("span",{staticClass:"absolute sj_icon"}),t._v(" "),s("p",[t._v(t._s(e.title))])]),t._v(" "),s("div",{staticClass:"zd-row wraper_1 mgb8"},[s("div",{staticClass:"box zd-col-7 mgr8"},[s("div",{staticClass:"relative wraper_2 mgb8"},[s("div",{staticClass:"absolute bg_j bg_j_1"}),t._v(" "),s("div",{staticClass:"absolute bg_j bg_j_2"}),t._v(" "),s("div",{staticClass:"absolute bg_j bg_j_3"}),t._v(" "),s("div",{staticClass:"absolute bg_j bg_j_4"}),t._v(" "),s("p",{staticClass:"title"},[t._v("货位使用")]),t._v(" "),s("div",{staticClass:"zd-row wraper_4"},[s("div",{staticClass:"box percent_item"},[s("p",[t._v(t._s(e.pointUse.use_percentage))])]),t._v(" "),s("div",{staticClass:"box zd-col-16 zd-row flexcol jccenter"},[s("div",{staticClass:"zd-row mgb8"},[s("p",{staticClass:"zd-col-8 item_label"},[t._v("总货位数")]),t._v(" "),s("p",{staticClass:"zd-col-16 item_value"},[t._v(t._s(e.pointUse.total_qty)),s("span",{staticClass:"item_unit"},[t._v("个")])])]),t._v(" "),s("div",{staticClass:"zd-row mgb8"},[s("p",{staticClass:"zd-col-8 item_label"},[t._v("已用货位")]),t._v(" "),s("p",{staticClass:"zd-col-16 item_value"},[t._v(t._s(e.pointUse.use_qty)),s("span",{staticClass:"item_unit"},[t._v("个")])])]),t._v(" "),s("div",{staticClass:"zd-row"},[s("p",{staticClass:"zd-col-8 item_label"},[t._v("空余货位")]),t._v(" "),s("p",{staticClass:"zd-col-16 item_value"},[t._v(t._s(e.pointUse.emp_qty)),s("span",{staticClass:"item_unit"},[t._v("个")])])])])])]),t._v(" "),s("div",{staticClass:"relative wraper_2"},[s("div",{staticClass:"absolute bg_j bg_j_1"}),t._v(" "),s("div",{staticClass:"absolute bg_j bg_j_2"}),t._v(" "),s("div",{staticClass:"absolute bg_j bg_j_3"}),t._v(" "),s("div",{staticClass:"absolute bg_j bg_j_4"}),t._v(" "),s("p",{staticClass:"title"},[t._v("今日出入库")]),t._v(" "),s("div",{staticClass:"wraper_4 zd-row flexcol jccenter"},[s("div",{staticClass:"zd-row flexstart mgb8"},[s("div",{staticClass:"zd-col-3 item_label"},[t._v("入库")]),t._v(" "),s("div",{staticClass:"zd-col-21"},[s("div",{staticClass:"percent_line"},[s("div",{staticClass:"percent_i",style:{width:t.getPercentage(e.toDayInAndOut.in.vehicle_qty,e.toDayInAndOut.in.total_qty)}})]),t._v(" "),s("div",{staticClass:"zd-row"},[s("p",{staticClass:"item_label font_2"},[t._v("总数量 : "),s("span",{staticClass:"c_y"},[t._v(t._s(e.toDayInAndOut.in.total_qty))])])])])]),t._v(" "),s("div",{staticClass:"zd-row flexstart"},[s("div",{staticClass:"zd-col-3 item_label"},[t._v("出库")]),t._v(" "),s("div",{staticClass:"zd-col-21"},[s("div",{staticClass:"percent_line percent_line_c"},[s("div",{staticClass:"percent_i percent_i_c",style:{width:t.getPercentage(e.toDayInAndOut.out.vehicle_qty,e.toDayInAndOut.out.total_qty)}})]),t._v(" "),s("div",{staticClass:"zd-row"},[s("p",{staticClass:"item_label font_2"},[t._v("总数量 : "),s("span",{staticClass:"c_y"},[t._v(t._s(e.toDayInAndOut.out.total_qty))])])])])])])])]),t._v(" "),s("sec-two",{attrs:{weobj:e}}),t._v(" "),s("sec-three",{attrs:{weobj:e}})],1)])}))],1)},staticRenderFns:[]};var h=s("VU/8")(b,u,!1,function(t){s("BtfW")},"data-v-202867ae",null);e.default=h.exports}});
//# sourceMappingURL=3.814b882c67752c331ed3.js.map