tft-fe/dist/js/2924.9b9b7a92.js

1 line
28 KiB
JavaScript
Raw Normal View History

2023-02-22 13:59:09 +08:00
"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[2924],{2924:function(t,e,a){a.r(e),a.d(e,{default:function(){return H}});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"plan-maintenance"},[e("search-bar",{ref:"searchBarForm",attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick}}),e("base-table",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,"table-props":t.tableProps,"table-data":t.tableData,"max-height":t.tableH}},[t.tableBtn.length?e("method-btn",{attrs:{slot:"handleBtn",width:170,label:"操作",fixed:"right","method-list":t.tableBtn},on:{clickBtn:t.handleClick},slot:"handleBtn"}):t._e()],1),e("pagination",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,total:t.total},on:{"update:page":function(e){return t.$set(t.listQuery,"current",e)},"update:limit":function(e){return t.$set(t.listQuery,"size",e)},pagination:function(e){return t.getList()}}}),e("base-dialog",{attrs:{dialogTitle:t.addAndEdit,dialogVisible:t.centervisibleAdd,"before-close":t.handleCancelAdd},on:{cancel:t.handleCancelAdd,confirm:t.handleConfirmAdd}},[e("planned-maintenance-add",{ref:"plannedMaintenanceAdd",on:{successSubmit:t.successSubmitAdd}})],1),e("base-dialog",{attrs:{dialogTitle:t.sureAndEdit,dialogVisible:t.centervisibleSure,"before-close":t.handleCancelSure},on:{cancel:t.handleCancelSure,confirm:t.handleConfirmSure}},[e("planned-maintenance-edit",{ref:"plannedMaintenanceEdit",on:{successSubmit:t.successSubmitEdit}})],1)],1)},n=[],i=a(475),o=function(){var t=this,e=t._self._c;return e("el-form",{ref:"form",attrs:{rules:t.rules,"label-width":"110px",model:t.form}},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"维护工单号",prop:"code"}},[e("el-input",{attrs:{placeholder:"维护工单号",disabled:t.isEdit},model:{value:t.form.code,callback:function(e){t.$set(t.form,"code",e)},expression:"form.code"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"计划开始时间",prop:"planStartTime"}},[e("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-ddTHH:mm:ss",placeholder:"计划开始时间"},model:{value:t.form.planStartTime,callback:function(e){t.$set(t.form,"planStartTime",e)},expression:"form.planStartTime"}})],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"计划结束时间",prop:"planEndTime"}},[e("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-ddTHH:mm:ss",placeholder:"计划结束时间"},model:{value:t.form.planEndTime,callback:function(e){t.$set(t.form,"planEndTime",e)},expression:"form.planEndTime"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"设备名称",prop:"equipmentId"}},[e("el-cascader",{staticStyle:{width:"100%"},attrs:{options:t.cascaderOptions,props:{value:"id",label:"name"}},on:{change:t.selectEq},model:{value:t.form.equipmentId,callback:function(e){t.$set(t.form,"equipmentId",e)},expression:"form.equipmentId"}})],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"备件名称",prop:"sparePartName"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"备件名称"},on:{change:t.selectModel},model:{value:t.form.sparePartName,callback:function(e){t.$set(t.form,"sparePartName",e)},expression:"form.sparePartName"}},t._l(t.sparePartsList,(function(t,a){return e("el-option",{key:a,attrs:{label:t.name,value:t.name}})})),1)],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"备件型号",prop:"sparePartModel"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"备件型号"},model:{value:t.form.sparePartModel,callback:function(e){t.$set(t.form,"sparePartModel",e)},expression:"form.sparePartModel"}},t._l(t.sparePartsSpecList,(function(t,a){return e("el-option",{key:a,attrs:{label:t.model,value:t.model}})})),1)],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-