(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d21049a"],{b6f6:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-tabs",{attrs:{type:"border-card"}},[a("el-tab-pane",{attrs:{label:"自定义数据",lazy:!0}},[a("custbase")],1)],1)],1)},i=[],r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-container"},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.infoLoading,expression:"infoLoading"}],ref:"form",staticClass:"common-form",attrs:{model:t.form,"label-width":"180px",rules:t.rules,"inline-message":!0}},[a("el-form-item",{attrs:{label:"积分代替名",prop:"points_byname"}},[a("el-input",{staticClass:"small",model:{value:t.form.points_byname,callback:function(e){t.$set(t.form,"points_byname",e)},expression:"form.points_byname"}}),a("span",{staticClass:"smalltip"},[a("i",{staticClass:"el-icon-info"}),t._v(" 如：铜板、元宝等，默认为“积分” ")])],1),a("el-form-item",{attrs:{label:"积分量词",prop:"points_quantifier"}},[a("el-input",{staticClass:"small",model:{value:t.form.points_quantifier,callback:function(e){t.$set(t.form,"points_quantifier",e)},expression:"form.points_quantifier"}}),a("span",{staticClass:"smalltip"},[a("i",{staticClass:"el-icon-info"}),t._v(" 如：个、只、把等，默认为“点” ")])],1),a("el-form-item",{attrs:{label:"换算比例",prop:"payment_rate"}},[a("el-input",{staticClass:"small",model:{value:t.form.payment_rate,callback:function(e){t.$set(t.form,"payment_rate",e)},expression:"form.payment_rate"}},[a("template",{slot:"prepend"},[t._v("1元等于")]),a("template",{slot:"append"},[t._v("点积分")])],2),a("span",{staticClass:"smalltip"},[a("i",{staticClass:"el-icon-info"}),t._v(" 充值人民币与积分兑换比例，在购买服务时积分抵扣现金也是此比例 ")])],1),a("el-form-item",{attrs:{label:"薪资显示方式"}},[a("el-radio-group",{model:{value:t.form.wage_unit,callback:function(e){t.$set(t.form,"wage_unit",e)},expression:"form.wage_unit"}},[a("el-radio",{attrs:{label:"0"}},[t._v("3000~5000")]),a("el-radio",{attrs:{label:"1"}},[t._v("3K~5K")]),a("el-radio",{attrs:{label:"2"}},[t._v("3千~5千")])],1)],1),a("el-form-item",{attrs:{label:"二维码展示方式"}},[a("el-radio-group",{model:{value:t.form.qrcode_type,callback:function(e){t.$set(t.form,"qrcode_type",e)},expression:"form.qrcode_type"}},[a("el-radio",{attrs:{label:"normal"}},[t._v("普通")]),a("el-radio",{attrs:{label:"wechat"}},[t._v("微信带参数二维码")])],1)],1),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onSubmit("form")}}},[t._v("保存")])],1)],1)],1)},o=[],s=a("5530"),l=a("1063"),c={data:function(){return{infoLoading:!0,form:{points_byname:"",points_quantifier:"",payment_rate:1,wage_unit:0,qrcode_type:"normal"},rules:{points_byname:[{required:!0,message:"请输入积分代替名",trigger:"blur"}],points_quantifier:[{required:!0,message:"请输入积分量词",trigger:"blur"}],payment_rate:[{required:!0,message:"请输入充值比例",trigger:"blur"}]}}},mounted:function(){},created:function(){this.fetchInfo()},methods:{fetchInfo:function(){var t=this;this.infoLoading=!0;var e={};Object(l["j"])(e,"get").then((function(e){var a=Object(s["a"])({},e.data),n=a.points_byname,i=a.points_quantifier,r=a.payment_rate,o=a.wage_unit,l=a.qrcode_type;t.form={points_byname:n,points_quantifier:i,payment_rate:r,wage_unit:o,qrcode_type:l},t.infoLoading=!1})).catch((function(){}))},onSubmit:function(t){var e=this,a=Object(s["a"])({},this.form);this.$refs[t].validate((function(t){if(!t)return!1;Object(l["j"])(a).then((function(t){return e.$store.dispatch("config/getConfigInfo"),e.$message.success(t.message),!0})).catch((function(){}))}))}}},m=c,f=a("2877"),p=Object(f["a"])(m,r,o,!1,null,null,null),u=p.exports,_={components:{custbase:u}},d=_,b=Object(f["a"])(d,n,i,!1,null,null,null);e["default"]=b.exports}}]);