(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("3835")),s=n("c84f"),u=n("8477"),o=n("365c"),c={name:"Create",components:{VForm:u["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 s["a"][t]?s["a"][t]["create"]:{}},channelId:function(){return this.$route.query.channel_id}},methods:{handleSubmit:function(){this.$refs.form.submit()},onSubmit:function(t){var e=this;if(t.affair_id=this.channelId,t.payment_instrument){var n=Object(r["a"])(t.payment_instrument,1),i=n[0],a=void 0===i?{url:""}:i;t.payment_instrument=a.url}o["a"](t).then((function(t){t.success?e.$dialog.alert({confirmButtonText:"确定",message:"提交成功"}).then((function(){e.$router.push({name:"list",query:e.$route.query})})):e.$toast(t.message)}))}}},l=c,f=n("2877"),m=Object(f["a"])(l,i,a,!1,null,null,null);e["default"]=m.exports}}]);
//# sourceMappingURL=chunk-2d21ef2c.256d034b.js.map