"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[5094],{8795:function(t,e,l){l.d(e,{Z:function(){return u}});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"bottom-box"},[e("div",{staticClass:"bottom-left"},[e("ul",{staticClass:"dataTab"},[e("div",{staticClass:"title"},[t._v("颗粒数据")]),t._l(t.leftList,(function(l,a){return e("li",{key:a},[e("p",{staticClass:"tabHead"},[t._v(t._s(l.name))]),e("p",{staticClass:"tabValue"},[t._v(t._s(l.value))])])}))],2)]),e("div",{staticClass:"bottom-right"},[e("ul",{staticClass:"dataTab"},[e("div",{staticClass:"title"},[t._v("面检数据")]),t._l(t.rightList,(function(l,a){return e("li",{key:a},[e("p",{staticClass:"tabHead"},[t._v(t._s(l.name))]),e("p",{staticClass:"tabValue"},[t._v(t._s(l.value))])])}))],2)])])},s=[],i={name:"DefectScatterPlot",data(){return{leftList:[{name:"S",value:null,key:"s"},{name:"M",value:null,key:"m"},{name:"L",value:null,key:"l"},{name:"XL",value:null,key:"xl"}],rightList:[{name:"气泡",value:null,key:"bl"},{name:"变形",value:null,key:"distortion"},{name:"纤维",value:null,key:"fiber"},{name:"划伤",value:null,key:"scratch"},{name:"点状缺陷",value:null,key:"tin"},{name:"结石",value:null,key:"stone"},{name:"铂金",value:null,key:"pt"},{name:"结节",value:null,key:"knot"},{name:"拖尾",value:null,key:"tail"},{name:"ADG",value:null,key:"adg"},{name:"锡缺陷(顶部)",value:null,key:"top"},{name:"锡缺陷(底部)",value:null,key:"bottom"},{name:"无法识别",value:null,key:"iisrest"}]}},methods:{init(t){console.log(t);for(let e=0;e({})}},data(){return{chartDom:"",chart:"",chartHeight:(0,i.NC)(446),list:[{label:"S",value:"s"},{label:"M",value:"m"},{label:"L",value:"l"},{label:"XL",value:"xl"},{label:"气泡",value:"bl"},{label:"变形",value:"distortion"},{label:"纤维",value:"fiber"},{label:"划伤",value:"scratch"},{label:"结节",value:"knot"},{label:"结石",value:"stone"},{label:"铂金",value:"pt"},{label:"拖尾",value:"tail"},{label:"ADG",value:"adg"},{label:"点状缺陷",value:"tin"},{label:"锡缺陷(顶部)",value:"top"},{label:"锡缺陷(底部)",value:"bottom"},{label:"无法识别",value:"iisrest"}]}},mounted(){window.addEventListener("resize",(()=>{this.chartHeight=(0,i.NC)(446)}))},watch:{defectMsg:function(){this.getChart()}},methods:{transLabel(t){let e="";for(let l=0;l{this.tableH=(0,i.NC)(290)})),this.formConfig[0].defaultSelect=[v()().format("yyyy-MM-DD")+"T00:00:00",v()().format("yyyy-MM-DD")+"T23:59:59"],this.listQuery.startTime=v()().format("yyyy-MM-DD")+"T00:00:00",this.listQuery.endTime=v()().format("yyyy-MM-DD")+"T23:59:59",this.getList()},methods:{getList(){(0,y.F0)({...this.listQuery}).then((t=>{console.log(t),this.tableData=t.data}))},drawPic(){return 0===this.selectedGlassId.length?(this.$message({message:"请先勾选左侧的玻璃",type:"error",duration:1500,onClose:()=>{}}),!1):0===this.checkList.length?(this.$message({message:"请先勾选缺陷",type:"error",duration:1500,onClose:()=>{}}),!1):(this.getDetail(),void(0,y.Qd)({startTime:this.listQuery.startTime,endTime:this.listQuery.endTime,glassId:this.selectedGlassId,defectType:this.checkList}).then((t=>{console.log(t),0===t.code?this.defectList=t.data:this.defectList={},this.$refs.poltChart.getChart()})))},getDetail(){(0,y.r5)({startTime:this.listQuery.startTime,endTime:this.listQuery.endTime,glassId:this.selectedGlassId}).then((t=>{0===t.code&&(this.detailMsg=t.data[0]||{},this.$refs.plotTotal.init(this.detailMsg))}))},buttonClick(t){this.listQuery.startTime=t.timeVal?t.timeVal[0]:"",this.listQuery.endTime=t.timeVal?t.timeVal[1]:"",this.getList()},selectChange(t){console.log(t);let e=[];if(t.length>0){for(let l=0;l{let e="";const l=t.headers["content-disposition"];l&&(e=decodeURIComponent(l.slice(l.indexOf("filename=")+9)));const a=new Blob([t.data]),s=new FileReader;s.readAsDataURL(a),s.onload=t=>{const l=document.createElement("a");l.download=e,l.href=t.target.result,document.body.appendChild(l),l.click(),document.body.removeChild(l)}})),(0,y.Jt)({startTime:this.listQuery.startTime,endTime:this.listQuery.endTime,glassId:this.selectedGlassId,defectType:this.checkList}).then((t=>{let e="";const l=t.headers["content-disposition"];l&&(e=decodeURIComponent(l.slice(l.indexOf("filename=")+9)));const a=new Blob([t.data]),s=new FileReader;s.readAsDataURL(a),s.onload=t=>{const l=document.createElement("a");l.download=e,l.href=t.target.result,document.body.appendChild(l),l.click(),document.body.removeChild(l)}}))}}},k=C,T=(0,h.Z)(k,a,s,!1,null,"47efdd70",null),x=T.exports},2334:function(t,e,l){l.d(e,{AT:function(){return _},Af:function(){return r},F0:function(){return m},G$:function(){return v},Jt:function(){return b},ON:function(){return u},QI:function(){return n},Qd:function(){return f},YU:function(){return h},an:function(){return S},bu:function(){return D},dy:function(){return C},eT:function(){return d},fL:function(){return Z},gP:function(){return q},iF:function(){return c},jA:function(){return i},kT:function(){return I},oR:function(){return L},pS:function(){return o},pw:function(){return p},r5:function(){return y},uW:function(){return T},uX:function(){return k},uj:function(){return x},v:function(){return s},vD:function(){return g}});var a=l(8859);function s(t){return(0,a.Z)({url:"/quality/processDetect/page",method:"post",data:t})}function i(t){return(0,a.Z)({url:"/quality/processDetect/list",method:"post",data:t})}function n(t){return(0,a.Z)({url:"/quality/processDetect/add",method:"post",formState:!0,data:t})}function r(t){return(0,a.Z)({url:"/quality/processDetect/detectInput",method:"post",formState:!0,data:t})}function o(t){return(0,a.Z)({url:"/quality/processDetect/export",method:"post",responseType:"blob",data:t,timeout:6e4})}function u(t){return(0,a.Z)({url:"/quality/processCompleteInspetion/page",method:"post",data:t})}function c(t){return(0,a.Z)({url:"/quality/processCompleteInspetion/getDetails",method:"post",data:t})}function d(t){return(0,a.Z)({url:"/quality/processCompleteInspetion/listType",method:"post",data:t})}function p(t){return(0,a.Z)({url:"/quality/processCompleteInspetion/export2",method:"post",responseType:"blob",data:t})}function h(t){return(0,a.Z)({url:"/quality/processCompleteInspetion/pageIIS",method:"post",data:t})}function m(t){return(0,a.Z)({url:"/quality/ProcessFull/queryPoint",method:"post",data:t})}function f(t){return(0,a.Z)({url:"/quality/ProcessFull/drawPoint",method:"post",data:t})}function y(t){return(0,a.Z)({url:"/quality/ProcessFull/queryPointClear",method:"post",data:t})}function b(t){return(0,a.Z)({url:"/quality/ProcessFull/pointExport2",method:"post",responseType:"blob",data:t,timeout:6e4})}function v(t){return(0,a.Z)({url:"/quality/ProcessFull/pointExport",method:"post",responseType:"blob",data:t,timeout:6e4})}function g(t){return(0,a.Z)({url:"/quality/ProcessFull/confirm",method:"post",data:t})}function C(t){return(0,a.Z)({url:"/quality/ProcessFull/queryThickness",method:"post",data:t})}function k(t){return(0,a.Z)({url:"/quality/ProcessFull/drawThickness",method:"post",formState:!0,data:t})}function T(t){return(0,a.Z)({url:"/report/GlassReport/listGlass",method:"post",data:t})}function x(t){return(0,a.Z)({url:"/report/GlassReport/qualityReport",method:"post",data:t})}function L(t){return(0,a.Z)({url:"/report/GlassReport/qualityReportexport",method:"post",responseType:"blob",data:t})}function D(t){return(0,a.Z)({url:"/report/GlassReport/thickReport",method:"post",data:t})}function S(t){return(0,a.Z)({url:"/report/GlassReport/thickReportexport",method:"post",responseType:"blob",data:t})}function _(t){return(0,a.Z)({url:"/quality/finalpackaging/queryGlassData",method:"post",data:t})}function Z(t){return(0,a.Z)({url:"/quality/finalpackaging/claGlassData",method:"post",data:t})}function I(t){return(0,a.Z)({url:"/quality/productTrace/page",method:"post",data:t})}function q(t){return(0,a.Z)({url:"/quality/productTrace/pageProcess",method:"post",data:t})}}}]);