(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0f0fe3"],{"9f77":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[e._m(0),n("div",{staticClass:"form-container"},[n("div",{staticClass:"form-section clearfix"},[n("div",{staticClass:"form-section--bd clearfix"},[n("el-col",{attrs:{span:24}},[n("el-form",{ref:"collectionForm",staticClass:"demo-ruleForm mt-20",attrs:{model:e.collectionInfo,rules:e.collectionInfoRules,"label-width":"130px"}},[n("el-col",{attrs:{span:12}},[n("el-row",[n("el-form-item",{attrs:{label:"类型名称",prop:"product_type_name"}},[n("el-input",{attrs:{placeholder:"请输入类型名称"},model:{value:e.collectionInfo.product_type_name,callback:function(t){e.$set(e.collectionInfo,"product_type_name",t)},expression:"collectionInfo.product_type_name"}})],1),n("el-form-item",{attrs:{label:"状态",prop:"is_enable"}},[n("el-radio-group",{model:{value:e.collectionInfo.is_enable,callback:function(t){e.$set(e.collectionInfo,"is_enable",t)},expression:"collectionInfo.is_enable"}},[n("el-radio",{attrs:{label:1}},[e._v("\n                      有效\n                    ")]),n("el-radio",{attrs:{label:0}},[e._v("\n                      无效\n                    ")])],1)],1),n("el-form-item",[n("el-button",{on:{click:e.goBack}},[e._v("\n                    取消\n                  ")]),n("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("collectionForm")}}},[e._v("\n                    提交\n                  ")])],1)],1)],1)],1)],1)],1)])])])},r=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container--hd pb-20"},[n("h3",[e._v("新增租赁类型")])])}],o=(n("2397"),n("96cf"),n("1da1")),c=n("d4ec"),s=n("bee2"),i=n("99de"),l=n("7e84"),u=n("262e"),p=n("9ab4"),f=n("60a3"),m=n("496f");function b(e,t,n){return t=Object(l["a"])(t),Object(i["a"])(e,d()?Reflect.construct(t,n||[],Object(l["a"])(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}var h=function(e){function t(){var e;return Object(c["a"])(this,t),e=b(this,t,arguments),e.collectionInfo={is_enable:1},e.collectionInfoRules={product_type_name:[{required:!0,message:"请输入类型名称",trigger:"blur"}],is_enable:[{required:!0,message:"请选择状态",trigger:"blur"}]},e}return Object(u["a"])(t,e),Object(s["a"])(t,[{key:"mounted",value:function(){this.getLeaseInfo()}},{key:"getLeaseInfo",value:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){var t,n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t={product_type_id:this.$route.params.id},!this.$route.params.id){e.next=7;break}return e.next=4,Object(m["i"])(t);case 4:n=e.sent,a=n.data,this.collectionInfo=a;case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"submitForm",value:function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this.$route.params.id){e.next=7;break}return e.next=3,Object(m["g"])(this.collectionInfo);case 3:this.$message({message:"编辑成功",type:"success"}),this.$router.push({name:"LeaseManage",params:{active:"2"}}),e.next=11;break;case 7:return e.next=9,Object(m["c"])(this.collectionInfo);case 9:this.$message({message:"新增成功",type:"success"}),this.$router.push({name:"LeaseManage",params:{active:"2"}});case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"goBack",value:function(){this.$router.push({name:"LeaseManage",params:{active:"2"}})}}]),t}(f["i"]);h=Object(p["a"])([Object(f["a"])({name:"CollectionForm"})],h);var v=h,_=v,g=n("2877"),y=Object(g["a"])(_,a,r,!1,null,null,null);t["default"]=y.exports}}]);