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
15 KiB
2 lines
15 KiB
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",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:e}]};this.myChart1.setOption(i,!0)},setEchart2:function(){var t=[],s=[],e=[];this.lx_in_week.map(function(t){s.push(t.qty)}),this.lx_out_week.map(function(s){t.push(s.date),e.push(s.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:t},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:e}]};this.myChart2.setOption(i,!0)}}},d={render:function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",{staticClass:"box relative"},[e("t-header",{attrs:{type:"1",title1:"仓储监控",title2:" "}}),t._v(" "),e("div",{staticClass:"box body_container"},[e("div",{staticClass:"relative b_title"},[e("span",{staticClass:"absolute sj_icon"}),t._v(" "),e("p",[t._v(t._s(t.storsName))])]),t._v(" "),e("div",{staticClass:"zd-row wraper_1 mgb8"},[e("div",{staticClass:"box zd-col-7 mgr8"},[e("div",{staticClass:"relative wraper_2 mgb8"},[e("div",{staticClass:"absolute bg_j bg_j_1"}),t._v(" "),e("div",{staticClass:"absolute bg_j bg_j_2"}),t._v(" "),e("div",{staticClass:"absolute bg_j bg_j_3"}),t._v(" "),e("div",{staticClass:"absolute bg_j bg_j_4"}),t._v(" "),e("p",{staticClass:"title"},[t._v("货位使用")]),t._v(" "),e("div",{staticClass:"zd-row wraper_4"},[e("div",{staticClass:"box percent_item"},[e("p",[t._v(t._s(t.pointUse.use_percentage)+"%")])]),t._v(" "),e("div",{staticClass:"box zd-col-16 zd-row flexcol jccenter"},[e("div",{staticClass:"zd-row mgb8"},[e("p",{staticClass:"zd-col-8 item_label"},[t._v("总货位数")]),t._v(" "),e("p",{staticClass:"zd-col-16 item_value"},[t._v(t._s(t.pointUse.total_qty)),e("span",{staticClass:"item_unit"},[t._v("个")])])]),t._v(" "),e("div",{staticClass:"zd-row mgb8"},[e("p",{staticClass:"zd-col-8 item_label"},[t._v("已用货位")]),t._v(" "),e("p",{staticClass:"zd-col-16 item_value"},[t._v(t._s(t.pointUse.use_qty)),e("span",{staticClass:"item_unit"},[t._v("个")])])]),t._v(" "),e("div",{staticClass:"zd-row"},[e("p",{staticClass:"zd-col-8 item_label"},[t._v("空余货位")]),t._v(" "),e("p",{staticClass:"zd-col-16 item_value"},[t._v(t._s(t.pointUse.emp_qty)),e("span",{staticClass:"item_unit"},[t._v("个")])])])])])]),t._v(" "),e("div",{staticClass:"relative wraper_2"},[e("div",{staticClass:"absolute bg_j bg_j_1"}),t._v(" "),e("div",{staticClass:"absolute bg_j bg_j_2"}),t._v(" "),e("div",{staticClass:"absolute bg_j bg_j_3"}),t._v(" "),e("div",{staticClass:"absolute bg_j bg_j_4"}),t._v(" "),e("p",{staticClass:"title"},[t._v("今日出入库")]),t._v(" "),e("div",{staticClass:"wraper_4 zd-row flexcol jccenter"},[e("div",{staticClass:"zd-row flexstart mgb8"},[e("div",{staticClass:"zd-col-3 item_label"},[t._v("入库")]),t._v(" "),e("div",{staticClass:"zd-col-21"},[e("div",{staticClass:"percent_line"},[e("div",{staticClass:"percent_i",style:{width:t.inw}})]),t._v(" "),e("div",{staticClass:"zd-row"},[e("p",{staticClass:"item_label font_2"},[t._v("总数量 : "),e("span",{staticClass:"c_y"},[t._v(t._s(t.inqty1))])])])])]),t._v(" "),e("div",{staticClass:"zd-row flexstart"},[e("div",{staticClass:"zd-col-3 item_label"},[t._v("出库")]),t._v(" "),e("div",{staticClass:"zd-col-21"},[e("div",{staticClass:"percent_line percent_line_c"},[e("div",{staticClass:"percent_i percent_i_c",style:{width:t.outw}})]),t._v(" "),e("div",{staticClass:"zd-row"},[e("p",{staticClass:"item_label font_2"},[t._v("总数量 : "),e("span",{staticClass:"c_y"},[t._v(t._s(t.outqty1))])])])])])])])]),t._v(" "),e("div",{staticClass:"box zd-col-10 mgr8"},[e("div",{staticClass:"relative wraper_2 wraper_3"},[e("div",{staticClass:"absolute bg_j bg_j_1"}),t._v(" "),e("div",{staticClass:"absolute bg_j bg_j_2"}),t._v(" "),e("div",{staticClass:"absolute bg_j bg_j_3"}),t._v(" "),e("div",{staticClass:"absolute bg_j bg_j_4"}),t._v(" "),e("p",{staticClass:"title"},[t._v("实时库存分析")]),t._v(" "),e("div",{staticClass:"zd-row wraper_4"},[e("div",{staticClass:"box zd-col-8 mgr8"},[e("div",{ref:"echartsRef1",staticStyle:{width:"100%",height:"100%"}})]),t._v(" "),e("div",{staticClass:"box zd-col-16 zd-row flexwrap jcflexstart aligncenter flexstart"},t._l(t.lx_inventory.data,function(s,i){return e("div",{key:i,staticClass:"zd-col-12 zd-row flexstart pie_item_wrap"},[e("div",{staticClass:"zd-col-3 pie_legend_icon",style:{backgroundColor:["#1980EA","#67D470","#B4C9EF","#BCBF5C","#EF5252","#6d5edd","#bf41bb","#f65621","#21f6eb","#64b0ad"][i]}}),t._v(" "),e("div",{staticClass:"zd-col-21"},[e("p",{staticClass:"pie_legend_txt_1"},[t._v(t._s(s.material_name))]),t._v(" "),e("div",{staticClass:"zd-row jcflexstart"},[e("p",{staticClass:"pie_legend_txt_2"},[t._v(t._s(s.ivt_qty))]),t._v(" "),e("p",{staticClass:"pie_legend_txt_3"},[t._v(t._s(s.percentage))])])])])}))])])]),t._v(" "),e("div",{staticClass:"box zd-col-7"},[e("div",{staticClass:"relative wraper_2 wraper_3"},[e("div",{staticClass:"absolute bg_j bg_j_1"}),t._v(" "),e("div",{staticClass:"absolute bg_j bg_j_2"}),t._v(" "),e("div",{staticClass:"absolute bg_j bg_j_3"}),t._v(" "),e("div",{staticClass:"absolute bg_j bg_j_4"}),t._v(" "),e("p",{staticClass:"title"},[t._v("出入库趋势")]),t._v(" "),e("div",{staticClass:"zd-row wraper_4"},[e("div",{ref:"echartsRef2",staticStyle:{width:"100%",height:"100%"}})])])])]),t._v(" "),t._m(0),t._v(" "),e("div",{staticClass:"zd-row wraper_1"},[e("div",{staticClass:"relative wraper_1 wraper_3 wraper_5 mgr8"},[e("div",{staticClass:"absolute bg_j bg_j_1"}),t._v(" "),e("div",{staticClass:"absolute bg_j bg_j_2"}),t._v(" "),e("div",{staticClass:"absolute bg_j bg_j_3"}),t._v(" "),e("div",{staticClass:"absolute bg_j bg_j_4"}),t._v(" "),e("p",{staticClass:"title"},[t._v("实时任务")]),t._v(" "),e("div",{staticClass:"zd-row wraper_6"},[e("div",{staticClass:"box scroll_wrap"},[t._m(1),t._v(" "),e("div",{staticClass:"scroll_container_0"},[e("vue-seamless-scroll",{attrs:{data:t.taskList,"class-option":t.defaultOption1}},[e("ul",{staticClass:"scroll-ul_1"},t._l(t.taskList,function(s,i){return e("li",{key:i},[e("div",{staticClass:"scroll-ul_1_div"},[t._v(t._s(s.task_code))]),t._v(" "),e("div",{staticClass:"scroll-ul_1_div"},[t._v(t._s(s.point_code1))]),t._v(" "),e("div",{staticClass:"scroll-ul_1_div"},[t._v(t._s(s.point_code2))]),t._v(" "),e("div",{staticClass:"scroll-ul_1_div"},[t._v(t._s(s.vehicle_code))]),t._v(" "),e("div",{staticClass:"scroll-ul_1_div"},[t._v(t._s(s.task_status))])])}))])],1)])])]),t._v(" "),e("div",{staticClass:"relative wraper_1 wraper_3 wraper_5"},[e("div",{staticClass:"absolute bg_j bg_j_1"}),t._v(" "),e("div",{staticClass:"absolute bg_j bg_j_2"}),t._v(" "),e("div",{staticClass:"absolute bg_j bg_j_3"}),t._v(" "),e("div",{staticClass:"absolute bg_j bg_j_4"}),t._v(" "),e("p",{staticClass:"title"},[t._v("未完成单据")]),t._v(" "),e("div",{staticClass:"zd-row wraper_6"},[e("div",{staticClass:"box scroll_wrap"},[t._m(2),t._v(" "),e("div",{staticClass:"scroll_container_0"},[e("vue-seamless-scroll",{attrs:{data:t.billList,"class-option":t.defaultOption1}},[e("ul",{staticClass:"scroll-ul_1 scroll-ul_2"},t._l(t.billList,function(s,i){return e("li",{key:i},[e("div",{staticClass:"scroll-ul_1_div"},[t._v(t._s(s.bill_code))]),t._v(" "),e("div",{staticClass:"scroll-ul_1_div"},[t._v(t._s(s.io_type))]),t._v(" "),e("div",{staticClass:"scroll-ul_1_div"},[t._v(t._s(s.bill_type))]),t._v(" "),e("div",{staticClass:"scroll-ul_1_div"},[t._v(t._s(s.biz_date))]),t._v(" "),e("div",{staticClass:"scroll-ul_1_div"},[t._v(t._s(s.stor_name))]),t._v(" "),e("div",{staticClass:"scroll-ul_1_div"},[t._v(t._s(s.total_qty))]),t._v(" "),e("div",{staticClass:"scroll-ul_1_div"},[t._v(t._s(s.detail_count))]),t._v(" "),e("div",{staticClass:"scroll-ul_1_div"},[t._v(t._s(s.source_id))]),t._v(" "),e("div",{staticClass:"scroll-ul_1_div"},[t._v(t._s(s.bill_status))])])}))])],1)])])])])])],1)},staticRenderFns:[function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticClass:"relative b_title"},[s("span",{staticClass:"absolute sj_icon"}),this._v(" "),s("p",[this._v("任务单据监控")])])},function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("ul",{staticClass:"scroll_tab_1 scroll_tab_2"},[e("li",[t._v("任务编码")]),t._v(" "),e("li",[t._v("任务起点")]),t._v(" "),e("li",[t._v("任务终点")]),t._v(" "),e("li",[t._v("载具编码")]),t._v(" "),e("li",[t._v("任务状态")])])},function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("ul",{staticClass:"scroll_tab_1 scroll_tab_3"},[e("li",[t._v("单据编码")]),t._v(" "),e("li",[t._v("出入类型")]),t._v(" "),e("li",[t._v("单据类型")]),t._v(" "),e("li",[t._v("业务日期")]),t._v(" "),e("li",[t._v("仓库")]),t._v(" "),e("li",[t._v("总数量")]),t._v(" "),e("li",[t._v("明细数")]),t._v(" "),e("li",[t._v("源单号")]),t._v(" "),e("li",[t._v("单据状态")])])}]};var u=e("VU/8")(v,d,!1,function(t){e("DSQG")},"data-v-64657eea",null);s.default=u.exports},"5zde":function(t,s,e){e("zQR9"),e("qyJz"),t.exports=e("FeBl").Array.from},DSQG:function(t,s){},Gu7T:function(t,s,e){"use strict";s.__esModule=!0;var i,a=e("c/Tr"),l=(i=a)&&i.__esModule?i:{default:i};s.default=function(t){if(Array.isArray(t)){for(var s=0,e=Array(t.length);s<t.length;s++)e[s]=t[s];return e}return(0,l.default)(t)}},"c/Tr":function(t,s,e){t.exports={default:e("5zde"),__esModule:!0}},fBQ2:function(t,s,e){"use strict";var i=e("evD5"),a=e("X8DO");t.exports=function(t,s,e){s in t?i.f(t,s,a(0,e)):t[s]=e}},qyJz:function(t,s,e){"use strict";var i=e("+ZMJ"),a=e("kM2E"),l=e("sB3e"),r=e("msXi"),_=e("Mhyx"),o=e("QRG4"),n=e("fBQ2"),c=e("3fs2");a(a.S+a.F*!e("dY0y")(function(t){Array.from(t)}),"Array",{from:function(t){var s,e,a,v,d=l(t),u="function"==typeof this?this:Array,b=arguments.length,C=b>1?arguments[1]:void 0,h=void 0!==C,p=0,g=c(d);if(h&&(C=i(C,b>2?arguments[2]:void 0,2)),void 0==g||u==Array&&_(g))for(e=new u(s=o(d.length));s>p;p++)n(e,p,h?C(d[p],p):d[p]);else for(v=g.call(d),e=new u;!(a=v.next()).done;p++)n(e,p,h?r(v,C,[a.value,p],!0):a.value);return e.length=p,e}})}});
|
|
//# sourceMappingURL=2.51f40f46d4c4ef29cd6c.js.map
|
|
|