tft-fe/dist/js/4591.fd241a34.js
2023-02-22 13:59:09 +08:00

1 line
5.6 KiB
JavaScript

"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[4591],{4591:function(b,t,e){e.r(t),e.d(t,{default:function(){return w}});var y=function(){var b=this,t=b._self._c;return t("div",{staticClass:"page-box"},[t("search-bar",{ref:"searchBarForm",attrs:{formConfigs:b.formConfig},on:{headBtnClick:b.buttonClick}}),t("base-table",{attrs:{page:b.listQuery.current,limit:b.listQuery.size,"table-props":b.tableProp,"table-data":b.tableData,"span-method":b.spanMethod,"max-height":b.tableH}})],1)},a=[],p=e(475),l=function(){var b=this,t=b._self._c;return t("div",[t("el-tag",{attrs:{size:"medium"}},[b._v(b._s(b.showTotal))])],1)},r=[],s={name:"TableTags",data(){return{showTotal:""}},props:{injectData:{type:Object,default:()=>({})}},mounted(){console.log(this.injectData),console.log(this.injectData.prop),"ct1"===this.injectData.prop?this.showTotal=this.injectData.ct1:"ct2"===this.injectData.prop&&(this.showTotal=this.injectData.ct2)}},i=s,o=e(1001),n=(0,o.Z)(i,l,r,!1,null,null,null),c=n.exports;const h=[{prop:"process",label:"区域",fixed:!0},{prop:"equipmentName",label:"项目指标",minWidth:150,fixed:!0},{label:"白班(8:00-20:00)",align:"center",children:[{prop:"b1",label:"7-8",width:60},{prop:"b2",label:"8-9",width:60},{prop:"b3",label:"9-10",width:60},{prop:"b4",label:"10-11",width:60},{prop:"b5",label:"11-12",width:60},{prop:"b6",label:"12-13",width:60},{prop:"b7",label:"13-14",width:60},{prop:"b8",label:"14-15",width:60},{prop:"b9",label:"15-16",width:60},{prop:"b10",label:"16-17",width:60},{prop:"b11",label:"17-18",width:60},{prop:"b12",label:"18-19",width:60},{prop:"ct1",label:"合计",subcomponent:c}]},{label:"夜班(20:00-8:00)",align:"center",children:[{prop:"y1",label:"19-20",width:60},{prop:"y2",label:"20-21",width:60},{prop:"y3",label:"21-22",width:60},{prop:"y4",label:"22-23",width:60},{prop:"y5",label:"23-24",width:60},{prop:"y6",label:"0-1",width:60},{prop:"y7",label:"1-2",width:60},{prop:"y8",label:"2-3",width:60},{prop:"y9",label:"3-4",width:60},{prop:"y10",label:"4-5",width:60},{prop:"y11",label:"5-6",width:60},{prop:"y12",label:"6-7",width:60},{prop:"ct2",label:"合计",subcomponent:c}]}];var d={name:"FinalInspectionDailyReport",data(){return{formConfig:[{type:"datePicker",label:"日期选择",dateType:"date",format:"yyyy-MM-dd",valueFormat:"yyyy-MM-dd",param:"timeVal",width:200},{type:"button",btnName:"查询",name:"search",color:"primary"},{type:"separate"},{type:"button",btnName:"导出",name:"export",color:"primary",plain:!0}],listQuery:{current:1,size:20},tableH:(0,p.NC)(300),tableProp:h,tableData:[],span:[]}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,p.NC)(300)})),this.getData()},methods:{buttonClick(b){console.log(b)},getData(){this.tableData=[{b1:1,b2:2,b3:3,b4:4,b5:5,b6:6,b7:7,b8:8,b9:9,b10:10,b11:11,b12:12,ct1:108,y1:1,y2:2,y3:3,y4:4,y5:5,y6:6,y7:7,y8:8,y9:9,y10:10,y11:11,y12:12,ct2:103,equipmentName:"上片投入数",process:"综合"},{b1:1,b2:2,b3:3,b4:4,b5:5,b6:6,b7:7,b8:8,b9:9,b10:10,b11:11,b12:12,ct1:102,y1:1,y2:2,y3:3,y4:4,y5:5,y6:6,y7:7,y8:8,y9:9,y10:10,y11:11,y12:12,ct2:99,equipmentName:"机器人投入数",process:"综合"},{b1:1,b2:2,b3:3,b4:4,b5:5,b6:6,b7:7,b8:8,b9:9,b10:10,b11:11,b12:12,ct1:100,y1:1,y2:2,y3:3,y4:4,y5:5,y6:6,y7:7,y8:8,y9:9,y10:10,y11:11,y12:12,ct2:100,equipmentName:"良品总投入数",process:"综合"},{b1:1,b2:2,b3:3,b4:4,b5:5,b6:6,b7:7,b8:8,b9:9,b10:10,b11:11,b12:12,ct1:100,y1:1,y2:2,y3:3,y4:4,y5:5,y6:6,y7:7,y8:8,y9:9,y10:10,y11:11,y12:12,ct2:100,equipmentName:"工序损耗",process:"综合"},{b1:1,b2:2,b3:3,b4:4,b5:5,b6:6,b7:7,b8:8,b9:9,b10:10,b11:11,b12:12,ct1:100,y1:1,y2:2,y3:3,y4:4,y5:5,y6:6,y7:7,y8:8,y9:9,y10:10,y11:11,y12:12,ct2:100,equipmentName:"后清洗输出",process:"综合"},{b1:1,b2:2,b3:3,b4:4,b5:5,b6:6,b7:7,b8:8,b9:9,b10:10,b11:11,b12:12,ct1:100,y1:1,y2:2,y3:3,y4:4,y5:5,y6:6,y7:7,y8:8,y9:9,y10:10,y11:11,y12:12,ct2:100,equipmentName:"上片损失",process:"上片"},{b1:1,b2:2,b3:3,b4:4,b5:5,b6:6,b7:7,b8:8,b9:9,b10:10,b11:11,b12:12,ct1:100,y1:1,y2:2,y3:3,y4:4,y5:5,y6:6,y7:7,y8:8,y9:9,y10:10,y11:11,y12:12,ct2:100,equipmentName:"精切损失",process:"精切"},{b1:1,b2:2,b3:3,b4:4,b5:5,b6:6,b7:7,b8:8,b9:9,b10:10,b11:11,b12:12,ct1:100,y1:1,y2:2,y3:3,y4:4,y5:5,y6:6,y7:7,y8:8,y9:9,y10:10,y11:11,y12:12,ct2:100,equipmentName:"精切抽检",process:"精切"},{b1:1,b2:2,b3:3,b4:4,b5:5,b6:6,b7:7,b8:8,b9:9,b10:10,b11:11,b12:12,ct1:100,y1:1,y2:2,y3:3,y4:4,y5:5,y6:6,y7:7,y8:8,y9:9,y10:10,y11:11,y12:12,ct2:100,equipmentName:"磨边损失",process:"磨边"},{b1:1,b2:2,b3:3,b4:4,b5:5,b6:6,b7:7,b8:8,b9:9,b10:10,b11:11,b12:12,ct1:100,y1:1,y2:2,y3:3,y4:4,y5:5,y6:6,y7:7,y8:8,y9:9,y10:10,y11:11,y12:12,ct2:100,equipmentName:"磨边抽检",process:"磨边"},{b1:1,b2:2,b3:3,b4:4,b5:5,b6:6,b7:7,b8:8,b9:9,b10:10,b11:11,b12:12,ct1:100,y1:1,y2:2,y3:3,y4:4,y5:5,y6:6,y7:7,y8:8,y9:9,y10:10,y11:11,y12:12,ct2:100,equipmentName:"前清洗损失",process:"前清洗"},{b1:1,b2:2,b3:3,b4:4,b5:5,b6:6,b7:7,b8:8,b9:9,b10:10,b11:11,b12:12,ct1:100,y1:1,y2:2,y3:3,y4:4,y5:5,y6:6,y7:7,y8:8,y9:9,y10:10,y11:11,y12:12,ct2:100,equipmentName:"边检损失",process:"边检"},{b1:1,b2:2,b3:3,b4:4,b5:5,b6:6,b7:7,b8:8,b9:9,b10:10,b11:11,b12:12,ct1:100,y1:1,y2:2,y3:3,y4:4,y5:5,y6:6,y7:7,y8:8,y9:9,y10:10,y11:11,y12:12,ct2:100,equipmentName:"复投损失",process:"复投"}],this.getSpanArr(this.tableData)},getSpanArr(b){for(var t=0;t<b.length;t++)0===t?(this.span.push(1),this.index=0):b[t].process===b[t-1].process?(this.span[this.index]+=1,this.span.push(0)):(this.span.push(1),this.index=t)},spanMethod({rowIndex:b,columnIndex:t}){if(1===t){const t=this.span[b];return{rowspan:t,colspan:1}}}}},m=d,u=(0,o.Z)(m,y,a,!1,null,null,null),w=u.exports}}]);