tft-fe/dist/js/1456.6414c34e.js

1 line
21 KiB
JavaScript
Raw Normal View History

2023-05-16 16:13:35 +08:00
(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[1456],{1456:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return T}});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"self-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:80,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.centervisible,"before-close":t.handleCancel},on:{cancel:t.handleCancel,confirm:t.handleConfirm}},[e("self-maintenance-add",{ref:"selfMaintenanceAdd",on:{successSubmit:t.successSubmit}})],1)],1)},a=[],i=n(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:"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,n){return e("el-option",{key:n,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,n){return e("el-option",{key:n,attrs:{label:t.model,value:t.model}})})),1)],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"更换数量",prop:"replaceNum"}},[e("el-input-number",{staticStyle:{width:"100%"},attrs:{min:0,max:10,label:"更换数量"},model:{value:t.form.replaceNum,callback:function(e){t.$set(t.form,"replaceNum",e)},expression:"form.replaceNum"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"维护人员",prop:"maintainStaff"}},[e("el-input",{attrs:{placeholder:"维护人员"},model:{value:t.form.maintainStaff,callback:function(e){t.$set(t.form,"maintainStaff",e)},expression:"form.maintainStaff"}})],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"实际开始时间",prop:"startTime"}},[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.startTime,callback:function(e){t.$set(t.form,"startTime",e)},expression:"form.startTime"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"实际结束时间",prop:"endTime"}},[e("el-date-picker",{staticStyle:{widt