"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[1965],{1965:function(a,l,e){e.r(l),e.d(l,{default:function(){return da}});var s=function(){var a=this,l=a._self._c;return l("div",{staticClass:"finalInspectionData"},[l("el-row",{staticClass:"box-top"},[l("el-col",[l("div",{staticClass:"search-box"},[l("search-bar",{attrs:{formConfigs:a.formConfig},on:{headBtnClick:a.buttonClick,"select-changed":a.selectChanged}})],1)])],1),l("el-row",{staticClass:"box",attrs:{gutter:8}},[l("el-col",{attrs:{span:9}},[l("div",{staticClass:"left-box"},[l("span",{staticClass:"table-button",on:{click:a.generateReport}},[a._v("生成表格")]),l("base-table",{attrs:{selectWidth:40,"table-props":a.tablePropsL,"table-data":a.tableDataL,"max-height":a.tableHL},on:{"selection-change":a.selectChange}})],1)]),l("el-col",{attrs:{span:15}},[l("div",{staticClass:"right-box"},[a.reportTitle?l("div",[l("span",{staticClass:"title"},[a._v(a._s(a.reportTitle))])]):a._e(),"玻璃基板品质报表"===a.reportTitle?l("div",{staticClass:"table-box"},[l("glass-quality-report",{attrs:{tableData:a.glassQualityArr}})],1):a._e(),"厚度汇总报表"===a.reportTitle?l("div",{staticClass:"table-box"},[l("glass-thick-report",{attrs:{tableData:a.thickReportArr}})],1):a._e(),"终检下片包装"===a.reportTitle?l("div",{staticClass:"table-box"},[l("glass-pack-report",{attrs:{tableData1:a.packClaReportArr,tableData2:a.packReportArr}})],1):a._e(),"玻璃判废统计表"===a.reportTitle?l("div",{staticClass:"table-box"},[l("glass-waste-report",{attrs:{tableData:a.wasteReportArr}})],1):a._e(),"判废机组统计表"===a.reportTitle?l("div",{staticClass:"table-box"},[l("waste-machine-report",{attrs:{tableData:a.wasteMachineArr}})],1):a._e(),"判废位置统计表"===a.reportTitle?l("div",{staticClass:"table-box"},[l("waste-location-report",{attrs:{tableData:a.wasteLocationArr}})],1):a._e(),"玻璃基板缺陷报表"===a.reportTitle?l("div",{staticClass:"table-box"},[l("glass-defect-report",{attrs:{tableData:a.glassDefectArr}})],1):a._e()])])],1)],1)},t=[],r=e(475),o=e(6527),n=function(){var a=this,l=a._self._c;return l("div",[l("base-table",{attrs:{"table-props":a.tableProps,"table-data":a.tableData,"max-height":a.tableH}})],1)},i=[];const p=[{prop:"time",label:"检测时间",filter:r.g6,minWidth:160},{prop:"virtualcode",label:"玻璃ID",minWidth:120},{prop:"lineA",label:"加工条件",children:[{prop:"palletId",label:"托盘ID"},{prop:"grindtype",label:"研磨类型"}]},{prop:"lineB",label:"检测数据",children:[{prop:"sums",label:"颗粒总数"},{prop:"distortion",label:"变形"},{prop:"tail",label:"拖尾"},{prop:"bl",label:"气泡"},{prop:"stone",label:"结石"},{prop:"scratch",label:"划伤"},{prop:"surfaceSum",label:"面检总数"}]},{prop:"lineC",label:"研磨电流(A)",children:[{prop:"ae",label:"A机台"},{prop:"be",label:"B机台"},{prop:"ce",label:"C机台"},{prop:"alle",label:"总电流"}]},{prop:"eletricityConform",label:"工艺符合性",minWidth:100},{prop:"lineD",label:"研磨时间(S)",children:[{prop:"ae",label:"A机台"},{prop:"be",label:"B机台"},{prop:"ce",label:"C机台"},{prop:"allt",label:"总研磨时间",minWidth:100}]}];var c={name:"glassQualityReport",data(){return{tableProps:p,tableH:(0,r.NC)(292)}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,r.NC)(292)}))},props:{tableData:{type:Array,required:!0,default:()=>[]}}},d=c,b=e(1001),m=(0,b.Z)(d,n,i,!1,null,null,null),h=m.exports,u=function(){var a=this,l=a._self._c;return l("div",[l("base-table",{attrs:{"table-props":a.tableProps,"table-data":a.tableData,"max-height":a.tableH}})],1)},g=[];const f=[{prop:"glassId",label:"玻璃ID",minWidth:120},{prop:"testTime",label:"检测时间",filter:r.g6,minWidth:160},{prop:"palletId",label:"托盘ID",minWidth:120},{prop:"grindType",label:"研磨类型",minWidth:120},{prop:"maxValue",label:"最大值",minWidth:120},{prop:"minValue",label:"最小值",minWidth:120},{prop:"avgValue",label:"平均值",minWidth:120},{prop:"ttvValue",label:"厚薄差",minWidth:120}];var W={name:"glassThickReport",data(){return{tableProps:f,tableH:(0,r.NC)(292)}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,r.NC)(292)}))},props:{tableData:{type:Array,required:!0,default:()=>[]}}},y=W,v=(0,b.Z)(y,u,g,!1,null,null,null),D=v.exports,A=function(){var a=this,l=a._self._c;return l("div",[l("base-table",{attrs:{"table-props":a.tableProps1,"table-data":a.tableData1,"max-height":a.tableH}}),l("base-table",{attrs:{"table-props":a.tableProps2,"table-data":a.tableData2,"max-height":a.tableH}})],1)},T=[];const C=[{prop:"grindType",label:"研磨类型",minWidth:120},{prop:"glassNum",label:"数量",minWidth:160},{prop:"surfaceAvg",label:"颗粒均值",minWidth:120},{prop:"surfaceMin",label:"最小值",minWidth:120},{prop:"surfaceMax",label:"最大值",minWidth:120},{prop:"savg",label:"S均值<1um",minWidth:120},{prop:"mavg",label:"M均值1-3um",minWidth:120},{prop:"lavg",label:"L均值3-5um",minWidth:120},{prop:"xlAvg",label:"XL均值5-10um",minWidth:120},{prop:"defectAvg",label:"缺陷均值",minWidth:120},{prop:"defectMin",label:"最小值",minWidth:120},{prop:"defectMax",label:"最大值",minWidth:120},{prop:"blAvg",label:"气泡均值",minWidth:120},{prop:"distortionAvg",label:"变形均值",minWidth:120},{prop:"fiberAvg",label:"纤维均值",minWidth:120},{prop:"iisrestAvg",label:"无法识别均值",minWidth:120},{prop:"knotAvg",label:"结节均值",minWidth:120},{prop:"ptAvg",label:"铂金欠点均值",minWidth:120},{prop:"scratchAvg",label:"划伤均值",minWidth:120},{prop:"stoneAvg",label:"结石均值",minWidth:120},{prop:"tailAvg",label:"拖尾均值",minWidth:120},{prop:"tinAvg",label:"点状缺陷均值",minWidth:120},{prop:"bottomAvg",label:"锡(锡面)均值",minWidth:120},{prop:"topAvg",label:"锡(空气面)均值",minWidth:120}],R=[{prop:"glassId",label:"玻璃ID",minWidth:120},{prop:"rackNum",label:"包装架号",minWidth:120},{prop:"testTime",label:"包装时间",filter:r.g6,minWidth:160},{prop:"num",label:"包装数量",minWidth:120},{prop:"particleSum",label:"颗粒Sum",minWidth:120},{prop:"s",label:"S<1um",minWidth:120},{prop:"m",label:"M1-3um",minWidth:120},{prop:"l",label:"L3-5um",minWidth:120},{prop:"xl",label:"XL5-10um",minWidth:120},{prop:"defectSum",label:"缺陷Sum",minWidth:120},{prop:"bl",label:"气泡",minWidth:120},{prop:"distortion",label:"变形",minWidth:120},{prop:"fiber",label:"纤维",minWidth:120},{prop:"iisrest",label:"无法识别",minWidth:120},{prop:"knot",label:"结节",minWidth:120},{prop:"pt",label:"铂金欠点",minWidth:120},{prop:"scratch",label:"划伤",minWidth:120},{prop:"stone",label:"结石",minWidth:120},{prop:"tail",label:"拖尾",minWidth:120},{prop:"tin",label:"点状缺陷",minWidth:120},{prop:"bottom",label:"锡(锡面)",minWidth:120},{prop:"top",label:"锡(空气面)",minWidth:120},{prop:"adg",label:"ADG",minWidth:120},{prop:"allSum",label:"合计",minWidth:120},{prop:"grindType",label:"研磨类型",minWidth:120}];var w={name:"glassPackReport",data(){return{tableProps1:C,tableProps2:R,tableH:(0,r.NC)(292)}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,r.NC)(292)}))},props:{tableData1:{type:Array,required:!0,default:()=>[]},tableData2:{type:Array,required:!0,default:()=>[]}}},_=w,k=(0,b.Z)(_,A,T,!1,null,null,null),x=k.exports,L=function(){var a=this,l=a._self._c;return l("div",{staticClass:"glassWasteReport"},[l("base-table",{attrs:{"table-props":a.tableProps,"table-data":a.tableData,"max-height":a.tableH,page:1,limit:20,"show-summary":""}})],1)},I=[];const P=[{prop:"glassId",label:"ID"},{prop:"name1",label:"合格"},{prop:"lineA",label:"前工程不良",children:[{prop:"name2",label:"气泡数量"},{prop:"name3",label:"气泡尺寸"},{prop:"name4",label:"上表锡数量"},{prop:"name5",label:"上表锡尺寸"},{prop:"name6",label:"下表锡数量"},{prop:"name7",label:"下表锡尺寸"},{prop:"name8",label:"欠点数合计"},{prop:"name9",label:"缺陷聚集"},{prop:"name10",label:"结瘤"},{prop:"name11",label:"PT"},{prop:"name12",label:"结石"},{prop:"name13",label:"其他"}]},{prop:"lineB",label:"后工程不良",children:[{prop:"age",label:"颗粒/面检数超"},{prop:"age1",label:"划伤"},{prop:"age2",label:"颗粒/缺陷聚集"},{prop:"age3",label:"轮印"},{prop:"age4",label:"面磨印记"},{prop:"age5",label:"残留"},{prop:"age6",label:"污渍"},{prop:"age7",label:"纤维"},{prop:"age8",label:"水渍"},{prop:"age9",label:"磨痕"},{prop:"age10",label:"气浮擦伤"},{prop:"age11",label:"雾面"},{prop:"age12",label:"异物"},{prop:"age13",label:"其他"}]}];var H={name:"glassWasteReport",data(){return{tableProps:P,tableH:(0,r.NC)(292)}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,r.NC)(292)}))},props:{tableData:{type:Array,required:!0,default:()=>[]}},methods:{}},Z=H,M=(0,b.Z)(Z,L,I,!1,null,null,null),S=M.exports,N=function(){var a=this,l=a._self._c;return l("div",{staticClass:"wasteMachineReport"},[l("base-table",{attrs:{"table-props":a.tableProps,"table-data":a.tableData,"max-height":a.tableH}})],1)},B=[];const G=[{label:"研磨机组",children:[{prop:"name",label:"判废原因",minWidth:110}]},{prop:"name1",label:"1#"},{prop:"name2",label:"2#"},{prop:"name3",label:"3#"},{prop:"name4",label:"4#"},{prop:"name5",label:"5#"},{prop:"name6",label:"6#"},{prop:"name7",label:"7#"}];var Q={name:"wasteMachineReport",data(){return{tableProps:G,tableH:(0,r.NC)(292)}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,r.NC)(292)}))},props:{tableData:{type:Array,required:!0,default:()=>[]}}},q=Q,z=(0,b.Z)(q,N,B,!1,null,null,null),F=z.exports,V=function(){var a=this,l=a._self._c;return l("div",{staticClass:"wasteLocationReport"},[l("base-table",{attrs:{"table-props":a.tableProps,"table-data":a.tableData,"max-height":a.tableH}})],1)},E=[];const O=[{label:"九宫格",children:[{prop:"name",label:"判废原因",minWidth:110}]},{prop:"name1",label:"1#"},{prop:"name2",label:"2#"},{prop:"name3",label:"3#"},{prop:"name4",label:"4#"},{prop:"name5",label:"5#"},{prop:"name6",label:"6#"},{prop:"name7",label:"7#"},{prop:"name8",label:"8#"},{prop:"name9",label:"9#"},{prop:"name10",label:"整板"}];var U={name:"wasteLocationReport",data(){return{tableProps:O,tableH:(0,r.NC)(292)}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,r.NC)(292)}))},props:{tableData:{type:Array,required:!0,default:()=>[]}}},$=U,j=(0,b.Z)($,V,E,!1,null,null,null),J=j.exports,K=function(){var a=this,l=a._self._c;return l("div",{staticClass:"glassDefectReport"},[l("ul",{staticClass:"baseMsg"},[a._m(0),l("li",{attrs:{title:a.glassId}},[l("span",[a._v("玻璃ID:")]),a._v(a._s(a.glassId))]),a._m(1),a._m(2)]),l("base-table",{attrs:{"table-props":a.tablePropsT,"table-data":a.tableDataT}}),l("base-table",{attrs:{"table-props":a.tablePropsB,"table-data":a.tableDataB}})],1)},X=[function(){var a=this,l=a._self._c;return l("li",[l("span",[a._v("单位:")]),a._v("um")])},function(){var a=this,l=a._self._c;return l("li",[l("span",[a._v("生产日期:")]),a._v("2022.12.24 14:45:34")])},function(){var a=this,l=a._self._c;return l("li",[l("span",[a._v("等级:")]),a._v("G1")])}];const Y=[{label:"尺寸",children:[{prop:"name1",label:"面检缺陷",width:110}]},{label:"class1",children:[{prop:"class1",label:"<10*25",minWidth:70}]},{label:"class2",children:[{prop:"class2",label:"<10*25",minWidth:70}]},{label:"class3",children:[{prop:"class3",label:"<10*25",minWidth:70}]},{label:"class4",children:[{prop:"class4",label:"<10*25",minWidth:70}]},{label:"class5",children:[{prop:"class5",label:"<10*25",minWidth:70}]},{label:"class6",children:[{prop:"class6",label:"<10*25",minWidth:70}]},{label:"class7",children:[{prop:"class7",label:"<10*25",minWidth:70}]},{label:"class8",children:[{prop:"class8",label:"<10*25",minWidth:70}]},{label:"class9",children:[{prop:"class9",label:"<10*25",minWidth:70}]},{label:"class10",children:[{prop:"class10",label:"<10*25",minWidth:70}]},{prop:"total",label:"总数",minWidth:70}],aa=[{label:"尺寸",children:[{prop:"name1",label:"面检缺陷",width:110}]},{label:"class1",children:[{prop:"class1",label:"100-200",minWidth:70}]},{label:"class2",children:[{prop:"class2",label:"200-500",minWidth:70}]},{label:"class3",children:[{prop:"class3",label:"300-800",minWidth:70}]},{label:"class4",children:[{prop:"class4",label:"500-1000",minWidth:70}]},{label:"class5",children:[{prop:"class5",label:"1000-2000",minWidth:70}]},{label:"class6",children:[{prop:"class6",label:"<1000-30000",minWidth:70}]},{label:"class7",children:[{prop:"class7",label:"1000-5000",minWidth:70}]},{label:"class8",children:[{prop:"class8",label:"1000-8000",minWidth:70}]},{label:"class9",children:[{prop:"class9",label:"1000-10000",minWidth:70}]},{label:"class10",children:[{prop:"class10",label:"1000-10000",minWidth:70}]},{prop:"total",label:"总数",minWidth:70}];var la={name:"glassDefectReport",data(){return{tablePropsT:Y,tableDataT:[],tablePropsB:aa,tableDataB:[],glassId:"203839738763,5324723648623,87423745327845,23645326,4532675444"}},mounted(){this.getList()},methods:{getList(){this.tableDataT=[{name1:"BL",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"Distortion",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"Fiber",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"IIS rest",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"Knot",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"PT",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"Scratch",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"Stone",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"Tail",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"Tin",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"Tin(Bottom)",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"Tin(Top)",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"面检sum",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20}],this.tableDataB=[{name1:"BL",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"Distortion",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"Fiber",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"IIS rest",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"Knot",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"PT",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"Scratch",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"Stone",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"Tail",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"Tin",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"Tin(Bottom)",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"Tin(Top)",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20},{name1:"面检sum",class1:0,class2:2,class3:54,class4:0,class5:0,class6:0,class7:7,class8:0,class9:0,class10:0,total:20}]}}},ea=la,sa=(0,b.Z)(ea,K,X,!1,null,null,null),ta=sa.exports,ra=e(381),oa=e.n(ra);const na=[{prop:"glassId",label:"ID",minWidth:100},{prop:"unloadTime",label:"检测时间",minWidth:120,filter:r.g6},{prop:"grindtype",label:"研磨类型",minWidth:80}];var ia={name:"FinalInspectionData",components:{glassQualityReport:h,glassThickReport:D,glassPackReport:x,glassWasteReport:S,wasteMachineReport:F,wasteLocationReport:J,glassDefectReport:ta},data(){return{formConfig:[{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:"select",label:"玻璃架",selectOptions:[],param:"glassFrame",defaultSelect:"全部",width:150,clearable:!1},{type:"select",label:"报表类型",selectOptions:[{id:"玻璃基板品质报表",name:"玻璃基板品质报表"},{id:"终检下片包装",name:"终检下片包装"},{id:"厚度汇总报表",name:"厚度汇总报表"},{id:"玻璃判废统计表",name:"玻璃判废统计表"},{id:"判废机组统计表",name:"判废机组统计表"},{id:"判废位置统计表",name:"判废位置统计表"},{id:"玻璃基板缺陷报表",name:"玻璃基板缺陷报表"}],param:"fullInspectionType1",defaultSelect:"",onchange:!0,width:150},{type:"button",btnName:"查询",name:"search",color:"primary"},{type:"separate"},{type:"button",btnName:"导出",name:"export",color:"primary",plain:!0}],tablePropsL:na,tableDataL:[],tableHL:(0,r.NC)(300),reportTitle:"",listQuery:{startTime:"",endTime:"",glassFrame:"",current:1,size:500},selectArr:[],glassQualityArr:[],thickReportArr:[],packReportArr:[],packClaReportArr:[],wasteReportArr:[{name1:11},{name1:22}],wasteMachineArr:[{name:"颗粒/面检数超标",name1:"11"},{name:"颗粒/缺陷聚集",name1:"22"},{name:"划伤",name1:"33"},{name:"面磨印记",name1:"44"},{name:"磨痕",name1:"55"}],wasteLocationArr:[{name:"颗粒/面检数超标",name1:"11"},{name:"颗粒/缺陷聚集",name1:"22"},{name:"划伤",name1:"33"},{name:"面磨印记",name1:"44"},{name:"磨痕",name1:"55"}],glassDefectArr:[]}},mounted(){this.getOption(),window.addEventListener("resize",(()=>{this.tableHL=(0,r.NC)(300)})),this.formConfig[0].defaultSelect=[oa()().format("yyyy-MM-DD")+"T00:00:00",oa()().format("yyyy-MM-DD")+"T23:59:59"],this.listQuery.startTime=oa()().format("yyyy-MM-DD")+"T00:00:00",this.listQuery.endTime=oa()().format("yyyy-MM-DD")+"T23:59:59",this.listQuery.glassFrame="全部",this.getList()},methods:{getList(){(0,o.uW)({...this.listQuery}).then((a=>{0===a.code?this.tableDataL=a.data:this.tableDataL=[]}))},getOption(){let a=JSON.parse(localStorage.getItem("publicList")).glassRackStationVoList,l=a.map((a=>({id:a.dataName,name:a.dataName})));l.push({id:"全部",name:"全部"},{id:"废片",name:"废片"}),this.formConfig[1].selectOptions=l,console.log(l)},buttonClick(a){let l=[];switch(a.btnName){case"search":this.listQuery.startTime=a.timeVal?a.timeVal[0]:"",this.listQuery.endTime=a.timeVal?a.timeVal[1]:"",this.listQuery.glassFrame=a.glassFrame,this.getList();break;default:if(0===this.selectArr.length)return this.$message({message:"请勾选左侧表格数据",type:"warning"}),!1;if(""===this.reportTitle)return this.$message({message:"请选择报表类型",type:"warning"}),!1;console.log(this.selectArr);for(let a of this.selectArr)l.push(a.glassId);"玻璃基板品质报表"===this.reportTitle?this.exportGlassReport(l):"厚度汇总报表"===this.reportTitle&&this.exportThickReport(l)}},selectChanged(a){this.reportTitle=a.value,this.glassQualityArr=[],this.thickReportArr=[],this.packReportArr=[],this.packClaReportArr=[]},selectChange(a){this.selectArr=a},generateReport(){if(0===this.selectArr.length)return this.$message({message:"请勾选左侧表格数据",type:"warning"}),!1;if(""===this.reportTitle)return this.$message({message:"请选择报表类型",type:"warning"}),!1;let a=[];for(let l of this.selectArr)a.push(l.glassId);switch(this.reportTitle){case"玻璃基板品质报表":this.getGlassReport(a);break;case"厚度汇总报表":this.getThickReport(a);break;default:this.getGlassData(a)}},getGlassReport(a){(0,o.uj)({glassId:a,size:1e3,current:1}).then((a=>{console.log(a),this.glassQualityArr=a.data}))},exportGlassReport(a){(0,o.oR)({glassId:a,size:1e3,current:1}).then((a=>{console.log(a);let l="";const e=a.headers["content-disposition"];e&&(l=decodeURIComponent(e.slice(e.indexOf("filename=")+9)));const s=new Blob([a.data]),t=new FileReader;t.readAsDataURL(s),t.onload=a=>{const e=document.createElement("a");e.download=l,e.href=a.target.result,document.body.appendChild(e),e.click(),document.body.removeChild(e)}}))},getThickReport(a){(0,o.bu)({glassId:a,size:1e3,current:1}).then((a=>{console.log(a),this.thickReportArr=a.data}))},exportThickReport(a){(0,o.an)({glassId:a,size:1e3,current:1}).then((a=>{console.log(a);let l="";const e=a.headers["content-disposition"];e&&(l=decodeURIComponent(e.slice(e.indexOf("filename=")+9)));const s=new Blob([a.data]),t=new FileReader;t.readAsDataURL(s),t.onload=a=>{const e=document.createElement("a");e.download=l,e.href=a.target.result,document.body.appendChild(e),e.click(),document.body.removeChild(e)}}))},getGlassData(a){(0,o.AT)({glassId:a}).then((a=>{console.log(a),this.packReportArr=a.data})),(0,o.fL)({glassId:a}).then((a=>{console.log(a),this.packClaReportArr=a.data}))}}},pa=ia,ca=(0,b.Z)(pa,s,t,!1,null,"4f3b2616",null),da=ca.exports},6527:function(a,l,e){e.d(l,{AT:function(){return y},Hg:function(){return b},J_:function(){return t},QL:function(){return i},W0:function(){return m},a:function(){return d},an:function(){return W},bu:function(){return f},fL:function(){return v},kB:function(){return r},m3:function(){return c},oR:function(){return g},sy:function(){return o},uW:function(){return h},uj:function(){return u},wy:function(){return n},yk:function(){return p}});var s=e(8859);function t(a){return(0,s.Z)({url:"/report/report-sheet-category/list",method:"post",data:a})}function r(a){return(0,s.Z)({url:"/report/report-sheet/page",method:"post",data:a})}function o(a){return(0,s.Z)({url:"/report/report-sheet/update",method:"post",data:a})}function n(a){return(0,s.Z)({url:"/report/report-sheet/delete",method:"post",data:a})}function i(a){return(0,s.Z)({url:"/report/report-sheet/get",method:"post",data:a})}function p(a){return(0,s.Z)({url:"/report/report-sheet-category/page",method:"post",data:a})}function c(a){return(0,s.Z)({url:"/report/report-sheet-category/add",method:"post",data:a})}function d(a){return(0,s.Z)({url:"/report/report-sheet-category/update",method:"post",data:a})}function b(a){return(0,s.Z)({url:"/report/report-sheet-category/get",method:"post",data:a})}function m(a){return(0,s.Z)({url:"/report/report-sheet-category/delete",method:"post",data:a})}function h(a){return(0,s.Z)({url:"/report/GlassReport/listGlass",method:"post",data:a})}function u(a){return(0,s.Z)({url:"/report/GlassReport/qualityReport",method:"post",data:a})}function g(a){return(0,s.Z)({url:"/report/GlassReport/qualityReportexport",method:"post",responseType:"blob",data:a})}function f(a){return(0,s.Z)({url:"/report/GlassReport/thickReport",method:"post",data:a})}function W(a){return(0,s.Z)({url:"/report/GlassReport/thickReportexport",method:"post",responseType:"blob",data:a})}function y(a){return(0,s.Z)({url:"/quality/finalpackaging/queryGlassData",method:"post",data:a})}function v(a){return(0,s.Z)({url:"/quality/finalpackaging/claGlassData",method:"post",data:a})}}}]);