(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21ef2c"],{d879:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"main"},[n("div",{staticClass:"form-tips"},[t._v(t._s(t.page.tips))]),n("v-form",{ref:"form",attrs:{fields:t.page.form.fields},on:{submit:t.onSubmit}}),n("div",{staticClass:"fixed-box"},[n("div",{staticClass:"fixed-inner"},[n("div",{staticClass:"fixed-button",on:{click:t.handleSubmit}},[t._v("提交")])])])],1)},a=[],r=(n("ac1f"),n("5319"),n("c84f")),s=n("8477"),u=n("365c"),o={name:"Create",components:{VForm:s["a"]},metaInfo:function(){return{title:this.page.title}},data:function(){return{}},watch:{$route:{immediate:!0,deep:!0,handler:function(t){var e=this;t.query.channel||this.$dialog.alert({message:"请选择事务"}).then((function(){e.$router.replace({name:"index",query:e.$route.query})}))}}},computed:{page:function(){var t=this.$route.query.channel;return r["a"][t]?r["a"][t]["create"]:{}},channelId:function(){return this.$route.query.channel_id}},methods:{handleSubmit:function(){this.$refs.form.submit()},onSubmit:function(){var t=this,e=this.$refs.form.ruleForm;e.affair_id=this.channelId,u["a"](e).then((function(){t.$dialog.alert({confirmButtonText:"确定",message:"提交成功"}).then((function(){t.$router.push({name:"list",query:t.$route.query})}))}))}}},c=o,f=n("2877"),l=Object(f["a"])(c,i,a,!1,null,null,null);e["default"]=l.exports}}]);
//# sourceMappingURL=chunk-2d21ef2c.ef6359f7.js.map