tft-fe/dist/js/9809.b6389288.js

1 line
11 KiB
JavaScript
Raw Normal View History

2023-05-22 14:21:16 +08:00
(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=>{consol