chunk-551360b8.11616b78.js
10.7 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-551360b8"],{1732:function(t,e,a){"use strict";a("fbbe")},"25bc":function(t,e,a){"use strict";a("6b56")},"50aa":function(t,e,a){},"6b56":function(t,e,a){},"7bd6":function(t,e,a){},"9a08":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-body"},[a("Header",{attrs:{title:"自動物流管理中心"}}),a("div",{staticClass:"dv-content-body"},[a("div",{staticClass:"dv-content-body-head-list"},[a("headLeftWareHouseUse",{ref:"headLeftWareHouseUse"}),a("headCenterWareHouse",{ref:"headCenterWareHouse"}),a("headRightHangDiao",{ref:"headRightHangDiao"})],1),a("div",{staticClass:"dv-content-body-center-list"},[a("bodyCenterLeftGuzhang",{ref:"bodyCenterLeftGuzhang"}),a("bodyCenterConetentZhuZhuang",{ref:"bodyCenterConetentZhuZhuang"}),a("bodyCenterRightHangDiao",{ref:"bodyCenterRightHangDiao"})],1),a("div",{staticClass:"dv-content-body-bottom-list"},[a("footerLeftTrend",{ref:"footerLeftTrend"}),a("footerRightWareHouseSum",{ref:"footerRightWareHouseSum"})],1)])],1)},n=[],i=a("788f"),r=a("2cff"),o=a("9da1"),d=a("aa95"),h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{width:"calc(99.5vw - 29vw)",height:"95%"}},[a("dv-border-box-8",{attrs:{dur:35,color:[,"#ffffff"]}},[a("el-carousel",{attrs:{"indicator-position":"outside",interval:1e4}},[t._l(t.sysData.WarehouseTrend,(function(e,s){return a("el-carousel-item",{key:s,staticClass:"dv-content-body-bottom-list-left"},[a("div",{staticClass:"echats",attrs:{id:t.createChartId(s)}})])})),a("div",{staticClass:"Footer-style",staticStyle:{"padding-top":"2px"}},[a("span",{staticClass:"div-span-title",staticStyle:{"padding-left":"2px"}},[t._v("倉庫運行狀況(当月往前30天)%")]),a("div",[a("div",{staticClass:"yuxing"},[a("div",{staticClass:"yuxing-style"})]),a("span",[t._v("運行")])]),a("div",[a("div",{staticClass:"daiji"},[a("div",{staticClass:"daiji-style"})]),a("span",[t._v("待機")])]),a("div",[a("div",{staticClass:"guzhang"},[a("div",{staticClass:"guzhang-style"})]),a("span",[t._v("故障")])])])],2)],1)],1)},l=[],u={data:function(){return{baseUrlOff:this.baseUrlOff,baseUrlOnLine:this.baseUrlOnLine,sysData:{WarehouseTrend:[]},tempEcharts:[],WarehouseTrendChartDom:null,WarehouseTrend:null,WarehouseTrendChartOpton:WarehouseTrendChartOpton}},methods:{createChartId:function(t){return"main_"+t},getData:function(){var t=this,e={urlSuffix:"api/WCSTask/GetEquipmentRecordMonth",logTitle:"底部趋势图"},a=function(a){t.ajaxSuccessDataBefore(a,e.logTitle)&&(t.sysData.WarehouseTrend=a.data.data,t.dataAnalysis(a.data.data),t.getWarehouseTrendChart())};"".ajaxGet(this,e,a)},dataAnalysis:function(t){var e=this;t.forEach((function(t,a){"原料仓"==t.name&&(e.tempEcharts[0]=t),"混合仓1号"==t.name&&(e.tempEcharts[1]=t),"混合仓2号"==t.name&&(e.tempEcharts[2]=t),"PP仓1号"==t.name&&(e.tempEcharts[3]=t),"PP仓2号"==t.name&&(e.tempEcharts[4]=t),"基板仓1号"==t.name&&(e.tempEcharts[5]=t),"基板仓2号"==t.name&&(e.tempEcharts[6]=t),"出货仓"==t.name&&(e.tempEcharts[7]=t)})),console.log(this.tempEcharts)},getWarehouseTrendChart:function(){var t=this;setTimeout((function(){for(var e=t.tempEcharts,a=[],s=0;s<e.length;s++){a.push(t.$echarts.init(document.getElementById("main_"+s))),e[s].name=e[s].name.replace("出货仓","备料仓");for(var n=0;n<e[s].run.length;n++)e[s].run[n]=(100*e[s].run[n]).toFixed(2);for(var i=0;i<e[s].fault.length;i++)e[s].fault[i]=(100*e[s].fault[i]).toFixed(2);for(var r=0;r<e[s].standby.length;r++)e[s].standby[r]=(100*e[s].standby[r]).toFixed(2)}for(var o=0;o<e.length;o++)window.WarehouseTrendChartOpton.title.text=t.tempEcharts[o].name.replace("号",""),window.WarehouseTrendChartOpton.xAxis[0].data=t.tempEcharts[o].date,window.WarehouseTrendChartOpton.series[0].data=t.tempEcharts[o].run,window.WarehouseTrendChartOpton.series[1].data=t.tempEcharts[o].standby,window.WarehouseTrendChartOpton.series[2].data=t.tempEcharts[o].fault,a[o].clear(),a[o].setOption(window.WarehouseTrendChartOpton)}),300)},ajaxSuccessDataBefore:function(t,e){return null!=t.data&&0!=t.data.data.length||("".Log(e+"无数据","getData"),!1)}},mounted:function(){this.WarehouseTrendChartDom=document.getElementById("WarehouseTrendChart"),this.getData()}},c=u,f=(a("25bc"),a("2877")),g=Object(f["a"])(c,h,l,!1,null,"0e93473a",null),m=g.exports,p=a("f0d5"),v=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dv-content-body-center-list-left"},[a("dv-border-box-8",{attrs:{dur:35,color:[,"#ffffff"]}},[a("div",{staticStyle:{width:"100",heigt:"10%"}},[a("span",{staticClass:"div-span-title"},[t._v("前24小時故障明細")])]),a("div",{staticStyle:{width:"100%",height:"90%"}},[a("dv-scroll-board",{staticStyle:{width:"97%","margin-top":"-0.5vw","margin-left":"0.4vw"},attrs:{config:t.failureDetailsConfig}})],1)])],1)},b=[],C={data:function(){return{baseUrlOff:this.baseUrlOff,baseUrlOnLine:this.baseUrlOnLine,sysData:{failureDetails:[]},failureDetailsConfig:{header:["設備","异常內容","修復","停機单位"],columnWidth:[70,200,100,100],headerBGC:"#201e1e",headerHeight:25,carousel:"page",waitTime:1e4},optTablePlan:optTablePlan}},methods:{getData:function(){var t=this,e={urlSuffix:"api/WCSTask/GetEquipmentAlarm",logTitle:"前24小时故障明细"},a=function(a){t.ajaxSuccessDataBefore(a,e.logTitle)&&(t.sysData.failureDetails=a.data.data,t.faultDetails())};"".ajaxGet(this,e,a)},faultDetails:function(){var t=[];this.sysData.failureDetails.forEach((function(e){var a=new Date(e.begin).format("mm:ss"),s=new Date(e.end).format("mm:ss"),n="".concat(e.alarm,"/").concat(e.durationTime);t.push([e.equipment.substr(0,12),n,a,s])})),this.failureDetailsConfig={header:this.optTablePlan.failureDetailsHeader,data:t,columnWidth:[130,150,80,80],align:this.optTablePlan.failureDetailsAlign,headerBGC:"#201e1e",oddRowBGC:"#021c66",evenRowBGC:"#65,105,225",rowNum:4,headerHeight:25,carousel:"page",waitTime:8e3}},ajaxSuccessDataBefore:function(t,e){return null!=t.data&&0!=t.data.data.length||("".Log(e+"无数据","getData"),!1)}},mounted:function(){this.getData()}},y=C,D=(a("d6cf"),Object(f["a"])(y,v,b,!1,null,null,null)),x=D.exports,w=a("9576"),H=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dv-content-body-center-list-center"},[a("dv-border-box-8",{attrs:{dur:35,color:[,"#ffffff"]}},[a("div",{staticClass:"dv-content-body-center-list-center-head"},[a("div",{staticClass:"stuts-style",staticStyle:{"padding-top":"2px"}},[a("span",{staticClass:"div-span-title",staticStyle:{"padding-left":"2px"}},[t._v("倉庫運行狀況(前24小時)%")]),a("div",[a("div",{staticClass:"yuxing"},[a("div",{staticClass:"yuxing-style"})]),a("span",[t._v("運行")])]),a("div",[a("div",{staticClass:"daiji"},[a("div",{staticClass:"daiji-style"})]),a("span",[t._v("待機")])]),a("div",[a("div",{staticClass:"guzhang"},[a("div",{staticClass:"guzhang-style"})]),a("span",[t._v("故障")])])])]),a("div",{staticClass:"dv-content-body-center-list-center-barChart",attrs:{id:"warehouseHealth"}})])],1)},E=[],T={data:function(){return{baseUrlOff:this.baseUrlOff,baseUrlOnLine:this.baseUrlOnLine,sysData:{getwarehouseHealth:null},tempEcharts:[{name:"原料仓",index:null},{name:"混合仓1",index:null},{name:"混合仓2",index:null},{name:"PP仓1",index:null},{name:"PP仓2",index:null},{name:"基板仓1",index:null},{name:"基板仓2",index:null},{name:"备料仓",index:null}],getwarehouseHealth:null,warehouseHealthOption:warehouseHealthOption}},methods:{getData:function(){var t=this,e={urlSuffix:"api/WCSTask/GetEquipmentRecord",logTitle:"中间柱状图"},a=function(a){t.ajaxSuccessDataBefore(a,e.logTitle)&&(t.sysData.getwarehouseHealth=a.data.data,t.dataAnalysis(a.data.data),t.getwarehouseHealthbar())};"".ajaxGet(this,e,a)},dataAnalysis:function(t){var e=this;t.x.forEach((function(t,a){"原料仓"==t&&(e.tempEcharts[0].index=a),"混合仓1号"==t&&(e.tempEcharts[1].index=a),"混合仓2号"==t&&(e.tempEcharts[2].index=a),"PP仓1号"==t&&(e.tempEcharts[3].index=a),"PP仓2号"==t&&(e.tempEcharts[4].index=a),"基板仓1号"==t&&(e.tempEcharts[5].index=a),"基板仓2号"==t&&(e.tempEcharts[6].index=a),"出货仓"==t&&(e.tempEcharts[7].index=a)}))},getwarehouseHealthbar:function(){var t=this.$echarts.init(document.getElementById("warehouseHealth")),e=[],a=[],s=[];this.tempEcharts.forEach((function(t){e.push(t.index),a.push(t.name)})),this.warehouseHealthOption.xAxis.data=a;for(var n=0;n<this.tempEcharts.length;n++)s.push(this.sysData.getwarehouseHealth.running[this.tempEcharts[n].index]);var i=s.map((function(t){return(100*t).toFixed(1)}));this.warehouseHealthOption.series[0].data=i;for(var r=[],o=0;o<this.tempEcharts.length;o++)r.push(this.sysData.getwarehouseHealth.free[this.tempEcharts[o].index]);var d=r.map((function(t){return(100*t).toFixed(1)}));this.warehouseHealthOption.series[1].data=d;for(var h=[],l=0;l<this.tempEcharts.length;l++)h.push(this.sysData.getwarehouseHealth.error[this.tempEcharts[l].index]);var u=h.map((function(t){return(100*t).toFixed(1)}));this.warehouseHealthOption.series[2].data=u,t.clear(),t.setOption(this.warehouseHealthOption),window.onresize=t.resize},ajaxSuccessDataBefore:function(t,e){return null!=t.data&&0!=t.data.data.length||("".Log(e+"无数据","getData"),!1)}},mounted:function(){this.getData()}},O=T,W=(a("1732"),Object(f["a"])(O,H,E,!1,null,"3d01adb6",null)),L=W.exports,S={data:function(){return{baseUrlOff:this.baseUrlOff,baseUrlOnLine:this.baseUrlOnLine,sysData:{},sysInitTimeNum:65,sysTimeNum:65}},components:{Header:i["a"],headLeftWareHouseUse:r["a"],headRightHangDiao:d["a"],headCenterWareHouse:o["a"],footerLeftTrend:m,footerRightWareHouseSum:p["a"],bodyCenterLeftGuzhang:x,bodyCenterRightHangDiao:w["a"],bodyCenterConetentZhuZhuang:L},methods:{intInterval:function(){var t=this;"".intInterval(this,this.sysInitTimeNum,(function(){t.$refs.headLeftWareHouseUse.getData(),t.$refs.headCenterWareHouse.getData(),t.$refs.headRightHangDiao.getData(),t.$refs.footerLeftTrend.getData(),t.$refs.footerRightWareHouseSum.getData(),t.$refs.bodyCenterLeftGuzhang.getData(),t.$refs.bodyCenterRightHangDiao.getData(),t.$refs.bodyCenterConetentZhuZhuang.getData()})),"".intInterval(this,this.sysInitTimeNum,(function(){t.$refs.headLeftWareHouseUse.getData(),t.$refs.headCenterWareHouse.getData(),t.$refs.headRightHangDiao.getData(),t.$refs.footerRightWareHouseSum.getData(),t.$refs.bodyCenterLeftGuzhang.getData(),t.$refs.bodyCenterRightHangDiao.getData()})),setInterval((function(){t.$refs.bodyCenterConetentZhuZhuang.getData()}),8e4),setInterval((function(){t.$refs.footerLeftTrend.getData()}),9e4)}},mounted:function(){this.intInterval()}},$=S,U=(a("f23a"),Object(f["a"])($,s,n,!1,null,"f2601d34",null));e["default"]=U.exports},d6cf:function(t,e,a){"use strict";a("7bd6")},f23a:function(t,e,a){"use strict";a("50aa")},fbbe:function(t,e,a){}}]);
//# sourceMappingURL=chunk-551360b8.11616b78.js.map