mt-ck-wms-ui/dist/static/js/chunk-a375c554.46b8d479.js
2022-06-07 10:43:58 +08:00

1 line
11 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a375c554"],{"09f4":function(t,e,i){"use strict";i.d(e,"a",(function(){return l}));var n=i("2b0b"),a=i.n(n);Math.easeInOutQuad=function(t,e,i,n){return t/=n/2,t<1?i/2*t*t+e:(t--,-i/2*(t*(t-2)-1)+e)};var s=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){a()(t,1e3/60)}}();function o(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function l(t,e,i){var n=r(),a=t-n,l=20,u=0;e="undefined"===typeof e?500:e;var c=function t(){u+=l;var r=Math.easeInOutQuad(u,n,a,e);o(r),u<e?s(t):i&&"function"===typeof i&&i()};c()}},"12d4":function(t,e,i){"use strict";i("e9c6")},"2c37":function(t,e,i){},8129:function(t,e,i){"use strict";i("2c37")},"9b26":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-container"},[i("el-form",{attrs:{model:t.formData,inline:!0,size:"medium","label-width":"80px"}},[i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.toE10()}}},[t._v("E10")])],1),t._v(" "),i("el-form-item",[i("el-button",{on:{click:function(e){return t.toOEE()}}},[t._v("OEE")])],1),t._v(" "),i("el-form-item",[i("el-button",{on:{click:function(e){return t.toMTTR()}}},[t._v("MTTR")])],1),t._v(" "),i("el-form-item",[i("el-button",{on:{click:function(e){return t.toMCBF()}}},[t._v("MCBF")])],1),t._v(" "),i("el-form-item",{attrs:{label:t.$t("module.equipmentManager.equipmentVisualization.timeSlot"),"label-width":"100px",prop:"time"}},[i("el-date-picker",{attrs:{type:"datetimerange","start-placeholder":t.$t("module.orderManage.order.StartTime"),"end-placeholder":t.$t("module.orderManage.order.StartTime"),"range-separator":t.$t("module.orderManage.order.To"),clearable:""},model:{value:t.formData.timeSlot,callback:function(e){t.$set(t.formData,"timeSlot",e)},expression:"formData.timeSlot"}})],1),t._v(" "),i("el-form-item",[i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.getList()}}},[t._v(" "+t._s(t._f("i18nFilter")("btn.search"))+" ")])],1)],1),t._v(" "),t.e10Visible?i("e10Chart",{ref:"e10Chart",attrs:{time1:t.startTime,time2:t.endTime,name:t.formData.equipmentName},on:{equipmentName:t.seeDetail}}):t._e(),t._v(" "),t.e10Detail?i("e10-detail-chart",{ref:"e10DetailChart",attrs:{time1:t.startTime,time2:t.endTime,"equipment-name":t.equipmentName}}):t._e()],1)},a=[],s=i("2b0b"),o=i.n(s),r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticStyle:{"margin-left":"10%"},style:{width:"1000px",height:"800px"},attrs:{id:"monitorChart"}})])},l=[],u=(i("7f7f"),i("313e")),c=i.n(u),m={props:{time1:{type:Date,default:function(){return""}},time2:{type:Date,default:function(){return""}},name:{type:String,default:function(){return""}}},data:function(){return{chart:null,list:[],xDataList:[],engineeringList:[],nonscheduledDownList:[],productiveList:[],rampUpDownList:[],scheduledDownList:[],standByList:[],unscheduledDownList:[]}},mounted:function(){},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{removeData:function(){this.xDataList=["ACOT1","ACOT2"],this.engineeringList=[20,30],this.nonscheduledDownList=[20,20],this.productiveList=[10,2],this.rampUpDownList=[30,3],this.scheduledDownList=[8,15],this.standByList=[2,12],this.unscheduledDownList=[10,18]},getList:function(){this.removeData(),this.init()},init:function(){this.chart=c.a.init(document.getElementById("monitorChart"));var t=this;t.chart.on("click",(function(e){t.$emit("equipmentName",e.name)})),this.chart.setOption({tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},toolbox:{feature:{saveAsImage:{show:!0}}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0,rotate:-30},max:10,data:this.xDataList},yAxis:{type:"value",min:0,max:100,axisLabel:{formatter:"{value}%"}},series:[{name:"engineering",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},barWidth:40,data:this.engineeringList},{name:"nonscheduledDown",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:this.nonscheduledDownList},{name:"productive",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:this.productiveList},{name:"rampUpDown",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:this.rampUpDownList},{name:"scheduledDown",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:this.scheduledDownList},{name:"standBy",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:this.standByList},{name:"unscheduledDown",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:this.unscheduledDownList}]})}}},h=m,d=i("2877"),p=Object(d["a"])(h,r,l,!1,null,null,null),f=p.exports,b=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",[i("el-button-group",[i("el-button",{on:{click:t.byYear}},[t._v("年")]),t._v(" "),i("el-button",{on:{click:t.byQuarterly}},[t._v("季度")]),t._v(" "),i("el-button",{on:{click:t.byMonth}},[t._v("月")]),t._v(" "),i("el-button",{on:{click:t.byWeek}},[t._v("周")]),t._v(" "),i("el-button",{on:{click:t.byDay}},[t._v("天")])],1)],1),t._v(" "),i("div",{staticStyle:{"margin-left":"10%"},style:{width:"700px",height:"550px"},attrs:{id:"monitorChart"}}),t._v(" "),t.tableVisible?i("e10-table",{attrs:{time1:t.startTime,time2:t.endTime,"equipment-name":t.name}}):t._e()],1)},y=[],g=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("base-table",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,"table-config":t.tableProps,"table-data":t.list,"is-loading":t.listLoading}}),t._v(" "),i("pagination",{attrs:{total:t.total,page:t.listQuery.current,limit:t.listQuery.size},on:{"update:page":function(e){return t.$set(t.listQuery,"current",e)},"update:limit":function(e){return t.$set(t.listQuery,"size",e)},pagination:t.init}})],1)},D=[],v=i("9923"),w=i("c0ee"),L=i("333d"),T=i("8975"),_=[{prop:"equipmentName",label:v["a"].t("module.equipmentManager.maintainplan.equipmentId"),align:"center"},{prop:"status",label:v["a"].t("module.equipmentManager.monitoringInfo.E10status"),align:"center"},{prop:"previousStatus",label:v["a"].t("module.equipmentManager.monitoringInfo.laterE10Status"),align:"center"},{prop:"endTime",label:v["a"].t("module.equipmentManager.monitoringInfo.E10endTime"),filter:T["timeFormatter"],align:"center"},{prop:"durationTime",label:v["a"].t("module.equipmentManager.monitoringInfo.duration"),align:"center"}],x={name:"",components:{BaseTable:w["a"],Pagination:L["a"]},props:{time1:{type:Date,default:function(){return""}},time2:{type:Date,default:function(){return""}},equipmentName:{type:String,default:function(){return""}}},data:function(){return{total:0,tableProps:_,list:[],listLoading:!1,listQuery:{current:1,size:10}}},mounted:function(){},methods:{init:function(){this.listQuery.startTime=this.time1,this.listQuery.endTime=this.time2,this.listQuery.equipmentName=this.equipmentName}}},k=x,q=(i("12d4"),Object(d["a"])(k,g,D,!1,null,"a2c4e918",null)),E=q.exports,C={components:{E10Table:E},props:{time1:{type:Date,default:function(){return""}},time2:{type:Date,default:function(){return""}},equipmentName:{type:String,default:function(){return""}}},data:function(){return{chart:null,tableVisible:!1,equipmentDetail:[],list:[],xDataList:[],engineeringList:[],nonscheduledDownList:[],productiveList:[],rampUpDownList:[],scheduledDownList:[],standByList:[],unscheduledDownList:[],startTime:"",endTime:"",name:""}},mounted:function(){this.startTime=this.time1,this.endTime=this.time2,this.name=this.equipmentName},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{getDataList:function(t){console.log(t)},byYear:function(){this.removeData(),this.setChart(this.list.)},byQuarterly:function(){this.removeData(),this.setChart(this.list.季度)},byMonth:function(){this.removeData(),this.setChart(this.list.)},byWeek:function(){this.removeData(),this.setChart(this.list.)},byDay:function(){this.removeData(),this.setChart(this.list.)},setChart:function(t){this.init()},removeData:function(){this.engineeringList=[20],this.nonscheduledDownList=[20],this.productiveList=[10],this.rampUpDownList=[30],this.scheduledDownList=[8],this.standByList=[2],this.unscheduledDownList=[10]},getList:function(){this.xDataList=[this.name],this.tableVisible=!0},init:function(){this.chart=c.a.init(document.getElementById("monitorChart")),this.chart.on("click",(function(t){console.log("113d",t.name)})),this.chart.setOption({tooltip:{trigger:"axis",axisPointer:{type:"cross",crossStyle:{color:"#999"}}},toolbox:{feature:{saveAsImage:{show:!0}}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",max:10,axisLabel:{interval:0,rotate:-30},data:this.xDataList},yAxis:{type:"value"},series:[{name:"engineering",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:this.engineeringList},{name:"nonscheduledDown",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:this.nonscheduledDownList},{name:"productive",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:this.productiveList},{name:"rampUpDown",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:this.rampUpDownList},{name:"scheduledDown",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:this.scheduledDownList},{name:"standBy",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:this.standByList},{name:"unscheduledDown",type:"bar",stack:"total",label:{show:!0},emphasis:{focus:"series"},data:this.unscheduledDownList}]})}}},M=C,S=Object(d["a"])(M,b,y,!1,null,null,null),$=S.exports,B={name:"E10",components:{e10Chart:f,e10DetailChart:$},data:function(){return{list:[],startTime:"",endTime:"",formData:{timeSlot:[],equipmentName:void 0,current:1,size:10},e10Visible:!1,e10Detail:!1,equipmentName:"",eqList:[]}},created:function(){},methods:{toE10:function(){this.$router.push({name:"E10"})},toOEE:function(){this.$router.push({name:"OEE"})},toMTTR:function(){this.$router.push({name:"MTTR"})},toMCBF:function(){this.$router.push({name:"MCBF"})},seeDetail:function(t){var e=this;this.equipmentName=t,this.e10Visible=!1,this.e10Detail=!0,o()((function(){e.$refs.e10DetailChart.getList()}),60)},getList:function(){var t=this;0!==this.formData.timeSlot.length&&(this.startTime=this.formData.timeSlot[0],this.endTime=this.formData.timeSlot[1],this.$nextTick((function(){t.e10Visible=!0,o()((function(){t.$refs.e10Chart.getList()}),60)})))}}},N=B,O=(i("8129"),Object(d["a"])(N,n,a,!1,null,"41d27c02",null));e["default"]=O.exports},e9c6:function(t,e,i){}}]);