chunk-74702e39.946e1d4b.js 14 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-74702e39"],{3158:function(e,t,n){"use strict";var r=n("c5df");n.n(r).a},a387:function(e,t,n){"use strict";n.r(t);var r=n("c24f"),a=n("2f62");function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i={name:"card",data:function(){return{treeSelect:[],payList:[{val:"free",label:"免费"},{val:"weixin",label:"微信"},{val:"alipay",label:"支付宝"}],thead:[{title:"订单号",key:"order_id",minWidth:100},{title:"用户名",minWidth:50,ellipsis:!0,render:function(e,t){return e("span",t.row.user.nickname)}},{title:"手机号码",minWidth:80,render:function(e,t){return e("span",t.row.user.phone||"--")}},{title:"会员类型",key:"member_type",minWidth:40},{title:"有效期限(天)",key:"vip_day",minWidth:50},{title:"支付金额(元)",key:"pay_price",minWidth:50},{title:"支付方式",key:"pay_type",minWidth:30},{title:"购买时间",key:"pay_time",minWidth:90},{title:"到期时间",minWidth:90,render:function(e,t){return e("span",t.row.overdue_time)}}],tbody:[],loading:!1,total:0,formValidate:{name:"",member_type:"",pay_type:"",add_time:""},options:{shortcuts:[{text:"今天",value:function(){var e=new Date,t=new Date;return t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[t,e]}},{text:"昨天",value:function(){var e=new Date,t=new Date;return t.setTime(t.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,e]}},{text:"最近7天",value:function(){var e=new Date,t=new Date;return t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[t,e]}},{text:"最近30天",value:function(){var e=new Date,t=new Date;return t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[t,e]}},{text:"上月",value:function(){var e=new Date,t=new Date,n=new Date(t.getFullYear(),t.getMonth(),0).getDate();return t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,1))),e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,n))),[t,e]}},{text:"本月",value:function(){var e=new Date,t=new Date;return t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[t,e]}},{text:"本年",value:function(){var e=new Date,t=new Date;return t.setTime(t.setTime(new Date((new Date).getFullYear(),0,1))),[t,e]}}]},timeVal:[],tablePage:{page:1,limit:15}}},computed:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(n,!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},Object(a.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.sletab(),this.getMemberRecord()},methods:{sletab:function(){var e=this;Object(r.D)().then((function(t){e.treeSelect=t.data}))},selChange:function(){this.tablePage.page=1,this.getMemberRecord()},userSearchs:function(){this.tablePage.page=1,this.getMemberRecord()},paySearchs:function(){this.tablePage.page=1,this.getMemberRecord()},onchangeTime:function(e){this.timeVal=e,this.formValidate.add_time=this.timeVal[0]?this.timeVal.join("-"):"",this.tablePage.page=1,this.getMemberRecord()},getMemberRecord:function(){var e=this;this.loading=!0;var t={page:this.tablePage.page,limit:this.tablePage.limit,member_type:this.formValidate.member_type,pay_type:this.formValidate.pay_type,add_time:this.formValidate.add_time,name:this.formValidate.name};Object(r.z)(t).then((function(t){e.loading=!1;var n=t.data,r=n.list,a=n.count;e.tbody=r,e.total=a})).catch((function(t){e.loading=!1,e.$Message.error(t.msg)}))},pageChange:function(e){this.tablePage.page=e,this.getMemberRecord()}}},c=(n("3158"),n("2877")),s=Object(c.a)(i,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[n("div",{staticClass:"new_card_pd"},[n("Form",{ref:"formValidate",staticClass:"tabform",attrs:{inline:"",model:e.formValidate,"label-width":e.labelWidth,"label-position":e.labelPosition},nativeOn:{submit:function(e){e.preventDefault()}}},[n("FormItem",{attrs:{label:"会员类型:"}},[n("Select",{staticClass:"input-add",attrs:{clearable:""},on:{"on-change":e.userSearchs},model:{value:e.formValidate.member_type,callback:function(t){e.$set(e.formValidate,"member_type",t)},expression:"formValidate.member_type"}},e._l(e.treeSelect,(function(t){return n("Option",{key:t.value,attrs:{value:t.value}},[e._v(e._s(t.label))])})),1)],1),n("FormItem",{attrs:{label:"支付方式:"}},[n("Select",{staticClass:"input-add",attrs:{clearable:""},on:{"on-change":e.paySearchs},model:{value:e.formValidate.pay_type,callback:function(t){e.$set(e.formValidate,"pay_type",t)},expression:"formValidate.pay_type"}},e._l(e.payList,(function(t){return n("Option",{key:t.val,attrs:{value:t.val}},[e._v(e._s(t.label))])})),1)],1),n("FormItem",{attrs:{label:"购买时间:"}},[n("DatePicker",{staticClass:"input-add",attrs:{editable:!1,value:e.timeVal,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:e.options},on:{"on-change":e.onchangeTime}})],1),n("FormItem",{attrs:{label:"搜索:"}},[n("Input",{staticClass:"input-add mr14",attrs:{placeholder:"请输入用户名称搜索","element-id":"name"},model:{value:e.formValidate.name,callback:function(t){e.$set(e.formValidate,"name",t)},expression:"formValidate.name"}}),n("Button",{attrs:{type:"primary"},on:{click:function(t){return e.selChange()}}},[e._v("查询")])],1)],1)],1)]),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("Table",{ref:"table",attrs:{columns:e.thead,data:e.tbody,loading:e.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:e.total,current:e.tablePage.page,"page-size":e.tablePage.limit,"show-elevator":"","show-total":""},on:{"on-change":e.pageChange}})],1)],1)],1)}),[],!1,null,"354b973a",null);t.default=s.exports},c24f:function(e,t,n){"use strict";n.d(t,"W",(function(){return a})),n.d(t,"M",(function(){return u})),n.d(t,"L",(function(){return o})),n.d(t,"k",(function(){return i})),n.d(t,"r",(function(){return c})),n.d(t,"d",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"g",(function(){return d})),n.d(t,"q",(function(){return m})),n.d(t,"s",(function(){return f})),n.d(t,"I",(function(){return b})),n.d(t,"O",(function(){return h})),n.d(t,"K",(function(){return g})),n.d(t,"J",(function(){return p})),n.d(t,"f",(function(){return _})),n.d(t,"e",(function(){return O})),n.d(t,"n",(function(){return v})),n.d(t,"Q",(function(){return w})),n.d(t,"p",(function(){return j})),n.d(t,"P",(function(){return y})),n.d(t,"bb",(function(){return D})),n.d(t,"T",(function(){return P})),n.d(t,"R",(function(){return k})),n.d(t,"S",(function(){return T})),n.d(t,"V",(function(){return M})),n.d(t,"U",(function(){return V})),n.d(t,"X",(function(){return x})),n.d(t,"v",(function(){return F})),n.d(t,"w",(function(){return C})),n.d(t,"Y",(function(){return S})),n.d(t,"i",(function(){return W})),n.d(t,"ab",(function(){return Y})),n.d(t,"C",(function(){return R})),n.d(t,"cb",(function(){return I})),n.d(t,"m",(function(){return U})),n.d(t,"Z",(function(){return $})),n.d(t,"F",(function(){return E})),n.d(t,"B",(function(){return z})),n.d(t,"A",(function(){return J})),n.d(t,"z",(function(){return L})),n.d(t,"D",(function(){return B})),n.d(t,"y",(function(){return q})),n.d(t,"x",(function(){return A})),n.d(t,"u",(function(){return G})),n.d(t,"t",(function(){return H})),n.d(t,"o",(function(){return K})),n.d(t,"l",(function(){return N})),n.d(t,"G",(function(){return Q})),n.d(t,"H",(function(){return X})),n.d(t,"db",(function(){return Z})),n.d(t,"N",(function(){return ee})),n.d(t,"E",(function(){return te})),n.d(t,"b",(function(){return ne})),n.d(t,"a",(function(){return re})),n.d(t,"eb",(function(){return ae})),n.d(t,"j",(function(){return ue})),n.d(t,"c",(function(){return oe}));var r=n("b6bd");function a(e){return Object(r.a)({url:"user/user",method:"get",params:e})}function u(e){return Object(r.a)({url:"setting/config/user/".concat(e),method:"get"})}function o(e,t){return Object(r.a)({url:"setting/config/user/".concat(e),method:"post",data:t})}function i(e){return Object(r.a)({url:"user/user/".concat(e,"/edit"),method:"get"})}function c(e){return Object(r.a)({url:"user/set_status/".concat(e.status,"/").concat(e.id),method:"put"})}function s(e){return Object(r.a)({url:"marketing/coupon/grant",method:"get",params:e})}function l(e){return Object(r.a)({url:"user/edit_other/".concat(e),method:"get"})}function d(e){return Object(r.a)({url:"user/user/".concat(e),method:"get"})}function m(e){return Object(r.a)({url:"user/one_info/".concat(e.id),method:"get",params:e.datas})}function f(e){return Object(r.a)({url:"user/user_level/vip_list",method:"get",params:e})}function b(e){return Object(r.a)({url:"user/user_level/set_show/".concat(e.id,"/").concat(e.is_show),method:"PUT"})}function h(e,t){return Object(r.a)({url:"user/user_level/task/".concat(e),method:"get",params:t})}function g(e){return Object(r.a)({url:"user/user_level/set_task_show/".concat(e.id,"/").concat(e.is_show),method:"PUT"})}function p(e){return Object(r.a)({url:"user/user_level/set_task_must/".concat(e.id,"/").concat(e.is_must),method:"PUT"})}function _(e){return Object(r.a)({url:"/user/user_level/create_task",method:"get",params:e})}function O(e){return Object(r.a)({url:"user/user_level/create",method:"get",params:e})}function v(e){return Object(r.a)({url:"user/give_level/".concat(e),method:"get"})}function w(e){return Object(r.a)({url:"user/user_group/list",method:"get",params:e})}function j(e){return Object(r.a)({url:"user/user_group/add/".concat(e),method:"get"})}function y(e){return Object(r.a)({url:"setting/update_admin",method:"PUT",data:e})}function D(e){return Object(r.a)({url:"user/set_group",method:"post",data:e})}function P(e){return Object(r.a)({url:"user/user_label",method:"get",params:e})}function k(e,t){return Object(r.a)({url:"user/user_label/add/".concat(e),method:"get",params:t})}function T(e){return Object(r.a)({url:"user/user_label_cate/all",method:"get",params:e})}function M(e){return Object(r.a)({url:"user/user_label_cate/".concat(e,"/edit"),method:"get"})}function V(e){return Object(r.a)({url:"user/user_label_cate/create",method:"get"})}function x(e){return Object(r.a)({url:"/user/member_batch/index",method:"get",params:e})}function F(e,t){return Object(r.a)({url:"/user/member_batch/save/".concat(e),method:"post",data:t})}function C(e,t){return Object(r.a)({url:"/user/member_batch/set_value/".concat(e),method:"get",params:t})}function S(e,t){return Object(r.a)({url:"/user/member_card/index/".concat(e),method:"get",params:t})}function W(e,t){return Object(r.a)({url:"/export/memberCard/".concat(e),method:"get",params:t})}function Y(){return Object(r.a)({url:"/user/member/ship",method:"get"})}function R(e,t){return Object(r.a)({url:"/user/member_ship/save/".concat(e),method:"post",data:t})}function I(){return Object(r.a)({url:"/user/user/syncUsers",method:"get"})}function U(){return Object(r.a)({url:"/user/user/create",method:"get"})}function $(){return Object(r.a)({url:"/user/member_scan",method:"get"})}function E(e,t){return Object(r.a)({url:"user/label/".concat(e),method:"post",data:t})}function z(e){return Object(r.a)({url:"user/member_right/save/".concat(e.id),method:"post",data:e})}function J(){return Object(r.a)({url:"user/member/right",method:"get"})}function L(e){return Object(r.a)({url:"/user/member/record",method:"get",params:e})}function B(){return Object(r.a)({url:"user/member/ship_select",method:"get"})}function q(e){return Object(r.a)({url:"user/member_card/set_status",method:"get",params:e})}function A(e){return Object(r.a)({url:"user/member_ship/set_ship_status",method:"get",params:e})}function G(e,t){return Object(r.a)({url:"user/member_agreement/save/".concat(e),method:"post",data:t})}function H(){return Object(r.a)({url:"user/member/agreement",method:"get"})}function K(e){return Object(r.a)({url:"user/give_level_time/".concat(e),method:"get"})}function N(e){return Object(r.a)({url:"user/label/".concat(e),method:"get"})}function Q(e){return Object(r.a)({url:"user/save_set_label",method:"put",data:e})}function X(e){return Object(r.a)({url:"setting/info",method:"get"})}function Z(e){return Object(r.a)({url:"user/visit_list/".concat(e.id),method:"get",params:e.datas})}function ee(e){return Object(r.a)({url:"user/spread_list/".concat(e.id),method:"get",params:e.datas})}function te(e){return Object(r.a)({url:"user/user/".concat(e.uid),method:"put",data:e})}function ne(e,t){return Object(r.a)({url:"agent/set_agent_agreement/".concat(e),method:"post",data:t})}function re(){return Object(r.a)({url:"agent/get_agent_agreement",method:"get"})}function ae(){return Object(r.a)({url:"user/synchro/work/label",method:"get"})}function ue(e){return Object(r.a)({url:"user/user/extend_info/".concat(e),method:"get"})}function oe(e){return Object(r.a)({url:"user/batch_process",method:"post",data:e})}},c5df:function(e,t,n){}}]);