(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e6b3175"],{"11fb":function(t,e,s){"use strict";s("41d2")},"41d2":function(t,e,s){},f070:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"divBox"},[s("el-card",{staticClass:"box-card"},[s("el-form",{ref:"settingForm",staticClass:"demo-promoterForm",attrs:{model:t.settingForm,rules:t.rules,"label-width":"200px"}},[s("el-form-item",{attrs:{prop:"extract_minimum_line"}},[s("span",{attrs:{slot:"label"},slot:"label"},[s("span",[t._v("商户最低提现金额:")]),t._v(" "),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"指商户的余额至少大于该金额部分,才可以提现,设置为0时默认商户余额可以全部提现",placement:"top-start"}},[s("i",{staticClass:"el-icon-warning-outline"})])],1),t._v(" "),s("el-input-number",{staticClass:"selWidth",attrs:{precision:2,step:.1,min:0},model:{value:t.settingForm.extract_minimum_line,callback:function(e){t.$set(t.settingForm,"extract_minimum_line",e)},expression:"settingForm.extract_minimum_line"}}),t._v(" "),s("span",[t._v("(单位: 元)")])],1),t._v(" "),s("el-form-item",{attrs:{prop:"extract_minimum_num"}},[s("span",{attrs:{slot:"label"},slot:"label"},[s("span",[t._v("商户每笔最小提现额度:")]),t._v(" "),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"指商户的每次申请转账最小的金额;设置为0时默认不限制最小额度",placement:"top-start"}},[s("i",{staticClass:"el-icon-warning-outline"})])],1),t._v(" "),s("el-input-number",{staticClass:"selWidth",attrs:{precision:2,step:.1,min:0},model:{value:t.settingForm.extract_minimum_num,callback:function(e){t.$set(t.settingForm,"extract_minimum_num",e)},expression:"settingForm.extract_minimum_num"}}),t._v(" "),s("span",[t._v("(单位: 元)")])],1),t._v(" "),s("el-form-item",{attrs:{prop:"extract_maxmum_num"}},[s("span",{attrs:{slot:"label"},slot:"label"},[s("span",[t._v("商户每笔最高提现额度:")]),t._v(" "),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"商户每次提现申请的最高额度,设置0时默认不限制",placement:"top-start"}},[s("i",{staticClass:"el-icon-warning-outline"})])],1),t._v(" "),s("el-input-number",{staticClass:"selWidth",attrs:{precision:2,step:.1,min:0},model:{value:t.settingForm.extract_maxmum_num,callback:function(e){t.$set(t.settingForm,"extract_maxmum_num",e)},expression:"settingForm.extract_maxmum_num"}}),t._v(" "),s("span",[t._v("(单位: 元)")])],1),t._v(" "),s("el-form-item",{attrs:{prop:"mer_lock_time",label:"商户余额冻结期:"}},[s("el-input-number",{staticClass:"selWidth",attrs:{step:1,min:0},model:{value:t.settingForm.mer_lock_time,callback:function(e){t.$set(t.settingForm,"mer_lock_time",e)},expression:"settingForm.mer_lock_time"}}),t._v(" "),s("span",[t._v("(单位: 天),冻结期:仅针对线下转账模式,指用户确认收货后多少天,商户余额可解冻;设置为0,即无冻结期。")])],1),t._v(" "),s("el-form-item",{attrs:{prop:"open_wx_sub_mch",required:""}},[s("span",{attrs:{slot:"label"},slot:"label"},[s("span",[t._v("开启子商户入驻:")])]),t._v(" "),s("el-radio-group",{model:{value:t.settingForm.open_wx_sub_mch,callback:function(e){t.$set(t.settingForm,"open_wx_sub_mch",e)},expression:"settingForm.open_wx_sub_mch"}},[s("el-radio",{attrs:{label:1}},[t._v("开启")]),t._v(" "),s("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("关闭")])],1)],1),t._v(" "),s("el-form-item",{attrs:{prop:"open_wx_combine",required:""}},[s("span",{attrs:{slot:"label"},slot:"label"},[s("span",[t._v("开启自动分账:")])]),t._v(" "),s("el-radio-group",{model:{value:t.settingForm.open_wx_combine,callback:function(e){t.$set(t.settingForm,"open_wx_combine",e)},expression:"settingForm.open_wx_combine"}},[s("el-radio",{attrs:{label:1}},[t._v("开启")]),t._v(" "),s("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("关闭")])],1),t._v(" "),s("div",{staticClass:"item-text"},[t.settingForm.open_wx_combine?s("div",[s("span",{staticClass:"title"},[t._v("开启说明:")]),t._v(" "),s("div",[t._v("系统已对接微信电商收付通,开启此功能时,请注意以下事项:")]),t._v(" "),s("div",[t._v("第一步:请在微信公众号后台开通电商收付通;")]),t._v(" "),s("div",[t._v("第二步:请在"),s("span",{staticClass:"color_blue"},[t._v("平台后台 - 设置-支付配置-微信服务商支付配置")]),t._v("做相应参数配置,配置好后,请在此处开启该自动分账;")]),t._v(" "),s("div",[t._v("第三步:需子商户在"),s("span",{staticClass:"color_blue"},[t._v("商户后台-财务-申请分账商户")]),t._v(" -提交资料-审核完成;")]),t._v(" "),s("div",[t._v("以上步骤全部完成后,用户通过微信所支付的金额,会在用户确认收货后15天自动到子商户号。通过余额支付、支付宝支付的金额请前往"),s("span",{staticClass:"color_blue"},[t._v("财务-账单管理")]),t._v("查看,需子商户申请转账,平台审核并线下转账。")])]):s("div",[s("span",{staticClass:"title"},[t._v("关闭说明:")]),t._v(" "),s("div",[t._v("关闭自动分账时,系统默认启用线下手动转账模式, 指后台显示账单及子商户实时结算的余额,子商户需要申请转账,平台审核通过后,线下转账给子商户。")])])])],1),t._v(" "),s("el-form-item",[s("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return t.submitForm("settingForm")}}},[t._v("保存")])],1)],1)],1)],1)},n=[],a=(s("c5f6"),s("2801")),r={name:"Index",data:function(){return{settingForm:{open_wx_combine:0,open_wx_sub_mch:0,extract_minimum_line:0,extract_minimum_num:1,extract_maxmum_num:0,mer_lock_time:0},status:0,loading:!1,rules:{open_wx_combine:[{required:!0,message:"请选择是否开启自动分账",trigger:"change"}],open_wx_sub_mch:[{required:!0,message:"请选择是否开启子商户入驻",trigger:"change"}],extract_minimum_line:[{required:!0,message:"请输入商户最低提现金额",trigger:"blur"}],extract_minimum_num:[{required:!0,message:"请输入每笔最小提现额度",trigger:"blur"}],extract_maxmum_num:[{required:!0,message:"请输入商户每笔最高提现金额",trigger:"blur"}],mer_lock_time:[{required:!0,message:"请输入商户余额冻结期",trigger:"blur"}]}}},mounted:function(){this.getDetal()},methods:{getDetal:function(){var t=this;Object(a["n"])().then((function(e){t.settingForm=e.data,t.settingForm.open_wx_combine=Number(e.data.open_wx_combine),t.status=e.data.open_wx_combine,t.settingForm.open_wx_sub_mch=Number(e.data.open_wx_sub_mch)})).catch((function(e){t.$message.error(e.message)}))},submitForm:function(t){var e=this;e.$refs[t].validate((function(t){if(!t)return!1;e.loading=!0,0==e.status&&1==e.settingForm.open_wx_combine?e.$confirm("开启自动分账后将自动关闭所有未入驻微信子商户的商家","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.submit()})).catch((function(){e.loading=!1,e.$message({type:"info",message:"已取消"})})):e.submit()}))},submit:function(){var t=this;Object(a["I"])(this.settingForm).then((function(e){t.loading=!1,t.$message.success(e.message)})).catch((function(e){t.$message.error(e.message),t.loading=!1}))}}},m=r,o=(s("11fb"),s("2877")),l=Object(o["a"])(m,i,n,!1,null,"416fbcef",null);e["default"]=l.exports}}]);