1 line
8.2 KiB
JavaScript
1 line
8.2 KiB
JavaScript
"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[3899],{8795:function(t,e,l){l.d(e,{Z:function(){return u}});var n=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,n){return e("li",{key:n},[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,n){return e("li",{key:n},[e("p",{staticClass:"tabHead"},[t._v(t._s(l.name))]),e("p",{staticClass:"tabValue"},[t._v(t._s(l.value))])])}))],2)])])},a=[],r={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<this.leftList.length;e++)this.leftList[e].value=t[this.leftList[e].key]?t[this.leftList[e].key]:null;for(let e=0;e<this.rightList.length;e++)this.rightList[e].value=t[this.rightList[e].key]?t[this.rightList[e].key]:null}}},s=r,i=l(1001),o=(0,i.Z)(s,n,a,!1,null,"5624e103",null),u=o.exports},3899:function(t,e,l){l.r(e),l.d(e,{default:function(){return h}});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"full-inspection-detail"},[e("search-bar",{ref:"searchBarForm",attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick}}),e("div",{staticClass:"plot-total"},[e("defect-scatter-plot-total",{ref:"fullInspectionDetailPlot",staticClass:"plot-total-box",attrs:{detailObj:t.detailObj}})],1),e("base-table",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,"table-props":t.tableProps,"table-data":t.tableData,"max-height":t.tableH}},[t.tableBtn.length?e("method-btn",{attrs:{slot:"handleBtn",width:80,label:"操作",fixed:"right","method-list":t.tableBtn},on:{clickBtn:t.handleClick},slot:"handleBtn"}):t._e()],1),e("pagination",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,total:t.total},on:{"update:page":function(e){return t.$set(t.listQuery,"current",e)},"update:limit":function(e){return t.$set(t.listQuery,"size",e)},pagination:function(e){return t.getList()}}}),e("BaseDialog",{attrs:{dialogTitle:"查看图片",dialogVisible:t.centervisible,"close-on-click-modal":!1,"before-close":t.handleCancel}},[e("el-image",{staticStyle:{width:"100px",height:"100px"},attrs:{src:"https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg","preview-src-list":t.arr}}),e("el-row",{attrs:{slot:"footer",type:"flex",justify:"end"},slot:"footer"},[e("el-col",{attrs:{span:12}},[e("el-button",{staticClass:"btnTextStyle",attrs:{size:"small"},on:{click:t.handleCancel}},[t._v("关闭")])],1)],1)],1)],1)},a=[],r=l(475),s=l(2334),i=l(8795);const o=[{prop:"ypos",label:"Y轴位置(mm)"},{prop:"xpos",label:"X轴位置(mm)"},{prop:"defectclass",label:"缺陷尺寸等级"},{prop:"defecttype",label:"缺陷类型"},{prop:"length",label:"长度(mm)"},{prop:"width",label:"宽度(mm)"}],u=[{type:"viewPic",btnName:"查看图片"}];var c={name:"FullInspectionDetail",components:{defectScatterPlotTotal:i.Z},data(){return{arr:["https://fuss10.elemecdn.com/8/27/f01c15bb73e1ef3793e64e6b7bbccjpeg.jpeg"],formConfig:[{type:"select",label:"缺陷类型",selectOptions:[],param:"defectType",labelField:"defectType",valueField:"defectType",defaultSelect:"",filterable:!0,width:200},{type:"button",btnName:"查询",name:"search",color:"primary"},{type:"separate"},{type:"button",btnName:"返回",name:"export",color:"primary",plain:!0}],detailObj:{},tableProps:o,tableData:[],tableH:(0,r.NC)(425),tableBtn:u,total:0,listQuery:{current:1,size:20,glassId:"",defectType:""},centervisible:!1}},mounted(){const{virtualcode:t,filetype:e,time:l}=this.$route.query;this.listQuery.glassId=t,this.getDetail(t,e,l),window.addEventListener("resize",(()=>{this.tableH=(0,r.NC)(425)})),this.getListType(),this.getList()},methods:{getDetail(t,e,l){(0,s.iF)({virtualcode:t,time:l,defectType:decodeURIComponent(e)}).then((t=>{console.log(t),this.detailObj=t.data,this.$nextTick((()=>{this.$refs.fullInspectionDetailPlot.init(this.detailObj)}))}))},getListType(){(0,s.eT)({size:500,current:1}).then((t=>{this.formConfig[0].selectOptions=t.data}))},getList(){(0,s.YU)({...this.listQuery}).then((t=>{console.log(t),0===t.code&&(this.tableData=t.data.records,this.total=t.data.total)}))},buttonClick(t){switch(t.btnName){case"search":this.listQuery.defectType=t.defectType,this.listQuery.current=1,this.getList();break;default:this.$router.push({path:"/qualityManagement/processFullInspection/fullInspection"})}},handleClick(t){"viewPic"===t.type&&(t.data.defectid?this.centervisible=!0:this.$message({message:"暂无图片",type:"warning"}))},handleCancel(){this.centervisible=!1}}},p=c,d=l(1001),f=(0,d.Z)(p,n,a,!1,null,"7f728e52",null),h=f.exports},2334:function(t,e,l){l.d(e,{AT:function(){return L},Af:function(){return i},F0:function(){return h},ON:function(){return u},QI:function(){return s},Qd:function(){return m},YU:function(){return f},an:function(){return T},bu:function(){return q},dy:function(){return g},eT:function(){return p},fL:function(){return D},iF:function(){return c},jA:function(){return r},oR:function(){return Z},pS:function(){return o},pw:function(){return d},r5:function(){return y},uW:function(){return k},uX:function(){return v},uj:function(){return C},v:function(){return a},vD:function(){return b}});var n=l(8859);function a(t){return(0,n.Z)({url:"/quality/processDetect/page",method:"post",data:t})}function r(t){return(0,n.Z)({url:"/quality/processDetect/list",method:"post",data:t})}function s(t){return(0,n.Z)({url:"/quality/processDetect/add",method:"post",formState:!0,data:t})}function i(t){return(0,n.Z)({url:"/quality/processDetect/detectInput",method:"post",formState:!0,data:t})}function o(t){return(0,n.Z)({url:"/quality/processDetect/export",method:"post",responseType:"blob",data:t,timeout:6e4})}function u(t){return(0,n.Z)({url:"/quality/processCompleteInspetion/page",method:"post",data:t})}function c(t){return(0,n.Z)({url:"/quality/processCompleteInspetion/getDetails",method:"post",data:t})}function p(t){return(0,n.Z)({url:"/quality/processCompleteInspetion/listType",method:"post",data:t})}function d(t){return(0,n.Z)({url:"/quality/processCompleteInspetion/export2",method:"post",responseType:"blob",data:t})}function f(t){return(0,n.Z)({url:"/quality/processCompleteInspetion/pageIIS",method:"post",data:t})}function h(t){return(0,n.Z)({url:"/quality/ProcessFull/queryPoint",method:"post",data:t})}function m(t){return(0,n.Z)({url:"/quality/ProcessFull/drawPoint",method:"post",data:t})}function y(t){return(0,n.Z)({url:"/quality/ProcessFull/queryPointClear",method:"post",data:t})}function b(t){return(0,n.Z)({url:"/quality/ProcessFull/confirm",method:"post",data:t})}function g(t){return(0,n.Z)({url:"/quality/ProcessFull/queryThickness",method:"post",data:t})}function v(t){return(0,n.Z)({url:"/quality/ProcessFull/drawThickness",method:"post",formState:!0,data:t})}function k(t){return(0,n.Z)({url:"/report/GlassReport/listGlass",method:"post",data:t})}function C(t){return(0,n.Z)({url:"/report/GlassReport/qualityReport",method:"post",data:t})}function Z(t){return(0,n.Z)({url:"/report/GlassReport/qualityReportexport",method:"post",responseType:"blob",data:t})}function q(t){return(0,n.Z)({url:"/report/GlassReport/thickReport",method:"post",data:t})}function T(t){return(0,n.Z)({url:"/report/GlassReport/thickReportexport",method:"post",responseType:"blob",data:t})}function L(t){return(0,n.Z)({url:"/quality/finalpackaging/queryGlassData",method:"post",data:t})}function D(t){return(0,n.Z)({url:"/quality/finalpackaging/claGlassData",method:"post",data:t})}}}]); |