"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[5060],{5060:function(t,e,r){r.r(e),r.d(e,{default:function(){return C}});var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-box"},[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:100,label:"工艺流程","method-list":t.tableBtn,fixed:"right"},on:{clickBtn:t.handleClick},slot:"handleBtn"}):t._e()],1),e("pagination",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,total:t.total},on:{"update:page":function(e){return t.$set(t.listQuery,"current",e)},"update:limit":function(e){return t.$set(t.listQuery,"size",e)},pagination:function(e){return t.getList()}}}),t.processFlowVisible?e("process-flow-detail",{ref:"processFlowDetail"}):t._e()],1)},n=[],i=function(){var t=this,e=t._self._c;return e("el-drawer",{attrs:{title:"工艺流程",visible:t.visible,size:"70%"},on:{"update:visible":function(e){t.visible=e}}},[e("div",{staticClass:"box"},[e("base-table",{attrs:{page:1,limit:1e3,"table-props":t.tableProps,"table-data":t.tableData,"max-height":t.tableH}},[t.tableBtn.length?e("method-btn",{attrs:{slot:"handleBtn",width:180,label:"操作","method-list":t.tableBtn},on:{clickBtn:t.handleClick},slot:"handleBtn"}):t._e()],1),e("el-drawer",{attrs:{title:"工艺参数","append-to-body":!0,visible:t.processParametersVisible,size:"50%"},on:{"update:visible":function(e){t.processParametersVisible=e}}},[e("base-table",{attrs:{page:1,limit:1e3,"table-props":t.tablePropsP,"table-data":t.tableDataP,"max-height":t.tableH}})],1),e("el-drawer",{attrs:{title:"设备参数","append-to-body":!0,visible:t.deviceParametersVisible,size:"50%"},on:{"update:visible":function(e){t.deviceParametersVisible=e}}},[e("div",{staticClass:"box"},[e("base-table",{attrs:{page:1,limit:1e3,"table-props":t.tablePropsD,"table-data":t.tableDataD,"max-height":t.tableH}})],1)])],1)])},s=[],o=r(475),l=r(2334),u=r(1942);const p=[{prop:"unitName",label:"工序名称",minWidth:120},{prop:"eqName",label:"设备名称",minWidth:120},{prop:"glassId",label:"玻璃ID",minWidth:150},{prop:"inEquipmentTime",label:"设备上片时间",filter:o.g6,minWidth:160},{prop:"outEquipmentTime",label:"设备下片时间",filter:o.g6,minWidth:160},{prop:"palletId",label:"面磨托盘ID",minWidth:150}],c=[{type:"processParameters",btnName:"工艺参数"},{type:"deviceParameters",btnName:"设备参数"}],d=[{prop:"process",label:"工艺"},{prop:"currentValue",label:"当前值"}],m=[{prop:"device",label:"设备"},{prop:"status",label:"状态"},{prop:"changeTime",label:"变更时间"}];var h={name:"processFlowDetail",data(){return{visible:!1,tableProps:p,tableData:[],tableBtn:c,tableH:(0,o.NC)(115),processParametersVisible:!1,deviceParametersVisible:!1,tablePropsP:d,tablePropsD:m,tableDataP:[{process:"X切刀工作时的高度",currentValue:"20"},{process:"X方向划线速度",currentValue:"6"}],tableDataD:[{device:"面研磨上片工位_取纸机器人",status:"生产",changeTime:"2022-04-02 00:00:00 000"},{device:"面研磨上片工位_取纸机器人",status:"生产",changeTime:"2022-04-02 00:00:00 000"},{device:"面研磨上片工位_取纸机器人",status:"生产",changeTime:"2022-04-02 00:00:00 000"},{device:"面研磨上片工位_取纸机器人",status:"待料",changeTime:"2022-04-02 00:00:00 000"}]}},methods:{init(t){this.visible=!0,window.addEventListener("resize",(()=>{this.tableH=(0,o.NC)(115)})),(0,l.gP)({current:1,glassId:t,size:500}).then((t=>{0===t.code?this.tableData=t.data.records:this.tableData=[]}))},handleClick(t){console.log(t),"processParameters"===t.type?(this.processParametersVisible=!0,this.getProcess()):"deviceParameters"===t.type&&(this.deviceParametersVisible=!0)},getProcess(){(0,u.Tt)().then((t=>{console.log(t)}))},handleCloseProcess(){},handleCloseDevice(){}}},b=h,f=r(1001),y=(0,f.Z)(b,i,s,!1,null,"353959df",null),g=y.exports,D=r(381),P=r.n(D);const T=[{prop:"proLineName",label:"产线",minWidth:120},{prop:"workOrderNo",label:"工单编号",minWidth:120},{prop:"glassId",label:"玻璃ID",minWidth:150},{prop:"rackId",label:"成品架ID",minWidth:150},{prop:"loadTime",label:"产品上片时间",filter:o.g6,minWidth:160},{prop:"unloadTime",label:"产品下片时间",filter:o.g6,minWidth:160},{prop:"grade",label:"玻璃等级",minWidth:100},{prop:"palletId",label:"面磨托盘ID",minWidth:150},{prop:"glassLength",label:"玻璃长度",minWidth:100},{prop:"glassWidth",label:"玻璃宽度",minWidth:100},{prop:"glassHeight",label:"玻璃厚度",minWidth:100}],v=[{type:"view",btnName:"点击查看"}];var q={name:"ProductTraceability",components:{ProcessFlowDetail:g},data(){return{formConfig:[{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:"select",label:"产线",selectOptions:JSON.parse(localStorage.getItem("publicList")).proLineVoList,param:"lineName",labelField:"dataName",valueField:"dataName",defaultSelect:"",onchange:!0,width:150},{type:"select",label:"查询方式",selectOptions:[{id:"rackId",name:"成品架ID"},{id:"glassId",name:"玻璃ID"},{id:"palletId",name:"托盘ID"}],param:"inquiryMode",defaultSelect:"",width:150},{type:"input",label:"查询内容",placeholder:"查询内容",param:"queryContent"},{type:"button",btnName:"查询",name:"search",color:"primary"},{type:"button",btnName:"重置",name:"reset"}],tableProps:T,tableData:[],tableBtn:v,tableH:(0,o.NC)(270),total:0,listQuery:{startTime:"",endTime:"",current:1,size:20},processFlowVisible:!1}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,o.NC)(270)})),this.formConfig[0].defaultSelect=[P()().format("yyyy-MM-DD")+"T00:00:00",P()().format("yyyy-MM-DD")+"T23:59:59"],this.listQuery.startTime=P()().format("yyyy-MM-DD")+"T00:00:00",this.listQuery.endTime=P()().format("yyyy-MM-DD")+"T23:59:59",this.getList()},methods:{getList(){(0,l.kT)({...this.listQuery}).then((t=>{0===t.code&&(this.tableData=t.data.records,this.total=t.data.total)}))},buttonClick(t){"search"===t.btnName?(this.listQuery.startTime=t.timeVal?t.timeVal[0]:"",this.listQuery.endTime=t.timeVal?t.timeVal[1]:"",this.listQuery.proLineName=t.lineName,this.listQuery.rackId="rackId"===t.inquiryMode?t.queryContent:"",this.listQuery.glassId="glassId"===t.inquiryMode?t.queryContent:"",this.listQuery.palletId="palletId"===t.inquiryMode?t.queryContent:"",this.getList()):"reset"===t.btnName&&(this.$refs.searchBarForm.resetForm(),this.listQuery.startTime=P()().format("yyyy-MM-DD")+"T00:00:00",this.listQuery.endTime=P()().format("yyyy-MM-DD")+"T23:59:59",this.$nextTick((()=>{this.getList()})))},handleClick(t){this.processFlowVisible=!0;let e=t.data.glassId;this.$nextTick((()=>{this.$refs.processFlowDetail.init(e)}))}}},Z=q,I=(0,f.Z)(Z,a,n,!1,null,null,null),C=I.exports},1942:function(t,e,r){r.d(e,{$p:function(){return l},AO:function(){return p},F6:function(){return s},FK:function(){return u},KF:function(){return i},QC:function(){return o},Tt:function(){return n},db:function(){return c}});var a=r(8859);function n(t){return(0,a.Z)({url:"/process/processMonitor/paramList",method:"post",data:t})}function i(t){return(0,a.Z)({url:"/process/processMonitor/pageReal",method:"post",data:t})}function s(t){return(0,a.Z)({url:"/process/processMonitor/history",method:"post",data:t})}function o(t){return(0,a.Z)({url:"/process/alram/pageReal",method:"post",data:t})}function l(t){return(0,a.Z)({url:"/process/alram/pageHis",method:"post",data:t})}function u(t){return(0,a.Z)({url:"/process/paramSet/page",method:"post",data:t})}function p(t){return(0,a.Z)({url:"/process/paramSet/get",method:"post",data:t})}function c(t){return(0,a.Z)({url:"/process/paramSet/update",method:"post",data:t})}},2334:function(t,e,r){r.d(e,{AT:function(){return I},Af:function(){return o},F0:function(){return h},ON:function(){return u},QI:function(){return s},Qd:function(){return b},YU:function(){return m},an:function(){return Z},bu:function(){return q},dy:function(){return g},eT:function(){return c},fL:function(){return C},gP:function(){return w},iF:function(){return p},jA:function(){return i},kT:function(){return k},oR:function(){return v},pS:function(){return l},pw:function(){return d},r5:function(){return f},uW:function(){return P},uX:function(){return D},uj:function(){return T},v:function(){return n},vD:function(){return y}});var a=r(8859);function n(t){return(0,a.Z)({url:"/quality/processDetect/page",method:"post",data:t})}function i(t){return(0,a.Z)({url:"/quality/processDetect/list",method:"post",data:t})}function s(t){return(0,a.Z)({url:"/quality/processDetect/add",method:"post",formState:!0,data:t})}function o(t){return(0,a.Z)({url:"/quality/processDetect/detectInput",method:"post",formState:!0,data:t})}function l(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 p(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 d(t){return(0,a.Z)({url:"/quality/processCompleteInspetion/export2",method:"post",responseType:"blob",data:t})}function m(t){return(0,a.Z)({url:"/quality/processCompleteInspetion/pageIIS",method:"post",data:t})}function h(t){return(0,a.Z)({url:"/quality/ProcessFull/queryPoint",method:"post",data:t})}function b(t){return(0,a.Z)({url:"/quality/ProcessFull/drawPoint",method:"post",data:t})}function f(t){return(0,a.Z)({url:"/quality/ProcessFull/queryPointClear",method:"post",data:t})}function y(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 D(t){return(0,a.Z)({url:"/quality/ProcessFull/drawThickness",method:"post",formState:!0,data:t})}function P(t){return(0,a.Z)({url:"/report/GlassReport/listGlass",method:"post",data:t})}function T(t){return(0,a.Z)({url:"/report/GlassReport/qualityReport",method:"post",data:t})}function v(t){return(0,a.Z)({url:"/report/GlassReport/qualityReportexport",method:"post",responseType:"blob",data:t})}function q(t){return(0,a.Z)({url:"/report/GlassReport/thickReport",method:"post",data:t})}function Z(t){return(0,a.Z)({url:"/report/GlassReport/thickReportexport",method:"post",responseType:"blob",data:t})}function I(t){return(0,a.Z)({url:"/quality/finalpackaging/queryGlassData",method:"post",data:t})}function C(t){return(0,a.Z)({url:"/quality/finalpackaging/claGlassData",method:"post",data:t})}function k(t){return(0,a.Z)({url:"/quality/productTrace/page",method:"post",data:t})}function w(t){return(0,a.Z)({url:"/quality/productTrace/pageProcess",method:"post",data:t})}}}]);