1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[6234],{6234:function(t,e,a){a.r(e),a.d(e,{default:function(){return M}});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"finalInspectionData"},[e("el-row",{staticClass:"box-top"},[e("el-col",[e("div",{staticClass:"search-box"},[e("search-bar",{attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick,"select-changed":t.selectChanged}})],1)])],1),e("el-row",{staticClass:"box",attrs:{gutter:8}},[e("el-col",{attrs:{span:9}},[e("div",{staticClass:"left-box"},[e("span",{staticClass:"table-button",on:{click:t.generateReport}},[t._v("生成表格")]),e("base-table",{attrs:{selectWidth:40,"table-props":t.tablePropsL,"table-data":t.tableDataL,"max-height":t.tableHL},on:{"selection-change":t.selectChange}})],1)]),e("el-col",{attrs:{span:15}},[e("div",{staticClass:"right-box"},[t.reportTitle?e("div",[e("span",{staticClass:"title"},[t._v(t._s(t.reportTitle))])]):t._e(),"单片玻璃基板缺陷统计"===t.reportTitle?e("div",{staticClass:"table-box"},[e("glass-quality-report",{attrs:{tableData:t.glassQualityArr}})],1):t._e(),"厚度汇总报表"===t.reportTitle?e("div",{staticClass:"table-box"},[e("glass-thick-report",{attrs:{tableData:t.thickReportArr}})],1):t._e(),"终检下片包装"===t.reportTitle?e("div",{staticClass:"table-box"},[e("glass-pack-report",{attrs:{tableData1:t.packClaReportArr,tableData2:t.packReportArr}})],1):t._e()])])],1)],1)},l=[],o=a(475),i=a(2334),n=function(){var t=this,e=t._self._c;return e("div",[e("base-table",{attrs:{"table-props":t.tableProps,"table-data":t.tableData,"max-height":t.tableH}})],1)},s=[];const p=[{prop:"time",label:"检测时间",filter:o.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 u={name:"glassQualityReport",data(){return{tableProps:p,tableH:(0,o.NC)(292)}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,o.NC)(292)}))},props:{tableData:{type:Array,required:!0,default:()=>[]}}},d=u,c=a(1001),m=(0,c.Z)(d,n,s,!1,null,null,null),h=m.exports,b=function(){var t=this,e=t._self._c;return e("div",[e("base-table",{attrs:{"table-props":t.tableProps,"table-data":t.tableData,"max-height":t.tableH}})],1)},f=[];const g=[{prop:"glassId",label:"玻璃ID",minWidth:120},{prop:"testTime",label:"检测时间",filter:o.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 y={name:"glassThickReport",data(){return{tableProps:g,tableH:(0,o.NC)(292)}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,o.NC)(292)}))},props:{tableData:{type:Array,required:!0,default:()=>[]}}},W=y,v=(0,c.Z)(W,b,f,!1,null,null,null),A=v.exports,C=function(){var t=this,e=t._self._c;return e("div",[e("base-table",{attrs:{"table-props":t.tableProps1,"table-data":t.tableData1,"max-height":t.tableH}}),e("base-table",{attrs:{"table-props":t.tableProps2,"table-data":t.tableData2,"max-height":t.tableH}})],1)},T=[];const D=[{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}],k=[{prop:"glassId",label:"玻璃ID",minWidth:120},{prop:"rackNum",label:"包装架号",minWidth:120},{prop:"testTime",label:"包装时间",filter:o.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 R={name:"glassPackReport",data(){return{tableProps1:D,tableProps2:k,tableH:(0,o.NC)(292)}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,o.NC)(292)}))},props:{tableData1:{type:Array,required:!0,default:()=>[]},tableData2:{type:Array,required:!0,default:()=>[]}}},q=R,x=(0,c.Z)(q,C,T,!1,null,null,null),I=x.exports,Z=a(381),P=a.n(Z);const w=[{prop:"glassId",label:"ID",minWidth:100},{prop:"unloadTime",label:"检测时间",minWidth:120,filter:o.g6},{prop:"grindtype",label:"研磨类型",minWidth:80}];var L={name:"FinalInspectionData",components:{glassQualityReport:h,glassThickReport:A,glassPackReport:I},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:"厚度汇总报表"}],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:w,tableDataL:[],tableHL:(0,o.NC)(300),reportTitle:"",listQuery:{startTime:"",endTime:"",glassFrame:"",current:1,size:500},selectArr:[],glassQualityArr:[],thickReportArr:[],packReportArr:[],packClaReportArr:[]}},mounted(){this.getOption(),window.addEventListener("resize",(()=>{this.tableHL=(0,o.NC)(300)})),this.formConfig[0].defaultSelect=[P()().format("yyyy-MM-DD")+"T00:00:00",P()().format("yyyy-MM-DD")+"T23:59:59"],this.listQuery.startTime=P()().format("yyyy-MM-DD")+"T00:00:00",this.listQuery.endTime=P()().format("yyyy-MM-DD")+"T23:59:59",this.listQuery.glassFrame="全部",this.getList()},methods:{getList(){(0,i.uW)({...this.listQuery}).then((t=>{0===t.code?this.tableDataL=t.data:this.tableDataL=[]}))},getOption(){let t=JSON.parse(localStorage.getItem("publicList")).glassRackStationVoList,e=t.map((t=>({id:t.dataName,name:t.dataName})));e.push({id:"全部",name:"全部"},{id:"废片",name:"废片"}),this.formConfig[1].selectOptions=e,console.log(e)},buttonClick(t){let e=[];switch(t.btnName){case"search":this.listQuery.startTime=t.timeVal?t.timeVal[0]:"",this.listQuery.endTime=t.timeVal?t.timeVal[1]:"",this.listQuery.glassFrame=t.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 t of this.selectArr)e.push(t.glassId);"单片玻璃基板缺陷统计"===this.reportTitle?this.exportGlassReport(e):"厚度汇总报表"===this.reportTitle&&this.exportThickReport(e)}},selectChanged(t){this.reportTitle=t.value,this.glassQualityArr=[],this.thickReportArr=[],this.packReportArr=[],this.packClaReportArr=[]},selectChange(t){this.selectArr=t},generateReport(){if(0===this.selectArr.length)return this.$message({message:"请勾选左侧表格数据",type:"warning"}),!1;if(""===this.reportTitle)return this.$message({message:"请选择报表类型",type:"warning"}),!1;let t=[];for(let e of this.selectArr)t.push(e.glassId);switch(this.reportTitle){case"单片玻璃基板缺陷统计":this.getGlassReport(t);break;case"厚度汇总报表":this.getThickReport(t);break;default:this.getGlassData(t)}},getGlassReport(t){(0,i.uj)({glassId:t,size:1e3,current:1}).then((t=>{console.log(t),this.glassQualityArr=t.data}))},exportGlassReport(t){(0,i.oR)({glassId:t,size:1e3,current:1}).then((t=>{console.log(t);let e="";const a=t.headers["content-disposition"];a&&(e=decodeURIComponent(a.slice(a.indexOf("filename=")+9)));const r=new Blob([t.data]),l=new FileReader;l.readAsDataURL(r),l.onload=t=>{const a=document.createElement("a");a.download=e,a.href=t.target.result,document.body.appendChild(a),a.click(),document.body.removeChild(a)}}))},getThickReport(t){(0,i.bu)({glassId:t,size:1e3,current:1}).then((t=>{console.log(t),this.thickReportArr=t.data}))},exportThickReport(t){(0,i.an)({glassId:t,size:1e3,current:1}).then((t=>{console.log(t);let e="";const a=t.headers["content-disposition"];a&&(e=decodeURIComponent(a.slice(a.indexOf("filename=")+9)));const r=new Blob([t.data]),l=new FileReader;l.readAsDataURL(r),l.onload=t=>{const a=document.createElement("a");a.download=e,a.href=t.target.result,document.body.appendChild(a),a.click(),document.body.removeChild(a)}}))},getGlassData(t){(0,i.AT)({glassId:t}).then((t=>{console.log(t),this.packReportArr=t.data})),(0,i.fL)({glassId:t}).then((t=>{console.log(t),this.packClaReportArr=t.data}))}}},S=L,F=(0,c.Z)(S,r,l,!1,null,"6863655e",null),M=F.exports},2334:function(t,e,a){a.d(e,{AT:function(){return x},Af:function(){return n},F0:function(){return h},G$:function(){return W},Jt:function(){return y},ON:function(){return p},QI:function(){return i},Qd:function(){return b},YU:function(){return m},an:function(){return q},bu:function(){return R},dy:function(){return A},eT:function(){return d},fL:function(){return I},gP:function(){return P},iF:function(){return u},jA:function(){return o},kT:function(){return Z},nE:function(){return g},oR:function(){return k},pS:function(){return s},pw:function(){return c},qn:function(){return w},r5:function(){return f},uW:function(){return T},uX:function(){return C},uj:function(){return D},v:function(){return l},vD:function(){return v}});var r=a(8859);function l(t){return(0,r.Z)({url:"/quality/processDetect/page",method:"post",data:t})}function o(t){return(0,r.Z)({url:"/quality/processDetect/list",method:"post",data:t})}function i(t){return(0,r.Z)({url:"/quality/processDetect/add",method:"post",formState:!0,data:t})}function n(t){return(0,r.Z)({url:"/quality/processDetect/detectInput",method:"post",formState:!0,data:t})}function s(t){return(0,r.Z)({url:"/quality/processDetect/export",method:"post",responseType:"blob",data:t,timeout:6e4})}function p(t){return(0,r.Z)({url:"/quality/processCompleteInspetion/page",method:"post",data:t})}function u(t){return(0,r.Z)({url:"/quality/processCompleteInspetion/getDetails",method:"post",data:t})}function d(t){return(0,r.Z)({url:"/quality/processCompleteInspetion/listType",method:"post",data:t})}function c(t){return(0,r.Z)({url:"/quality/processCompleteInspetion/export2",method:"post",responseType:"blob",data:t})}function m(t){return(0,r.Z)({url:"/quality/processCompleteInspetion/pageIIS",method:"post",data:t})}function h(t){return(0,r.Z)({url:"/quality/ProcessFull/queryPoint",method:"post",data:t})}function b(t){return(0,r.Z)({url:"/quality/ProcessFull/drawPoint",method:"post",data:t})}function f(t){return(0,r.Z)({url:"/quality/ProcessFull/queryPointClear",method:"post",data:t})}function g(t){return(0,r.Z)({url:"/quality/ProcessFull/cornerData",method:"post",data:t})}function y(t){return(0,r.Z)({url:"/quality/ProcessFull/pointExport2",method:"post",responseType:"blob",data:t,timeout:6e4})}function W(t){return(0,r.Z)({url:"/quality/ProcessFull/pointExport",method:"post",responseType:"blob",data:t,timeout:6e4})}function v(t){return(0,r.Z)({url:"/quality/ProcessFull/confirm",method:"post",data:t})}function A(t){return(0,r.Z)({url:"/quality/ProcessFull/queryThickness",method:"post",data:t})}function C(t){return(0,r.Z)({url:"/quality/ProcessFull/drawThickness",method:"post",formState:!0,data:t})}function T(t){return(0,r.Z)({url:"/report/GlassReport/listGlass",method:"post",data:t})}function D(t){return(0,r.Z)({url:"/report/GlassReport/qualityReport",method:"post",data:t})}function k(t){return(0,r.Z)({url:"/report/GlassReport/qualityReportexport",method:"post",responseType:"blob",data:t})}function R(t){return(0,r.Z)({url:"/report/GlassReport/thickReport",method:"post",data:t})}function q(t){return(0,r.Z)({url:"/report/GlassReport/thickReportexport",method:"post",responseType:"blob",data:t})}function x(t){return(0,r.Z)({url:"/quality/finalpackaging/queryGlassData",method:"post",data:t})}function I(t){return(0,r.Z)({url:"/quality/finalpackaging/claGlassData",method:"post",data:t})}function Z(t){return(0,r.Z)({url:"/quality/productTrace/page",method:"post",data:t})}function P(t){return(0,r.Z)({url:"/quality/productTrace/pageProcess",method:"post",data:t})}function w(t){return(0,r.Z)({url:"/quality/productTrace/pageProcessParameter",method:"post",data:t})}}}]); |