選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 

1 行
11 KiB

  1. (self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[9809],{9809:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return L}});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,"cascader-change":e.cascaderSelect}}),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:80,label:"操作","method-list":e.tableBtn},on:{clickBtn:e.handleClick},slot:"handleBtn"}):e._e()],1),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("process-configuration-edit",{ref:"processConfigurationEdit",on:{successSubmit:e.successSubmit}})],1)],1)},i=[],n=a(475),o=function(){var e=this,t=e._self._c;return t("el-form",{ref:"form",attrs:{rules:e.rules,"label-width":"80px",model:e.form}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"所属产线",prop:"proLineName"}},[t("el-input",{attrs:{disabled:""},model:{value:e.form.proLineName,callback:function(t){e.$set(e.form,"proLineName",t)},expression:"form.proLineName"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"单元",prop:"unitName"}},[t("el-input",{attrs:{disabled:""},model:{value:e.form.unitName,callback:function(t){e.$set(e.form,"unitName",t)},expression:"form.unitName"}})],1)],1)],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"设备名称",prop:"eqName"}},[t("el-input",{attrs:{disabled:""},model:{value:e.form.eqName,callback:function(t){e.$set(e.form,"eqName",t)},expression:"form.eqName"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"变量名称",prop:"variableName"}},[t("el-input",{attrs:{disabled:""},model:{value:e.form.variableName,callback:function(t){e.$set(e.form,"variableName",t)},expression:"form.variableName"}})],1)],1)],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"工艺参数",prop:"paramName"}},[t("el-input",{attrs:{placeholder:"工艺参数"},model:{value:e.form.paramName,callback:function(t){e.$set(e.form,"paramName",t)},expression:"form.paramName"}})],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"上限",prop:"maxValue"}},[t("el-input-number",{staticStyle:{width:"100%"},model:{value:e.form.maxValue,callback:function(t){e.$set(e.form,"maxValue",t)},expression:"form.maxValue"}})],1)],1)],1),t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"下限",prop:"minValue"}},[t("el-input-number",{staticStyle:{width:"100%"},model:{value:e.form.minValue,callback:function(t){e.$set(e.form,"minValue",t)},expression:"form.minValue"}})],1)],1)],1)],1)},s=[],l=a(3126),m=a.n(l),u=a(1942),d={name:"ProcessConfigurationEdit",data(){return{form:{proLineName:"",unitName:"",eqName:"",variableName:"",paramName:"",maxValue:null,minValue:null,id:""},lineList:m().productionLineList,productionSpecList:m().productionSpecList,rules:{paramName:[{required:!0,message:"请输入工艺参数",trigger:"blur"}]}}},methods:{init(e){e&&(this.form.id=e,(0,u.AO)({id:e}).then((e=>{console.log(e),0===e.code&&(this.form.proLineName=e.data.proLineName,this.form.unitName=e.data.unitName,this.form.eqName=e.data.eqName,this.form.variableName=e.data.variableName,this.form.paramName=e.data.paramName,this.form.maxValue=e.data.maxValue,this.form.minValue=e.data.minValue)})))},submitForm(){this.$refs["form"].validate((e=>{if(!e)return console.log("error submit!!"),!1;(0,u.db)({...this.form}).then((e=>{console.log(e),0===e.code&&this.$emit("successSubmit","提交成功")}))}))},formClear(){this.$refs.form.resetFields()}}},c=d,p=a(1001),f=(0,p.Z)(c,o,s,!1,null,null,null),h=f.exports,b=a(5591);const g=[{prop:"proLineName",label:"产线",minWidth:80},{prop:"unitName",label:"单元",minWidth:100},{prop:"eqName",label:"设备名称",minWidth:100},{prop:"variableName",label:"变量名称",minWidth:180,showOverflowtooltip:!0},{prop:"paramName",label:"工艺参数",minWidth:180,showOverflowtooltip:!0},{prop:"maxValue",label:"上限",minWidth:80},{prop:"minValue",label:"下限",minWidth:80},{prop:"updaterName",label:"更新人",minWidth:100},{prop:"updateTime",label:"更新时间",filter:n.g6,minWidth:130}],N=[{type:"edit",btnName:"编辑"}];var y={name:"ProcessConfiguration",components:{ProcessConfigurationEdit:h},data(){return{formConfig:[{type:"cascader",label:"产线/单元/设备",cascaderProps:{checkStrictly:!0,value:"id",label:"name"},selectOptions:[],param:"keyword",onChange:!0,width:250},{type:"select",label:"工艺参数",labelField:"paramName",valueField:"paramName",selectOptions:[],filterable:!0,param:"paramName",defaultSelect:"",width:180},{type:"input",label:"变量名称",placeholder:"变量名称",param:"variableName"},{type:"button",btnName:"查询",name:"search",color:"primary"}],tableProps:g,tableBtn:N,tableData:[],tableH:(0,n.NC)(280),total:0,listQuery:{current:1,size:20,proLineId:"",unitId:"",equipmentId:"",paramName:"",variableName:""},centervisible:!1}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,n.NC)(280)})),this.getTree(),this.getList()},methods:{getList(){(0,u.FK)({...this.listQuery}).then((e=>{console.log(e),0===e.code&&(this.tableData=e.data.records,this.total=e.data.total)}))},buttonClick(e){console.log(e),this.listQuery.proLineId=e.keyword?e.keyword[0]:"",this.listQuery.unitId=e.keyword&&e.keyword[1]?e.keyword[1]:"",this.listQuery.equipmentId=e.keyword&&e.keyword[2]?e.keyword[2]:"",this.listQuery.paramName=e.paramName?e.paramName:"",this.listQuery.variableName=e.variableName?e.variableName:"",this.getList()},cascaderSelect(e){let t={...this.$refs.searchBarForm.formInline};switch(e.value.length){case 1:this.listQuery.proLineId=e.value[0],(0,u.Tt)({current:1,size:1e3,proLineId:this.listQuery.proLineId}).then((e=>{this.formConfig[1].defaultSelect="",this.$refs.searchBarForm.resetForm(),this.formConfig[0].defaultSelect=t.keyword,this.formConfig[1].selectOptions=e.data,this.formConfig[2].defaultSelect=t.variableName}));break;case 2:this.listQuery.proLineId=e.value[0],this.listQuery.unitId=e.value[1],(0,u.Tt)({current:1,size:1e3,proLineId:this.listQuery.proLineId,unitId:this.listQuery.unitId}).then((e=>{this.formConfig[1].defaultSelect="",this.$refs.searchBarForm.resetForm(),this.formConfig[0].defaultSelect=t.keyword,this.formConfig[1].selectOptions=e.data,this.formConfig[2].defaultSelect=t.variableName}));break;case 3:this.listQuery.proLineId=e.value[0],this.listQuery.unitId=e.value[1],this.listQuery.equipmentId=e.value[2],(0,u.Tt)({current:1,size:1e3,proLineId:this.listQuery.proLineId,unitId:this.listQuery.unitId,equipmentId:this.listQuery.equipmentId}).then((e=>{this.formConfig[1].defaultSelect="",this.$refs.searchBarForm.resetForm(),this.formConfig[0].defaultSelect=t.keyword,this.formConfig[1].selectOptions=e.data,this.formConfig[2].defaultSelect=t.variableName}));break;default:this.formConfig[0].defaultSelect="",this.formConfig[1].defaultSelect="",this.$refs.searchBarForm.resetForm(),this.formConfig[1].selectOptions=[],this.formConfig[2].defaultSelect=t.variableName}},getTree(){(0,b.SI)().then((e=>{this.formConfig[0].selectOptions=e.data}))},handleClick(e){"edit"===e.type&&(this.centervisible=!0,this.$nextTick((()=>{this.$refs.processConfigurationEdit.init(e.data.id)})))},handleCancel(){this.$refs.processConfigurationEdit.formClear(),this.centervisible=!1},handleConfirm(){this.$refs.processConfigurationEdit.submitForm()},successSubmit(e){this.$message({message:e,type:"success"}),this.handleCancel(),this.getList()}}},v=y,C=(0,p.Z)(v,r,i,!1,null,null,null),L=C.exports},5591:function(e,t,a){"use strict";a.d(t,{FH:function(){return s},Hp:function(){return l},JQ:function(){return o},SI:function(){return n},WQ:function(){return d},b6:function(){return m},iv:function(){return i},m:function(){return u}});var r=a(8859);function i(){return(0,r.Z)({url:"/common/getList",method:"post"})}function n(){return(0,r.Z)({url:"/common/getTreeData",method:"post"})}function o(e){return(0,r.Z)({url:"/common/updateEqSeq",method:"post",data:e})}function s(e){return(0,r.Z)({url:"/common/attachment/downloadFile",method:"get",responseType:"blob",params:e,timeout:6e4})}function l(e){return(0,r.Z)({url:"/common/getAlarmData",method:"post",data:e})}function m(e){return(0,r.Z)({url:"/common/getProductData",method:"post",data:e})}function u(e){return(0,r.Z)({url:"/common/getMaterialData",method:"post",data:e})}const d="/api/common/attachment/uploadFileFormData"},1942:function(e,t,a){"use strict";a.d(t,{$p:function(){return l},AO:function(){return u},F6:function(){return o},FK:function(){return m},KF:function(){return n},QC:function(){return s},Tt:function(){return i},db:function(){return d}});var r=a(8859);function i(e){return(0,r.Z)({url:"/process/processMonitor/paramList",method:"post",data:e})}function n(e){return(0,r.Z)({url:"/process/processMonitor/pageReal",method:"post",data:e})}function o(e){return(0,r.Z)({url:"/process/processMonitor/history",method:"post",data:e})}function s(e){return(0,r.Z)({url:"/process/alram/pageReal",method:"post",data:e})}function l(e){return(0,r.Z)({url:"/process/alram/pageHis",method:"post",data:e})}function m(e){return(0,r.Z)({url:"/process/paramSet/page",method:"post",data:e})}function u(e){return(0,r.Z)({url:"/process/paramSet/get",method:"post",data:e})}function d(e){return(0,r.Z)({url:"/process/paramSet/update",method:"post",data:e})}},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"}]}}}]);