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

1 line
7.8 KiB
JavaScript

(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[7802],{7802:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return C}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-box"},[t("search-bar",{ref:"searchBarForm",attrs:{formConfigs:e.formConfig},on:{headBtnClick:e.buttonClick}}),t("base-table",{attrs:{page:e.listQuery.current,limit:e.listQuery.size,"table-props":e.tableProps,"table-data":e.tableData,"max-height":e.tableH}},[e.tableBtn.length?t("method-btn",{attrs:{slot:"handleBtn",width:100,label:"工艺流程","method-list":e.tableBtn,fixed:"right"},on:{clickBtn:e.handleClick},slot:"handleBtn"}):e._e()],1),t("pagination",{attrs:{limit:e.listQuery.size,total:e.total}}),e.processFlowVisible?t("process-flow-detail",{ref:"processFlowDetail"}):e._e()],1)},l=[],s=function(){var e=this,t=e._self._c;return t("el-drawer",{attrs:{title:"工艺流程",visible:e.visible,size:"70%"},on:{"update:visible":function(t){e.visible=t}}},[t("div",{staticClass:"box"},[t("base-table",{attrs:{page:1,limit:1e3,"table-props":e.tableProps,"table-data":e.tableData,"max-height":e.tableH}},[e.tableBtn.length?t("method-btn",{attrs:{slot:"handleBtn",width:180,label:"操作","method-list":e.tableBtn},on:{clickBtn:e.handleClick},slot:"handleBtn"}):e._e()],1),t("el-drawer",{attrs:{title:"工艺参数","append-to-body":!0,visible:e.processParametersVisible,size:"50%"},on:{"update:visible":function(t){e.processParametersVisible=t}}},[t("base-table",{attrs:{page:1,limit:1e3,"table-props":e.tablePropsP,"table-data":e.tableDataP,"max-height":e.tableH}})],1),t("el-drawer",{attrs:{title:"设备参数","append-to-body":!0,visible:e.deviceParametersVisible,size:"50%"},on:{"update:visible":function(t){e.deviceParametersVisible=t}}},[t("div",{staticClass:"box"},[t("base-table",{attrs:{page:1,limit:1e3,"table-props":e.tablePropsD,"table-data":e.tableDataD,"max-height":e.tableH}})],1)])],1)])},n=[],r=a(475);const d=[{prop:"processName",label:"工序名称",minWidth:120},{prop:"deviceName",label:"设备名称",minWidth:120},{prop:"glassId",label:"玻璃ID",minWidth:150},{prop:"deviceLaunchTime",label:"设备上片时间",minWidth:160},{prop:"deviceUnloadingTime",label:"设备下片时间",minWidth:160},{prop:"grindingTrayId",label:"面磨托盘ID",minWidth:150}],o=[{type:"processParameters",btnName:"工艺参数"},{type:"deviceParameters",btnName:"设备参数"}],m=[{prop:"process",label:"工艺"},{prop:"currentValue",label:"当前值"}],p=[{prop:"device",label:"设备"},{prop:"status",label:"状态"},{prop:"changeTime",label:"变更时间"}];var c={name:"processFlowDetail",data(){return{visible:!1,tableProps:d,tableData:[],tableBtn:o,tableH:(0,r.NC)(115),processParametersVisible:!1,deviceParametersVisible:!1,tablePropsP:m,tablePropsD:p,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(){this.visible=!0,window.addEventListener("resize",(()=>{this.tableH=(0,r.NC)(115)}));for(let e=0;e<30;e++){let t={processName:"1"};t.deviceName="设备名称"+e,t.glassId="玻璃ID"+e,t.deviceLaunchTime="2022-08-22 08:12:15",t.deviceUnloadingTime="2022-08-22 08:12:15",t.grindingTrayId="面磨托盘ID"+e,this.tableData.push(t)}},handleClick(e){console.log(e),"processParameters"===e.type?this.processParametersVisible=!0:"deviceParameters"===e.type&&(this.deviceParametersVisible=!0)},handleCloseProcess(){},handleCloseDevice(){}}},b=c,h=a(1001),u=(0,h.Z)(b,s,n,!1,null,"0592f1fa",null),g=u.exports,v=a(3126),f=a.n(v);const y=[{prop:"productionLine",label:"产线",minWidth:120},{prop:"orderCode",label:"工单编号",minWidth:120},{prop:"glassId",label:"玻璃ID",minWidth:150},{prop:"finishedRackId",label:"成品架ID",minWidth:150},{prop:"productLaunchTime",label:"产品上片时间",minWidth:160},{prop:"productUnloadingTime",label:"产品下片时间",minWidth:160},{prop:"glassGrade",label:"玻璃等级",minWidth:100},{prop:"grindingTrayId",label:"面磨托盘ID",minWidth:150},{prop:"supplier",label:"玻璃长度",minWidth:100},{prop:"glassWidth",label:"玻璃宽度",minWidth:100},{prop:"glassThickness",label:"玻璃厚度",minWidth:100}],D=[{type:"edit",btnName:"点击查看"}];var P={name:"ProductTraceability",components:{ProcessFlowDetail:g},data(){return{formConfig:[{type:"datePicker",label:"产品上片时间",dateType:"datetime",format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-dd HH:mm:ss",placeholder:"产品上片时间",param:"testTime",defaultSelect:"2022-08-17 08:20:10",width:200},{type:"select",label:"产线",selectOptions:f().productionLineList,param:"productionLine",defaultSelect:"",width:100},{type:"select",label:"查询方式",selectOptions:[{id:1,name:"成品架ID"},{id:2,name:"时间查询"},{id:3,name:"玻璃ID"},{id:4,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:y,tableData:[],tableBtn:D,tableH:(0,r.NC)(270),total:0,listQuery:{current:1,size:20},processFlowVisible:!1}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,r.NC)(270)}));for(let e=0;e<30;e++){let t={productionLine:"产线1"};t.orderCode="工单编号"+e,t.glassId="玻璃ID"+e,t.finishedRackId="成品架ID"+e,t.productLaunchTime="2022-08-22 08:12:15",t.productUnloadingTime="2022-08-22 08:12:15",t.glassGrade=e,t.grindingTrayId="面磨托盘ID"+e,t.supplier=2600,t.glassWidth=2250,t.glassThickness=5,t.remark="备注"+e,this.tableData.push(t)}},methods:{getList(){},buttonClick(e){console.log(e),"search"===e.btnName?this.getList():"reset"===e.btnName&&(this.$refs.searchBarForm.resetForm(),this.$nextTick((()=>{this.getList()})))},handleClick(){this.processFlowVisible=!0;let e=1;this.$nextTick((()=>{this.$refs.processFlowDetail.init(e)}))},handleClose(){console.log("========")}}},T=P,L=(0,h.Z)(T,i,l,!1,null,null,null),C=L.exports},3126:function(e){e.exports={roleList:[{id:"1",name:"加工人员"},{id:"2",name:"质检人员"}],productionLineList:[{id:"1",name:"产线1"},{id:"2",name:"产线2"}],sparePartsTypeList:[{id:"1",name:"边磨备品备件"},{id:"2",name:"清洗机备品备件"},{id:"3",name:"前清洗备品备件"},{id:"4",name:"后清洗备品备件"},{id:"5",name:"面磨区备品备件"},{id:"6",name:"终检区备品备件"},{id:"7",name:"动力区备品备件"},{id:"8",name:"辅材备品备件"}],statusList:[{id:"1",name:"正常"},{id:"2",name:"禁用"}],unitModuleList:[{id:"1",name:"精切磨边"},{id:"2",name:"磨边后清洗"},{id:"3",name:"边检"},{id:"4",name:"面研磨"},{id:"5",name:"面研磨辅助设备"},{id:"6",name:"面研磨后清洗"},{id:"7",name:"终检"},{id:"8",name:"内包区"},{id:"9",name:"外包区"}],testItemList:[{id:"1",name:"研磨幅"},{id:"2",name:"外观尺寸"},{id:"3",name:"角尺寸"},{id:"4",name:"直线性"},{id:"5",name:"翘曲"},{id:"6",name:"成品厚度"},{id:"7",name:"应力"},{id:"8",name:"条纹/磨痕度数"}],orderTypeList:[{id:"1",name:"全部"},{id:"2",name:"正常"},{id:"3",name:"待再加工"}],orderStatusList:[{id:"1",name:"全部"},{id:"2",name:"已下发"},{id:"3",name:"未下发"},{id:"4",name:"已结束"}],planTypeList:[{id:"1",name:"全部"},{id:"2",name:"年计划"},{id:"3",name:"月计划"},{id:"4",name:"日计划"}],regrindList:[{id:"1",name:"无"},{id:"2",name:"锡面"},{id:"3",name:"空气面"}],productionSpecList:[{id:"1",name:"G8.5"},{id:"2",name:"G8.6"}]}}}]);