tft-fe/dist/js/5067.beaa119f.js

1 line
9.5 KiB
JavaScript
Raw Normal View History

2023-02-23 16:56:28 +08:00
"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[5067],{5067:function(t,e,a){a.r(e),a.d(e,{default:function(){return v}});var n=function(){var t=this,e=t._self._c;return e("div",[e("el-row",{staticClass:"main-box",attrs:{gutter:10}},[e("el-col",{attrs:{span:18}},[e("div",{staticClass:"left-box"},[e("search-bar",{ref:"searchBarForm",attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick}}),e("base-table",{ref:"palletTable1",attrs:{id:"palletTable",page:t.listQuery.current,limit:t.listQuery.size,"table-props":t.tableProps,"table-data":t.tableData,"max-height":t.tableH,"highlight-current-row":""},on:{"current-change":t.selectPallet}}),e("pagination",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,total:t.total},on:{"update:page":function(e){return t.$set(t.listQuery,"current",e)},"update:limit":function(e){return t.$set(t.listQuery,"size",e)},pagination:function(e){return t.getList()}}})],1)]),e("el-col",{attrs:{span:6}},[e("div",{staticClass:"right-box"},[e("el-row",[e("el-col",{staticClass:"rigth-top"},[e("span",{staticClass:"title"},[t._v("托盘对应产品等级数据")]),e("base-table",{attrs:{"table-props":t.tableProps2,"table-data":t.tableData2,"max-height":t.tableH2}})],1)],1),e("el-row",[e("el-col",{staticClass:"right-bottom"},[e("span",{staticClass:"title"},[t._v("托盘对应产品等级分析")]),e("pallet-level-chart",{attrs:{chartMsg:t.chartMsg}})],1)],1)],1)])],1)],1)},r=[],i=a(475),u=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticStyle:{width:"100%"},style:{height:t.chartHeight+"px"},attrs:{id:"palletLevel"}})])},o=[],l=a(7171),s=a(5468),c={name:"PalletLevelChart",mixins:[s.Z],props:{chartMsg:{type:Object,default:()=>{}}},data(){return{chart:"",chartHeight:.5*(0,i.NC)(400)}},mounted(){this.$nextTick((()=>{this.getChart()})),window.addEventListener("resize",(()=>{this.chartHeight=.5*(0,i.NC)(400)}))},watch:{chartMsg:function(){this.getChart()}},beforeDestroy(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{getChart(){null!==this.chart&&""!==this.chart&&void 0!==this.chart&&this.chart.dispose();var t=document.getElementById("palletLevel");this.chart=l.S1(t),console.log(this.chartMsg);var e=this.chartMsg.okNum,a=this.chartMsg.reprocessNum,n=this.chartMsg.wasteNum;const r=["rgba(91, 143, 249, 0.8500)","rgba(90, 216, 166, 0.8500)","rgba(246, 189, 22, 0.8500)"];var i={color:r,legend:{icon:"circle",bottom:"0",left:"center",itemWidth:10,itemHeight:10},series:{name:"palletLeve",type:"pie",radius:["40%","60%"],center:["50%","45%"],data:[{value:e,name:"良品 "+e},{value:a,name:"再加工品 "+a},{value:n,name:"废品 "+n}]}};i&&this.chart.setOption(i)}}},p=c,m=a(1001),d=(0,m.Z)(p,u,o,!1,null,null,null),h=d.exports,f=a(147),g=a(381),b=a.n(g);const y=[{prop:"proLineName",label:"产线",minWidth:80},{prop:"code",label:"工单编号",minWidth:120},{prop:"glassId",label:"玻璃ID",minWidth:120},{prop:"rackId",label:"成品架ID",minWidth:120},{prop:"loadTime",label:"产品上片时间",filter:i.g6,minWidth:160},{prop:"unloadTime",label:"产品下片时间",filter:i.g6,minWidth:160},{prop:"grade",label:"玻璃等级",minWidth:80},{prop:"palletId",label:"面磨托盘ID",minWidth:120},{prop:"glassLength",label:"玻璃长度"},{prop:"glassWidth",label:"玻璃宽度"},{prop:"glassHeight",label:"玻璃厚度"}],M=[{prop:"productType",label:"产品分类"},{prop:"num",label:"数量"},{prop:"percentage",label:"占比"}];var P={name:"analysisOfPallet",components:{palletLevelChart:h},data(){return{formConfig:[{type:"input",label:"托盘ID",placeholder:"托盘ID",param:"palletId"},{type:"datePicker",label:"产品上片时间",dateType:"datetimerange",format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-ddTHH:mm:ss",rangeSeparator:"-",startPlaceholder:"开始时间",endPlaceholder:"结束时间",param:"timeVal",defaultSelect:[],width:350},{type:"button",btnName:"查询",name:"search",color:"primary"}],listQuery:{current:1,size:20,palletId:"",startTime:"",endTime:""},total:0,tableProps:y,tableData:[],tableH:(0,i.NC)(330),listQuery2:{current:1,size:500},ta