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.
 
 
 
 
 
crmeb_php/public/system/js/chunk-f4a0910a.980b55f7.js

1 lines
16 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f4a0910a"],{8492:function(t,e,n){"use strict";n.d(e,"J",(function(){return r})),n.d(e,"H",(function(){return o})),n.d(e,"K",(function(){return i})),n.d(e,"I",(function(){return c})),n.d(e,"F",(function(){return s})),n.d(e,"C",(function(){return u})),n.d(e,"P",(function(){return l})),n.d(e,"D",(function(){return m})),n.d(e,"M",(function(){return d})),n.d(e,"L",(function(){return f})),n.d(e,"g",(function(){return h})),n.d(e,"e",(function(){return g})),n.d(e,"h",(function(){return p})),n.d(e,"f",(function(){return b})),n.d(e,"A",(function(){return v})),n.d(e,"Q",(function(){return y})),n.d(e,"T",(function(){return _})),n.d(e,"S",(function(){return k})),n.d(e,"R",(function(){return w})),n.d(e,"G",(function(){return x})),n.d(e,"q",(function(){return F})),n.d(e,"d",(function(){return L})),n.d(e,"p",(function(){return C})),n.d(e,"r",(function(){return $})),n.d(e,"i",(function(){return O})),n.d(e,"n",(function(){return j})),n.d(e,"o",(function(){return S})),n.d(e,"l",(function(){return z})),n.d(e,"bb",(function(){return T})),n.d(e,"E",(function(){return D})),n.d(e,"B",(function(){return N})),n.d(e,"X",(function(){return M})),n.d(e,"Z",(function(){return V})),n.d(e,"W",(function(){return E})),n.d(e,"ab",(function(){return I})),n.d(e,"Y",(function(){return P})),n.d(e,"O",(function(){return H})),n.d(e,"N",(function(){return W})),n.d(e,"m",(function(){return A})),n.d(e,"k",(function(){return B})),n.d(e,"j",(function(){return J})),n.d(e,"c",(function(){return U})),n.d(e,"a",(function(){return G})),n.d(e,"b",(function(){return q})),n.d(e,"U",(function(){return K})),n.d(e,"V",(function(){return Q})),n.d(e,"s",(function(){return R})),n.d(e,"v",(function(){return X})),n.d(e,"x",(function(){return Y})),n.d(e,"z",(function(){return Z})),n.d(e,"y",(function(){return tt})),n.d(e,"w",(function(){return et})),n.d(e,"u",(function(){return nt})),n.d(e,"t",(function(){return at}));var a=n("0c6d");function r(t){return a["a"].get("merchant/menu/lst",t)}function o(){return a["a"].get("merchant/menu/create/form")}function i(t){return a["a"].get("merchant/menu/update/form/".concat(t))}function c(t){return a["a"].delete("merchant/menu/delete/".concat(t))}function s(t){return a["a"].get("system/merchant/lst",t)}function u(){return a["a"].get("system/merchant/create/form")}function l(t){return a["a"].get("system/merchant/update/form/".concat(t))}function m(t){return a["a"].delete("system/merchant/delete/".concat(t))}function d(t,e){return a["a"].post("system/merchant/status/".concat(t),{status:e})}function f(t){return a["a"].get("system/merchant/password/form/".concat(t))}function h(t){return a["a"].get("system/merchant/category/lst",t)}function g(){return a["a"].get("system/merchant/category/form")}function p(t){return a["a"].get("system/merchant/category/form/".concat(t))}function b(t){return a["a"].delete("system/merchant/category/".concat(t))}function v(t,e){return a["a"].get("merchant/order/lst/".concat(t),e)}function y(t){return a["a"].get("merchant/order/mark/".concat(t,"/form"))}function _(t,e){return a["a"].get("merchant/order/refund/lst/".concat(t),e)}function k(t){return a["a"].get("merchant/order/refund/mark/".concat(t,"/form"))}function w(t,e){return a["a"].post("merchant/order/reconciliation/create/".concat(t),e)}function x(t){return a["a"].post("system/merchant/login/".concat(t))}function F(t){return a["a"].get("merchant/intention/lst",t)}function L(t){return a["a"].get("merchant/intention/mark/".concat(t,"/form"))}function C(t){return a["a"].delete("merchant/intention/delete/".concat(t))}function $(t){return a["a"].get("merchant/intention/status/".concat(t,"/form"))}function O(t){return a["a"].get("system/merchant/changecopy/".concat(t,"/form"))}function j(){return a["a"].get("agreement/sys_intention_agree")}function S(t){return a["a"].post("agreement/sys_intention_agree",t)}function z(t){return a["a"].get("agreement/".concat(t))}function T(t,e){return a["a"].post("agreement/".concat(t),e)}function D(t,e){return a["a"].post("system/merchant/close/".concat(t),{status:e})}function N(){return a["a"].get("system/merchant/count")}function M(t){return a["a"].post("merchant/type/create",t)}function V(t){return a["a"].get("merchant/type/lst",t)}function E(){return a["a"].get("merchant/mer_auth")}function I(t,e){return a["a"].post("merchant/type/update/".concat(t),e)}function P(t){return a["a"].delete("merchant/type/delete/".concat(t))}function H(t){return a["a"].get("merchant/type/mark/".concat(t))}function W(t){return a["a"].get("/merchant/type/detail/".concat(t))}function A(){return a["a"].get("merchant/type/options")}function B(){return a["a"].get("system/merchant/category/options")}function J(t){return a["a"].get("system/applyments/lst",t)}function U(t,e){return a["a"].post("system/applyments/status/".concat(t),e)}function G(t){return a["a"].get("system/applyments/detail/".concat(t))}function q(t){return a["a"].get("profitsharing/lst",t)}function K(t){return a["a"].post("profitsharing/again/".concat(t))}function Q(t){return a["a"].get("system/applyments/mark/".concat(t,"/form"))}function R(t){return a["a"].get("profitsharing/export",t)}function X(t){return a["a"].get("margin/lst",t)}function Y(t){return a["a"].get("margin/refund/lst",t)}function Z(t){return a["a"].get("margin/refund/status/".concat(t,"/form"))}function tt(t){return a["a"].get("margin/refund/mark/".concat(t,"/form"))}function et(t){return a["a"].get("margin/refund/show/".concat(t))}function nt(t,e){return a["a"].get("margin/list/".concat(t),e)}function at(t){return a["a"].get("margin/set/".concat(t,"/form"))}},cec0:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"divBox"},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{size:"small","label-width":"100px",inline:!0}},[n("el-form-item",{staticStyle:{display:"inline-block"},attrs:{label:"选择时间:"}},[n("el-radio-group",{attrs:{size:"small"},on:{change:function(e){return t.selectChange(t.tableFrom.date)}},model:{value:t.tableFrom.date,callback:function(e){t.$set(t.tableFrom,"date",e)},expression:"tableFrom.date"}},t._l(t.fromList.fromTxt,(function(e,a){return n("el-radio-button",{key:a,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),t._v(" "),n("el-date-picker",{attrs:{type:"daterange",placeholder:"选择日期",format:"yyyy/MM/dd","value-format":"yyyy/MM/dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),t._v(" "),n("el-form-item",{staticStyle:{display:"inline-block"},attrs:{label:"关键字:","label-width":"80px"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入店铺关键字/店铺名/联系电话"},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"}},[n("el-button",{staticClass:"el-button-solt",attrs:{slot:"append",icon:"el-icon-search"},on:{click:function(e){return t.getList(1)}},slot:"append"})],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"商户类别:"}},[n("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"}},[n("el-option",{attrs:{label:"自营",value:"1"}}),t._v(" "),n("el-option",{attrs:{label:"非自营",value:"0"}})],1)],1),t._v(" "),n("el-form-item",{attrs:{label:"商户分类:"}},[n("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 n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),n("el-form-item",{attrs:{label:"店铺类型:"}},[n("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 n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1),t._v(" "),t.headeNum.length>0?n("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 n("el-tab-pane",{key:e,attrs:{name:t.type.toString(),label:t.title+"("+t.count+")"}})})),1):t._e()],1)],1),t._v(" "),n("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onAdd}},[t._v("添加商户")])],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticClass:"switchTable",staticStyle:{width:"100%"},attrs:{data:t.tableData.data,size:"small","highlight-current-row":""}},[n("el-table-column",{attrs:{prop:"mer_id",label:"ID","min-width":"60"}}),t._v(" "),n("el-table-column",{attrs:{prop:"mer_name",label:"商户名称","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{prop:"real_name",label:"商户姓名","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{prop:"mark",label:"备注","min-width":"200"}}),t._v(" "),n("el-table-column",{attrs:{prop:"status",label:"推荐","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"是","inactive-text":"否",disabled:""},nativeOn:{click:function(n){return t.onchangeIsShow(e.row)}},model:{value:e.row.is_best,callback:function(n){t.$set(e.row,"is_best",n)},expression:"scope.row.is_best"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"create_time",label:"创建时间","min-width":"150"}}),t._v(" "),n("el-table-column",{attrs:{prop:"margin",label:"保证金","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(1==e.row.is_margin?"未支付":0==e.row.is_margin?"无":"已支付"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"sort",label:"排序","min-width":"100"}}),t._v(" "),n("el-table-column",{attrs:{prop:"status",label:"开启/关闭","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-switch",{attrs:{"active-value":1,"inactive-value":0,"active-text":"开启","inactive-text":"关闭",disabled:""},nativeOn:{click:function(n){return t.onchangeIsClose(e.row)}},model:{value:e.row.status,callback:function(n){t.$set(e.row,"status",n)},expression:"scope.row.status"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"280",fixed:"right",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return["1"===t.tableFrom.status?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.onLogo(e.row.mer_id)}}},[t._v("登录")]):t._e(),t._v(" "),n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.onEdit(e.row.mer_id)}}},[t._v("编辑")]),t._v(" "),"1"===t.tableFrom.status?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.onPassword(e.row.mer_id)}}},[t._v("修改管理员密码")]):t._e(),t._v(" "),"0"===t.tableFrom.status?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.handleDelete(e.row.mer_id,e.$index)}}},[t._v("删除")]):t._e(),t._v(" "),"1"===t.tableFrom.status?n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return t.handleTimes(e.row.mer_id)}}},[t._v("设置第三方平台商品复制次数")]):t._e()]}}])})],1),t._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{"page-sizes":[20,40,60,80],"page-size":t.tableFrom.limit,"current-page":t.tableFrom.page,layout:"total, sizes, prev, pager, next, jumper",total:t.tableData.total},on:{"size-change":t.handleSizeChange,"current-change":t.pageChange}})],1)],1)],1)},r=[],o=n("8492"),i=n("e572"),c=n("83d6"),s=n("bbcc"),u=n("a78e"),l=n.n(u),m={name:"MerchantList",data:function(){return{fromList:i["a"],roterPre:c["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:"",category_id:"",type_id:""},autoUpdate:!0,timeVal:[]}},mounted:function(){this.getHeadNum(),this.getMerCategory(),this.getStoreType(),this.getList("")},methods:{onLogo:function(t){var e=this;Object(o["G"])(t).then((function(t){l.a.set("merchantToken",t.data.token),window.open(s["a"].httpUrl+t.data.url)})).catch((function(t){e.$message.error(t.message)}))},selectChange:function(t){this.tableFrom.date=t,this.timeVal=[],this.tableFrom.page=1,this.getList("")},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(o["B"])().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(o["k"])().then((function(e){t.merCateList=e.data})).catch((function(e){t.$message.error(e.message)}))},getStoreType:function(){var t=this;Object(o["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(o["F"])(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,n=0===t.is_best?"是否开启推荐商户":"是否关闭推荐商户";this.$modalSure(n).then((function(){Object(o["M"])(t.mer_id,1===t.is_best?0:1).then((function(t){var n=t.message;e.$message.success(n),e.getList("")})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},onchangeIsClose:function(t){var e=this;Object(o["E"])(t.mer_id,1===t.status?0:1).then((function(t){var n=t.message;e.$message.success(n),e.getList("")})).catch((function(t){var n=t.message;e.$message.error(n)}))},onAdd:function(){var t=this;this.$modalForm(Object(o["C"])()).then((function(){return t.getList("")}))},onEdit:function(t){var e=this;this.$modalForm(Object(o["P"])(t)).then((function(){return e.getList("")}))},handleDelete:function(t){var e=this;this.$modalSure("该商户下有相关数据信息,删除后不可恢复,您是否确定删除").then((function(){Object(o["D"])(t).then((function(t){var n=t.message;e.$message.success(n),e.getList(""),e.getHeadNum()})).catch((function(t){var n=t.message;e.$message.error(n)}))}))},onDeduct:function(t){var e=this;this.$modalForm(Object(o["t"])(t)).then((function(){return e.getList("")}))},handleTimes:function(t){var e=this;this.$modalForm(Object(o["i"])(t)).then((function(){return e.getList("")}))},onPassword:function(t){this.$modalForm(Object(o["L"])(t))}}},d=m,f=n("2877"),h=Object(f["a"])(d,a,r,!1,null,"94e8a1ea",null);e["default"]=h.exports},e572:function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var a=[{label:"开启",value:1},{label:"关闭",value:0}],r={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"}]},o={title:"状态",custom:!0,fromTxt:[{text:"全部",val:""},{text:"待审核",val:"0"},{text:"审核已通过",val:"1"},{text:"审核未通过",val:"2"}]}}}]);