tft-fe/dist/js/5096.25cdde84.js
2023-05-15 17:25:05 +08:00

1 line
6.4 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)},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}],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,o.NC)(330),tableBtn:p,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}})}}},d=c,m=r(1001),f=(0,m.Z)(d,n,a,!1,null,null,null),y=f.exports},2334:function(t,e,r){r.d(e,{AT:function(){return k},Af:function(){return i},F0:function(){return f},ON:function(){return s},QI:function(){return l},Qd:function(){return y},YU:function(){return m},an:function(){return I},bu:function(){return T},dy:function(){return g},eT:function(){return c},fL:function(){return Q},iF:function(){return p},jA:function(){return o},oR:function(){return Z},pS:function(){return u},pw:function(){return d},r5:function(){return h},uW:function(){return D},uX:function(){return q},uj:function(){return C},v:function(){return a},vD:function(){return b}});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 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/confirm",method:"post",data:t})}function g(t){return(0,n.Z)({url:"/quality/ProcessFull/queryThickness",method:"post",data:t})}function q(t){return(0,n.Z)({url:"/quality/ProcessFull/drawThickness",method:"post",formState:!0,data:t})}function D(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 T(t){return(0,n.Z)({url:"/report/GlassReport/thickReport",method:"post",data:t})}function I(t){return(0,n.Z)({url:"/report/GlassReport/thickReportexport",method:"post",responseType:"blob",data:t})}function k(t){return(0,n.Z)({url:"/quality/finalpackaging/queryGlassData",method:"post",data:t})}function Q(t){return(0,n.Z)({url:"/quality/finalpackaging/claGlassData",method:"post",data:t})}}}]);