您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

1 行
12 KiB

  1. "use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[2873],{2873:function(r,o,t){t.r(o),t.d(o,{default:function(){return D}});var e=function(){var r=this,o=r._self._c;return o("div",{staticClass:"production-report-box"},[o("search-bar",{ref:"searchBarForm",attrs:{formConfigs:r.formConfig},on:{headBtnClick:r.buttonClick}}),o("base-table",{attrs:{page:r.listQuery.current,limit:r.listQuery.size,"table-props":r.tableProp,"table-data":r.tableData,"span-method":r.spanMethod,"max-height":r.tableH}})],1)},n=[],w=t(475),a=function(){var r=this,o=r._self._c;return o("div",[o("el-tag",{attrs:{size:"medium"}},[r._v(r._s(r.showTotal))])],1)},i=[],p={name:"TableTags",data(){return{showTotal:""}},props:{injectData:{type:Object,default:()=>({})}},mounted(){"daySum"===this.injectData.prop?this.showTotal=this.injectData.daySum:"nightSum"===this.injectData.prop?this.showTotal=this.injectData.nightSum:"sum"===this.injectData.prop&&(this.showTotal=this.injectData.sum)}},l=p,s=t(1001),u=(0,s.Z)(l,a,i,!1,null,null,null),h=u.exports,d=t(381),c=t.n(d),f=t(6527);const b=[{prop:"row1",label:"区域",fixed:!0},{prop:"row2",label:"",fixed:!0},{prop:"row3",label:"项目指标",minWidth:150,fixed:!0},{label:"白班(8:00-20:00)",align:"center",children:[{prop:"seven",label:"7-8",width:60},{prop:"eight",label:"8-9",width:60},{prop:"nine",label:"9-10",width:60},{prop:"ten",label:"10-11",width:60},{prop:"eleven",label:"11-12",width:60},{prop:"twelve",label:"12-13",width:60},{prop:"thirteen",label:"13-14",width:60},{prop:"fourteen",label:"14-15",width:60},{prop:"fifteen",label:"15-16",width:60},{prop:"sixteen",label:"16-17",width:60},{prop:"seventeen",label:"17-18",width:60},{prop:"eighteen",label:"18-19",width:60},{prop:"daySum",label:"合计",subcomponent:h}]},{label:"夜班(20:00-8:00)",align:"center",children:[{prop:"nineteen",label:"19-20",width:60},{prop:"twenty",label:"20-21",width:60},{prop:"twentyOne",label:"21-22",width:60},{prop:"twentyTwo",label:"22-23",width:60},{prop:"twentyThree",label:"23-24",width:60},{prop:"zero",label:"0-1",width:60},{prop:"one",label:"1-2",width:60},{prop:"two",label:"2-3",width:60},{prop:"three",label:"3-4",width:60},{prop:"four",label:"4-5",width:60},{prop:"five",label:"5-6",width:60},{prop:"six",label:"6-7",width:60},{prop:"nightSum",label:"合计",subcomponent:h}]},{prop:"sum",label:"总计",subcomponent:h}];var m={name:"productionReport",data(){return{formConfig:[{type:"select",label:"产线",selectOptions:JSON.parse(localStorage.getItem("publicList")).proLineVoList,param:"proLineId",defaultSelect:"1",clearable:!1,width:120},{type:"datePicker",label:"日期选择",dateType:"date",format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd",param:"hour",defaultSelect:"",clearable:!1,width:200},{type:"button",btnName:"查询",name:"search",color:"primary"},{type:"separate"},{type:"button",btnName:"导出",name:"export",color:"primary",plain:!0}],listQuery:{proLineId:"",hour:""},tableH:(0,w.NC)(225),tableProp:b,tableData:[],span:[],span2:[],tableHead:[{row1:"综合",row2:"",row3:"上片投入"},{row1:"综合",row2:"",row3:"机器人复投"},{row1:"综合",row2:"",row3:"再清洗品"},{row1:"综合",row2:"",row3:"良品总投入数"},{row1:"综合",row2:"",row3:"工序总损耗"},{row1:"综合",row2:"",row3:"后清洗输出"},{row1:"上片",row2:"",row3:"损失"},{row1:"精切",row2:"",row3:"损失"},{row1:"精切",row2:"",row3:"抽检"},{row1:"磨边",row2:"",row3:"损失"},{row1:"磨边",row2:"",row3:"抽检"},{row1:"前清洗",row2:"",row3:"损失"},{row1:"边检",row2:"",row3:"损失"},{row1:"复投",row2:"",row3:"损失"},{row1:"贴合压合",row2:"",row3:"贴合损失"},{row1:"贴合压合",row2:"",row3:"压合损失"},{row1:"面研磨机",row2:"",row3:"输入"},{row1:"面研磨机",row2:"",row3:"1#输入"},{row1:"面研磨机",row2:"",row3:"2#输入"},{row1:"面研磨机",row2:"",row3:"3#输入"},{row1:"面研磨机",row2:"",row3:"4#输入"},{row1:"面研磨机",row2:"",row3:"5#输入"},{row1:"面研磨机",row2:"",row3:"6#输入"},{row1:"面研磨机",row2:"",row3:"输出"},{row1:"面研磨机",row2:"",row3:"1#输出"},{row1:"面研磨机",row2:"",row3:"2#输出"},{row1:"面研磨机",row2:"",row3:"3#输出"},{row1:"面研磨机",row2:"",row3:"4#输出"},{row1:"面研磨机",row2:"",row3:"5#输出"},{row1:"面研磨机",row2:"",row3:"6#输出"},{row1:"面研磨机",row2:"",row3:"损失"},{row1:"剥片",row2:"",row3:"损失"},{row1:"预清洗",row2:"",row3:"损失"},{row1:"后清洗",row2:"",row3:"损失"},{row1:"后清洗",row2:"",row3:"输出"},{row1:"检查包装段",row2:"",row3:"检查数"},{row1:"检查包装段",row2:"",row3:"抽检数"},{row1:"检查包装段",row2:"",row3:"B1品"},{row1:"检查包装段",row2:"",row3:"B2品"},{row1:"检查包装段",row2:"",row3:"A1品"},{row1:"检查包装段",row2:"",row3:"A2品"},{row1:"检查包装段",row2:"",row3:"工耗损失"},{row1:"缺陷统计",row2:"前边检不良",row3:"掉片"},{row1:"缺陷统计",row2:"前边检不良",row3:"烧边"},{row1:"缺陷统计",row2:"前边检不良",row3:"过磨"},{row1:"缺陷统计",row2:"前边检不良",row3:"欠磨"},{row1:"缺陷统计",row2:"前边检不良",row3:"未磨"},{row1:"缺陷统计",row2:"前边检不良",row3:"边裂/裂纹"},{row1:"缺陷统计",row2:"前工程不良",row3:"BL数"},{row1:"缺陷统计",row2:"前工程不良",row3:"BL尺寸"},{row1:"缺陷统计",row2:"前工程不良",row3:"Tin上数"},{row1:"缺陷统计",row2:"前工程不良",row3:"Tin上尺寸"},{row1:"缺陷统计",row2:"前工程不良",row3:"结瘤"},{row1:"缺陷统计",row2:"前工程不良",row3:"结石"},{row1:"缺陷统计",row2:"前工程不良",row3:"Tin下数"},{row1:"缺陷统计",row2:"前工程不良",row3:"Tin下尺寸"},{row1:"缺陷统计",row2:"前工程不良",row3:"PT"},{row1:"缺陷统计",row2:"前工程不良",row3:"欠点合计"},{row1:"缺陷统计",row2:"前工程不良",row3:"Q聚"},{row1:"缺陷统计",row2:"前工程不良",row3:"ADG"},{row1:"缺陷统计",row2:"前工程不良",row3:"其他"},{row1:"缺陷统计",row2:"后工程不良",row3:"掉片"},{row1:"缺陷统计",row2:"后工程不良",row3:"烧边"},{row1:"缺陷统计",row2:"后工程不良",row3:"过磨"},{row1:"缺陷统计",row2:"后工程不良",row3:"欠磨"},{row1:"缺陷统计",row2:"后工程不良",row3:"未磨"},{row1:"缺陷统计",row2:"后工程不良",row3:"边裂/裂纹"},{row1:"缺陷统计",row2:"后工程不良",row3:"角尺寸不良"},{row1:"缺陷统计",row2:"后工程不良",row3:"K/Q数"},{row1:"缺陷统计",row2:"后工程不良",row3:"K/Q聚集"},{row1:"缺陷统计",row2:"后工程不良",row3:"划伤"},{row1:"缺陷统计",row2:"后工程不良",row3:"轮印"},{row1:"缺陷统计",row2:"后工程不良",row3:"磨痕"},{row1:"缺陷统计",row2:"后工程不良",row3:"气浮擦伤"},{row1:"缺陷统计",row2:"后工程不良",row3:"残留"},{row1:"缺陷统计",row2:"后工程不良",row3:"污渍"},{row1:"缺陷统计",row2:"后工程不良",row3:"纤维"},{row1:"缺陷统计",row2:"后工程不良",row3:"水渍"},{row1:"缺陷统计",row2:"后工程不良",row3:"异物"},{row1:"缺陷统计",row2:"后工程不良",row3:"面磨印记"},{row1:"缺陷统计",row2:"后工程不良",row3:"雾面残留"},{row1:"缺陷统计",row2:"后工程不良",row3:"其他"}]}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,w.NC)(225)})),this.formConfig[1].defaultSelect=c()().format("yyyy-MM-DD"),this.listQuery.hour=c()().format("yyyy-MM-DD"),this.getData()},methods:{buttonClick(r){this.listQuery.proLineId=r.proLineId,this.listQuery.hour=r.hour,"search"===r.btnName?this.getData():"export"===r.btnName&&(0,f.V0)({...this.listQuery}).then((r=>{let o="";const t=r.headers["content-disposition"];t&&(o=decodeURIComponent(t.slice(t.indexOf("filename=")+9)));const e=new Blob([r.data]),n=new FileReader;n.readAsDataURL(e),n.onload=r=>{const t=document.createElement("a");t.download=o,t.href=r.target.result,document.body.appendChild(t),t.click(),document.body.removeChild(t)}}))},getData(){(0,f.wF)({...this.listQuery}).then((r=>{let o=r.data;if(this.tableData=[],o&&o.length>0){for(let r=0;r<o.length;r++)o[r].row1=this.tableHead[r].row1,o[r].row2=this.tableHead[r].row2,o[r].row3=this.tableHead[r].row3;this.tableData=o}console.log(this.tableData),this.getSpanArr(this.tableData),this.getSpanArr2(this.tableData)}))},getSpanArr(r){this.span=[];for(var o=0;o<r.length;o++)0===o?(this.span.push(1),this.index=0):r[o].row1===r[o-1].row1?(this.span[this.index]+=1,this.span.push(0)):(this.span.push(1),this.index=o)},getSpanArr2(r){this.span2=[];for(var o=0;o<r.length;o++)0===o?(this.span2.push(1),this.index=0):r[o].row2===r[o-1].row2?(this.span2[this.index]+=1,this.span2.push(0)):(this.span2.push(1),this.index=o)},spanMethod({rowIndex:r,columnIndex:o}){if(r<42){if(0===o){const o=this.span[r];return{rowspan:o,colspan:2}}if(1===o)return[0,0]}else if(r>=42&&r<82){if(0===o){const o=this.span[r];return{rowspan:o,colspan:1}}if(1===o){const o=this.span2[r];return{rowspan:o,colspan:1}}}}}},y=m,g=(0,s.Z)(y,e,n,!1,null,"00b3ea05",null),D=g.exports},6527:function(r,o,t){t.d(o,{AT:function(){return Z},Hg:function(){return d},J_:function(){return n},Kx:function(){return T},QL:function(){return p},V0:function(){return b},W0:function(){return c},a:function(){return h},an:function(){return x},bu:function(){return D},fL:function(){return R},gc:function(){return v},kB:function(){return w},m3:function(){return u},oR:function(){return g},sy:function(){return a},uW:function(){return m},uj:function(){return y},up:function(){return s},wF:function(){return f},wy:function(){return i},yk:function(){return l}});var e=t(8859);function n(r){return(0,e.Z)({url:"/report/report-sheet-category/list",method:"post",data:r})}function w(r){return(0,e.Z)({url:"/report/report-sheet/page",method:"post",data:r})}function a(r){return(0,e.Z)({url:"/report/report-sheet/update",method:"post",data:r})}function i(r){return(0,e.Z)({url:"/report/report-sheet/delete",method:"post",data:r})}function p(r){return(0,e.Z)({url:"/report/report-sheet/get",method:"post",data:r})}function l(r){return(0,e.Z)({url:"/report/report-sheet-category/page",method:"post",data:r})}function s(r){return(0,e.Z)({url:"/report/GlassReport/getReportNum",method:"post",data:r})}function u(r){return(0,e.Z)({url:"/report/report-sheet-category/add",method:"post",data:r})}function h(r){return(0,e.Z)({url:"/report/report-sheet-category/update",method:"post",data:r})}function d(r){return(0,e.Z)({url:"/report/report-sheet-category/get",method:"post",data:r})}function c(r){return(0,e.Z)({url:"/report/report-sheet-category/delete",method:"post",data:r})}function f(r){return(0,e.Z)({url:"/order/proReport/getProductReportData",method:"post",data:r})}function b(r){return(0,e.Z)({url:"/order/proReport/exportProductReport",method:"post",responseType:"blob",data:r,timeout:6e4})}function m(r){return(0,e.Z)({url:"/report/GlassReport/listGlass",method:"post",data:r})}function y(r){return(0,e.Z)({url:"/report/GlassReport/qualityReport",method:"post",data:r})}function g(r){return(0,e.Z)({url:"/report/GlassReport/qualityReportexport",method:"post",responseType:"blob",data:r})}function D(r){return(0,e.Z)({url:"/report/GlassReport/thickReport",method:"post",data:r})}function x(r){return(0,e.Z)({url:"/report/GlassReport/thickReportexport",method:"post",responseType:"blob",data:r})}function Z(r){return(0,e.Z)({url:"/quality/finalpackaging/queryGlassData",method:"post",data:r})}function R(r){return(0,e.Z)({url:"/quality/finalpackaging/claGlassData",method:"post",data:r})}function T(r){return(0,e.Z)({url:"/report/GlassReport/getGlassVoid",method:"post",data:r})}function v(r){return(0,e.Z)({url:"/report/GlassReport/getUnitVoid",method:"post",data:r})}}}]);