(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d3191b2e"],{"635a":function(e,t,n){},"771d":function(e,t,n){"use strict";n("ae75")},a57d:function(e,t,n){"use strict";n("afb8")},ae75:function(e,t,n){},afb8:function(e,t,n){},b7be:function(e,t,n){"use strict";n.d(t,"Qb",(function(){return a})),n.d(t,"Pb",(function(){return o})),n.d(t,"Lb",(function(){return i})),n.d(t,"Kb",(function(){return s})),n.d(t,"Jb",(function(){return c})),n.d(t,"Mb",(function(){return l})),n.d(t,"Nb",(function(){return u})),n.d(t,"Ob",(function(){return d})),n.d(t,"W",(function(){return p})),n.d(t,"R",(function(){return f})),n.d(t,"S",(function(){return m})),n.d(t,"U",(function(){return h})),n.d(t,"T",(function(){return b})),n.d(t,"Db",(function(){return v})),n.d(t,"Q",(function(){return _})),n.d(t,"x",(function(){return g})),n.d(t,"D",(function(){return w})),n.d(t,"v",(function(){return k})),n.d(t,"u",(function(){return y})),n.d(t,"w",(function(){return x})),n.d(t,"Eb",(function(){return F})),n.d(t,"Fb",(function(){return C})),n.d(t,"nc",(function(){return O})),n.d(t,"A",(function(){return I})),n.d(t,"z",(function(){return D})),n.d(t,"E",(function(){return S})),n.d(t,"i",(function(){return $})),n.d(t,"mc",(function(){return j})),n.d(t,"jc",(function(){return L})),n.d(t,"lc",(function(){return z})),n.d(t,"ic",(function(){return M})),n.d(t,"kc",(function(){return T})),n.d(t,"Zb",(function(){return P})),n.d(t,"oc",(function(){return N})),n.d(t,"y",(function(){return V})),n.d(t,"C",(function(){return E})),n.d(t,"B",(function(){return W})),n.d(t,"O",(function(){return B})),n.d(t,"G",(function(){return R})),n.d(t,"J",(function(){return U})),n.d(t,"K",(function(){return q})),n.d(t,"I",(function(){return H})),n.d(t,"L",(function(){return K})),n.d(t,"P",(function(){return G})),n.d(t,"N",(function(){return Y})),n.d(t,"M",(function(){return A})),n.d(t,"F",(function(){return J})),n.d(t,"H",(function(){return Q})),n.d(t,"V",(function(){return X})),n.d(t,"pb",(function(){return Z})),n.d(t,"ob",(function(){return ee})),n.d(t,"hc",(function(){return te})),n.d(t,"fb",(function(){return ne})),n.d(t,"rc",(function(){return re})),n.d(t,"cb",(function(){return ae})),n.d(t,"ab",(function(){return oe})),n.d(t,"bb",(function(){return ie})),n.d(t,"gc",(function(){return se})),n.d(t,"X",(function(){return ce})),n.d(t,"o",(function(){return le})),n.d(t,"n",(function(){return ue})),n.d(t,"m",(function(){return de})),n.d(t,"l",(function(){return pe})),n.d(t,"k",(function(){return fe})),n.d(t,"Y",(function(){return me})),n.d(t,"t",(function(){return he})),n.d(t,"r",(function(){return be})),n.d(t,"q",(function(){return ve})),n.d(t,"s",(function(){return _e})),n.d(t,"p",(function(){return ge})),n.d(t,"kb",(function(){return we})),n.d(t,"ib",(function(){return ke})),n.d(t,"mb",(function(){return ye})),n.d(t,"jb",(function(){return xe})),n.d(t,"lb",(function(){return Fe})),n.d(t,"Z",(function(){return Ce})),n.d(t,"Bb",(function(){return Oe})),n.d(t,"Ab",(function(){return Ie})),n.d(t,"yb",(function(){return De})),n.d(t,"Cb",(function(){return Se})),n.d(t,"eb",(function(){return $e})),n.d(t,"xb",(function(){return je})),n.d(t,"zb",(function(){return Le})),n.d(t,"wb",(function(){return ze})),n.d(t,"sb",(function(){return Me})),n.d(t,"ub",(function(){return Te})),n.d(t,"tb",(function(){return Pe})),n.d(t,"nb",(function(){return Ne})),n.d(t,"db",(function(){return Ve})),n.d(t,"qb",(function(){return Ee})),n.d(t,"vb",(function(){return We})),n.d(t,"rb",(function(){return Be})),n.d(t,"a",(function(){return Re})),n.d(t,"pc",(function(){return Ue})),n.d(t,"d",(function(){return qe})),n.d(t,"f",(function(){return He})),n.d(t,"c",(function(){return Ke})),n.d(t,"j",(function(){return Ge})),n.d(t,"b",(function(){return Ye})),n.d(t,"h",(function(){return Ae})),n.d(t,"e",(function(){return Je})),n.d(t,"g",(function(){return Qe})),n.d(t,"Sb",(function(){return Xe})),n.d(t,"ac",(function(){return Ze})),n.d(t,"Vb",(function(){return et})),n.d(t,"Tb",(function(){return tt})),n.d(t,"Ub",(function(){return nt})),n.d(t,"Wb",(function(){return rt})),n.d(t,"Yb",(function(){return at})),n.d(t,"gb",(function(){return ot})),n.d(t,"hb",(function(){return it})),n.d(t,"dc",(function(){return st})),n.d(t,"fc",(function(){return ct})),n.d(t,"Xb",(function(){return lt})),n.d(t,"cc",(function(){return ut})),n.d(t,"bc",(function(){return dt})),n.d(t,"ec",(function(){return pt}));var r=n("0c6d");function a(e){return r["a"].get("/store/coupon/platformLst",e)}function o(e){return r["a"].get("/store/coupon/update/".concat(e,"/form"))}function i(e){return r["a"].get("/store/coupon/show/".concat(e))}function s(e){return r["a"].delete("store/coupon/delete/".concat(e))}function c(e){return r["a"].get("/store/coupon/sys/clone/".concat(e,"/form"))}function l(e){return r["a"].get("store/coupon/sys/issue",e)}function u(e,t){return r["a"].get("store/coupon/show_lst/".concat(e),t)}function d(e){return r["a"].get("/store/coupon/send/lst",e)}function p(e){return r["a"].post("store/coupon/send",e)}function f(e){return r["a"].get("store/coupon/detail/".concat(e))}function m(e){return r["a"].get("store/coupon/lst",e)}function h(e,t){return r["a"].post("store/coupon/status/".concat(e),{status:t})}function b(){return r["a"].get("store/coupon/create/form")}function v(e){return r["a"].get("store/coupon/issue",e)}function _(e){return r["a"].delete("store/coupon/delete/".concat(e))}function g(e){return r["a"].get("broadcast/room/lst",e)}function w(e,t){return r["a"].post("broadcast/room/status/".concat(e),t)}function k(e){return r["a"].delete("broadcast/room/delete/".concat(e))}function y(e){return r["a"].get("broadcast/room/apply/form/".concat(e))}function x(e){return r["a"].get("broadcast/room/detail/".concat(e))}function F(e,t){return r["a"].post("broadcast/room/feedsPublic/".concat(e),{status:t})}function C(e,t){return r["a"].post("broadcast/room/comment/".concat(e),{status:t})}function O(e,t){return r["a"].post("broadcast/room/closeKf/".concat(e),{status:t})}function I(e){return r["a"].get("broadcast/goods/lst",e)}function D(e){return r["a"].get("broadcast/goods/detail/".concat(e))}function S(e,t){return r["a"].post("broadcast/goods/status/".concat(e),t)}function $(e){return r["a"].get("broadcast/goods/apply/form/".concat(e))}function j(){return r["a"].get("seckill/config/create/form")}function L(e){return r["a"].get("seckill/config/lst",e)}function z(e){return r["a"].get("seckill/config/update/".concat(e,"/form"))}function M(e){return r["a"].delete("seckill/config/delete/".concat(e))}function T(e,t){return r["a"].post("seckill/config/status/".concat(e),{status:t})}function P(e,t){return r["a"].get("seckill/product/detail/".concat(e),t)}function N(e,t){return r["a"].get("broadcast/room/goods/".concat(e),t)}function V(e){return r["a"].delete("broadcast/goods/delete/".concat(e))}function E(e,t){return r["a"].post("broadcast/room/sort/".concat(e),t)}function W(e,t){return r["a"].post("broadcast/goods/sort/".concat(e),t)}function B(e){return r["a"].post("config/others/group_buying",e)}function R(){return r["a"].get("config/others/group_buying")}function U(e){return r["a"].get("store/product/group/lst",e)}function q(e){return r["a"].get("store/product/group/get/".concat(e))}function H(e){return r["a"].get("store/product/group/detail/".concat(e))}function K(e){return r["a"].post("store/product/group/status",e)}function G(e,t){return r["a"].post("store/product/group/is_show/".concat(e),{status:t})}function Y(e){return r["a"].get("store/product/group/get/".concat(e))}function A(e,t){return r["a"].post("store/product/group/update/".concat(e),t)}function J(e){return r["a"].get("store/product/group/buying/lst",e)}function Q(e,t){return r["a"].get("store/product/group/buying/detail/".concat(e),t)}function X(e,t){return r["a"].get("store/coupon/product/".concat(e),t)}function Z(){return r["a"].get("user/integral/title")}function ee(e){return r["a"].get("user/integral/lst",e)}function te(e){return r["a"].get("user/integral/excel",e)}function ne(){return r["a"].get("user/integral/config")}function re(e){return r["a"].post("user/integral/config",e)}function ae(e){return r["a"].get("discounts/lst",e)}function oe(e,t){return r["a"].post("discounts/status/".concat(e),{status:t})}function ie(e){return r["a"].get("discounts/detail/".concat(e))}function se(e){return r["a"].get("marketing/spu/lst",e)}function ce(e){return r["a"].post("activity/atmosphere/create",e)}function le(e,t){return r["a"].post("activity/atmosphere/update/".concat(e),t)}function ue(e){return r["a"].get("activity/atmosphere/lst",e)}function de(e){return r["a"].get("activity/atmosphere/detail/".concat(e))}function pe(e,t){return r["a"].post("activity/atmosphere/status/".concat(e),{status:t})}function fe(e){return r["a"].delete("activity/atmosphere/delete/".concat(e))}function me(e){return r["a"].post("activity/border/create",e)}function he(e,t){return r["a"].post("activity/border/update/".concat(e),t)}function be(e){return r["a"].get("activity/border/lst",e)}function ve(e){return r["a"].get("activity/border/detail/".concat(e))}function _e(e,t){return r["a"].post("activity/border/status/".concat(e),{status:t})}function ge(e){return r["a"].delete("activity/border/delete/".concat(e))}function we(){return r["a"].get("points/cate/lst")}function ke(){return r["a"].get("points/cate/create/form")}function ye(e){return r["a"].get("points/cate/update/form/".concat(e))}function xe(e){return r["a"].delete("points/cate/delete/".concat(e))}function Fe(e,t){return r["a"].post("points/cate/status/".concat(e),{status:t})}function Ce(e){return r["a"].post("points/product/create",e)}function Oe(e,t){return r["a"].post("points/product/update/".concat(e),t)}function Ie(e){return r["a"].get("points/product/lst",e)}function De(e){return r["a"].delete("points/product/delete/".concat(e))}function Se(e,t){return r["a"].post("points/product/status/".concat(e),{status:t})}function $e(e,t){return r["a"].post("points/product/get_attr_value/".concat(e),t)}function je(){return r["a"].get("points/cate/select")}function Le(e){return r["a"].get("points/product/detail/".concat(e))}function ze(e){return r["a"].get("points/order/lst",e)}function Me(e){return r["a"].get("points/order/detail/".concat(e))}function Te(e){return r["a"].get("points/order/express/".concat(e))}function Pe(e){return r["a"].get("points/order/excel",e)}function Ne(e,t){return r["a"].post("points/order/delivery/".concat(e),t)}function Ve(e){return r["a"].get("store/express/options",e)}function Ee(e){return r["a"].get("points/order/mark/".concat(e,"/form"))}function We(e,t){return r["a"].get("points/order/status/".concat(e),t)}function Be(e){return r["a"].delete("points/order/delete/".concat(e))}function Re(e){return r["a"].post("activity/form/create",e)}function Ue(){return r["a"].get("system/form/select")}function qe(e){return r["a"].get("activity/form/lst",e)}function He(e,t){return r["a"].post("activity/form/status/".concat(e),{status:t})}function Ke(e){return r["a"].get("activity/form/detail/".concat(e))}function Ge(e,t){return r["a"].get("system/form/info/".concat(e),t)}function Ye(e){return r["a"].delete("activity/form/delete/".concat(e))}function Ae(e,t){return r["a"].get("activity/form/user/lst/".concat(e),t)}function Je(e,t){return r["a"].get("activity/form/excel/".concat(e),t)}function Qe(e,t){return r["a"].post("activity/form/update/".concat(e),t)}function Xe(e){return r["a"].post("seckill/active/create",e)}function Ze(e){return r["a"].get("seckill/config/select",e)}function et(e){return r["a"].get("seckill/active/lst",e)}function tt(e){return r["a"].delete("seckill/active/delete/".concat(e))}function nt(e){return r["a"].get("seckill/active/detail/".concat(e))}function rt(e,t){return r["a"].post("seckill/active/update/".concat(e),t)}function at(e,t){return r["a"].post("seckill/active/update_status/".concat(e),{status:t})}function ot(e){return r["a"].get("store/product/self_lst",e)}function it(e){return r["a"].get("seckill/product/list",e)}function st(e){return r["a"].get("seckill/product/switchStatus/".concat(e,"/form"))}function ct(e,t){return r["a"].post("seckill/product/update/".concat(e),t)}function lt(e){return r["a"].get("seckill/active/chart_panel/".concat(e))}function ut(e,t){return r["a"].get("seckill/active/chart_people/".concat(e),t)}function dt(e,t){return r["a"].get("seckill/active/chart_order/".concat(e),t)}function pt(e,t){return r["a"].get("seckill/active/chart_product/".concat(e),t)}},b9c2:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"divBox"},[n("div",{staticClass:"selCard"},[n("el-form",{ref:"searchForm",attrs:{model:e.userFrom,inline:"",size:"small","label-width":"85px"}},[e.collapse?n("div",{staticClass:"acea-row search-form"},[n("div",[n("el-form-item",{attrs:{label:"用户搜索:"}},[n("el-input",{staticClass:"input-with-select selWidth",attrs:{placeholder:"请输入内容",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.changeSearch(1)}},model:{value:e.keywords,callback:function(t){e.keywords=t},expression:"keywords"}},[n("el-select",{attrs:{slot:"prepend",clearable:"",placeholder:"请选择"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[n("el-option",{attrs:{label:"全部",value:""}},[e._v("全部")]),e._v(" "),n("el-option",{attrs:{label:"用户昵称",value:"nickname"}},[e._v("用户昵称")]),e._v(" "),n("el-option",{attrs:{label:"手机号",value:"phone"}},[e._v("手机号")]),e._v(" "),n("el-option",{attrs:{label:"用户ID",value:"uid"}},[e._v("用户ID")])],1)],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"用户分组:",prop:"group_id"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(t){return e.changeSearch(1)}},model:{value:e.userFrom.group_id,callback:function(t){e.$set(e.userFrom,"group_id",t)},expression:"userFrom.group_id"}},e._l(e.groupList,(function(e,t){return n("el-option",{key:t,attrs:{value:e.group_id,label:e.group_name}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{label:"用户标签:",prop:"label_id"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(t){return e.changeSearch(1)}},model:{value:e.userFrom.label_id,callback:function(t){e.$set(e.userFrom,"label_id",t)},expression:"userFrom.label_id"}},e._l(e.labelLists,(function(e,t){return n("el-option",{key:t,attrs:{value:e.label_id,label:e.label_name}})})),1)],1)],1),e._v(" "),n("el-form-item",{staticClass:"search-form-sub"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.changeSearch(1)}}},[e._v("搜索")]),e._v(" "),n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.searchReset()}}},[e._v("重置")]),e._v(" "),n("a",{staticClass:"ivu-ml-8 font12 ml10",on:{click:function(t){e.collapse=!e.collapse}}},[e.collapse?[e._v(" 展开 "),n("i",{staticClass:"el-icon-arrow-down"})]:[e._v(" 收起 "),n("i",{staticClass:"el-icon-arrow-up"})]],2)],1)],1):n("div",{staticClass:"acea-row search-form"},[n("div",{staticClass:"search-form-box"},[n("el-form-item",{attrs:{label:"用户搜索:"}},[n("el-input",{staticClass:"input-with-select selWidth",attrs:{placeholder:"请输入内容",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.changeSearch(1)}},model:{value:e.keywords,callback:function(t){e.keywords=t},expression:"keywords"}},[n("el-select",{attrs:{slot:"prepend",clearable:"",placeholder:"请选择"},slot:"prepend",model:{value:e.select,callback:function(t){e.select=t},expression:"select"}},[n("el-option",{attrs:{label:"全部",value:""}},[e._v("全部")]),e._v(" "),n("el-option",{attrs:{label:"用户昵称",value:"nickname"}},[e._v("用户昵称")]),e._v(" "),n("el-option",{attrs:{label:"手机号",value:"phone"}},[e._v("手机号")]),e._v(" "),n("el-option",{attrs:{label:"用户ID",value:"uid"}},[e._v("用户ID")])],1)],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"用户分组:",prop:"group_id"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(t){return e.changeSearch(1)}},model:{value:e.userFrom.group_id,callback:function(t){e.$set(e.userFrom,"group_id",t)},expression:"userFrom.group_id"}},e._l(e.groupList,(function(e,t){return n("el-option",{key:t,attrs:{value:e.group_id,label:e.group_name}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{label:"用户标签:",prop:"label_id"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(t){return e.changeSearch(1)}},model:{value:e.userFrom.label_id,callback:function(t){e.$set(e.userFrom,"label_id",t)},expression:"userFrom.label_id"}},e._l(e.labelLists,(function(e,t){return n("el-option",{key:t,attrs:{value:e.label_id,label:e.label_name}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{label:"用户类型:",prop:"is_svip"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(t){return e.changeSearch(1)}},model:{value:e.userFrom.is_svip,callback:function(t){e.$set(e.userFrom,"is_svip",t)},expression:"userFrom.is_svip"}},[n("el-option",{attrs:{value:"0",label:"普通用户"}},[e._v("普通用户")]),e._v(" "),n("el-option",{attrs:{value:"1",label:"付费会员"}},[e._v("付费会员")])],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"用户等级:",prop:"member_level"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(t){return e.changeSearch(1)}},model:{value:e.userFrom.member_level,callback:function(t){e.$set(e.userFrom,"member_level",t)},expression:"userFrom.member_level"}},e._l(e.memberList,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),n("el-form-item",{attrs:{label:"消费情况:",prop:"pay_count"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){return e.changeSearch(1)}},model:{value:e.userFrom.pay_count,callback:function(t){e.$set(e.userFrom,"pay_count",t)},expression:"userFrom.pay_count"}},[n("el-option",{attrs:{value:"-1",label:"0次"}}),e._v(" "),n("el-option",{attrs:{value:"0",label:"1次及以上"}}),e._v(" "),n("el-option",{attrs:{value:"1",label:"2次及以上"}}),e._v(" "),n("el-option",{attrs:{value:"2",label:"3次及以上"}}),e._v(" "),n("el-option",{attrs:{value:"3",label:"4次及以上"}}),e._v(" "),n("el-option",{attrs:{value:"4",label:"5次及以上"}})],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"访问时间:"}},[n("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",align:"right","unlink-panels":"",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间","picker-options":e.pickerOptions},on:{change:e.onchangeTime},model:{value:e.timeVal,callback:function(t){e.timeVal=t},expression:"timeVal"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"访问情况:",prop:"user_time_type"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:""},on:{change:function(t){return e.changeSearch(1)}},model:{value:e.userFrom.user_time_type,callback:function(t){e.$set(e.userFrom,"user_time_type",t)},expression:"userFrom.user_time_type"}},[n("el-option",{attrs:{value:"visit",label:"最后访问"}}),e._v(" "),n("el-option",{attrs:{value:"add_time",label:"首次访问"}})],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"性别:",prop:"sex"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(t){return e.changeSearch(1)}},model:{value:e.userFrom.sex,callback:function(t){e.$set(e.userFrom,"sex",t)},expression:"userFrom.sex"}},[n("el-option",{attrs:{value:"1",label:"男"}},[e._v("男")]),e._v(" "),n("el-option",{attrs:{value:"2",label:"女"}},[e._v("女")]),e._v(" "),n("el-option",{attrs:{value:"0",label:"保密"}},[e._v("保密")])],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"身份:",prop:"is_promoter"}},[n("el-select",{staticClass:"selWidth",attrs:{placeholder:"请选择",clearable:"",filterable:""},on:{change:function(t){return e.changeSearch(1)}},model:{value:e.userFrom.is_promoter,callback:function(t){e.$set(e.userFrom,"is_promoter",t)},expression:"userFrom.is_promoter"}},[n("el-option",{attrs:{value:"1",label:"推广员"}},[e._v("推广员")]),e._v(" "),n("el-option",{attrs:{value:"0",label:"普通会员"}},[e._v("普通会员")])],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"生日:"}},[n("el-date-picker",{staticStyle:{width:"250px"},attrs:{"value-format":"yyyy/MM/dd",align:"right","unlink-panels":"",format:"yyyy/MM/dd",size:"small",type:"daterange",placement:"bottom-end",placeholder:"自定义时间","picker-options":e.pickerOptions},on:{change:e.onchangeTime2},model:{value:e.timeVal2,callback:function(t){e.timeVal2=t},expression:"timeVal2"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"信息补充:"}},[n("el-input",{staticClass:"input-with-select selWidth",attrs:{placeholder:"请输入内容",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.changeSearch(1)}},model:{value:e.userFrom.fields_value,callback:function(t){e.$set(e.userFrom,"fields_value",t)},expression:"userFrom.fields_value"}},[n("el-select",{attrs:{slot:"prepend",clearable:"",placeholder:"请选择"},slot:"prepend",model:{value:e.userFrom.fields_type,callback:function(t){e.$set(e.userFrom,"fields_type",t)},expression:"userFrom.fields_type"}},e._l(e.selectList,(function(e,t){return n("el-option",{key:t,attrs:{label:e.label,value:e.value}})})),1)],1)],1)],1),e._v(" "),n("el-form-item",{staticClass:"search-form-sub"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.changeSearch(1)}}},[e._v("搜索")]),e._v(" "),n("el-button",{attrs:{size:"small"},on:{click:function(t){return e.searchReset()}}},[e._v("重置")]),e._v(" "),n("a",{staticClass:"ivu-ml-8 font12 ml10",on:{click:function(t){e.collapse=!e.collapse}}},[e.collapse?[e._v(" 展开 "),n("i",{staticClass:"el-icon-arrow-down"})]:[e._v(" 收起 "),n("i",{staticClass:"el-icon-arrow-up"})]],2)],1)],1)])],1),e._v(" "),n("el-card",{staticClass:"mt14"},[n("div",[n("el-tabs",{staticClass:"mb5",on:{"tab-click":function(t){return e.changeSearch(1)}},model:{value:e.user_type,callback:function(t){e.user_type=t},expression:"user_type"}},[n("el-tab-pane",{attrs:{label:"全部用户",name:""}}),e._v(" "),n("el-tab-pane",{attrs:{label:"微信用户",name:"wechat"}}),e._v(" "),n("el-tab-pane",{attrs:{label:"小程序用户",name:"routine"}}),e._v(" "),n("el-tab-pane",{attrs:{label:"H5用户",name:"h5"}}),e._v(" "),n("el-tab-pane",{attrs:{label:"APP",name:"app"}}),e._v(" "),n("el-tab-pane",{attrs:{label:"PC",name:"pc"}})],1),e._v(" "),n("div",{staticClass:"mb20"},[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.createUser}},[e._v("创建用户")]),e._v(" "),n("el-button",{directives:[{name:"show",rawName:"v-show",value:"wechat"===e.user_type,expression:"user_type === 'wechat'"}],attrs:{size:"small"},on:{click:e.sendNews}},[e._v("发送图文消息")]),e._v(" "),n("el-button",{attrs:{disabled:0==e.checkedIds.length,size:"small"},on:{click:e.batchGroup}},[e._v("批量设置分组")]),e._v(" "),n("el-button",{attrs:{disabled:0==e.checkedIds.length,size:"small"},on:{click:e.batchlabel}},[e._v("批量设置标签")]),e._v(" "),n("el-button",{attrs:{disabled:0==e.checkedIds.length,size:"small"},on:{click:e.setDistributor}},[e._v("批量设置分销员")]),e._v(" "),n("el-button",{attrs:{disabled:0==e.checkedIds.length,label:"default",size:"small"},on:{click:e.sendCoupon}},[e._v("发送优惠券")]),e._v(" "),n("el-button",{attrs:{size:"small"},on:{click:e.exportList}},[e._v("导出列表")])],1),e._v(" "),e.checkedIds.length>0||e.allCheck?n("el-alert",{staticClass:"mb10",attrs:{title:e.allCheck?"已选择 "+e.tableData.total+" 项":"已选择 "+e.checkedIds.length+" 项",type:"info","show-icon":""}}):e._e()],1),e._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{data:e.tableData.data,size:"small","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-form",{staticClass:"demo-table-expand",attrs:{"label-position":"left",inline:""}},[n("el-form-item",{attrs:{label:"首次访问:"}},[n("span",[e._v(e._s(t.row.create_time))])]),e._v(" "),n("el-form-item",{attrs:{label:"近次访问:"}},[n("span",[e._v(e._s(t.row.last_time))])]),e._v(" "),n("el-form-item",{attrs:{label:"身份证号:"}},[n("span",[e._v(e._s(t.row.card_id))])]),e._v(" "),n("el-form-item",{attrs:{label:"手机号:"}},[n("span",[e._v(e._s(t.row.phone))])]),e._v(" "),n("el-form-item",{attrs:{label:"真实姓名:"}},[n("span",[e._v(e._s(t.row.real_name))])]),e._v(" "),n("el-form-item",{attrs:{label:"标签:"}},e._l(t.row.label,(function(t,r){return n("span",{key:r,domProps:{textContent:e._s(t)}})})),0),e._v(" "),n("el-form-item",{attrs:{label:"生日:"}},[n("span",[e._v(e._s(t.row.birthday))])]),e._v(" "),n("el-form-item",{attrs:{label:"地址:"}},[n("span",{staticClass:"minwidth"},[e._v(e._s(t.row.addres))])]),e._v(" "),n("el-form-item",{attrs:{label:"备注:"}},[n("span",[e._v(e._s(t.row.mark))])])],1)]}}])}),e._v(" "),n("el-table-column",{attrs:{width:"50"},scopedSlots:e._u([{key:"header",fn:function(t){return[n("el-popover",{staticClass:"tabPop",attrs:{placement:"top-start",width:"100",trigger:"hover"}},[n("div",[n("span",{staticClass:"spBlock onHand",class:{check:"dan"===e.chkName},on:{click:function(n){return e.onHandle("dan",t.$index)}}},[e._v("选中本页")]),e._v(" "),n("span",{staticClass:"spBlock onHand",class:{check:"duo"===e.chkName},on:{click:function(t){return e.onHandle("duo")}}},[e._v("选中全部")])]),e._v(" "),n("el-checkbox",{attrs:{slot:"reference",value:"dan"===e.chkName&&e.checkedPage.indexOf(e.userFrom.page)>-1||"duo"===e.chkName},on:{change:e.changeType},slot:"reference"})],1)]}},{key:"default",fn:function(t){return[n("el-checkbox",{attrs:{disabled:t.row.cancel_time,value:!t.row.cancel_time&&(e.checkedIds.indexOf(t.row.uid)>-1||"duo"===e.chkName&&-1===e.noChecked.indexOf(t.row.uid))},on:{change:function(n){return e.changeOne(n,t.row)}}})]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"uid",label:"ID","min-width":"60"}}),e._v(" "),n("el-table-column",{attrs:{label:"头像","min-width":"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("div",{staticClass:"demo-image__preview"},[n("el-image",{staticStyle:{width:"36px",height:"36px"},attrs:{src:t.row.avatar?t.row.avatar:e.moren,"preview-src-list":[t.row.avatar||e.moren]}})],1)]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"昵称","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[n("div",{staticClass:"acea-row"},[n("i",{directives:[{name:"show",rawName:"v-show",value:1===r.sex,expression:"row.sex===1"}],staticClass:"el-icon-male mr5",staticStyle:{"font-size":"15px","margin-top":"3px",color:"#2db7f5"}}),e._v(" "),n("i",{directives:[{name:"show",rawName:"v-show",value:2===r.sex,expression:"row.sex===2"}],staticClass:"el-icon-female mr5",staticStyle:{"font-size":"15px","margin-top":"3px",color:"#ed4014"}}),e._v(" "),n("div",{domProps:{textContent:e._s(r.nickname)}})])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"is_svip",label:"付费会员","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[n("span",[e._v(e._s(r.is_svip>0?"是":"否"))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"phone",label:"手机号","min-width":"120"}}),e._v(" "),n("el-table-column",{attrs:{label:"等级","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[n("span",[e._v(e._s(r.member?r.member.brokerage_name:"-"))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"分组","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[n("span",[e._v(e._s(r.group?r.group.group_name:"无"))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"推荐人","min-width":"140"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[n("span",[e._v(e._s(r.spread?r.spread.nickname+" / "+r.spread.uid:"-"))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"用户类型","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[n("span",[e._v(e._s("routine"===r.user_type?"小程序":"wechat"===r.user_type?"公众号":"app"===r.user_type||"App"===r.user_type?"App":"pc"===r.user_type?"PC":"H5"))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"now_money",label:"余额",sortable:"","min-width":"100","sort-method":function(e,t){return e.now_money-t.now_money}}}),e._v(" "),n("el-table-column",{attrs:{prop:"integral",label:"当前可用积分","min-width":"100"}}),e._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"150",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.cancel_time?e._e():n("el-button",{attrs:{type:"text",size:"small"},on:{click:function(n){return e.onDetails(t.row.uid)}}},[e._v("详情")]),e._v(" "),n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small"},on:{click:function(n){return e.onEdit(t.row.uid)}}},[e._v("编辑")]),e._v(" "),n("el-dropdown",[n("span",{staticClass:"el-dropdown-link"},[e._v("\n 更多"),n("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[t.row.cancel_time?e._e():n("el-dropdown-item",{nativeOn:{click:function(n){return e.setMoney(t.row)}}},[e._v("设置余额")]),e._v(" "),t.row.cancel_time?e._e():n("el-dropdown-item",{nativeOn:{click:function(n){return e.changeIntegral(t.row)}}},[e._v("设置积分")]),e._v(" "),t.row.vip_name&&!t.row.cancel_time?n("el-dropdown-item",[e._v("清除等级")]):e._e(),e._v(" "),t.row.cancel_time?e._e():n("el-dropdown-item",{nativeOn:{click:function(n){return e.setGroup(t.row)}}},[e._v("设置分组")]),e._v(" "),t.row.cancel_time?e._e():n("el-dropdown-item",{nativeOn:{click:function(n){return e.setLabel(t.row)}}},[e._v("设置标签")]),e._v(" "),t.row.cancel_time?e._e():n("el-dropdown-item",{nativeOn:{click:function(n){return e.setModify(t.row)}}},[e._v("修改推荐人")]),e._v(" "),t.row.cancel_time?e._e():n("el-dropdown-item",{nativeOn:{click:function(n){return e.setPassword(t.row)}}},[e._v("修改密码")]),e._v(" "),t.row.cancel_time?e._e():n("el-dropdown-item",{nativeOn:{click:function(n){return e.setMember(t.row)}}},[e._v("编辑会员等级")]),e._v(" "),t.row.cancel_time?e._e():n("el-dropdown-item",{nativeOn:{click:function(n){return e.giveMember(t.row)}}},[e._v("付费会员设置")])],1)],1)]}}])})],1),e._v(" "),n("div",{staticClass:"block"},[n("el-pagination",{attrs:{background:"","page-size":e.userFrom.limit,"current-page":e.userFrom.page,layout:"total, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1)],1),e._v(" "),n("el-dialog",{staticClass:"dia",attrs:{title:"提示",visible:e.visible,width:"1000px","before-close":e.handleClose},on:{"update:visible":function(t){e.visible=t}}},[e.visible?n("news-category",{attrs:{"is-show-send":e.isShowSend,"wechat-ids":e.wechatIds,"user-ids":e.ids,"max-cols":e.maxCols}}):e._e()],1),e._v(" "),n("user-create",{ref:"userCreate",attrs:{createDrawer:e.createDrawer},on:{closeDrawer:e.closeDrawer,getList:e.changeSearch}}),e._v(" "),n("user-detail",{ref:"userDetails",attrs:{drawer:e.drawer,isUser:!0,labelLists:e.labelLists,groupList:e.groupList,memberList:e.memberList,"cancel-time":e.cancel_time},on:{closeDrawer:e.closeDrawer,changeDrawer:e.changeDrawer,onEdit:e.onEdit,setMoney:e.setMoney,changeIntegral:e.changeIntegral,setGroup:e.setGroup,setLabel:e.setLabel,setModify:e.setModify,setPassword:e.setPassword,setMember:e.setMember,giveMember:e.giveMember}}),e._v(" "),e.visibleCoupon?n("el-dialog",{attrs:{title:"优惠券列表",visible:e.visibleCoupon,width:"1000px"},on:{"update:visible":function(t){e.visibleCoupon=t}}},[e.visibleCoupon?n("coupon-List",{ref:"couponList",attrs:{couponForm:e.couponForm,checkedIds:e.checkedIds,allCheck:e.allCheck,userFrom:e.userFrom},on:{sendSuccess:e.sendSuccess}}):e._e()],1):e._e()],1)},a=[],o=(n("456d"),n("7514"),n("c80c")),i=(n("96cf"),n("3b8d")),s=(n("ac6a"),n("bd86")),c=n("c24f"),l=n("c42b"),u=n("a9c2"),d=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("el-drawer",{attrs:{"with-header":!1,size:800,visible:e.createDrawer,direction:"rtl","before-close":e.handleClose},on:{"update:visible":function(t){e.createDrawer=t}}},[n("div",[n("div",{staticClass:"head"},[n("div",{staticClass:"title"},[e._v("用户信息填写")])]),e._v(" "),n("div",{staticClass:"demo-drawer__content"},[n("el-row",{staticClass:"mt20"},[n("el-col",{attrs:{span:18}},[n("el-form",{ref:"userField",attrs:{size:"small",rules:e.ruleValidate,model:e.userInfo,"label-width":"130px"},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-form-item",{attrs:{label:"手机号(账号):",prop:"account"}},[n("el-input",{attrs:{type:"text",size:"small",placeholder:"请输入手机号(账号)"},model:{value:e.userInfo.account,callback:function(t){e.$set(e.userInfo,"account",t)},expression:"userInfo.account"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"登录密码:",prop:"pwd"}},[n("el-input",{attrs:{type:"password",size:"small",minlength:"6",placeholder:"请输入密码"},model:{value:e.userInfo.pwd,callback:function(t){e.$set(e.userInfo,"pwd",t)},expression:"userInfo.pwd"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"确认密码:",prop:"repwd"}},[n("el-input",{attrs:{type:"password",size:"small",minlength:"6",placeholder:"请再次输入密码"},model:{value:e.userInfo.repwd,callback:function(t){e.$set(e.userInfo,"repwd",t)},expression:"userInfo.repwd"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"用户昵称:",prop:"nickname"}},[n("el-input",{attrs:{type:"text",size:"small",placeholder:"请输入用户昵称"},model:{value:e.userInfo.nickname,callback:function(t){e.$set(e.userInfo,"nickname",t)},expression:"userInfo.nickname"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"头像:"}},[n("div",{staticClass:"upLoadPicBox"},[e.userInfo.avatar?n("div",{staticClass:"pictrue"},[n("img",{attrs:{src:e.userInfo.avatar}}),e._v(" "),n("i",{staticClass:"el-icon-error btndel",on:{click:function(t){e.userInfo.avatar=""}}})]):n("div",{staticClass:"upLoad",on:{click:function(t){return e.modalPicTap("1")}}},[n("i",{staticClass:"el-icon-camera cameraIconfont"})])])]),e._v(" "),n("el-form-item",{attrs:{label:"真实姓名:"}},[n("el-input",{attrs:{type:"text",size:"small",placeholder:"请输入真实姓名"},model:{value:e.userInfo.real_name,callback:function(t){e.$set(e.userInfo,"real_name",t)},expression:"userInfo.real_name"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"手机号:"}},[n("el-input",{attrs:{type:"text",placeholder:"请输入手机号",size:"small"},model:{value:e.userInfo.phone,callback:function(t){e.$set(e.userInfo,"phone",t)},expression:"userInfo.phone"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"身份证:",prop:"card_id"}},[n("el-input",{attrs:{type:"text",placeholder:"请输入身份证号码",size:"small"},model:{value:e.userInfo.card_id,callback:function(t){e.$set(e.userInfo,"card_id",t)},expression:"userInfo.card_id"}})],1),e._v(" "),n("el-form-item",{attrs:{label:"性别:"}},[n("el-radio-group",{model:{value:e.userInfo.sex,callback:function(t){e.$set(e.userInfo,"sex",t)},expression:"userInfo.sex"}},[n("el-radio",{attrs:{label:0}},[e._v("保密")]),e._v(" "),n("el-radio",{attrs:{label:1}},[e._v("男")]),e._v(" "),n("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"状态:",required:""}},[n("el-radio-group",{model:{value:e.userInfo.status,callback:function(t){e.$set(e.userInfo,"status",t)},expression:"userInfo.status"}},[n("el-radio",{attrs:{label:0}},[e._v("禁用")]),e._v(" "),n("el-radio",{attrs:{label:1}},[e._v("正常")])],1)],1),e._v(" "),n("el-form-item",{attrs:{label:"推广员:",required:""}},[n("el-radio-group",{model:{value:e.userInfo.is_promoter,callback:function(t){e.$set(e.userInfo,"is_promoter",t)},expression:"userInfo.is_promoter"}},[n("el-radio",{attrs:{label:0}},[e._v("关闭")]),e._v(" "),n("el-radio",{attrs:{label:1}},[e._v("开启")])],1)],1)],1)],1),e._v(" "),n("el-col",{attrs:{span:23}},[n("div",{staticClass:"demo-drawer__footer"},[n("el-button",{attrs:{size:"small"},on:{click:e.handleClose}},[e._v("取 消")]),e._v(" "),n("el-button",{attrs:{type:"primary",loading:e.loading,size:"small"},on:{click:function(t){return e.submitForm("userField")}}},[e._v(e._s(e.loading?"提交中 ...":"确 定"))])],1)])],1)],1)])])],1)},p=[],f=(n("7f7f"),{name:"UserCreate",props:{createDrawer:{type:Boolean,default:!1}},data:function(){var e=this,t=function(e,t,n){if(!t)return n(new Error("请输入手机号"));/^1[3456789]\d{9}$/.test(t)?n():n(new Error("格式不正确!"))},n=function(e,t,n){t&&!/^[1-9]\d{5}(19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[Xx\d]$/.test(t)?n(new Error("格式不正确!")):n()},r=function(t,n,r){""===n?r(new Error("请再次输入密码")):n!==e.userInfo.pwd?r(new Error("两次输入密码不一致!")):r()};return{loading:!1,userInfo:{avatar:"",sex:0,status:1,is_promoter:1},ruleValidate:{account:[{required:!0,validator:t,trigger:"blur"}],phone:[{validator:t,trigger:"blur"}],card_id:[{validator:n,trigger:"blur"}],pwd:[{required:!0,message:"请输入密码",trigger:"blur"}],repwd:[{required:!0,validator:r,trigger:"blur"}]}}},mounted:function(){},methods:{handleClose:function(){this.resetData(),this.$emit("closeDrawer")},resetData:function(){this.$refs.userField.resetFields(),this.userInfo.avatar="",this.userInfo.phone="",this.userInfo.real_name="",this.userInfo.card_id="",this.userInfo.birthday="",this.userInfo.sex=0},modalPicTap:function(e,t,n){var r=this;this.$modalUpload((function(e){r.userInfo.avatar=e[0]}),e)},submitForm:function(e){var t=this;this.loading=!0,this.$refs[e].validate((function(e){e?Object(c["d"])(t.userInfo).then(function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(n){return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.loading=!1,t.$message.success(n.message),t.$emit("closeDrawer"),t.$emit("getList");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.message)})):t.loading=!1}))}}}),m=f,h=(n("a57d"),n("2877")),b=Object(h["a"])(m,d,p,!1,null,"442e93f8",null),v=b.exports,_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"divBox"},[n("div",{staticClass:"header clearfix"},[n("div",{staticClass:"container"},[n("el-form",{attrs:{inline:"",size:"small"},nativeOn:{submit:function(e){e.preventDefault()}}},[n("el-form-item",{attrs:{label:"优惠劵名称:"}},[n("el-input",{staticClass:"selWidth",attrs:{placeholder:"请输入优惠券名称",clearable:"",size:"small"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.getList(1)}},model:{value:e.tableFrom.coupon_name,callback:function(t){e.$set(e.tableFrom,"coupon_name",t)},expression:"tableFrom.coupon_name"}})],1),e._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(t){return e.getList(1)}}},[e._v("查询")])],1)],1)],1)]),e._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"table",attrs:{data:e.tableData.data,size:"small","max-height":"400","tooltip-effect":"dark"}},[n("el-table-column",{attrs:{width:"55"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-radio",{attrs:{label:t.row.coupon_id},nativeOn:{change:function(n){return e.getTemplateRow(t.row)}},model:{value:e.templateRadio,callback:function(t){e.templateRadio=t},expression:"templateRadio"}},[e._v(" ")])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"coupon_id",label:"ID","min-width":"50"}}),e._v(" "),n("el-table-column",{attrs:{prop:"title",label:"优惠券名称","min-width":"120"}}),e._v(" "),n("el-table-column",{attrs:{label:"优惠劵类型","min-width":"100"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[n("span",[e._v(e._s(e._f("couponTypeFilter")(r.type)))])]}}])}),e._v(" "),n("el-table-column",{attrs:{prop:"coupon_price",label:"优惠券面值","min-width":"90"}}),e._v(" "),n("el-table-column",{attrs:{label:"最低消费额","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(0===t.row.use_min_price?"不限制":t.row.use_min_price))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"有效期限","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(1===t.row.coupon_type?t.row.use_start_time+"-"+t.row.use_end_time:t.row.coupon_time+"天"))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"剩余数量","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(0===t.row.is_limited?"不限量":t.row.remain_count))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"操作","min-width":"120",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{staticClass:"mr10",attrs:{type:"text",size:"small",disabled:e.multipleSelection.coupon_id!=t.row.coupon_id},on:{click:function(n){return e.send(t.row.coupon_id)}}},[e._v("发送")])]}}])})],1),e._v(" "),n("div",{staticClass:"block mb20"},[n("el-pagination",{attrs:{background:"","page-size":e.tableFrom.limit,"current-page":e.tableFrom.page,layout:"total, prev, pager, next, jumper",total:e.tableData.total},on:{"size-change":e.handleSizeChange,"current-change":e.pageChange}})],1),e._v(" "),n("div")],1)},g=[],w=n("b7be"),k=n("83d6"),y={name:"CouponList",props:{couponForm:{type:Object,required:!0},checkedIds:{type:Array,default:[]},allCheck:{type:Boolean,default:!1},userFrom:{type:Object,required:!0}},data:function(){return{roterPre:k["roterPre"],listLoading:!0,tableData:{data:[],total:0},tableFrom:{page:1,limit:5,not_send_type:5,coupon_name:"",status:1},multipleSelection:{coupon_id:""},templateRadio:0}},mounted:function(){this.tableFrom.page=1,this.getList(1)},methods:{getTemplateRow:function(e){this.multipleSelection={coupon_id:e.coupon_id}},send:function(e){var t=this;delete this.userFrom["page"],delete this.userFrom["limit"];var n=this;n.$confirm("确定要发送优惠券吗?发送优惠券后将无法恢复,请谨慎操作!","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){var r={coupon_id:e,search:n.userFrom,mark:n.filter(t.couponForm),is_all:n.allCheck?1:0,uid:n.checkedIds};Object(w["W"])(r).then((function(e){n.$message.success(e.message),n.$emit("sendSuccess")})).catch((function(e){n.$message.error(e.message)}))})).catch((function(e){n.$message({type:"info",message:"已取消"})}))},filter:function(e){for(var t in e)""===e[t]&&delete e[t];return e},getList:function(e){var t=this;this.listLoading=!0,this.tableFrom.page=e||this.tableFrom.page,Object(w["Qb"])(this.tableFrom).then((function(e){t.tableData.data=e.data.list,t.tableData.total=e.data.count,t.listLoading=!1})).catch((function(e){t.listLoading=!1,t.$message.error(e.message)}))},pageChange:function(e){this.tableFrom.page=e,this.getList("")},handleSizeChange:function(e){this.tableFrom.limit=e,this.getList("")}}},x=y,F=(n("771d"),Object(h["a"])(x,_,g,!1,null,"7781e9cb",null)),C=F.exports,O=n("2e83"),I={name:"UserList",components:{newsCategory:l["a"],userDetail:u["a"],userCreate:v,couponList:C},data:function(){var e;return e={moren:n("cdfe"),pickerOptions:{shortcuts:[{text:"今天",onClick:function(e){var t=new Date,n=new Date;n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),e.$emit("pick",[n,t])}},{text:"昨天",onClick:function(e){var t=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()))),e.$emit("pick",[n,t])}},{text:"最近7天",onClick:function(e){var t=new Date,n=new Date;n.setTime(n.getTime()-6048e5),e.$emit("pick",[n,t])}},{text:"最近30天",onClick:function(e){var t=new Date,n=new Date;n.setTime(n.getTime()-2592e6),e.$emit("pick",[n,t])}},{text:"本月",onClick:function(e){var t=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),e.$emit("pick",[n,t])}},{text:"本年",onClick:function(e){var t=new Date,n=new Date;n.setTime(n.setTime(new Date((new Date).getFullYear(),0,1))),e.$emit("pick",[n,t])}}]},collapse:!0,select:"",keywords:"",timeVal:[],timeVal2:[],selectList:[],drawer:!1,maxCols:3,isShowSend:!0,visible:!1,user_type:"",tableData:{data:[],total:0},uid:"",listLoading:!0,multipleSelection:[],ids:"",wechatIds:""},Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(e,"uid",""),"labelPosition","right"),"userProps",{children:"children",label:"name",value:"name"}),"userFrom",{label_id:"",user_type:"",keyword:"",member_level:"",sex:"",is_promoter:"",country:"",pay_count:"",user_time_type:"",user_time:"",nickname:"",phone:"",province:"",city:"",is_svip:"",page:1,limit:20,group_id:"",fields_type:"",fields_value:""}),"address",[]),"grid",{xl:8,lg:12,md:12,sm:24,xs:24}),"grid2",{xl:18,lg:16,md:12,sm:24,xs:24}),"grid3",{xl:8,lg:12,md:12,sm:24,xs:24}),"addresData",[]),"groupList",[]),Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(Object(s["a"])(e,"labelLists",[]),"memberList",[]),"chkName",""),"checkedIds",[]),"noChecked",[]),"checkedPage",[]),"visibleCoupon",!1),"visibleDistributor",!1),"couponForm",{"用户标签":"","用户类型":"","性别":"","身份":"","消费情况":"","访问情况":"","访问时间":"","昵称":""}),"allCheck",!1),Object(s["a"])(Object(s["a"])(Object(s["a"])(e,"cancel_time",null),"createDrawer",!1),"is_promoter",0)},mounted:function(){this.groupLists(),this.getTagList(),this.getMemberList(),this.getSelectList(),this.getList("")},methods:{searchReset:function(){this.timeVal=[],this.timeVa2=[],this.userFrom.user_time="",this.userFrom.birthday="",this.select="",this.keywords="",this.$refs.searchForm.resetFields(),this.changeSearch(1)},changeSearch:function(e){switch(this.resetSearchVal(),this.select){case"uid":this.userFrom.uid=this.keywords,this.userSearchs(e);break;case"nickname":this.userFrom.nickname=this.keywords,this.userSearchs(e);break;case"phone":this.userFrom.phone=this.keywords,this.userSearchs(e);break;default:this.userFrom.keyword=this.keywords,this.userSearchs(e);break}},resetSearchVal:function(){this.userFrom.phone="",this.userFrom.nickname="",this.userFrom.uid="",this.userFrom.keyword=""},onHandle:function(e){this.chkName=this.chkName===e?"":e,this.changeType(!(""===this.chkName))},changeType:function(e){e?this.chkName||(this.chkName="dan"):(this.chkName="",this.allCheck=!1);var t=this.checkedPage.indexOf(this.userFrom.page);"dan"===this.chkName?this.checkedPage.push(this.userFrom.page):t>-1&&this.checkedPage.splice(t,1),this.syncCheckedId()},syncCheckedId:function(){var e=this,t=this.tableData.data.map((function(e){if(!e.cancel_time)return e.uid}));"duo"===this.chkName?(this.checkedIds=[],this.allCheck=!0):"dan"===this.chkName?(this.allCheck=!1,t.forEach((function(t){var n=e.checkedIds.indexOf(t);-1===n&&e.checkedIds.push(t)}))):t.forEach((function(t){var n=e.checkedIds.indexOf(t);n>-1&&e.checkedIds.splice(n,1)}))},changeOne:function(e,t){if(e)if("duo"===this.chkName){var n=this.noChecked.indexOf(t.uid);n>-1&&this.noChecked.splice(n,1)}else{var r=this.checkedIds.indexOf(t.uid);-1===r&&this.checkedIds.push(t.uid)}else if("duo"===this.chkName){var a=this.noChecked.indexOf(t.uid);-1===a&&this.noChecked.push(t.uid)}else{var o=this.checkedIds.indexOf(t.uid);o>-1&&this.checkedIds.splice(o,1)}},sendCoupon:function(){0==this.checkedIds.length&&0==this.allCheck?this.$message.warning("请选择用户"):this.visibleCoupon=!0},exportList:function(){var e=Object(i["a"])(Object(o["a"])().mark((function e(){var t,n,r,a,i;return Object(o["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=JSON.parse(JSON.stringify(this.userFrom)),n=[],t.page=1,r=1,a={},i=0;case 5:if(!(i2&&void 0!==arguments[2]?arguments[2]:function(e,t){return e===t};return Object.keys(t).find((function(r){return n(t[r],e)}))},getLabelValue:function(){for(var e="",t=0;t