tft-fe/dist/js/8685.9816b899.js
2023-03-14 14:14:03 +08:00

1 line
12 KiB
JavaScript

"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[8685],{5994: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",props:{detailObj:{type:Object}},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(){console.log(this.detailObj);for(let t=0;t<this.leftList.length;t++)this.leftList[t].value=this.detailObj[this.leftList[t].key]?this.detailObj[this.leftList[t].key]:null;for(let t=0;t<this.rightList.length;t++)this.rightList[t].value=this.detailObj[this.rightList[t].key]?this.detailObj[this.rightList[t].key]:null}}},n=i,r=l(1001),o=(0,r.Z)(n,a,s,!1,null,"4eab165e",null),u=o.exports},8685:function(t,e,l){l.r(e),l.d(e,{default:function(){return S}});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"defectScatterPlot"},[e("split-pane",{on:{"on-move-end":t.moveEnd},scopedSlots:t._u([{key:"left",fn:function(){return[e("div",{staticClass:"split-pane left-box"},[e("search-bar",{attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick}}),e("base-table",{attrs:{selectWidth:50,page:t.listQuery.current,limit:t.listQuery.size,"table-props":t.tableProps,"table-data":t.tableData,"max-height":t.tableH},on:{"selection-change":t.selectChange}}),e("pagination",{attrs:{limit:t.listQuery.size,total:t.total}})],1)]},proxy:!0},{key:"right",fn:function(){return[e("div",{staticClass:"split-pane right-box"},[e("div",{staticClass:"inner-box"},[e("div",{staticClass:"line1"},[e("span",{staticStyle:{"margin-right":"8px"}},[t._v("颗粒缺陷选择")]),e("el-radio-group",{staticStyle:{"margin-right":"24px"},attrs:{size:"small"},on:{change:t.selectType},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[e("el-radio-button",{attrs:{label:"pellet"}},[t._v("颗粒全选")]),e("el-radio-button",{attrs:{label:"surface"}},[t._v("面检全选")])],1),e("el-button",{staticStyle:{"margin-right":"14px"},attrs:{type:"primary",size:"small"},on:{click:t.drawPic}},[t._v("绘图")]),e("el-button",{attrs:{type:"primary",size:"small",plain:""}},[t._v("导出")])],1),e("div",{staticClass:"line2"},[e("el-checkbox-group",{model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},t._l(t.list,(function(l,a){return e("el-checkbox",{key:a,attrs:{label:l.value}},[t._v(t._s(l.label))])})),1)],1),e("div",[e("span",{staticClass:"title"},[t._v("缺陷散点图(1245241242)")])]),e("defect-scatter-plot-chart",{ref:"poltChart"}),e("div",{staticClass:"bottom"},[e("div",{staticStyle:{"margin-bottom":"10px"}},[e("span",{staticClass:"title"},[t._v("合计")]),e("defect-scatter-plot-total")],1)])],1)])]},proxy:!0}]),model:{value:t.split1,callback:function(e){t.split1=e},expression:"split1"}})],1)},s=[],i=l(475),n=l(5994),r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"box"},[e("div",{staticStyle:{width:"100%"},style:{height:t.chartHeight+"px"},attrs:{id:"defectScatterPlotChart"}}),e("span",{staticClass:"text1"},[t._v("文本框11111")]),e("span",{staticClass:"text2"},[t._v("文本框222222232323232322")]),e("span",{staticClass:"text3"},[t._v("文本框33333")]),e("span",{staticClass:"text4"},[t._v("文本框44444")])])},o=[],u=l(7171),c=l(5468),d={name:"DefectScatterPlotChart",mixins:[c.Z],data(){return{chartDom:"",chart:"",chartHeight:(0,i.NC)(446)}},mounted(){window.addEventListener("resize",(()=>{this.chartHeight=(0,i.NC)(446)})),setTimeout((()=>{this.getChart()}),20)},methods:{getChart(){null!==this.chart&&""!==this.chart&&void 0!==this.chart&&this.chart.dispose(),this.chartDom=document.getElementById("defectScatterPlotChart"),this.chart=u.S1(this.chartDom);const t=[[1,55],[2,25],[3,56],[4,33],[5,42],[6,82],[7,74],[8,78],[9,267],[10,185],[11,39],[12,41],[13,64],[14,108],[15,108],[16,33],[17,94],[18,186],[19,57],[20,22],[21,39],[22,94],[23,99],[24,31],[25,42],[26,154],[27,234],[28,160],[29,134],[30,52],[31,46]],e=[[1,26],[2,85],[3,78],[4,21],[5,41],[6,56],[7,64],[8,55],[9,76],[10,91],[11,84],[12,64],[13,70],[14,77],[15,109],[16,73],[17,54],[18,51],[19,91],[20,73],[21,73],[22,84],[23,93],[24,99],[25,146],[26,113],[27,81],[28,56],[29,82],[30,106],[31,118]],l=[[1,91],[2,65],[3,83],[4,109],[5,106],[6,109],[7,106],[8,89],[9,53],[10,80],[11,117],[12,99],[13,95],[14,116],[15,108],[16,134],[17,79],[18,71],[19,97],[20,84],[21,87],[22,104],[23,87],[24,168],[25,65],[26,39],[27,39],[28,93],[29,188],[30,174],[31,187]];var a={color:["#5d7ab7","#ec795f","#925041","#fb5099","#f6bd16","#E8684A","#6DC8EC","#9270CA","#FF9D4D","#269A99","#FF99C3","#BDD2FD","#5AD8A6","#FDABAB","#BDEFDB","#5B8FF9","#404E67"],legend:{top:10,left:0,data:["S","M","L"],textStyle:{fontSize:9},itemWidth:10},grid:{x:60,y:60,x2:10,y2:60,borderWidth:1},xAxis:{type:"value",nameGap:16,nameTextStyle:{fontSize:16},max:31,splitLine:{show:!0,lineStyle:{color:"rgba(0, 0, 0, 0.15)"}}},yAxis:{type:"value",nameLocation:"end",nameGap:20,nameTextStyle:{fontSize:16},splitLine:{show:!0,lineStyle:{color:"rgba(0, 0, 0, 0.15)"}}},series:[{name:"S",type:"scatter",data:t,symbolSize:5},{name:"M",type:"scatter",data:e,symbolSize:5},{name:"L",type:"scatter",data:l,symbolSize:5}]};a&&this.chart.setOption(a)}}},m=d,p=l(1001),h=(0,p.Z)(m,r,o,!1,null,"51a1dc14",null),y=h.exports,f=l(2334),v=l(381),b=l.n(v);const g=[{prop:"glassId",label:"ID",fixed:"left",minWidth:120},{prop:"testTime",label:"检验时间",fixed:"left",filter:i.g6,minWidth:160},{prop:"grindType",label:"研磨类型"},{prop:"electricity",label:"总电流"},{prop:"particleSum",label:"颗粒总数"},{prop:"surfaceSum",label:"面检总数"}];var k={name:"defectScatterPlot",components:{defectScatterPlotTotal:n.Z,defectScatterPlotChart:y},data(){return{split1:.4,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:"button",btnName:"查询",name:"search",color:"primary"}],searchTime:"",listQuery:{startTime:"",endTime:""},tableProps:g,tableData:[],tableH:(0,i.NC)(290),total:0,type:"pellet",selectList:[{label:"1",value:"1"},{label:"2",value:"2"},{label:"3",value:"3"},{label:"4",value:"4"}],checkItem:"",checkList:["s","m","l","xl"],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"}],selectedGlassId:[],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"}]}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,i.NC)(290)})),this.formConfig[0].defaultSelect=[b()().format("yyyy-MM-DD")+"T00:00:00",b()().format("yyyy-MM-DD")+"T23:59:59"],this.listQuery.startTime=b()().format("yyyy-MM-DD")+"T00:00:00",this.listQuery.endTime=b()().format("yyyy-MM-DD")+"T23:59:59",this.getList()},methods:{getList(){(0,f.F0)({...this.listQuery}).then((t=>{console.log(t),this.tableData=t.data}))},drawPic(){this.getDetail(),(0,f.Qd)().then((t=>{console.log(t)}))},getDetail(){(0,f.r5)({glassId:this.selectedGlassId}).then((t=>{console.log(t)}))},buttonClick(t){console.log(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<t.length;l++)e.push(t[l].glassId);this.selectedGlassId=e}else this.selectedGlassId=[]},selectType(t){console.log(t),this.checkList="pellet"===t?["s","m","l","xl"]:["bl","distortion","fiber","scratch","knot","stone","pt","tail","adg","tin","top","bottom","iisrest"]},moveEnd(){this.$refs.poltChart.getChart()}}},C=k,x=(0,p.Z)(C,a,s,!1,null,"ab923e7c",null),S=x.exports},2334:function(t,e,l){l.d(e,{Af:function(){return r},F0:function(){return h},ON:function(){return u},QI:function(){return n},Qd:function(){return y},YU:function(){return p},dy:function(){return b},eT:function(){return d},iF:function(){return c},jA:function(){return i},pS:function(){return o},pw:function(){return m},r5:function(){return f},uX:function(){return g},v:function(){return s},vD:function(){return v}});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 m(t){return(0,a.Z)({url:"/quality/processCompleteInspetion/export",method:"post",responseType:"blob",data:t})}function p(t){return(0,a.Z)({url:"/quality/processCompleteInspetion/pageIIS",method:"post",data:t})}function h(t){return(0,a.Z)({url:"/quality/ProcessFull/queryPoint",method:"post",data:t})}function y(t){return(0,a.Z)({url:"/quality/ProcessFull/drawPoint",method:"post",data:t})}function f(t){return(0,a.Z)({url:"/quality/ProcessFull/queryPointClear",method:"post",data:t})}function v(t){return(0,a.Z)({url:"/quality/ProcessFull/confirm",method:"post",data:t})}function b(t){return(0,a.Z)({url:"/quality/ProcessFull/queryThickness",method:"post",data:t})}function g(t){return(0,a.Z)({url:"/quality/ProcessFull/drawThickness",method:"post",formState:!0,data:t})}}}]);