1 line
5.4 KiB
JavaScript
1 line
5.4 KiB
JavaScript
"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[7675],{8084:function(t,e,n){n.r(e),n.d(e,{default:function(){return f}});var a=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:{limit:t.listQuery.size,total:t.total}})],1)},r=[],o=n(475),l=n(2334),i=n(381),s=n.n(i);const u=[{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}],d=[{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:u,tableData:[],tableH:(0,o.NC)(330),tableBtn:d,total:0,listQuery:{current:1,size:20}}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,o.NC)(330)})),this.formConfig[2].defaultSelect=[s()().format("yyyy-MM-DD")+"T00:00:00",s()().format("yyyy-MM-DD")+"T23:59:59"],this.listQuery.startTime=s()().format("yyyy-MM-DD")+"T00:00:00",this.listQuery.endTime=s()().format("yyyy-MM-DD")+"T23:59:59",this.getList()},methods:{getList(){console.log("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 n=t.headers["content-disposition"];n&&(e=decodeURIComponent(n.slice(n.indexOf("filename=")+9)));const a=new Blob([t.data]),r=new FileReader;r.readAsDataURL(a),r.onload=t=>{const n=document.createElement("a");n.download=e,n.href=t.target.result,document.body.appendChild(n),n.click(),document.body.removeChild(n)}}))}},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=c,m=n(1001),y=(0,m.Z)(p,a,r,!1,null,null,null),f=y.exports},2334:function(t,e,n){n.d(e,{Af:function(){return i},F0:function(){return y},ON:function(){return u},QI:function(){return l},Qd:function(){return f},YU:function(){return m},dy:function(){return g},eT:function(){return c},iF:function(){return d},jA:function(){return o},pS:function(){return s},pw:function(){return p},r5:function(){return h},uX:function(){return C},v:function(){return r},vD:function(){return b}});var a=n(8859);function r(t){return(0,a.Z)({url:"/quality/processDetect/page",method:"post",data:t})}function o(t){return(0,a.Z)({url:"/quality/processDetect/list",method:"post",data:t})}function l(t){return(0,a.Z)({url:"/quality/processDetect/add",method:"post",formState:!0,data:t})}function i(t){return(0,a.Z)({url:"/quality/processDetect/detectInput",method:"post",formState:!0,data:t})}function s(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 d(t){return(0,a.Z)({url:"/quality/processCompleteInspetion/getDetails",method:"post",data:t})}function c(t){return(0,a.Z)({url:"/quality/processCompleteInspetion/listType",method:"post",data:t})}function p(t){return(0,a.Z)({url:"/quality/processCompleteInspetion/export",method:"post",responseType:"blob",data:t})}function m(t){return(0,a.Z)({url:"/quality/processCompleteInspetion/pageIIS",method:"post",data:t})}function y(t){return(0,a.Z)({url:"/quality/ProcessFull/queryPoint",method:"post",data:t})}function f(t){return(0,a.Z)({url:"/quality/ProcessFull/drawPoint",method:"post",data:t})}function h(t){return(0,a.Z)({url:"/quality/ProcessFull/queryPointClear",method:"post",data:t})}function b(t){return(0,a.Z)({url:"/quality/ProcessFull/confirm",method:"post",data:t})}function g(t){return(0,a.Z)({url:"/quality/ProcessFull/queryThickness",method:"post",data:t})}function C(t){return(0,a.Z)({url:"/quality/ProcessFull/drawThickness",method:"post",formState:!0,data:t})}}}]); |