1 line
7.1 KiB
JavaScript
1 line
7.1 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 y}});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)},o=[],a=r(475),u=r(2334),l=r(381),i=r.n(l);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:a.g6,minWidth:160}],p=[{type:"detail",btnName:"详情"}];var c={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,a.NC)(330),tableBtn:p,total:0,listQuery:{current:1,size:20}}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,a.NC)(330)})),this.formConfig[2].defaultSelect=[i()().format("yyyy-MM-DD")+"T00:00:00",i()().format("yyyy-MM-DD")+"T23:59:59"],this.listQuery.startTime=i()().format("yyyy-MM-DD")+"T00:00:00",this.listQuery.endTime=i()().format("yyyy-MM-DD")+"T23:59:59",this.getList()},methods:{getList(){(0,u.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,u.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]),o=new FileReader;o.readAsDataURL(n),o.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}})}}},d=c,m=r(1001),f=(0,m.Z)(d,n,o,!1,null,null,null),y=f.exports},2334:function(t,e,r){r.d(e,{AT:function(){return w},Af:function(){return l},F0:function(){return f},G$:function(){return q},Jt:function(){return g},ON:function(){return s},QI:function(){return u},Qd:function(){return y},YU:function(){return m},an:function(){return Q},bu:function(){return k},dy:function(){return T},eT:function(){return c},fL:function(){return F},gP:function(){return v},iF:function(){return p},jA:function(){return a},kT:function(){return R},nE:function(){return b},oR:function(){return P},pS:function(){return i},pw:function(){return d},qn:function(){return M},r5:function(){return h},uW:function(){return C},uX:function(){return D},uj:function(){return I},v:function(){return o},vD:function(){return Z}});var n=r(8859);function o(t){return(0,n.Z)({url:"/quality/processDetect/page",method:"post",data:t})}function a(t){return(0,n.Z)({url:"/quality/processDetect/list",method:"post",data:t})}function u(t){return(0,n.Z)({url:"/quality/processDetect/add",method:"post",formState:!0,data:t})}function l(t){return(0,n.Z)({url:"/quality/processDetect/detectInput",method:"post",formState:!0,data:t})}function i(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 p(t){return(0,n.Z)({url:"/quality/processCompleteInspetion/getDetails",method:"post",data:t})}function c(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 m(t){return(0,n.Z)({url:"/quality/processCompleteInspetion/pageIIS",method:"post",data:t})}function f(t){return(0,n.Z)({url:"/quality/ProcessFull/queryPoint",method:"post",data:t})}function y(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 Z(t){return(0,n.Z)({url:"/quality/ProcessFull/confirm",method:"post",data:t})}function T(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 C(t){return(0,n.Z)({url:"/report/GlassReport/listGlass",method:"post",data:t})}function I(t){return(0,n.Z)({url:"/report/GlassReport/qualityReport",method:"post",data:t})}function P(t){return(0,n.Z)({url:"/report/GlassReport/qualityReportexport",method:"post",responseType:"blob",data:t})}function k(t){return(0,n.Z)({url:"/report/GlassReport/thickReport",method:"post",data:t})}function Q(t){return(0,n.Z)({url:"/report/GlassReport/thickReportexport",method:"post",responseType:"blob",data:t})}function w(t){return(0,n.Z)({url:"/quality/finalpackaging/queryGlassData",method:"post",data:t})}function F(t){return(0,n.Z)({url:"/quality/finalpackaging/claGlassData",method:"post",data:t})}function R(t){return(0,n.Z)({url:"/quality/productTrace/page",method:"post",data:t})}function v(t){return(0,n.Z)({url:"/quality/productTrace/pageProcess",method:"post",data:t})}function M(t){return(0,n.Z)({url:"/quality/productTrace/pageProcessParameter",method:"post",data:t})}}}]); |