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

3 lines
15 KiB

3 weeks ago
webpackJsonp([2],{"+Cmg":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("Xxa5"),a=e.n(i),l=e("Gu7T"),r=e.n(l),_=e("exGp"),o=e.n(_),n=e("Cz8s"),c=e("4ijW"),v={components:{THeader:n.a},data:function(){return{storsName:"",interTime:this.$store.getters.setTime,intervalId:null,materList:[],historyList:[],myChart1:null,myChart2:null,myChart4:null,taskList:[],billList:[],lx_in_week:[],lx_out_week:[],lx_inventory:[],pointUse:{},toDayInAndOut:{},inw:"0",inqty1:"0",outw:"0",outqty1:"0"}},computed:{defaultOption1:function(){return{step:.3,limitMoveNum:55,hoverStop:!0,direction:1,openWatch:!0,singleHeight:0,singleWidth:0,waitTime:5e3}}},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(){this.myChart1=this.$echarts.init(this.$refs.echartsRef1),this.myChart2=this.$echarts.init(this.$refs.echartsRef2)},destroyed:function(){null!==this.intervalId&&(clearTimeout(this.intervalId),this.intervalId=null),null!==this.myChart1&&(this.myChart1.dispose(),this.myChart1=null),null!==this.myChart2&&(this.myChart2.dispose(),this.myChart2=null)},methods:{getPercentage:function(t,s){return 0===Number(s)?0:(t/s*100).toFixed(2)+"%"},timerFun:function(t,s){var e=this;return function i(){clearTimeout(e.intervalId),e.intervalId=setTimeout(function(){t(),i()},s)}},_synthesizeInfo:function(){var t=this;return o()(a.a.mark(function s(){var e;return a.a.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,Object(c.c)(t.$store.getters.secCode);case 2:(e=s.sent).content=e.content[0],t.storsName=e.content.title,t.pointUse=e.content.pointUse,t.toDayInAndOut=e.content.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,t.lx_in_week=[].concat(r()(e.content.inAndOutTrend.in)),t.lx_out_week=[].concat(r()(e.content.inAndOutTrend.out)),t.lx_inventory=e.content.ivtAnalyse,t.taskList=[].concat(r()(e.content.realTask)),t.billList=[].concat(r()(e.content.unIos)),t.setEchart1(),t.setEchart2();case 18:case"end":return s.stop()}},s,t)}))()},setEchart1:function(){var t=["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)"],e=this.lx_inventory.data;e.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|"+this.lx_inventory.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(s){return t[s.dataIndex]}},label:{show:!1},data:e},{name:"设备运行统计外圈",type:"pie",r
//# sourceMappingURL=2.51f40f46d4c4ef29cd6c.js.map