启程易购后端代码
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-0554be4a.51053308.js

1 lines
48 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0554be4a"],{"0b65":function(t,e,a){"use strict";e["a"]={shortcuts:[{text:"今天",onClick:function(t){var e=new Date,a=new Date;a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),t.$emit("pick",[a,e])}},{text:"昨天",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.$emit("pick",[a,e])}},{text:"最近7天",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-6048e5),t.$emit("pick",[a,e])}},{text:"最近30天",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"本月",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),t.$emit("pick",[a,e])}},{text:"本年",onClick:function(t){var e=new Date,a=new Date;a.setTime(a.setTime(new Date((new Date).getFullYear(),0,1))),t.$emit("pick",[a,e])}}]}},"154b":function(t,e,a){"use strict";a("45a9")},"45a9":function(t,e,a){},"5f66":function(t,e,a){},8492:function(t,e,a){"use strict";a.d(e,"M",(function(){return i})),a.d(e,"K",(function(){return r})),a.d(e,"N",(function(){return n})),a.d(e,"L",(function(){return l})),a.d(e,"I",(function(){return o})),a.d(e,"G",(function(){return c})),a.d(e,"E",(function(){return m})),a.d(e,"T",(function(){return u})),a.d(e,"F",(function(){return d})),a.d(e,"Q",(function(){return v})),a.d(e,"P",(function(){return f})),a.d(e,"g",(function(){return _})),a.d(e,"e",(function(){return p})),a.d(e,"h",(function(){return h})),a.d(e,"f",(function(){return g})),a.d(e,"C",(function(){return b})),a.d(e,"U",(function(){return y})),a.d(e,"X",(function(){return D})),a.d(e,"W",(function(){return w})),a.d(e,"V",(function(){return C})),a.d(e,"J",(function(){return k})),a.d(e,"q",(function(){return x})),a.d(e,"d",(function(){return A})),a.d(e,"p",(function(){return F})),a.d(e,"r",(function(){return L})),a.d(e,"i",(function(){return O})),a.d(e,"n",(function(){return z})),a.d(e,"o",(function(){return T})),a.d(e,"l",(function(){return I})),a.d(e,"fb",(function(){return $})),a.d(e,"H",(function(){return N})),a.d(e,"D",(function(){return E})),a.d(e,"bb",(function(){return H})),a.d(e,"db",(function(){return M})),a.d(e,"ab",(function(){return S})),a.d(e,"eb",(function(){return j})),a.d(e,"cb",(function(){return Y})),a.d(e,"S",(function(){return P})),a.d(e,"R",(function(){return W})),a.d(e,"m",(function(){return V})),a.d(e,"k",(function(){return U})),a.d(e,"j",(function(){return X})),a.d(e,"c",(function(){return q})),a.d(e,"a",(function(){return R})),a.d(e,"b",(function(){return B})),a.d(e,"Y",(function(){return J})),a.d(e,"Z",(function(){return Q})),a.d(e,"s",(function(){return K})),a.d(e,"w",(function(){return G})),a.d(e,"v",(function(){return Z})),a.d(e,"x",(function(){return tt})),a.d(e,"z",(function(){return et})),a.d(e,"B",(function(){return at})),a.d(e,"A",(function(){return st})),a.d(e,"y",(function(){return it})),a.d(e,"u",(function(){return rt})),a.d(e,"t",(function(){return nt})),a.d(e,"O",(function(){return lt}));var s=a("0c6d");function i(t){return s["a"].get("merchant/menu/lst",t)}function r(){return s["a"].get("merchant/menu/create/form")}function n(t){return s["a"].get("merchant/menu/update/form/".concat(t))}function l(t){return s["a"].delete("merchant/menu/delete/".concat(t))}function o(t){return s["a"].get("system/merchant/lst",t)}function c(t){return s["a"].get("system/merchant/detail/".concat(t))}function m(t){return s["a"].post("system/merchant/create",t)}function u(t,e){return s["a"].post("system/merchant/update/".concat(t),e)}function d(t){return s["a"].get("system/merchant/delete/".concat(t,"/form"))}function v(t,e){return s["a"].post("system/merchant/status/".concat(t),{status:e})}function f(t){return s["a"].get("system/merchant/password/form/".concat(t))}function _(t){return s["a"].get("system/merchant/category/lst",t)}function p(){return s["a"].get("system/merchant/category/form")}function h(t){return s["a"].get("system/merchant/category/form/".concat(t))}function g(t){return s["a"].delete("system/merchant/category/".concat(t))}function b(t,e){return s["a"].get("merchant/order/lst/".concat(t),e)}function y(t){return s["a"].get("merchant/order/mark/".concat(t,"/form"))}function D(t,e){return s["a"].get("merchant/order/refund/lst/".concat(t),e)}function w(t){return s["a"].get("merchant/order/refund/mark/".concat(t,"/form"))}function C(t,e){return s["a"].post("merchant/order/reconciliation/create/".concat(t),e)}function k(t){return s["a"].post("system/merchant/login/".concat(t))}function x(t){return s["a"].get("merchant/intention/lst",t)}function A(t){return s["a"].get("merchant/intention/mark/".concat(t,"/form"))}function F(t){return s["a"].delete("merchant/intention/delete/".concat(t))}function L(t){return s["a"].get("merchant/intention/status/".concat(t,"/form"))}function O(t){return s["a"].get("system/merchant/changecopy/".concat(t,"/form"))}function z(){return s["a"].get("agreement/sys_intention_agree")}function T(t){return s["a"].post("agreement/sys_intention_agree",t)}function I(t){return s["a"].get("agreement/".concat(t))}function $(t,e){return s["a"].post("agreement/".concat(t),e)}function N(t,e){return s["a"].post("system/merchant/close/".concat(t),{status:e})}function E(){return s["a"].get("system/merchant/count")}function H(t){return s["a"].post("merchant/type/create",t)}function M(t){return s["a"].get("merchant/type/lst",t)}function S(){return s["a"].get("merchant/mer_auth")}function j(t,e){return s["a"].post("merchant/type/update/".concat(t),e)}function Y(t){return s["a"].delete("merchant/type/delete/".concat(t))}function P(t){return s["a"].get("merchant/type/mark/".concat(t))}function W(t){return s["a"].get("/merchant/type/detail/".concat(t))}function V(){return s["a"].get("merchant/type/options")}function U(){return s["a"].get("system/merchant/category/options")}function X(t){return s["a"].get("system/applyments/lst",t)}function q(t,e){return s["a"].post("system/applyments/status/".concat(t),e)}function R(t){return s["a"].get("system/applyments/detail/".concat(t))}function B(t){return s["a"].get("profitsharing/lst",t)}function J(t){return s["a"].post("profitsharing/again/".concat(t))}function Q(t){return s["a"].get("system/applyments/mark/".concat(t,"/form"))}function K(t){return s["a"].get("profitsharing/export",t)}function G(t){return s["a"].get("margin/lst",t)}function Z(t){return s["a"].get("margin/make_up",t)}function tt(t){return s["a"].get("margin/local/".concat(t,"/form"))}function et(t){return s["a"].get("margin/refund/lst",t)}function at(t){return s["a"].get("margin/refund/status/".concat(t,"/form"))}function st(t){return s["a"].get("margin/refund/mark/".concat(t,"/form"))}function it(t){return s["a"].get("margin/refund/show/".concat(t))}function rt(t,e){return s["a"].get("margin/list/".concat(t),e)}function nt(t){return s["a"].get("margin/set/".concat(t,"/form"))}function lt(t,e){return s["a"].get("system/merchant/get_operate_list/".concat(t),e)}},9716:function(t,e,a){},"9bcd":function(t,e){t.exports="data:image/png;base64,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"},cec0: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:"divBox"},[a("div",{staticClass:"selCard"},[a("el-form",{ref:"searchForm",attrs:{model:t.tableFrom,size:"small","label-width":"85px",inline:!0}},[a("el-form-item",{attrs:{label:"选择时间:"}},[a("el-date-picker",{staticStyle:{width:"280px"},attrs:{type:"daterange",placeholder:"选择日期",format:"yyyy/MM/dd","value-format":"yyyy/MM/dd","range-separator":"-","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"商户类别:",prop:"is_trader"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.is_trader,callback:function(e){t.$set(t.tableFrom,"is_trader",e)},expression:"tableFrom.is_trader"}},[a("el-option",{attrs:{label:"自营",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"非自营",value:"0"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"商户分类:",prop:"category_id"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.category_id,callback:function(e){t.$set(t.tableFrom,"category_id",e)},expression:"tableFrom.category_id"}},t._l(t.merCateList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"店铺类型:",prop:"type_id"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.type_id,callback:function(e){t.$set(t.tableFrom,"type_id",e)},expression:"tableFrom.type_id"}},t._l(t.storeType,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:"是否推荐:",prop:"is_best"}},[a("el-select",{staticClass:"selWidth",attrs:{clearable:"",placeholder:"请选择"},on:{change:function(e){return t.getList(1)}},model:{value:t.tableFrom.is_best,callback:function(e){t.$set(t.tableFrom,"is_best",e)},expression:"tableFrom.is_best"}},[a("el-option",{key:"1",attrs:{label:"是",value:"1"}}),t._v(" "),a("el-option",{key:"0",attrs:{label:"否",value:"0"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"关键字:",prop:"keyword"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入店铺关键字/店铺名/联系电话",clearable:""},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.getList(1)}},model:{value:t.tableFrom.keyword,callback:function(e){t.$set(t.tableFrom,"keyword",e)},expression:"tableFrom.keyword"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(e){return t.getList(1)}}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{size:"small"},on:{click:function(e){return t.searchReset()}}},[t._v("重置")])],1)],1)],1),t._v(" "),a("el-card",{staticClass:"mt14"},[a("div",{staticClass:"mb20"},[t.headeNum.length>0?a("el-tabs",{on:{"tab-click":function(e){t.getList(1),t.getHeadNum()}},model:{value:t.tableFrom.status,callback:function(e){t.$set(t.tableFrom,"status",e)},expression:"tableFrom.status"}},t._l(t.headeNum,(function(t,e){return a("el-tab-pane",{key:e,attrs:{name:t.type.toString(),label:t.title+"("+t.count+")"}})})),1):t._e(),t._v(" "),a("el-button",{staticClass:"mt5",attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加商户")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[a("el-table-column",{attrs:{prop:"mer_id",label:"ID","min-width":"60"}}),t._v(" "),a("el-table-column",{attrs:{prop:"mer_name",label:"商户名称","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"real_name",label:"商户姓名","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"推荐","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"是","inactive-text":"否",width:40},nativeOn:{click:function(a){return t.onchangeIsShow(e.row)}},model:{value:e.row.is_best,callback:function(a){t.$set(e.row,"is_best",a)},expression:"scope.row.is_best"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"开启/关闭","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭",width:55},nativeOn:{click:function(a){return t.onchangeIsClose(e.row)}},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),a("el-table-column",{attrs:{prop:"margin",label:"保证金","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(1==e.row.is_margin?"未支付":0==e.row.is_margin?"无":"已支付"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"100"}}),t._v(" "),a("el-table-column",{attrs:{prop:"mark",label:"备注","min-width":"200"}}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return["1"===t.tableFrom.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onLogo(e.row.mer_id)}}},[t._v("登录")]):t._e(),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onEdit(e.row.mer_id)}}},[t._v("编辑")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.onDetails(e.row.mer_id)}}},[t._v("详情")]),t._v(" "),"0"===t.tableFrom.status?a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.handleDelete(e.row.mer_id,e.$index)}}},[t._v("删除")]):t._e()]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{background:"","page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1),t._v(" "),a("mer-detail",{ref:"merDetail",attrs:{merId:t.merId,merCateList:t.merCateList,storeType:t.storeType,drawer:t.drawer},on:{closeDrawer:t.closeDrawer,changeDrawer:t.changeDrawer,onPassword:t.onPassword,handleTimes:t.handleTimes,getList:t.getList}})],1)},i=[],r=a("8492"),n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-drawer",{attrs:{"with-header":!1,size:1e3,visible:t.drawer,direction:t.direction,"before-close":t.handleClose},on:{"update:visible":function(e){t.drawer=e}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.isAdd?a("div",{staticClass:"head"},[a("div",{staticClass:"text"},[a("div",{staticClass:"title"},[a("span",{staticClass:"bold"},[t._v("添加商户")])])])]):a("div",{staticClass:"head"},[a("div",{staticClass:"full"},[a("img",{staticClass:"order_icon",attrs:{src:t.orderImg,alt:""}}),t._v(" "),a("div",{staticClass:"text"},[a("div",{staticClass:"title"},[a("span",{staticClass:"bold"},[t._v(t._s(t.merData.mer_name))]),t._v(" "),t.merData.is_trader?a("el-tag",{staticClass:"tags_name",attrs:{type:"danger",effect:"dark",size:"mini"}},[t._v("自营")]):t._e(),t._v(" "),t.merData.merchantType?a("el-tag",{staticClass:"tags_name",attrs:{type:"warning",effect:"dark",size:"mini"}},[t._v(t._s(t.merData.merchantType.type_name))]):t._e()],1),t._v(" "),a("div",[a("span",{staticClass:"mr20"},[t._v(t._s(t.merData.mer_address))])])]),t._v(" "),a("div",[t.isEdit?a("el-button",{attrs:{size:"small"},on:{click:t.cancelEdit}},[t._v("取消")]):t._e(),t._v(" "),t.isEdit?t._e():a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.merEdit}},[t._v("编辑")]),t._v(" "),t.isEdit?a("el-button",{attrs:{type:"success",size:"small"},on:{click:t.saveInfo}},[t._v("完成")]):t._e(),t._v(" "),a("el-dropdown",{staticClass:"ml10",on:{command:t.handleCommand}},[a("el-button",{attrs:{icon:"el-icon-more",size:"small"}}),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"password"}},[t._v("修改管理员密码")])],1)],1)],1)]),t._v(" "),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("联系人")]),t._v(" "),a("div",[t._v(t._s(t.merData.real_name))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("联系电话")]),t._v(" "),a("div",[t._v(t._s(t.merData.mer_phone))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("状态")]),t._v(" "),a("div",[t._v(t._s(1==t.merData.status?"开启":"关闭"))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",{staticClass:"title"},[t._v("入驻时间")]),t._v(" "),a("div",[t._v(t._s(t.merData.create_time))])])])]),t._v(" "),t.isEdit||t.isAdd?a("merEditForm",{ref:"editForm",attrs:{merId:t.merId,merCateList:t.merCateList,storeType:t.storeType,isAdd:t.isAdd,merData:t.merData},on:{modifyCopy:t.modifyCopy,success:t.editSuccess}}):t.isEdit||t.isAdd?t._e():a("mer-info",{ref:"merInfo",attrs:{merData:t.merData}})],1),t._v(" "),t.isAdd?a("div",{staticClass:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:t.handleClose}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.submitInfo}},[t._v("提交")])],1):t._e()])],1)},l=[],o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-tabs",{attrs:{type:"border-card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基本信息",name:"detail"}},[a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("基础信息")]),t._v(" "),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("商户名称:")]),t._v(" "),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.merData.mer_name)+"\n ")])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("商户类型:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(1==t.merData.is_trader?"自营":"非自营"))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("商户分类:")]),t._v(" "),t.merData.merchantCategory?a("div",{staticClass:"value"},[t._v("\n "+t._s(t.merData.merchantCategory.category_name)+"\n "),a("span",{staticClass:"info info-red"},[t._v("(该分类下的商户手续费是"+t._s(100*t.merData.merchantCategory.commission_rate)+"%)")])]):t._e()]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("推荐商户:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(1==t.merData.is_best?"是":"否"))])]),t._v(" "),t.merData.merchantType?a("li",{staticClass:"item"},[a("div",[t._v("店铺类型:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.merData.merchantType.type_name))])]):t._e(),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("商户状态:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(1==t.merData.status?"开启":"关闭"))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("排序:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.merData.sort))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("更新时间:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.merData.update_time))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("备注:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.merData.mark))])])])])]),t._v(" "),a("el-tab-pane",{attrs:{label:"经营信息",name:"business"}},[a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("费用信息")]),t._v(" "),a("ul",{staticClass:"list"},[a("li",{staticClass:"item item100"},[a("div",[t._v("手续费单独设置:")]),t._v(" "),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.merData.commission_switch?"开启":"关闭")+"\n ")])]),t._v(" "),t.merData.commission_switch?a("li",{staticClass:"item item100"},[a("div",[t._v("手续费:")]),t._v(" "),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.merData.commission_rate)+"%\n "),a("span",{staticClass:"info info-red"},[t._v("(注:此处如未设置手续费,系统会自动读取商户分类下对应手续费;此处已设置,则优先以此处设置为准)")])])]):t._e(),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("店铺保证金:")]),t._v(" "),a("div",{staticClass:"value"},[t._v("\n "+t._s(0==t.merData.is_margin?"无":t.merData.ot_margin)+"\n ")])]),t._v(" "),0!=t.merData.is_margin?a("li",{staticClass:"item"},[a("div",[t._v("保证金支付状态:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(1==t.merData.is_margin?"待缴":0==t.merData.is_margin?"无":"已缴")+"\n "),10==t.merData.is_margin&&t.merData.margin-t.merData.ot_margin<0?a("span",{staticClass:"info-red"},[t._v("(需补缴)")]):t._e()])]):t._e(),t._v(" "),0!=t.merData.is_margin?a("li",{staticClass:"item"},[a("div",[t._v("保证金余额:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.merData.margin))])]):t._e()])]),t._v(" "),a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("审核信息")]),t._v(" "),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("商品审核:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(1==t.merData.is_audit?"需审核":"免审核"))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("直播间审核:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(1==t.merData.is_bro_room?"需审核":"免审核"))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("直播商品:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(1==t.merData.is_bro_goods?"需审核":"免审核"))])])])]),t._v(" "),a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("其他信息")]),t._v(" "),a("ul",{staticClass:"list"},[a("li",{staticClass:"item item100"},[a("div",[t._v("搜索商户关键字:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.merData.mer_keyword))])]),t._v(" "),a("li",{staticClass:"item item100"},[a("div",[t._v("剩余商品采集数:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.merData.copy_product_num)+"次")])]),t._v(" "),a("li",{staticClass:"item item100"},[a("div",[t._v("商户资质:")]),t._v(" "),a("div",{staticClass:"value"},t._l(t.merData.mer_certificate,(function(e,s){return a("el-image",{key:s,staticStyle:{width:"36px",height:"36px","margin-right":"5px"},attrs:{src:e},on:{click:function(a){return t.lookImg(e)}}})})),1)])])])]),t._v(" "),a("el-tab-pane",{attrs:{label:"账号信息",name:"account"}},[a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("登录账号")]),t._v(" "),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("商户账号:")]),t._v(" "),a("div",{staticClass:"value"},[t._v("\n "+t._s(t.merData.mer_account)+"\n ")])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("登录密码:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.merData.mer_password))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("联系人:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.merData.real_name))])]),t._v(" "),a("li",{staticClass:"item"},[a("div",[t._v("联系电话:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.merData.mer_phone))])])])]),t._v(" "),t.merData.sub_mchid?a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("财务帐号")]),t._v(" "),a("ul",{staticClass:"list"},[a("li",{staticClass:"item"},[a("div",[t._v("微信分账商户号:")]),t._v(" "),a("div",{staticClass:"value"},[t._v(t._s(t.merData.sub_mchid))])])])]):t._e()]),t._v(" "),a("el-tab-pane",{attrs:{label:"操作记录",name:"operate"}},[a("div",{staticClass:"section"},[a("el-form",{attrs:{size:"small","label-width":"80px"}},[a("div",{staticClass:"acea-row"},[a("el-form-item",{attrs:{label:"操作端:"}},[a("el-select",{staticStyle:{width:"140px","margin-right":"20px"},attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(e){return t.onOperateLog(t.merId)}},model:{value:t.tableFromLog.type,callback:function(e){t.$set(t.tableFromLog,"type",e)},expression:"tableFromLog.type"}},[a("el-option",{attrs:{label:"平台端",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"商户端",value:"2"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{label:"操作时间:"}},[a("el-date-picker",{staticStyle:{width:"380px","margin-right":"20px"},attrs:{type:"datetimerange",placeholder:"选择日期","value-format":"yyyy/MM/dd HH:mm:ss",clearable:""},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1)],1)]),t._v(" "),a("el-table",{attrs:{data:t.tableDataLog.data,size:"small"}},[a("el-table-column",{attrs:{prop:"order_id",label:"序号","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.$index+(t.tableFromLog.page-1)*t.tableFromLog.limit+1))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作记录","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",[t._v(t._s(e.row.category_name))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作端","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"tab"},[a("div",[t._v(t._s(e.row.type))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作角色","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"tab"},[a("div",[t._v(t._s(e.row.operator_role_nickname))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作人","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"tab"},[a("div",[t._v(t._s(e.row.operator_nickname))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作时间","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"tab"},[a("div",{staticClass:"line1"},[t._v(t._s(e.row.create_time))])])]}}])})],1),t._v(" "),a("div",{staticClass:"block"},[a("el-pagination",{attrs:{background:"","page-size":t.tableFromLog.limit,"current-page":t.tableFromLog.page,layout:"total, prev, pager, next, jumper",total:t.tableDataLog.total},on:{"size-change":t.handleSizeChangeLog,"current-change":t.pageChangeLog}})],1)],1)])],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"},{name:"viewer",rawName:"v-viewer",value:{movable:!1},expression:"{ movable: false }"}],staticClass:"images"},t._l(t.merData.mer_certificate,(function(t,e){return a("img",{key:e,attrs:{src:t}})})),0)],1)},c=[],m=(a("20d6"),{props:{merData:{type:Object,default:{}}},data:function(){return{loading:!0,merId:"",direction:"rtl",activeName:"detail",timeVal:[],tableDataLog:{data:[],total:0},tableFromLog:{user_type:"",date:[],page:1,limit:10}}},filters:{},methods:{lookImg:function(t){var e=this;this.imageUrl=t;var a=this.$el.querySelector(".images").$viewer;a.show(),this.$nextTick((function(){var s=e.merData.mer_certificate.findIndex((function(e){return e===t}));a.update().view(s)}))},onchangeTime:function(t){this.timeVal=t,this.tableFromLog.date=t?this.timeVal.join("-"):"",this.onOperateLog(this.merId)},onOperateLog:function(t){var e=this;this.merId=t,Object(r["O"])(t,this.tableFromLog).then((function(t){e.tableDataLog.data=t.data.list,e.tableDataLog.total=t.data.count}))},pageChangeLog:function(t){this.tableFromLog.page=t,this.onOperateLog(this.merId)},handleSizeChangeLog:function(t){this.tableFromLog.limit=t,this.onOperateLog(this.merId)},operationType:function(t){return 0==t?"系统":1==t?"用户":2==t?"平台":3==t?"商户":4==t?"商家客服":"未知"}}}),u=m,d=(a("dff3"),a("2877")),v=Object(d["a"])(u,o,c,!1,null,"bd76647c",null),f=v.exports,_=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-form",{ref:"merDataField",attrs:{size:"small",rules:t.ruleValidate,model:t.merData,"label-width":"120px"},nativeOn:{submit:function(t){t.preventDefault()}}},[a("el-tabs",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{type:"border-card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"基本信息",name:"detail"}},[a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("基础信息")]),t._v(" "),a("el-row",{staticClass:"mt20",attrs:{gutter:24}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"商户名称:",prop:"mer_name"}},[a("el-input",{staticClass:"selWidth",attrs:{size:"small",placeholder:"请填写商户名称"},model:{value:t.merData.mer_name,callback:function(e){t.$set(t.merData,"mer_name",e)},expression:"merData.mer_name"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"商户地址:",prop:"mer_address"}},[a("el-input",{staticClass:"selWidth",attrs:{size:"small",placeholder:"请填写详细地址"},model:{value:t.merData.mer_address,callback:function(e){t.$set(t.merData,"mer_address",e)},expression:"merData.mer_address"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"商户分类:",prop:"category_id"}},[a("el-select",{staticClass:"selWidth",attrs:{size:"small",placeholder:"请选择"},model:{value:t.merData.category_id,callback:function(e){t.$set(t.merData,"category_id",e)},expression:"merData.category_id"}},t._l(t.merCateList,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"商户类型:",prop:"is_trader"}},[a("el-radio-group",{model:{value:t.merData.is_trader,callback:function(e){t.$set(t.merData,"is_trader",e)},expression:"merData.is_trader"}},[a("el-radio",{staticClass:"radio",attrs:{label:1}},[t._v("自营")]),t._v(" "),a("el-radio",{attrs:{label:0}},[t._v("非自营")])],1)],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"店铺类型:",prop:"type_id"}},[a("el-select",{staticClass:"selWidth",attrs:{size:"small",placeholder:"请选择"},model:{value:t.merData.type_id,callback:function(e){t.$set(t.merData,"type_id",e)},expression:"merData.type_id"}},t._l(t.storeType,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"推荐商户:",prop:"is_best"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,width:50,"active-text":"是","inactive-text":"否"},model:{value:t.merData.is_best,callback:function(e){t.$set(t.merData,"is_best",e)},expression:"merData.is_best"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"排序:",prop:"sort"}},[a("el-input-number",{attrs:{size:"small","controls-position":"right",placeholder:"请输入排序"},model:{value:t.merData.sort,callback:function(e){t.$set(t.merData,"sort",e)},expression:"merData.sort"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"商户状态:",prop:"status"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,width:55,"active-text":"开启","inactive-text":"关闭"},model:{value:t.merData.status,callback:function(e){t.$set(t.merData,"status",e)},expression:"merData.status"}})],1)],1)],1),t._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"备注:",prop:"mark"}},[a("el-input",{staticClass:"selWidth",attrs:{type:"textarea",size:"small",placeholder:"请填写备注"},model:{value:t.merData.mark,callback:function(e){t.$set(t.merData,"mark",e)},expression:"merData.mark"}})],1)],1)],1)],1)]),t._v(" "),a("el-tab-pane",{attrs:{label:"经营信息",name:"operate"}},[a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("费用信息")]),t._v(" "),a("el-row",{staticClass:"mt20",attrs:{gutter:24}},[t.isAdd?t._e():a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"店铺保证金:",prop:"ot_margin"}},[a("span",[t._v(t._s(0==t.merData.is_margin?"无":t.merData.ot_margin+"元"))])])],1),t._v(" "),t.isAdd||0==t.merData.is_margin?t._e():a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"保证金支付状态:"}},[a("span",[t._v(t._s(1==t.merData.is_margin?"待缴":0==t.merData.is_margin?"无":"已缴"))])])],1),t._v(" "),t.isAdd||0==t.merData.is_margin?t._e():a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"保证金余额:"}},[a("span",[t._v(t._s(t.merData.margin))])])],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"手续费设置:",prop:"commission_rate"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,width:55,"active-text":"开启","inactive-text":"关闭"},model:{value:t.merData.commission_switch,callback:function(e){t.$set(t.merData,"commission_switch",e)},expression:"merData.commission_switch"}}),t._v(" "),t.merData.commission_switch?a("span",[a("el-input-number",{attrs:{min:0,size:"small","controls-position":"right",placeholder:"请输入手续费"},model:{value:t.merData.commission_rate,callback:function(e){t.$set(t.merData,"commission_rate",e)},expression:"merData.commission_rate"}}),t._v("%\n ")],1):t._e(),t._v(" "),a("div",{staticClass:"info info-red"},[t._v("(注:此处如未设置手续费,系统会自动读取商户分类下对应手续费;此处已设置,则优先以此处设置为准)")])],1)],1)],1)],1),t._v(" "),a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("审核信息")]),t._v(" "),a("el-row",{staticClass:"mt20",attrs:{gutter:24}},[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"商品审核:",prop:"is_audit"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,width:50,"active-text":"是","inactive-text":"否"},model:{value:t.merData.is_audit,callback:function(e){t.$set(t.merData,"is_audit",e)},expression:"merData.is_audit"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"直播间审核:",prop:"is_bro_room"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,width:50,"active-text":"是","inactive-text":"否"},model:{value:t.merData.is_bro_room,callback:function(e){t.$set(t.merData,"is_bro_room",e)},expression:"merData.is_bro_room"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"直播商品:",prop:"is_bro_goods"}},[a("el-switch",{attrs:{"active-value":1,"inactive-value":0,width:50,"active-text":"是","inactive-text":"否"},model:{value:t.merData.is_bro_goods,callback:function(e){t.$set(t.merData,"is_bro_goods",e)},expression:"merData.is_bro_goods"}})],1)],1)],1)],1),t._v(" "),a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("其他信息")]),t._v(" "),a("div",{staticClass:"mt20"},[a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"商户关键字:",prop:"mer_keyword"}},[a("el-input",{staticClass:"selWidth",attrs:{size:"small",placeholder:"请填写商户关键字"},model:{value:t.merData.mer_keyword,callback:function(e){t.$set(t.merData,"mer_keyword",e)},expression:"merData.mer_keyword"}})],1)],1)],1),t._v(" "),t.isAdd?t._e():a("el-row",{attrs:{gutter:24}},[a("el-col",{staticStyle:{position:"relative"},attrs:{span:12}},[a("el-form-item",{attrs:{label:"商品采集数:"}},[a("el-input",{attrs:{size:"small",disabled:""},model:{value:t.merData.copy_product_num,callback:function(e){t.$set(t.merData,"copy_product_num",e)},expression:"merData.copy_product_num"}}),t._v(" "),a("el-button",{staticStyle:{"margin-left":"10px",position:"absolute",right:"-30px"},attrs:{type:"text"},on:{click:t.modifyCopy}},[t._v("修改")])],1)],1)],1)],1)])]),t._v(" "),a("el-tab-pane",{attrs:{label:"账号信息",name:"account"}},[a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("登录账号")]),t._v(" "),a("el-row",{staticClass:"mt20",attrs:{gutter:24}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"商户账号:",prop:"mer_account"}},[a("el-input",{staticClass:"selWidth",attrs:{type:"text",size:"small",disabled:!t.isAdd},model:{value:t.merData.mer_account,callback:function(e){t.$set(t.merData,"mer_account",e)},expression:"merData.mer_account"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"登陆密码:",prop:"mer_password"}},[a("el-input",{staticClass:"selWidth",attrs:{type:"password",size:"small",disabled:!t.isAdd},model:{value:t.merData.mer_password,callback:function(e){t.$set(t.merData,"mer_password",e)},expression:"merData.mer_password"}})],1)],1),t._v(" "),t.isAdd?t._e():a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"联系人:",prop:"real_name"}},[a("el-input",{staticClass:"selWidth",attrs:{type:"text",size:"small",placeholder:"请填写联系人"},model:{value:t.merData.real_name,callback:function(e){t.$set(t.merData,"real_name",e)},expression:"merData.real_name"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"联系电话:",prop:"mer_phone"}},[a("el-input",{staticClass:"selWidth",attrs:{size:"small",placeholder:"请填写联系电话"},model:{value:t.merData.mer_phone,callback:function(e){t.$set(t.merData,"mer_phone",e)},expression:"merData.mer_phone"}})],1)],1)],1)],1),t._v(" "),a("div",{staticClass:"section"},[a("div",{staticClass:"title"},[t._v("财务帐号")]),t._v(" "),a("el-row",{staticClass:"mt20",attrs:{gutter:24}},[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"分账商户号:",prop:"sub_mchid"}},[a("el-input",{staticClass:"selWidth",attrs:{placeholder:"请填写分账商户号",size:"small"},model:{value:t.merData.sub_mchid,callback:function(e){t.$set(t.merData,"sub_mchid",e)},expression:"merData.sub_mchid"}})],1)],1),t._v(" "),a("el-col",{attrs:{span:24}},[a("div",{staticClass:"info-red",staticStyle:{"margin-left":"120px"}},[t._v("当开启自动分账时,每个子商户在微信后台的分账商户号,即特约子商户号")])])],1)],1)])],1)],1)},p=[],h=a("c80c"),g=(a("96cf"),a("3b8d")),b={props:{merData:{type:Object,default:{}},isAdd:{type:Boolean,default:!1},merCateList:{type:Array,default:[]},storeType:{type:Array,default:[]}},data:function(){var t=function(t,e,a){if(!e)return a(new Error("请填写联系方式"));/^1[3456789]\d{9}$/.test(e)?a():a(new Error("格式不正确!"))};return{loading:!1,merId:"",direction:"rtl",activeName:"detail",ruleValidate:{mer_name:[{required:!0,message:"请输入商户名称",trigger:"blur"}],mer_account:[{required:!0,message:"请输入商户账号",trigger:"blur"}],category_id:[{required:!0,message:"请选择商户分类",trigger:"change"}],type_id:[{required:!0,message:"请选择店铺类型",trigger:"change"}],mer_phone:[{required:!0,validator:t,trigger:"blur"}]}}},filters:{},mounted:function(){},methods:{modifyCopy:function(){this.$emit("modifyCopy")},resetData:function(){this.$refs.merDataField.resetFields()},onSubmit:function(t){var e=this;this.$refs["merDataField"].validate((function(a){a&&(e.loading=!0,Object(r["T"])(t,e.merData).then(function(){var t=Object(g["a"])(Object(h["a"])().mark((function t(a){return Object(h["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.$message.success(a.message),e.loading=!1,e.$emit("success");case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$message.error(t.message)})))}))},handleCreate:function(){var t=this;this.$refs["merDataField"].validate((function(e){if(e)Object(r["E"])(t.merData).then(function(){var e=Object(g["a"])(Object(h["a"])().mark((function e(a){return Object(h["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.$message.success(a.message),t.$emit("success");case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$message.error(e.message)}));else{if(!t.merData.mer_name)return t.$message.error("请填写基本信息-商户名称");if(!t.merData.category_id)return t.$message.error("请选择基本信息-商户分类");if(!t.merData.type_id)return t.$message.error("请选择基本信息-店铺类型");if(!t.merData.mer_account)return t.$message.error("请填写账号信息-商户账号");if(!t.merData.mer_phone)return t.$message.error("请填写账号信息-联系电话")}}))}}},y=b,D=(a("cff4"),Object(d["a"])(y,_,p,!1,null,"003cc9e8",null)),w=D.exports,C={props:{drawer:{type:Boolean,default:!1},merCateList:{type:Array,default:[]},storeType:{type:Array,default:[]}},components:{merInfo:f,merEditForm:w},data:function(){return{loading:!0,merId:"",isEdit:!1,isAdd:!1,direction:"rtl",activeName:"detail",merData:{},orderImg:a("9bcd")}},filters:{},methods:{handleClose:function(){this.isEdit||this.isAdd?(this.$refs.editForm.resetData(),this.$refs.editForm.activeName="detail"):this.$refs.merInfo.activeName="detail",this.$emit("closeDrawer")},getInfo:function(t){var e=this;this.merId=t,this.isAdd=!1,Object(r["G"])(t).then((function(t){e.loading=!1,e.drawer=!0,e.merData=t.data,e.isEdit||e.$refs.merInfo.onOperateLog(e.merId)})).catch((function(t){e.$message.error(t.message)}))},initData:function(){this.merData={is_trader:0},this.isEdit=!1,this.isAdd=!0,this.loading=!1},merEdit:function(){var t=this;this.isEdit=!0,this.$nextTick((function(){t.getInfo(t.merId)}))},cancelEdit:function(){this.isEdit=!1},editSuccess:function(){this.isAdd?this.handleClose():this.isEdit=!1,this.$emit("getList")},modifyCopy:function(){this.$emit("handleTimes",this.merId)},handleCommand:function(){this.$emit("onPassword",this.merId)},saveInfo:function(){var t=this;this.$refs.editForm.onSubmit(this.merId),setTimeout((function(){t.getInfo(t.merId)}),500)},submitInfo:function(){this.$refs.editForm.handleCreate()}}},k=C,x=(a("154b"),Object(d["a"])(k,n,l,!1,null,"df23b8ae",null)),A=x.exports,F=a("e572"),L=a("83d6"),O=a("bbcc"),z=a("a78e"),T=a.n(z),I=a("0b65"),$={name:"MerchantList",components:{merDetail:A},data:function(){return{fromList:F["a"],pickerOptions:I["a"],roterPre:L["roterPre"],isChecked:!1,listLoading:!0,merCateList:[],storeType:[],headeNum:[{count:"",type:"1",title:"正常开启的商户"},{count:"",type:"0",title:"已关闭商户"}],tableData:{data:[],total:0},tableFrom:{page:1,limit:20,date:"",status:"1",keyword:"",is_trader:"",is_best:"",category_id:"",type_id:""},autoUpdate:!0,merId:"",drawer:!1,timeVal:[]}},mounted:function(){this.getHeadNum(),this.getMerCategory(),this.getStoreType(),this.getList("")},methods:{searchReset:function(){this.timeVal=[],this.tableFrom.date="",this.$refs.searchForm.resetFields(),this.getList(1)},onLogo:function(t){var e=this;Object(r["J"])(t).then((function(t){T.a.set("merchantToken",t.data.token),window.open(O["a"].httpUrl+t.data.url)})).catch((function(t){e.$message.error(t.message)}))},onchangeTime:function(t){this.timeVal=t,this.tableFrom.date=this.timeVal?this.timeVal.join("-"):"",this.tableFrom.page=1,this.getList("")},getHeadNum:function(){var t=this;Object(r["D"])().then((function(e){t.headeNum[0]["count"]=e.data.valid,t.headeNum[1]["count"]=e.data.invalid})).catch((function(t){}))},getMerCategory:function(){var t=this;Object(r["k"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getStoreType:function(){var t=this;Object(r["m"])().then((function(e){t.storeType=e.data})).catch((function(e){t.$message.error(e.message)}))},getList:function(t){var e=this;this.listLoading=!0,this.tableFrom.page=t||this.tableFrom.page,Object(r["I"])(this.tableFrom).then((function(t){e.tableData.data=t.data.list,e.tableData.total=t.data.count,e.listLoading=!1})).catch((function(t){e.listLoading=!1,e.$message.error(t.message)}))},pageChange:function(t){this.tableFrom.page=t,this.getList("")},handleSizeChange:function(t){this.tableFrom.limit=t,this.getList(1)},onchangeIsShow:function(t){var e=this,a=1===t.is_best?"是否开启推荐商户":"是否关闭推荐商户";this.$modalSure(a).then((function(){Object(r["Q"])(t.mer_id,t.is_best).then((function(t){var a=t.message;e.$message.success(a),e.getList("")})).catch((function(t){var a=t.message;e.getList(""),e.$message.error(a)}))}))},onchangeIsClose:function(t){var e=this;Object(r["H"])(t.mer_id,t.status).then((function(t){var a=t.message;e.$message.success(a),e.getList(""),e.getHeadNum()})).catch((function(t){var a=t.message;e.$message.error(a)}))},onAdd:function(){this.drawer=!0,this.$refs.merDetail.initData()},onEdit:function(t){this.merId=t,this.$refs.merDetail.isEdit=!0,this.$refs.merDetail.getInfo(t),this.drawer=!0},onDetails:function(t){this.merId=t,this.$refs.merDetail.isEdit=!1,this.$refs.merDetail.getInfo(t),this.drawer=!0},changeDrawer:function(t){this.drawer=t},closeDrawer:function(){this.drawer=!1},handleDelete:function(t){var e=this;this.$modalForm(Object(r["F"])(t)).then((function(){return e.getList("")}))},onDeduct:function(t){var e=this;this.$modalForm(Object(r["t"])(t)).then((function(){return e.getList("")}))},handleTimes:function(t){var e=this;this.$modalForm(Object(r["i"])(t)).then((function(){return e.getList("")}))},onPassword:function(t){this.$modalForm(Object(r["P"])(t))}}},N=$,E=Object(d["a"])(N,s,i,!1,null,"0c4a235d",null);e["default"]=E.exports},cff4:function(t,e,a){"use strict";a("5f66")},dff3:function(t,e,a){"use strict";a("9716")},e572:function(t,e,a){"use strict";a.d(e,"c",(function(){return s})),a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return r}));var s=[{label:"开启",value:1},{label:"关闭",value:0}],i={title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},r={title:"状态",custom:!0,fromTxt:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"审核已通过",val:"1"},{text:"审核未通过",val:"2"}]}}}]);