tft-fe/dist/js/8388.d7dca021.js

1 line
6.2 KiB
JavaScript
Raw Permalink Normal View History

"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[8388],{8388:function(e,t,a){a.r(t),a.d(t,{default:function(){return C}});var r=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,"row-class-name":e.tableRowClassName}}),t("pagination",{attrs:{page:e.listQuery.current,limit:e.listQuery.size,total:e.total},on:{"update:page":function(t){return e.$set(e.listQuery,"current",t)},"update:limit":function(t){return e.$set(e.listQuery,"size",t)},pagination:e.getList}}),t("base-dialog",{attrs:{dialogTitle:"设置预警值",dialogVisible:e.centervisible,"before-close":e.handleCancel},on:{cancel:e.handleCancel,confirm:e.handleConfirm}},[t("alarm-add",{ref:"alarmAdd",on:{successSubmit:e.successSubmit}})],1)],1)},i=[],n=a(475),l=a(4770),o=function(){var e=this,t=e._self._c;return t("el-form",{ref:"form",attrs:{rules:e.rules,"label-width":"150px",model:e.form}},[t("el-form-item",{attrs:{label:"产线",prop:"proLineId"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"产线"},on:{change:e.selectLine},model:{value:e.form.proLineId,callback:function(t){e.$set(e.form,"proLineId",t)},expression:"form.proLineId"}},e._l(e.proLineIdList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1),t("el-form-item",{attrs:{label:"吸附垫寿命上限值",prop:"adsorptionPadCeiling"}},[t("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:9999999999},model:{value:e.form.adsorptionPadCeiling,callback:function(t){e.$set(e.form,"adsorptionPadCeiling",t)},expression:"form.adsorptionPadCeiling"}})],1),t("el-form-item",{attrs:{label:"辅助边框寿命上限值",prop:"auxiliaryFrameCeiling"}},[t("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:9999999999},model:{value:e.form.auxiliaryFrameCeiling,callback:function(t){e.$set(e.form,"auxiliaryFrameCeiling",t)},expression:"form.auxiliaryFrameCeiling"}})],1)],1)},s=[],u={name:"alarmAdd",data(){return{form:{proLineId:"",adsorptionPadCeiling:0,auxiliaryFrameCeiling:0},rules:{proLineId:[{required:!0,message:"请选择产线",trigger:"change"}],adsorptionPadCeiling:[{required:!0,message:"请输入吸附垫寿命上限值",trigger:"blur"}],auxiliaryFrameCeiling:[{required:!0,message:"请输入辅助边框寿命上限值",trigger:"blur"}]},proLineIdList:JSON.parse(localStorage.getItem("publicList")).proLineVoList}},methods:{selectLine(e){this.form.proLineId=e,(0,l.oR)({id:e}).then((e=>{0===e.code&&e.data?(this.form.adsorptionPadCeiling=e.data.adsorptionPadCeiling?e.data.adsorptionPadCeiling:0,this.form.auxiliaryFrameCeiling=e.data.auxiliaryFrameCeiling?e.data.auxiliaryFrameCeiling:0):(this.form.adsorptionPadCeiling=0,this.form.auxiliaryFrameCeiling=0)}))},submitForm(){this.$refs["form"].validate((e=>{if(!e)return!1;(0,l.oz)({...this.form}).then((e=>{0===e.code&&(this.$message({message:"操作成功",type:"success"}),this.$emit("successSubmit"))}))}))},formClear(){this.$refs.form.resetFields()}}},d=u,m=a(1001),c=(0,m.Z)(d,o,s,!1,null,null,null),p=c.exports;const f=[{prop:"proLineId",label:"产线",minWidth:100,filter:(0,n.fW)("proLineVoList")},{prop:"id",label:"托盘ID",minWidth:120},{prop:"onlineTime",label:"上线时间",filter:n.g6,minWidth:150},{prop:"adsorptionPadNum",label:"吸附垫研磨片数",minWidth:120},{prop:"auxiliaryFrameNum",label:"辅助边框研磨片数",minWidth:120},{prop:"alarmContent",label:"报警内容",minWidth:180}];var h={name:"MaterialTracking",components:{alarmAdd:p},data(){return{formConfig:[{type:"select",label:"产线",selectOptions:JSON.parse(localStorage.getItem("publicList")).proLineVoList,labelField:"dataName",valueField:"dataCode",onchange:!0,param:"proLineId",defaultSelect:"",width:100},{type:"input",label:"托盘id",param:"stockId",width:180},{type:"button",btnName:"查询",name:"search",color:"primary"},