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

1 rivi
6.2 KiB
JavaScript

"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"},{type:"separate"},{type:"button",btnName:"设置预警值",name:"warning",color:"primary",plain:!0}],tableProps:f,tableData:[],tableH:(0,n.NC)(270),total:0,listQuery:{current:1,size:20,proLineId:"",stockId:""},centervisible:!1}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,n.NC)(270)})),this.getList()},methods:{getList(){(0,l.nK)({...this.listQuery}).then((e=>{0===e.code&&(this.tableData=e.data.records,this.total=e.data.total?e.data.total:0)}))},buttonClick(e){"search"===e.btnName?(this.listQuery.proLineId=e.proLineId,this.listQuery.stockId=e.stockId,this.listQuery.current=1,this.getList()):this.centervisible=!0},tableRowClassName({row:e}){return e.alarm?"danger-row":""},handleCancel(){this.$refs.alarmAdd.formClear(),this.centervisible=!1},handleConfirm(){this.$refs.alarmAdd.submitForm()},successSubmit(){this.handleCancel(),this.getList()}}},g=h,b=(0,m.Z)(g,r,i,!1,null,null,null),C=b.exports},4770:function(e,t,a){a.d(t,{Gn:function(){return d},MX:function(){return n},VJ:function(){return u},jp:function(){return l},nK:function(){return f},oR:function(){return c},oz:function(){return p},p0:function(){return i},ql:function(){return m},qw:function(){return s},vN:function(){return o}});var r=a(8859);function i(e){return(0,r.Z)({url:"/material/MaterialManage/selectAll",method:"post",data:e})}function n(e){return(0,r.Z)({url:"/material/MaterialManage/detail",method:"post",data:e})}function l(e){return(0,r.Z)({url:"/material/OutInRecord/record",method:"post",data:e})}function o(e){return(0,r.Z)({url:"/material/MaterialManage/export",method:"post",responseType:"blob",data:e,timeout:6e4})}function s(e){return(0,r.Z)({url:"/material/MaterialManage/updateGet",method:"post",data:e})}function u(e){return(0,r.Z)({url:"/material/MaterialManage/update",method:"post",data:e})}function d(e){return(0,r.Z)({url:"/material/MaterialManage/insert",method:"post",data:e})}function m(e){return(0,r.Z)({url:"/material/MaterialManage/delete",method:"post",data:e})}function c(e){return(0,r.Z)({url:"/material/MaterialManage/SetAlarmValueGet",method:"post",data:e})}function p(e){return(0,r.Z)({url:"/material/MaterialManage/SetAlarmValue",method:"post",data:e})}function f(e){return(0,r.Z)({url:"/material/MaterialManage/onlineMaterialTrackSelect",method:"post",data:e})}}}]);