(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2214ae"],{ca71:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"elForm",attrs:{model:e.formData,rules:e.rules,size:"medium","label-width":"100px"}},[a("el-form-item",{attrs:{label:"设备名称",prop:"name"}},[a("el-input",{style:{width:"100%"},attrs:{placeholder:"请输入设备名称",readonly:e.isReadOnly,clearable:""},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),a("el-form-item",{attrs:{label:"检测日期",prop:"test_date"}},[a("el-date-picker",{style:{width:"100%"},attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择检测日期",readonly:e.isReadOnly,clearable:""},model:{value:e.formData.test_date,callback:function(t){e.$set(e.formData,"test_date",t)},expression:"formData.test_date"}})],1),a("el-form-item",{attrs:{label:"有效期",prop:"validity"}},[a("el-date-picker",{style:{width:"100%"},attrs:{type:"datetime",format:"yyyy-MM-dd HH:mm:ss","value-format":"yyyy-MM-dd HH:mm:ss",placeholder:"请选择有效期",clearable:""},model:{value:e.formData.validity,callback:function(t){e.$set(e.formData,"validity",t)},expression:"formData.validity"}})],1)],1)},r=[],s={inheritAttrs:!1,components:{},props:{data:{type:Object},isReadOnly:{type:Boolean,default:!1}},data:function(){return{formData:{name:void 0,test_date:null,validity:null},rules:{name:[{required:!0,message:"请输入设备名称",trigger:"blur"}],test_date:[{required:!0,message:"请选择检测日期",trigger:"change"}],validity:[{required:!0,message:"请选择有效期",trigger:"change"}]}}},computed:{},watch:{},created:function(){},mounted:function(){this.data&&(this.formData=this.data)},methods:{}},d=s,o=a("5d22"),i=Object(o["a"])(d,l,r,!1,null,null,null);t["default"]=i.exports}}]);