启程易购后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
qicheng_shop_backend/public/system/js/chunk-8157d8e6.38007333.js

1 lines
12 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8157d8e6"],{2801:function(t,n,e){"use strict";e.d(n,"f",(function(){return i})),e.d(n,"j",(function(){return a})),e.d(n,"v",(function(){return o})),e.d(n,"w",(function(){return c})),e.d(n,"a",(function(){return u})),e.d(n,"b",(function(){return s})),e.d(n,"x",(function(){return l})),e.d(n,"B",(function(){return m})),e.d(n,"z",(function(){return _})),e.d(n,"A",(function(){return f})),e.d(n,"y",(function(){return d})),e.d(n,"d",(function(){return g})),e.d(n,"c",(function(){return p})),e.d(n,"L",(function(){return v})),e.d(n,"n",(function(){return b})),e.d(n,"i",(function(){return x})),e.d(n,"g",(function(){return h})),e.d(n,"h",(function(){return w})),e.d(n,"r",(function(){return F})),e.d(n,"N",(function(){return C})),e.d(n,"K",(function(){return k})),e.d(n,"I",(function(){return $})),e.d(n,"G",(function(){return q})),e.d(n,"M",(function(){return y})),e.d(n,"J",(function(){return j})),e.d(n,"H",(function(){return B})),e.d(n,"m",(function(){return O})),e.d(n,"l",(function(){return W})),e.d(n,"k",(function(){return D})),e.d(n,"e",(function(){return J})),e.d(n,"q",(function(){return N})),e.d(n,"o",(function(){return E})),e.d(n,"O",(function(){return I})),e.d(n,"t",(function(){return P})),e.d(n,"s",(function(){return T})),e.d(n,"p",(function(){return z})),e.d(n,"P",(function(){return A})),e.d(n,"u",(function(){return G})),e.d(n,"F",(function(){return H})),e.d(n,"C",(function(){return K})),e.d(n,"D",(function(){return L})),e.d(n,"E",(function(){return M}));var r=e("0c6d");function i(t){return r["a"].get("user/extract/lst",t)}function a(t,n){return r["a"].post("user/extract/status/".concat(t),n)}function o(t){return r["a"].get("user/recharge/list",t)}function c(){return r["a"].get("user/recharge/total")}function u(t){return r["a"].get("bill/list",t)}function s(){return r["a"].get("bill/type")}function l(t){return r["a"].get("merchant/order/reconciliation/lst",t)}function m(t,n){return r["a"].post("merchant/order/reconciliation/status/".concat(t),n)}function _(t,n){return r["a"].get("merchant/order/reconciliation/".concat(t,"/order"),n)}function f(t,n){return r["a"].get("merchant/order/reconciliation/".concat(t,"/refund"),n)}function d(t){return r["a"].get("merchant/order/reconciliation/mark/".concat(t,"/form"))}function g(t){return r["a"].get("financial_record/list",t)}function p(t){return r["a"].get("financial_record/export",t)}function v(t){return r["a"].get("financial/export",t)}function b(t){return r["a"].get("bill/export",t)}function x(t){return r["a"].get("user/extract/export",t)}function h(t){return r["a"].get("user/extract/status_form/".concat(t))}function w(t){return r["a"].get("user/extract/detail/".concat(t))}function F(){return r["a"].get("version")}function C(t){return r["a"].get("config/".concat(t))}function k(t){return r["a"].get("financial/lst",t)}function $(){return r["a"].get("financial/title")}function q(t){return r["a"].get("financial/detail/".concat(t))}function y(t,n){return r["a"].post("financial/status/".concat(t),n)}function j(t){return r["a"].get("financial/mark/".concat(t,"/form"))}function B(t,n){return r["a"].post("financial/update/".concat(t),n)}function O(t){return r["a"].get("financial_record/lst",t)}function W(t,n){return r["a"].get("financial_record/detail/".concat(t),n)}function D(t){return r["a"].get("financial_record/title",t)}function J(t,n){return r["a"].get("financial_record/detail_export/".concat(t),n)}function N(t){return r["a"].get("financial_record/count",t)}function E(t){return r["a"].get("agreement/".concat(t))}function I(t,n){return r["a"].post("agreement/".concat(t),n)}function P(t){return r["a"].get("receipt/lst",t)}function T(t){return r["a"].get("receipt/detail/".concat(t))}function z(){return r["a"].get("profitsharing/config")}function A(t){return r["a"].post("profitsharing/config",t)}function G(t){return r["a"].get("financial_record/mer_lst",t)}function H(t,n){return r["a"].get("financial_record/mer_list/".concat(t),n)}function K(t,n){return r["a"].get("financial_record/mer_detail/".concat(t),n)}function L(t,n){return r["a"].get("financial_record/mer_excel/".concat(t),n)}function M(t,n){return r["a"].get("financial_record/mer_title/".concat(t),n)}},"4b0f":function(t,n,e){"use strict";e("8304")},8304:function(t,n,e){},f070:function(t,n,e){"use strict";e.r(n);var r=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"divBox"},[e("el-card",{staticClass:"box-card"},[e("el-form",{ref:"settingForm",attrs:{model:t.settingForm,rules:t.rules,"label-width":"200px"}},[e("el-form-item",{attrs:{prop:"extract_minimum_line"}},[e("span",{attrs:{slot:"label"},slot:"label"},[e("span",[t._v("商户最低提现金额:")]),t._v(" "),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"指商户的余额至少大于该金额部分,才可以提现,设置为0时默认商户余额可以全部提现",placement:"top-start"}},[e("i",{staticClass:"el-icon-warning-outline"})])],1),t._v(" "),e("el-input-number",{staticClass:"selWidth",attrs:{precision:2,step:.1,min:0},model:{value:t.settingForm.extract_minimum_line,callback:function(n){t.$set(t.settingForm,"extract_minimum_line",n)},expression:"settingForm.extract_minimum_line"}}),t._v(" "),e("span",[t._v("(单位: 元)")])],1),t._v(" "),e("el-form-item",{attrs:{prop:"extract_minimum_num"}},[e("span",{attrs:{slot:"label"},slot:"label"},[e("span",[t._v("商户每笔最小提现额度:")]),t._v(" "),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"指商户的每次申请转账最小的金额;设置为0时默认不限制最小额度",placement:"top-start"}},[e("i",{staticClass:"el-icon-warning-outline"})])],1),t._v(" "),e("el-input-number",{staticClass:"selWidth",attrs:{precision:2,step:.1,min:0},model:{value:t.settingForm.extract_minimum_num,callback:function(n){t.$set(t.settingForm,"extract_minimum_num",n)},expression:"settingForm.extract_minimum_num"}}),t._v(" "),e("span",[t._v("(单位: 元)")])],1),t._v(" "),e("el-form-item",{attrs:{prop:"extract_maxmum_num"}},[e("span",{attrs:{slot:"label"},slot:"label"},[e("span",[t._v("商户每笔最高提现额度:")]),t._v(" "),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"商户每次提现申请的最高额度,设置0时默认不限制",placement:"top-start"}},[e("i",{staticClass:"el-icon-warning-outline"})])],1),t._v(" "),e("el-input-number",{staticClass:"selWidth",attrs:{precision:2,step:.1,min:0},model:{value:t.settingForm.extract_maxmum_num,callback:function(n){t.$set(t.settingForm,"extract_maxmum_num",n)},expression:"settingForm.extract_maxmum_num"}}),t._v(" "),e("span",[t._v("(单位: 元)")])],1),t._v(" "),e("el-form-item",{attrs:{prop:"mer_lock_time",label:"商户余额冻结期:"}},[e("el-input-number",{staticClass:"selWidth",attrs:{step:1,min:0},model:{value:t.settingForm.mer_lock_time,callback:function(n){t.$set(t.settingForm,"mer_lock_time",n)},expression:"settingForm.mer_lock_time"}}),t._v(" "),e("span",[t._v("(单位: 天),冻结期:仅针对线下转账模式,指用户支付成功后多少天,商户余额可解冻;设置为0,即无冻结期。")])],1),t._v(" "),e("el-form-item",{attrs:{prop:"open_wx_combine",required:""}},[e("span",{attrs:{slot:"label"},slot:"label"},[e("span",[t._v("开启自动分账:")])]),t._v(" "),e("el-radio-group",{model:{value:t.settingForm.open_wx_combine,callback:function(n){t.$set(t.settingForm,"open_wx_combine",n)},expression:"settingForm.open_wx_combine"}},[e("el-radio",{attrs:{label:1}},[t._v("开启")]),t._v(" "),e("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("关闭")])],1),t._v(" "),e("div",{staticClass:"item-text"},[t.settingForm.open_wx_combine?e("div",[e("span",{staticClass:"title"},[t._v("开启说明:")]),t._v(" "),e("div",[t._v("系统已对接微信电商收付通,开启此功能时,请注意以下事项:")]),t._v(" "),e("div",[t._v("第一步:请在微信公众号后台开通电商收付通;")]),t._v(" "),e("div",[t._v("第二步:请在"),e("span",{staticClass:"color_blue"},[t._v("平台后台 - 设置-支付配置-微信服务商支付配置")]),t._v("做相应参数配置,配置好后,请在此处开启该自动分账;")]),t._v(" "),e("div",[t._v("第三步:需子商户在"),e("span",{staticClass:"color_blue"},[t._v("商户后台-财务-申请分账商户")]),t._v(" -提交资料-审核完成;")]),t._v(" "),e("div",[t._v("以上步骤全部完成后,用户通过微信所支付的金额,会在用户确认收货后15天自动到子商户号。通过余额支付、支付宝支付的金额请前往"),e("span",{staticClass:"color_blue"},[t._v("财务-账单管理")]),t._v("查看,需子商户申请转账,平台审核并线下转账。")])]):e("div",[e("span",{staticClass:"title"},[t._v("关闭说明:")]),t._v(" "),e("div",[t._v("关闭自动分账时,系统默认启用线下手动转账模式, 指后台显示账单及子商户实时结算的余额,子商户需要申请转账,平台审核通过后,线下转账给子商户。")])])])],1),t._v(" "),e("el-form-item",{attrs:{prop:"open_wx_sub_mch",required:""}},[e("span",{attrs:{slot:"label"},slot:"label"},[e("span",[t._v("开启子商户入驻:")])]),t._v(" "),e("el-radio-group",{model:{value:t.settingForm.open_wx_sub_mch,callback:function(n){t.$set(t.settingForm,"open_wx_sub_mch",n)},expression:"settingForm.open_wx_sub_mch"}},[e("el-radio",{attrs:{label:1}},[t._v("开启")]),t._v(" "),e("el-radio",{staticClass:"radio",attrs:{label:0}},[t._v("关闭")])],1),t._v(" "),e("div",{staticClass:"item-text"},[e("div",[e("span",{staticClass:"title"},[t._v("注意:")]),t._v(" "),e("div",[t._v("此处开启子商户入驻是指针对开启自动分账模式,需在微信支付商户后台开启<电商收付通>,与商城的商户入驻功能无关;如不使用自动分账,此处也不需要开启。")])])])],1),t._v(" "),e("el-form-item",[e("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(n){return t.submitForm("settingForm")}}},[t._v("保存")])],1)],1)],1)],1)},i=[],a=(e("c5f6"),e("2801")),o={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["p"])().then((function(n){t.settingForm=n.data,t.settingForm.open_wx_combine=Number(n.data.open_wx_combine),t.status=n.data.open_wx_combine,t.settingForm.open_wx_sub_mch=Number(n.data.open_wx_sub_mch)})).catch((function(n){t.$message.error(n.message)}))},submitForm:function(t){var n=this;n.$refs[t].validate((function(t){if(!t)return!1;n.loading=!0,0==n.status&&1==n.settingForm.open_wx_combine?n.$confirm("开启自动分账后将自动关闭所有未入驻微信子商户的商家","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){n.submit()})).catch((function(){n.loading=!1,n.$message({type:"info",message:"已取消"})})):n.submit()}))},submit:function(){var t=this;Object(a["P"])(this.settingForm).then((function(n){t.loading=!1,t.$message.success(n.message)})).catch((function(n){t.$message.error(n.message),t.loading=!1}))}}},c=o,u=(e("4b0f"),e("2877")),s=Object(u["a"])(c,r,i,!1,null,"6fb6c110",null);n["default"]=s.exports}}]);