(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d207977"],{a0d6:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"app-form margin-top"},[a("el-form",{ref:"dataForm",attrs:{rules:t.rules,model:t.form,"label-position":"right","label-width":"200px"}},[a("div",{staticClass:"app-form-group"},[a("div",{staticClass:"app-form-ti"},[t._v("基础设置")]),a("div",{staticClass:"padding-top-lg"},[a("el-form-item",{attrs:{label:"状态",prop:"status"}},[a("el-radio-group",{model:{value:t.form.status,callback:function(e){t.$set(t.form,"status",e)},expression:"form.status"}},[a("el-radio",{attrs:{label:1}},[t._v("开启")]),a("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),1==t.form.status?a("el-form-item",{attrs:{label:"押金金额",prop:"yajin_money"}},[a("el-input",{attrs:{placeholder:"请输入押金金额"},model:{value:t.form.yajin_money,callback:function(e){t.$set(t.form,"yajin_money",e)},expression:"form.yajin_money"}})],1):t._e()],1)]),a("div",{staticClass:"app-form-group margin-top"},[a("div",{staticClass:"app-form-ti"},[t._v("退款配置")]),a("div",{staticClass:"padding-top-lg"},[a("el-form-item",{attrs:{label:"退款状态"}},[a("el-radio-group",{model:{value:t.form.refund.status,callback:function(e){t.$set(t.form.refund,"status",e)},expression:"form.refund.status"}},[a("el-radio",{attrs:{label:1}},[t._v("开启")]),a("el-radio",{attrs:{label:0}},[t._v("关闭")])],1)],1),a("el-form-item",{attrs:{label:"退款方式"}},[a("el-checkbox-group",{model:{value:t.form.refund.type,callback:function(e){t.$set(t.form.refund,"type",e)},expression:"form.refund.type"}},[a("el-checkbox",{attrs:{label:1}},[t._v("退款到系统余额")]),a("el-checkbox",{attrs:{label:6}},[t._v("退款到系统积分")]),a("el-checkbox",{attrs:{label:2}},[t._v("退款到微信零钱")]),a("el-checkbox",{attrs:{label:3}},[t._v("手动退款到支付宝")]),a("el-checkbox",{attrs:{label:4}},[t._v("手动退款到银行卡")]),a("el-checkbox",{attrs:{label:5}},[t._v("手动退款到收款码")])],1)],1)],1)]),a("div",{staticClass:"padding-lg flex justify-center"},[a("el-button",{on:{click:t.onBack}},[t._v("返回")]),a("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._v("提交")])],1)])],1),a("copyright")],1)},o=[],i=a("7f70"),l=a("8327"),r={name:"DepositRelease",components:{},data:function(){return{activeIndex:"1",rules:{},form:{status:0,yajin_money:0,refund:{status:0,type:[]}}}},computed:Object(i["a"])({},Object(l["b"])(["config"])),watch:{config:function(t){this.init()}},mounted:function(){this.init()},methods:{onBack:function(){this.$router.go(-1)},handleSelect:function(t,e){this.activeIndex=t},submit:function(){var t=this;this.$refs["dataForm"].validate((function(e){e&&t.api.post("yajin/config/set",t.form).then((function(e){1==e.code?(t.$util.success(e.message),t.$store.dispatch("settings/getSetting")):t.$util.error(e.message)}))}))},init:function(){var t=this.config;t.yajin&&(this.form=this.$util.restJson(t.yajin))}}},n=r,c=a("3d7a"),u=Object(c["a"])(n,s,o,!1,null,null,null);e["default"]=u.exports}}]);