chunk-2999dd75.87b372c5.js 12 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-2999dd75"],{91449:function(t,e,r){"use strict";r.r(e);var n=r("c24f"),u=r("2f62"),a=r("d708");function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var s={name:"card",data:function(){return{roterPre:a.a.roterPre,columns1:[{title:"编号",key:"id",minWidth:100},{title:"卡号",key:"card_number",minWidth:100},{title:"密码",key:"card_password",minWidth:100},{title:"领取人名称",key:"username",minWidth:100},{title:"领取人电话",key:"phone",minWidth:100},{title:"领取时间",key:"use_time",minWidth:100},{title:"是否激活",slot:"status",minWidth:100}],data1:[],loading:!1,total:0,table:{page:1,limit:15,card_number:"",phone:"",is_use:""}}},computed:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(r,!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},Object(u.e)("media",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:75},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getMemberCard()},methods:{onchangeIsShow:function(t){var e=this,r={card_id:t.id,status:t.status};Object(n.y)(r).then((function(t){e.$Message.success(t.msg),e.getMemberCard()})).catch((function(t){e.$Message.error(t.msg)}))},getMemberCard:function(){var t=this;this.loading=!0,Object(n.Y)(this.$route.params.id,this.table).then((function(e){t.loading=!1,t.data1=e.data.list,t.total=e.data.count})).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},formSubmit:function(){this.table.page=1,this.getMemberCard()},pageChange:function(t){this.table.page=t,this.getMemberCard()}}},i=r("2877"),l=Object(i.a)(s,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("div",{staticClass:"i-layout-page-header"},[r("div",{staticClass:"i-layout-page-header"},[r("PageHeader",{staticClass:"product_tabs",attrs:{"hidden-breadcrumb":""}},[r("div",{attrs:{slot:"title"},slot:"title"},[r("router-link",{attrs:{to:{path:t.roterPre+"/vipuser/grade/card"}}},[r("div",{staticClass:"font-sm after-line"},[r("span",{staticClass:"iconfont iconfanhui"}),r("span",{staticClass:"pl10"},[t._v("返回")])])]),r("span",{staticClass:"mr20 ml16",domProps:{textContent:t._s(t.$route.meta.title)}})],1)])],1)]),r("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[r("div",{staticClass:"new_card_pd"},[r("Form",{ref:"formData",attrs:{model:t.table,"label-width":t.labelWidth,"label-position":t.labelPosition,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[r("FormItem",{staticStyle:{width:"200px"},attrs:{label:"是否领取:"}},[r("Select",{attrs:{clearable:""},model:{value:t.table.is_use,callback:function(e){t.$set(t.table,"is_use",e)},expression:"table.is_use"}},[r("Option",{attrs:{value:"1"}},[t._v("已领取")]),r("Option",{attrs:{value:"0"}},[t._v("未领取")])],1)],1),r("FormItem",{attrs:{label:"卡号:"}},[r("Input",{staticClass:"input-add",attrs:{placeholder:"请输入卡号"},model:{value:t.table.card_number,callback:function(e){t.$set(t.table,"card_number",e)},expression:"table.card_number"}})],1),r("FormItem",{attrs:{label:"手机号:"}},[r("Input",{staticClass:"input-add mr14",attrs:{placeholder:"请输入手机号"},model:{value:t.table.phone,callback:function(e){t.$set(t.table,"phone",e)},expression:"table.phone"}}),r("Button",{attrs:{type:"primary"},on:{click:t.formSubmit}},[t._v("搜索")])],1)],1)],1)]),r("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[r("Table",{ref:"table",staticClass:"mt25",attrs:{columns:t.columns1,data:t.data1,loading:t.loading,"highlight-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},scopedSlots:t._u([{key:"status",fn:function(e){var n=e.row;return e.index,[r("i-switch",{attrs:{value:n.status,"true-value":1,"false-value":0,size:"large"},on:{"on-change":function(e){return t.onchangeIsShow(n)}},model:{value:n.status,callback:function(e){t.$set(n,"status",e)},expression:"row.status"}},[r("span",{attrs:{slot:"open"},slot:"open"},[t._v("激活")]),r("span",{attrs:{slot:"close"},slot:"close"},[t._v("冻结")])])]}}])}),r("div",{staticClass:"acea-row row-right page"},[r("Page",{attrs:{total:t.total,current:t.table.page,"page-size":t.table.limit,"show-elevator":"","show-total":""},on:{"on-change":t.pageChange}})],1)],1)],1)}),[],!1,null,null,null);e.default=l.exports},c24f:function(t,e,r){"use strict";r.d(e,"W",(function(){return u})),r.d(e,"M",(function(){return a})),r.d(e,"L",(function(){return o})),r.d(e,"k",(function(){return c})),r.d(e,"r",(function(){return s})),r.d(e,"d",(function(){return i})),r.d(e,"h",(function(){return l})),r.d(e,"g",(function(){return d})),r.d(e,"q",(function(){return m})),r.d(e,"s",(function(){return f})),r.d(e,"I",(function(){return b})),r.d(e,"O",(function(){return h})),r.d(e,"K",(function(){return p})),r.d(e,"J",(function(){return g})),r.d(e,"f",(function(){return _})),r.d(e,"e",(function(){return O})),r.d(e,"n",(function(){return j})),r.d(e,"Q",(function(){return v})),r.d(e,"p",(function(){return w})),r.d(e,"P",(function(){return y})),r.d(e,"bb",(function(){return C})),r.d(e,"T",(function(){return k})),r.d(e,"R",(function(){return P})),r.d(e,"S",(function(){return x})),r.d(e,"V",(function(){return M})),r.d(e,"U",(function(){return S})),r.d(e,"X",(function(){return W})),r.d(e,"v",(function(){return $})),r.d(e,"w",(function(){return I})),r.d(e,"Y",(function(){return D})),r.d(e,"i",(function(){return F})),r.d(e,"ab",(function(){return T})),r.d(e,"C",(function(){return U})),r.d(e,"cb",(function(){return E})),r.d(e,"m",(function(){return z})),r.d(e,"Z",(function(){return J})),r.d(e,"F",(function(){return B})),r.d(e,"B",(function(){return H})),r.d(e,"A",(function(){return Y})),r.d(e,"z",(function(){return q})),r.d(e,"D",(function(){return A})),r.d(e,"y",(function(){return G})),r.d(e,"x",(function(){return K})),r.d(e,"u",(function(){return L})),r.d(e,"t",(function(){return N})),r.d(e,"o",(function(){return Q})),r.d(e,"l",(function(){return R})),r.d(e,"G",(function(){return V})),r.d(e,"H",(function(){return X})),r.d(e,"db",(function(){return Z})),r.d(e,"N",(function(){return tt})),r.d(e,"E",(function(){return et})),r.d(e,"b",(function(){return rt})),r.d(e,"a",(function(){return nt})),r.d(e,"eb",(function(){return ut})),r.d(e,"j",(function(){return at})),r.d(e,"c",(function(){return ot}));var n=r("b6bd");function u(t){return Object(n.a)({url:"user/user",method:"get",params:t})}function a(t){return Object(n.a)({url:"setting/config/user/".concat(t),method:"get"})}function o(t,e){return Object(n.a)({url:"setting/config/user/".concat(t),method:"post",data:e})}function c(t){return Object(n.a)({url:"user/user/".concat(t,"/edit"),method:"get"})}function s(t){return Object(n.a)({url:"user/set_status/".concat(t.status,"/").concat(t.id),method:"put"})}function i(t){return Object(n.a)({url:"marketing/coupon/grant",method:"get",params:t})}function l(t){return Object(n.a)({url:"user/edit_other/".concat(t),method:"get"})}function d(t){return Object(n.a)({url:"user/user/".concat(t),method:"get"})}function m(t){return Object(n.a)({url:"user/one_info/".concat(t.id),method:"get",params:t.datas})}function f(t){return Object(n.a)({url:"user/user_level/vip_list",method:"get",params:t})}function b(t){return Object(n.a)({url:"user/user_level/set_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function h(t,e){return Object(n.a)({url:"user/user_level/task/".concat(t),method:"get",params:e})}function p(t){return Object(n.a)({url:"user/user_level/set_task_show/".concat(t.id,"/").concat(t.is_show),method:"PUT"})}function g(t){return Object(n.a)({url:"user/user_level/set_task_must/".concat(t.id,"/").concat(t.is_must),method:"PUT"})}function _(t){return Object(n.a)({url:"/user/user_level/create_task",method:"get",params:t})}function O(t){return Object(n.a)({url:"user/user_level/create",method:"get",params:t})}function j(t){return Object(n.a)({url:"user/give_level/".concat(t),method:"get"})}function v(t){return Object(n.a)({url:"user/user_group/list",method:"get",params:t})}function w(t){return Object(n.a)({url:"user/user_group/add/".concat(t),method:"get"})}function y(t){return Object(n.a)({url:"setting/update_admin",method:"PUT",data:t})}function C(t){return Object(n.a)({url:"user/set_group",method:"post",data:t})}function k(t){return Object(n.a)({url:"user/user_label",method:"get",params:t})}function P(t,e){return Object(n.a)({url:"user/user_label/add/".concat(t),method:"get",params:e})}function x(t){return Object(n.a)({url:"user/user_label_cate/all",method:"get",params:t})}function M(t){return Object(n.a)({url:"user/user_label_cate/".concat(t,"/edit"),method:"get"})}function S(t){return Object(n.a)({url:"user/user_label_cate/create",method:"get"})}function W(t){return Object(n.a)({url:"/user/member_batch/index",method:"get",params:t})}function $(t,e){return Object(n.a)({url:"/user/member_batch/save/".concat(t),method:"post",data:e})}function I(t,e){return Object(n.a)({url:"/user/member_batch/set_value/".concat(t),method:"get",params:e})}function D(t,e){return Object(n.a)({url:"/user/member_card/index/".concat(t),method:"get",params:e})}function F(t,e){return Object(n.a)({url:"/export/memberCard/".concat(t),method:"get",params:e})}function T(){return Object(n.a)({url:"/user/member/ship",method:"get"})}function U(t,e){return Object(n.a)({url:"/user/member_ship/save/".concat(t),method:"post",data:e})}function E(){return Object(n.a)({url:"/user/user/syncUsers",method:"get"})}function z(){return Object(n.a)({url:"/user/user/create",method:"get"})}function J(){return Object(n.a)({url:"/user/member_scan",method:"get"})}function B(t,e){return Object(n.a)({url:"user/label/".concat(t),method:"post",data:e})}function H(t){return Object(n.a)({url:"user/member_right/save/".concat(t.id),method:"post",data:t})}function Y(){return Object(n.a)({url:"user/member/right",method:"get"})}function q(t){return Object(n.a)({url:"/user/member/record",method:"get",params:t})}function A(){return Object(n.a)({url:"user/member/ship_select",method:"get"})}function G(t){return Object(n.a)({url:"user/member_card/set_status",method:"get",params:t})}function K(t){return Object(n.a)({url:"user/member_ship/set_ship_status",method:"get",params:t})}function L(t,e){return Object(n.a)({url:"user/member_agreement/save/".concat(t),method:"post",data:e})}function N(){return Object(n.a)({url:"user/member/agreement",method:"get"})}function Q(t){return Object(n.a)({url:"user/give_level_time/".concat(t),method:"get"})}function R(t){return Object(n.a)({url:"user/label/".concat(t),method:"get"})}function V(t){return Object(n.a)({url:"user/save_set_label",method:"put",data:t})}function X(t){return Object(n.a)({url:"setting/info",method:"get"})}function Z(t){return Object(n.a)({url:"user/visit_list/".concat(t.id),method:"get",params:t.datas})}function tt(t){return Object(n.a)({url:"user/spread_list/".concat(t.id),method:"get",params:t.datas})}function et(t){return Object(n.a)({url:"user/user/".concat(t.uid),method:"put",data:t})}function rt(t,e){return Object(n.a)({url:"agent/set_agent_agreement/".concat(t),method:"post",data:e})}function nt(){return Object(n.a)({url:"agent/get_agent_agreement",method:"get"})}function ut(){return Object(n.a)({url:"user/synchro/work/label",method:"get"})}function at(t){return Object(n.a)({url:"user/user/extend_info/".concat(t),method:"get"})}function ot(t){return Object(n.a)({url:"user/batch_process",method:"post",data:t})}}}]);