webpackJsonp([61],{"6nkI":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("mvHQ"),o=a.n(r),s=(a("ftAF"),{created:function(){var t=this;this.$route.query.column&&(this.subColumn=this.$route.query.column.split(",")[1],this.subValue=this.$route.query.column.split(",")[0]),this.$route.query.id?this.$http.get({url:"/systemConfig/getOne",data:{id:this.$route.query.id}}).then(function(e){e.success&&(t.formData=e.data,t.useFlag="Y"==t.formData.useFlag,t.$route.query.column&&(t.formData[t.subColumn]=t.subValue))}):this.$route.query.column&&(this.formData[this.subColumn]=this.subValue)},data:function(){return{saving:!1,formData:{},rules:{},subColumn:"",subValue:"",useFlag:!0}},methods:{onSave:function(){var t=this;this.$refs.form.validate(function(e){if(!e)return!1;t.submit()})},submit:function(){var t=this;this.formData.useFlag=this.useFlag?"Y":"N";var e=JSON.parse(o()(this.formData));this.$http.post({url:this.formData.id?"/systemConfig/update":"/systemConfig/save",data:e}).then(function(e){e.success?t.$message.success("成功"):t.$message.warning("失败")})},onDelete:function(){var t=this;this.$alert("删除将无法恢复，确认要删除么？","警告",{type:"error"}).then(function(){return t.$http.post({url:"/systemConfig/del",data:{id:t.formData.id}})}).then(function(){t.$message.success("删除成功")}).catch(function(e){"cancel"===e?t.$message.info("删除取消"):t.$message.error("删除失败")})}}}),i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{ref:"form",staticStyle:{"max-width":"500px"},attrs:{model:t.formData,rules:t.rules,"label-width":"80px","label-position":"right",size:"small"}},[a("el-form-item",{attrs:{prop:"orderRate",label:"订单比率"}},[a("el-input",{attrs:{disabled:"orderRate"==t.subColumn},model:{value:t.formData.orderRate,callback:function(e){t.$set(t.formData,"orderRate",e)},expression:"formData.orderRate"}})],1),t._v(" "),a("el-form-item",{attrs:{prop:"tixianRate",label:"提现比率"}},[a("el-input",{attrs:{disabled:"tixianRate"==t.subColumn},model:{value:t.formData.tixianRate,callback:function(e){t.$set(t.formData,"tixianRate",e)},expression:"formData.tixianRate"}})],1),t._v(" "),a("el-form-item",{attrs:{prop:"personalDeposit",label:"个人押金"}},[a("el-input",{model:{value:t.formData.personalDeposit,callback:function(e){t.$set(t.formData,"personalDeposit",e)},expression:"formData.personalDeposit"}})],1),t._v(" "),a("el-form-item",{attrs:{prop:"companyDeposit",label:"公司押金"}},[a("el-input",{model:{value:t.formData.companyDeposit,callback:function(e){t.$set(t.formData,"companyDeposit",e)},expression:"formData.companyDeposit"}})],1),t._v(" "),a("el-form-item",{attrs:{prop:"extra",label:"订单清理天数"}},[a("el-input",{attrs:{disabled:"extra"==t.subColumn},model:{value:t.formData.extra,callback:function(e){t.$set(t.formData,"extra",e)},expression:"formData.extra"}})],1),t._v(" "),a("el-form-item",{attrs:{prop:"useFlag",label:"启用标识"}},[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949",disabled:"useFlag"==t.subColumn},model:{value:t.useFlag,callback:function(e){t.useFlag=e},expression:"useFlag"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{loading:t.$store.state.fetchingData,type:"primary"},on:{click:t.onSave}},[t._v("保存")])],1)],1)],1)},staticRenderFns:[]};var n=a("VU/8")(s,i,!1,function(t){a("kYls")},"data-v-6da6f171",null);e.default=n.exports},ftAF:function(t,e,a){"use strict";e.a={phone:{validator:function(t,e,a){e&&(/^1[3-9]\d{9}$/.test(e)?a():a(new Error("请输入正确的手机号")))},trigger:"blur"},number:{validator:function(t,e,a){e&&(/(^[0-9]*$)|(^[0-9]*\.[0-9]*$)/.test(e)?a():a(new Error("请输入正确的数值")))},trigger:"blur"},url:{validator:function(t,e,a){e&&(/[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?/.test(e)?a():a(new Error("请输入正确的网址")))},trigger:"blur"},email:{validator:function(t,e,a){e&&(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)?a():a(new Error("请输入正确的邮箱地址")))},trigger:"blur"},idCard:{validator:function(t,e,a){e&&(/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}(\d|[xX])$/.test(e)?a():a(new Error("请输入正确的身份证")))},trigger:"blur"},english:{validator:function(t,e,a){e&&(/[A-Za-z]/.test(e)?a():a(new Error("请输入正确的英文字符")))},trigger:"blur"}}},kYls:function(t,e){},mvHQ:function(t,e,a){t.exports={default:a("qkKv"),__esModule:!0}},qkKv:function(t,e,a){var r=a("FeBl"),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}}});