tft-fe/dist/js/777.46088f37.js

1 line
16 KiB
JavaScript
Raw Permalink Normal View History

2023-07-13 14:11:41 +08:00
"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[777],{777:function(t,e,s){s.r(e),s.d(e,{default:function(){return X}});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"home-container",attrs:{id:"home-container"}},[e("div",{staticClass:"title-bar"},[e("h2",{staticClass:"tip"},[t._v("生产监控看板")]),e("el-select",{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:"kanban-container"},[e("el-row",{attrs:{gutter:8}},[e("el-col",{attrs:{span:12}},[e("div",{staticClass:"area1"},[e("top-title",{attrs:{icon:"home_title1",title:"生产进度",beilv:t.beilv}}),e("product-area",{attrs:{productMsg:t.productMsg,dbMsg:t.dbMsg,beilv:t.beilv}})],1)]),e("el-col",{attrs:{span:12}},[e("div",{staticClass:"area2"},[e("top-title",{attrs:{icon:"home_title2",title:"设备信息",beilv:t.beilv}}),e("device-area",{attrs:{list:t.deviceList,beilv:t.beilv}})],1)])],1),e("el-row",{attrs:{gutter:8}},[e("el-col",{attrs:{span:12}},[e("div",{staticClass:"area3"},[e("top-title",{attrs:{icon:"home_title3",title:"产能信息",beilv:t.beilv}}),e("capacity-area",{attrs:{list:t.capacityList}})],1)]),e("el-col",{attrs:{span:12}},[e("div",{staticClass:"area4"},[e("top-title",{attrs:{icon:"home_title4",title:"耗材信息",beilv:t.beilv}}),e("material-area",{attrs:{list:t.materialList}})],1)])],1)],1)])},i=[],l=function(){var t=this,e=t._self._c;return e("div",{staticClass:"home_module_title"},[e("svg-icon",{staticClass:"iconStyle",style:{fontSize:22*t.beilv+"px"},attrs:{"icon-class":t.icon}}),e("span",{staticClass:"titleStyle",style:{fontSize:16*t.beilv+"px"}},[t._v(t._s(t.title))])],1)},r=[],n={name:"TopTitle",props:{icon:{type:String,default:""},title:{type:String,default:""},beilv:{type:Number,default:1}}},o=n,c=s(1001),p=(0,c.Z)(o,l,r,!1,null,"632946fd",null),d=p.exports,m=function(){var t=this,e=t._self._c;return e("div",{staticClass:"capacity_box"},[e("el-row",{attrs:{gutter:15}},[e("el-col",{attrs:{span:12}},[e("base-table",{attrs:{page:t.listQuery1.current,limit:t.listQuery1.size,pageWidth:40,"table-props":t.tableProps,"table-data":t.tableDataL,"max-height":t.tableH}})],1),e("el-col",{attrs:{span:12}},[e("base-table",{attrs:{page:t.listQuery2.current,limit:t.listQuery2.size,pageWidth:40,"table-props":t.tableProps,"table-data":t.tableDataR,"max-height":t.tableH}})],1)],1)],1)},u=[];function h(){return(window.innerHeight-168)/2-55}const b=[{prop:"equipmentName",label:"设备名称",minWidth:98},{prop:"glassNumberIn",label:"投入数量",minWidth:98},{prop:"glassNumberOut",label:"输出数量",minWidth:98},{prop:"glassNumberMiss",label:"损失数量",minWidth:98}];var g={name:"CapacityArea",data(){return{tableProps:b,tableH:h(),listQuery1:{current:1,size:8},listQuery2:{current:2,size:8}}},mounted(){window.addEventListener("resize",(()=>{this.tableH=h()}))},props:{list:{type:Array,default:()=>[]},beilv:{type:Number,default:1}},computed:{tableDataL:function(){return this.list.length>8?this.list.slice(0,8):this.list.slice(0,this.list.length)},tableDataR:function(){return this.list.length>8?this.list.slice(8,16):[]}}},v=g,y=(0,c.Z)(v,m,u,!1,null,"4d0dc5dc",null),f=y.exports,_=function(){var t=this,e=t._self._c;return e("div",{staticClass:"material_box"},[e("el-row",{attrs:{gutter:15}},[e("el-col",{attrs:{span:12}},[e("base-table",{attrs:{page:t.listQuery1.current,limit:t.listQuery1.size,pageWidth:40,"table-props":t.tableProps,"table-data":t.tableDataL,"max-height":t.tableH}})],1),e("el-col",{attrs:{span:12}},[e("base-table",{attrs:{page:t.listQuery2.current,limit:t.listQuery2.size,pageWidth:40,"table-props":t.tableProps,"table-data":t.tableDataR,"max-height":t.tableH}})],1)],1)],1)},x=[];const C=[{prop:"equipmentName",label:"设备名称",minWidth:98},{prop:"material",label:"耗材名称",minWidth:98},{prop:"num",label:"使用次数",minWidth:98}];var M=