Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

1 rinda
6.1 KiB

  1. "use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[4093],{4093:function(t,e,r){r.r(e),r.d(e,{default:function(){return h}});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"thickness-detection-box"},[e("div",{staticClass:"search-box"},[e("search-bar",{ref:"searchBarForm",attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick}})],1),e("div",{staticClass:"table-box"},[e("el-row",{attrs:{gutter:8}},[e("el-col",{attrs:{span:8}},[e("div",{staticClass:"boxL"},[e("span",{staticClass:"table-button",on:{click:t.createReport}},[t._v("生成表格")]),e("base-table",{attrs:{selectWidth:40,"table-props":t.tablePropsL,"table-data":t.tableDataL,"max-height":t.tableHL},on:{"selection-change":t.selectChange}})],1)]),e("el-col",{attrs:{span:16}},[e("div",{staticClass:"boxR"},[e("span",{staticClass:"tip"},[t._v("在线厚度检查机厚度汇总报表")]),e("base-table",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,"table-props":t.tablePropsR,"table-data":t.tableDataR,"max-height":t.tableHR}})],1)])],1)],1)])},o=[],a=r(475),l=r(381),u=r.n(l),i=r(5093);const s=[{prop:"glassId",label:"ID",minWidth:100},{prop:"testTime",label:"检测时间",filter:a.g6,minWidth:150}],d=[{prop:"glassId",label:"玻璃ID",minWidth:120},{prop:"testTime",label:"检测时间",filter:a.g6,minWidth:150},{prop:"palletId",label:"托盘ID",minWidth:100},{prop:"grindType",label:"研磨类型",minWidth:100},{prop:"minValue",label:"最小值",minWidth:100},{prop:"avgValue",label:"平均值",minWidth:100},{prop:"ttvValue",label:"厚薄差",minWidth:100}];var c={name:"thicknessDetection",data(){return{formConfig:[{type:"datePicker",label:"时间范围",dateType:"datetimerange",format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-ddTHH:mm:ss",rangeSeparator:"-",startPlaceholder:"开始时间",endPlaceholder:"结束时间",placeholder:"时间范围",param:"timeStr",defaultSelect:[],width:350},{type:"button",btnName:"查询",name:"search",color:"primary"},{type:"separate"},{type:"button",btnName:"导出",name:"export",color:"primary",plain:!0}],listQuery:{current:1,size:1e3,startTime:"",endTime:""},tablePropsL:s,tableDataL:[],tablePropsR:d,tableDataR:[],tableHL:(0,a.NC)(350),tableHR:(0,a.NC)(335),selectId:[]}},mounted(){window.addEventListener("resize",(()=>{this.tableHL=(0,a.NC)(350),this.tableHR=(0,a.NC)(335)})),this.formConfig[0].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,i.nn)({...this.listQuery}).then((t=>{this.tableDataL=t.data}))},getReport(){(0,i.nG)(this.selectId).then((t=>{console.log(t),this.tableDataR=t.data}))},selectChange(t){if(console.log(t),this.selectId=[],t.length>0)for(let e=0;e<t.length;e++)this.selectId.push(t[e].glassId)},createReport(){if(0===this.selectId.length)return this.$message({message:"请先勾选左侧表格的数据",type:"warning"}),!1;this.getReport()},buttonClick(t){console.log(t),"search"===t.btnName&&(this.listQuery.startTime=t.timeStr?t.timeStr[0]:"",this.listQuery.endTime=t.timeStr?t.timeStr[1]:"",this.getList())}}},p=c,f=r(1001),m=(0,f.Z)(p,n,o,!1,null,"b5a752ea",null),h=m.exports},5093:function(t,e,r){r.d(e,{EM:function(){return f},EO:function(){return m},F7:function(){return C},Hq:function(){return I},Mk:function(){return o},Nm:function(){return R},SN:function(){return T},To:function(){return s},Tp:function(){return b},W9:function(){return i},Xe:function(){return d},YV:function(){return a},a1:function(){return k},ag:function(){return w},dg:function(){return D},j4:function(){return P},k5:function(){return u},lb:function(){return c},n8:function(){return v},nG:function(){return y},nn:function(){return g},sq:function(){return l},w3:function(){return p},wM:function(){return M},xz:function(){return Z},zz:function(){return h}});var n=r(8859);function o(t){return(0,n.Z)({url:"/order/workOrderProcess/getProcessInfo",method:"post",data:t})}function a(t){return(0,n.Z)({url:"/order/workOrderProcess/lineGlassCount",method:"post",data:t})}function l(t){return(0,n.Z)({url:"/order/workOrderProcess/grindGlassCount",method:"post",data:t})}function u(t){return(0,n.Z)({url:"/order/workOrderProcess/FinalClassCount",method:"post",data:t})}function i(t){return(0,n.Z)({url:"/order/workOrder/page",method:"post",data:t})}function s(t){return(0,n.Z)({url:"/order/workOrder/add",method:"post",data:t})}function d(t){return(0,n.Z)({url:"/order/workOrder/delete",method:"post",data:t})}function c(t){return(0,n.Z)({url:"/order/workOrder/update",method:"post",data:t})}function p(t){return(0,n.Z)({url:"/order/workOrder/get",method:"post",data:t})}function f(t){return(0,n.Z)({url:"/order/workOrder/release",method:"post",data:t})}function m(t){return(0,n.Z)({url:"/order/workOrder/finish",method:"post",data:t})}function h(t){return(0,n.Z)({url:"/order/workOrder/importTemplate",method:"post",data:t})}const b="/api/order/workOrder/import";function g(t){return(0,n.Z)({url:"/order/proReport/pageThickness",method:"post",data:t})}function y(t){return(0,n.Z)({url:"/order/proReport/genTable",method:"post",formState:!0,data:t})}function k(t){return(0,n.Z)({url:"/order/unloadPallet/page",method:"post",data:t})}function C(t){return(0,n.Z)({url:"/order/unloadPallet/add",method:"post",data:t})}function Z(t){return(0,n.Z)({url:"/order/unloadPallet/get",method:"post",data:t})}function w(t){return(0,n.Z)({url:"/order/unloadPallet/update",method:"post",data:t})}function P(t){return(0,n.Z)({url:"/order/unloadPallet/verify",method:"post",formState:!0,data:t})}function T(t){return(0,n.Z)({url:"/order/unloadPallet/finish",method:"post",data:t})}function D(t){return(0,n.Z)({url:"/order/unloadPallet/continuePack",method:"post",data:t})}function R(t){return(0,n.Z)({url:"/order/unloadPallet/getDetail",method:"post",data:t})}function v(t){return(0,n.Z)({url:"/order/unloadPallet/glassIdTrace",method:"post",formState:!0,data:t})}function M(t){return(0,n.Z)({url:"/order/reloadRack/reload",method:"post",data:t})}function I(t){return(0,n.Z)({url:"/order/reloadRack/end",method:"post",data:t})}}}]);