1 line
6.3 KiB
JavaScript
1 line
6.3 KiB
JavaScript
"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[5096],{5096:function(t,e,r){r.r(e),r.d(e,{default:function(){return f}});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"fullInspection"},[e("search-bar",{ref:"searchBarForm",attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick}}),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()}}})],1)},a=[],o=r(475),l=r(2334),i=r(381),u=r.n(i);const s=[{prop:"virtualcode",label:"玻璃ID"},{prop:"filetype",label:"全检类型"},{prop:"glassLength",label:"长/mm"},{prop:"glassWidth",label:"宽/mm"},{prop:"glassHeight",label:"厚/mm"},{prop:"grade",label:"产品质量"},{prop:"line",label:"产线"},{prop:"time",label:"检验时间",filter:o.g6,minWidth:160}],c=[{type:"detail",btnName:"详情"}];var d={name:"fullInspection",data(){return{formConfig:[{type:"input",label:"玻璃ID",placeholder:"玻璃ID",param:"glassId"},{type:"select",label:"全检类型",selectOptions:[{id:"精切后边检",name:"精切后边检"},{id:"终检边检",name:"终检边检"},{id:"面检",name:"面检"},{id:"复检",name:"复检"}],param:"grindType",defaultSelect:"",width:150},{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"},{type:"separate"},{type:"button",btnName:"导出",name:"export",color:"primary",plain:!0}],tableProps:s,tableData:[],tableH:(0,o.NC)(330),tableBtn:c,total:0,listQuery:{current:1,size:20}}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,o.NC)(330)})),this.formConfig[2].defaultSelect=[u()().format("yyyy-MM-DD")+"T00:00:00",u()().format("yyyy-MM-DD")+"T23:59:59"],this.listQuery.startTime=u()().format("yyyy-MM-DD")+"T00:00:00",this.listQuery.endTime=u()().format("yyyy-MM-DD")+"T23:59:59",this.getList()},methods:{getList(){(0,l.ON)({...this.listQuery}).then((t=>{console.log(t),0===t.code&&t.data&&(this.tableData=t.data.records,this.total=t.data.total)}))},buttonClick(t){switch(t.btnName){case"search":this.listQuery.startTime=t.timeVal?t.timeVal[0]:"",this.listQuery.endTime=t.timeVal?t.timeVal[1]:"",this.listQuery.grindType=t.grindType,this.listQuery.glassId=t.glassId,this.listQuery.current=1,this.getList();break;default:(0,l.pw)({...this.listQuery}).then((t=>{console.log(t);let e="";const r=t.headers["content-disposition"];r&&(e=decodeURIComponent(r.slice(r.indexOf("filename=")+9)));const n=new Blob([t.data]),a=new FileReader;a.readAsDataURL(n),a.onload=t=>{const r=document.createElement("a");r.download=e,r.href=t.target.result,document.body.appendChild(r),r.click(),document.body.removeChild(r)}}))}},handleClick(t){console.log(t),"detail"===t.type&&this.$router.push({path:"/qualityManagement/processFullInspection/fullInspectionDetail",query:{virtualcode:t.data.virtualcode,filetype:encodeURIComponent(t.data.filetype),time:t.data.time}})}}},p=d,m=r(1001),y=(0,m.Z)(p,n,a,!1,null,null,null),f=y.exports},2334:function(t,e,r){r.d(e,{Af:function(){return i},F0:function(){return y},G$:function(){return q},Jt:function(){return g},ON:function(){return s},QI:function(){return l},Qd:function(){return f},YU:function(){return m},dy:function(){return C},eT:function(){return d},gP:function(){return I},iF:function(){return c},jA:function(){return o},kT:function(){return Z},nE:function(){return b},pS:function(){return u},pw:function(){return p},qn:function(){return P},r5:function(){return h},uX:function(){return D},v:function(){return a},vD:function(){return T}});var n=r(8859);function a(t){return(0,n.Z)({url:"/quality/processDetect/page",method:"post",data:t})}function o(t){return(0,n.Z)({url:"/quality/processDetect/list",method:"post",data:t})}function l(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 u(t){return(0,n.Z)({url:"/quality/processDetect/export",method:"post",responseType:"blob",data:t,timeout:6e4})}function s(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 d(t){return(0,n.Z)({url:"/quality/processCompleteInspetion/listType",method:"post",data:t})}function p(t){return(0,n.Z)({url:"/quality/processCompleteInspetion/export2",method:"post",responseType:"blob",data:t})}function m(t){return(0,n.Z)({url:"/quality/processCompleteInspetion/pageIIS",method:"post",data:t})}function y(t){return(0,n.Z)({url:"/quality/ProcessFull/queryPoint",method:"post",data:t})}function f(t){return(0,n.Z)({url:"/quality/ProcessFull/drawPoint",method:"post",data:t})}function h(t){return(0,n.Z)({url:"/quality/ProcessFull/queryPointClear",method:"post",data:t})}function b(t){return(0,n.Z)({url:"/quality/ProcessFull/cornerData",method:"post",data:t})}function g(t){return(0,n.Z)({url:"/quality/ProcessFull/pointExport2",method:"post",responseType:"blob",data:t,timeout:6e4})}function q(t){return(0,n.Z)({url:"/quality/ProcessFull/pointExport",method:"post",responseType:"blob",data:t,timeout:6e4})}function T(t){return(0,n.Z)({url:"/quality/ProcessFull/confirm",method:"post",data:t})}function C(t){return(0,n.Z)({url:"/quality/ProcessFull/queryThickness",method:"post",data:t})}function D(t){return(0,n.Z)({url:"/quality/ProcessFull/drawThickness",method:"post",formState:!0,data:t})}function Z(t){return(0,n.Z)({url:"/quality/productTrace/page",method:"post",data:t})}function I(t){return(0,n.Z)({url:"/quality/productTrace/pageProcess",method:"post",data:t})}function P(t){return(0,n.Z)({url:"/quality/productTrace/pageProcessParameter",method:"post",data:t})}}}]); |