1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
|
"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[5640],{5640:function(t,e,a){a.r(e),a.d(e,{default:function(){return O}});var i=function(){var t=this,e=t._self._c;return e("div",{ref:"container",staticClass:"main-box",style:{padding:"0 "+8*t.beilv+"px "},attrs:{id:"container"}},[e("el-row",{staticClass:"top-box",attrs:{gutter:8}},[e("el-col",{attrs:{span:10}},[e("div",{staticClass:"top-left"},[e("div",{staticClass:"top-title",style:{padding:16*t.beilv+"px "+18*t.beilv+"px "+20*t.beilv+"px"}},[e("svg-icon",{style:{fontSize:22*t.beilv+"px",marginRight:8*t.beilv+"px"},attrs:{"icon-class":"home_title1"}}),e("span",{staticClass:"titleStyle",style:{fontSize:16*t.beilv+"px"}},[t._v("生产进度")])],1),e("ul",{staticClass:"line-order-msg"},[e("li",{style:{width:"40%",paddingLeft:24*t.beilv+"px"}},[e("div",{style:{fontSize:16*t.beilv+"px"}},[e("span",{staticClass:"title",style:{margin:"0 "+5*t.beilv+"px "+40*t.beilv+"px 0"}},[t._v("产线名称")]),e("el-select",{style:{width:150*t.beilv+"px"},attrs:{placeholder:"请选择名称",size:"small"},on:{change:t.changeLine},model:{value:t.lineName,callback:function(e){t.lineName=e},expression:"lineName"}},t._l(t.nameList,(function(t){return e("el-option",{key:t.dataCode,attrs:{label:t.dataName,value:t.dataCode}})})),1)],1),e("div",{staticClass:"num-box",style:{paddingRight:32*t.beilv+"px"}},[e("div",{staticClass:"plan_num",style:{padding:16*t.beilv+"px 0 "+16*t.beilv+"px "+32*t.beilv+"px",marginBottom:16*t.beilv+"px"}},[e("svg-icon",{style:{fontSize:32*t.beilv+"px",marginBottom:6*t.beilv+"px"},attrs:{"icon-class":"home_plan"}}),e("p",{staticClass:"num",style:{fontSize:24*t.beilv+"px",marginBottom:8*t.beilv+"px"}},[t._v(" "+t._s(t.productMsg.planNum)+" ")]),e("p",{staticClass:"words",style:{fontSize:14*t.beilv+"px"}},[t._v(" 计划数量 ")])],1),e("div",{staticClass:"product_num",style:{padding:16*t.beilv+"px 0 "+16*t.beilv+"px "+32*t.beilv+"px",marginBottom:16*t.beilv+"px"}},[e("svg-icon",{style:{fontSize:32*t.beilv+"px",marginBottom:8*t.beilv+"px"},attrs:{"icon-class":"home_product"}}),e("p",{staticClass:"num",style:{fontSize:24*t.beilv+"px",marginBottom:6*t.beilv+"px"}},[t._v(" "+t._s(t.productMsg.finishNum)+" ")]),e("p",{staticClass:"words",style:{fontSize:14*t.beilv+"px"}},[t._v(" 生产数量 ")])],1)])]),e("li",{style:{width:"60%",paddingLeft:24*t.beilv+"px"}},[e("div",{style:{fontSize:16*t.beilv+"px"}},[e("span",{staticClass:"title",style:{margin:"0 "+20*t.beilv+"px "+32*t.beilv+"px 0"}},[t._v("生产信息")]),e("span",[t._v("工单号: "+t._s(t.productMsg.code))]),e("ring-chart",{attrs:{chartMsg:t.productMsg,beilv:t.beilv}})],1)])])])]),e("el-col",{attrs:{span:14}},[e("div",{staticClass:"top-right"},[e("progress-details",{attrs:{detailMsg:t.detailMsg,beilv:t.beilv}})],1)])],1),e("el-row",[e("el-col",{attrs:{span:24}},[e("div",{staticClass:"bottom-box"},[e("progress-statistics",{attrs:{lineName:t.lineName,beilv:t.beilv}})],1)])],1)],1)},s=[],l=function(){var t=this,e=t._self._c;return e("div",{style:{paddingLeft:50*t.beilv+"px"}},[e("div",{style:{height:280*t.beilv+"px",width:280*t.beilv+"px"},attrs:{id:"productRing"}})])},n=[],o=a(7171),r=a(5468),p={mixins:[r.Z],name:"RingChart",props:{chartMsg:{type:Object,default:()=>({chart:""})},beilv:{type:Number,default:1}},mounted(){this.$nextTick((()=>{this.initChart()}))},watch:{chartMsg:function(){this.initChart()}},beforeDestroy(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart(){null!==this.chart&&""!==this.chart&&void 0!==this.chart&&this.chart.dispose();var t=document.getElementById("productRing");this.chart=o.S1(t),console.log(this.chartMsg);var e=this.chartMsg.finishNum,a=this.chartMsg.okNum,i=this.chartMsg.wasteNum,s=this.chartMsg.reprocessNum,l=this.chartMsg.tuneNum,n={color:["#288aff","#7a34fd","#ffb750","#95f3b1"],tooltip:{trigger:"item"},legend:{icon:"circle",bottom:"0%",left:"center",itemWidth:8,itemHeight:8},series:[{type:"pie",zlevel:1,radius:["55%","58%"],center:["50%","40%"],label:{show:!1},itemStyle:{shadowBlur:10,shadowColor:"rgba(209, 204, 214, 0.64)",co
|