tft-fe/dist/js/4867.bb11ac94.js

2 lines
315 KiB
JavaScript
Raw Permalink Normal View History

2023-07-13 14:11:41 +08:00
(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[4867],{915:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return Qp}});var n=function(){var e=this,t=e._self._c;return t("div",{staticClass:"finalInspectionData"},[t("el-row",{staticClass:"box-top"},[t("el-col",[t("div",{staticClass:"search-box"},[t("search-bar",{ref:"searchBarForm",attrs:{formConfigs:e.formConfig},on:{headBtnClick:e.buttonClick,"select-changed":e.selectChanged}})],1)])],1),t("div",{staticClass:"box"},[t("split-pane",{scopedSlots:e._u([{key:"left",fn:function(){return[t("div",{staticClass:"split-pane left-box"},[t("span",{staticClass:"table-button",on:{click:e.generateReport}},[e._v("生成表格")]),t("base-table",{attrs:{selectWidth:40,"table-props":e.tablePropsL,"table-data":e.tableDataL,"max-height":e.tableHL},on:{"selection-change":e.selectChange}})],1)]},proxy:!0},{key:"right",fn:function(){return[t("div",{staticClass:"split-pane right-box"},[t("div",{staticClass:"inner-box"},[e.reportTitle?t("div",[t("span",{staticClass:"title"},[e._v(e._s(e.reportTitle))])]):e._e(),"玻璃基板品质报表"===e.reportTitle?t("div",{staticClass:"table-box"},[t("glass-quality-report",{attrs:{tableData:e.glassQualityArr}})],1):e._e(),"厚度汇总报表"===e.reportTitle?t("div",{staticClass:"table-box"},[t("glass-thick-report",{attrs:{tableData:e.thickReportArr}})],1):e._e(),"终检下片包装"===e.reportTitle?t("div",{staticClass:"table-box"},[t("glass-pack-report",{attrs:{tableData1:e.packClaReportArr,tableData2:e.packReportArr}})],1):e._e(),"玻璃判废统计表"===e.reportTitle?t("div",{staticClass:"table-box"},[t("glass-waste-report",{attrs:{tableData:e.wasteReportArr}})],1):e._e(),"判废机组统计表"===e.reportTitle?t("div",{staticClass:"table-box"},[t("waste-machine-report",{attrs:{tableData:e.wasteMachineArr}})],1):e._e(),"判废位置统计表"===e.reportTitle?t("div",{staticClass:"table-box"},[t("waste-location-report",{attrs:{tableData:e.wasteLocationArr}})],1):e._e(),"玻璃基板缺陷报表"===e.reportTitle?t("div",{staticClass:"table-box"},[t("glass-defect-report",{attrs:{tableData:e.glassDefectArr}})],1):e._e(),"厚度检查机报表"===e.reportTitle?t("div",{staticClass:"table-box"},[t("thickness-report",{attrs:{tableData:e.glassDefectArr}})],1):e._e()])])]},proxy:!0}]),model:{value:e.split1,callback:function(t){e.split1=t},expression:"split1"}})],1)],1)},a=[],s=r(475),i=r(6527),l=function(){var e=this,t=e._self._c;return t("div",[t("base-table",{attrs:{"table-props":e.tableProps,"table-data":e.tableData,"max-height":e.tableH}})],1)},o=[];const c=[{prop:"time",label:"检测时间",filter:s.g6,minWidth:160},{prop:"virtualcode",label:"玻璃ID",minWidth:120},{prop:"lineA",label:"加工条件",children:[{prop:"palletId",label:"托盘ID"},{prop:"grindtype",label:"研磨类型"}]},{prop:"lineB",label:"检测数据",children:[{prop:"sums",label:"颗粒总数"},{prop:"tin",label:"点状缺陷"},{prop:"distortion",label:"变形"},{prop:"tail",label:"拖尾"},{prop:"bl",label:"气泡"},{prop:"stone",label:"结石"},{prop:"scratch",label:"划伤"},{prop:"surfaceSum",label:"面检总数"}]},{prop:"lineC",label:"研磨电流(A)",children:[{prop:"ae",label:"A机台"},{prop:"be",label:"B机台"},{prop:"ce",label:"C机台"},{prop:"alle",label:"总电流"}]},{prop:"eletricityConform",label:"工艺符合性",minWidth:100},{prop:"lineD",label:"研磨时间(S)",children:[{prop:"ae",label:"A机台"},{prop:"be",label:"B机台"},{prop:"ce",label:"C机台"},{prop:"allt",label:"总研磨时间",minWidth:100}]}];var f={name:"glassQualityReport",data(){return{tableProps:c,tableH:(0,s.NC)(292)}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,s.NC)(292)}))},props:{tableData:{type:Array,required:!0,default:()=>[]}}},h=f,u=r(1001),p=(0,u.Z)(h,l,o,!1,null,null,null),d=p.exports,m=function(){var e=this,t=e._self._c;return t("div",[t("base-table",{attrs:{"table-props":e.tableProps,"table-data":e.tableData,"max-height":e.tableH}})],1)},g=[];const v=[{prop:"glassId",label:"玻璃ID",minWidth:120},{prop:"testTime",label:"检测
2023-07-19 15:45:49 +08:00
/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function Wu(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Hu(e){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):Re(Wr(e))}function Gu(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}function Vu(e){var t=e.reduce((function(e,t){return e+t.length}),0),r=new Uint8Array(t),n=0;return e.forEach((function(e){r.set(e,n),n+=e.length})),r}function ju(e,t,r){var n=Math.floor(0==r?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,a=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(127&n)<<1;for(var s=0;a>=1;++s,a/=256)e[t+s]=255&a;e[t+15]|=r>=0?0:128}function zu(e,t){var r=t?t[0]:0,n=127&e[r];e:if(e[r++]>=128){if(n|=(127&e[r])<<7,e[r++]<128)break e;if(n|=(127&e[r])<<14,e[r++]<128)break e;if(n|=(127&e[r])<<21,e[r++]<128)break e;if(n+=(127&e[r])*Math.pow(2,28),++r,e[r++]<128)break e;if(n+=(127&e[r])*Math.pow(2,35),++r,e[r++]<128)break e;if(n+=(127&e[r])*Math.pow(2,42),++r,e[r++]<128)break e}return t&&(t[0]=r),n}function $u(e){var t=new Uint8Array(7);t[0]=127&e;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383)break e;if(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)break e;if(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)break e;if(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)break e;if(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103)break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function Xu(e){var t=0,r=127&e[t];e:if(e[t++]>=128){if(r|=(127&e[t])<<7,e[t++]<128)break e;if(r|=(127&e[t])<<14,e[t++]<128)break e;if(r|=(127&e[t])<<21,e[t++]<128)break e;r|=(127&e[t])<<28}return r}function Ku(e){var t=[],r=[0];while(r[0]<e.length){var n=r[0],a=zu(e,r),s=7&a;a=Math.floor(a/8);var i,l=0;if(0==a)break;switch(s){case 0:var o=r[0];while(e[r[0]++]>=128);i=e.slice(o,r[0]);break;case 5:l=4,i=e.slice(r[0],r[0]+l),r[0]+=l;break;case 1:l=8,i=e.slice(r[0],r[0]+l),r[0]+=l;break;case 2:l=zu(e,r),i=e.slice(r[0],r[0]+l),r[0]+=l;break;case 3:case 4:default:throw new Error("PB Type ".concat(s," for Field ").concat(a," at offset ").concat(n))}var c={data:i,type:s};null==t[a]?t[a]=[c]:t[a].push(c)}return t}function Yu(e){var t=[];return e.forEach((function(e,r){e.forEach((function(e){e.data&&(t.push($u(8*r+e.type)),2==e.type&&t.push($u(e.data.length)),t.push(e.data))}))})),Vu(t)}function Zu(e){var t,r=[],n=[0];while(n[0]<e.length){var a=zu(e,n),s=Ku(e.slice(n[0],n[0]+a));n[0]+=a;var i={id:Xu(s[1][0].data),messages:[]};s[2].forEach((function(t){var r=Ku(t.data),a=Xu(r[3][0].data);i.messages.push({meta:r,data:e.slice(n[0],n[0]+a)}),n[0]+=a})),(null==(t=s[3])?void 0:t[0])&&(i.merge=Xu(s[3][0].data)>>>0>0),r.push(i)}return r}function Ju(e){var t=[];return e.forEach((function(e){var r=[];r[1]=[{data:$u(e.id),type:0}],r[2]=[],null!=e.merge&&(r[3]=[{data:$u(+!!e.merge),type:0}]);var n=[];e.messages.forEach((function(e){n.push(e.data),e.meta[3]=[{type:0,data:$u(e.data.length)}],r[2].push({data:Yu(e.meta),type:2})}));var a=Yu(r);t.push($u(a.length)),t.push(a),n.forEach((function(e){return t.push(e)}))})),Vu(t)}function qu(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));var r=[0],n=zu(t,r),a=[];while(r[0]<t.length){var s=3&t[r[0]];if(0!=s){var i=0,l=0;if(1==s?(l=4+(t[r[0]]>>2&7),i=(224&t[r[0]++])<<3,i|=t[r[0]++]):(l=1+(t[r[0]++]>>2),2==s?(i=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(i=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),a=[Vu(a)],0==i)throw new Error("Invalid offset 0");if(i>a[0].length)throw new Error("Invalid offset beyond length");if(l>=i){a.push(a[0].slice(-i)),l-=i;while(l>=a[a.length-1].length)a.push(a[a.length-1]),l-=a[a.length-1].length}a.push(a[0].slice(-i,-i+l))}else{var o=t[r[0]++]>>2;if(o<60)++o;else{var c=o-59;o=t[r[0]],c>1&&(o|=t[r[0]+1]<<8),c>2&&(o|=t[r[0]+2]<<16),c>3&&(o|=t[r[0]+3]<<24),o>>>=0,o++,r[0]+=c}a.push(t.slice(r[0],r[0]+o)),r[0]+=o}}var f=Vu(a);if(f.length!=n)throw new Error("Unexpected length: ".concat(f.length," != ").concat(n));return f}function Qu(e){var t=[],r=0;while(r<e.length){var n=e[r++],a=e[r]|