CRMEB/crmeb/public/admin/system_static/js/chunk-3043a3af.ca3dbe17.js
2023-09-19 17:39:39 +08:00

1 line
73 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3043a3af","chunk-7f387760"],{"08ea":function(t,e,r){"use strict";r.r(e),r("a4d3"),r("e01a"),r("d28b"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("d9e2"),r("b0c0"),r("131a"),r("fb6a");var a=r("0122"),n=r("d0ff"),o=r("c964"),i=r("f3f3"),s=(r("d81d"),r("a15b"),r("d3b7"),r("6062"),r("3ca3"),r("ddb0"),r("159b"),r("e9c4"),r("99af"),r("232f")),l=r("2f62"),c=r("61f7"),u={name:"table-expand",filters:{formatDate:function(t){if(0!==t)return t=new Date(1e3*t),Object(c.a)(t,"yyyy-MM-dd hh:mm")}},props:{row:Object}},d=(r("16de"),r("2877")),f=(u=Object(d.a)(u,(function(){var t=this,e=t.$createElement;e=t._self._c||e;return e("div",[e("el-row",{staticClass:"expand-row"},[e("el-col",{attrs:{span:6}},[e("span",{staticClass:"expand-key"},[t._v("首次访问:")]),e("span",{staticClass:"expand-value"},[t._v(" "+t._s(t._f("formatDate")(t.row.add_time)))])]),e("el-col",{attrs:{span:6}},[e("span",{staticClass:"expand-key"},[t._v("近次访问:")]),e("span",{staticClass:"expand-value"},[t._v(t._s(t._f("formatDate")(t.row.last_time)))])]),e("el-col",{attrs:{span:6}},[e("span",{staticClass:"expand-key"},[t._v("身份证号:")]),e("span",{staticClass:"expand-value"},[t._v(t._s(t.row.card_id))])]),e("el-col",{attrs:{span:6}},[e("span",{staticClass:"expand-key"},[t._v("真实姓名:")]),e("span",{staticClass:"expand-value"},[t._v(t._s(t.row.real_name))])])],1),e("el-row",{staticClass:"expand-row"},[e("el-col",{attrs:{span:6}},[e("span",{staticClass:"expand-key"},[t._v("标签:")]),e("span",{staticClass:"expand-value"},[t._v(t._s(t.row.labels))])]),e("el-col",{attrs:{span:6}},[e("span",{staticClass:"expand-key"},[t._v("生日:")]),e("span",{staticClass:"expand-value"},[t._v(t._s(t.row.birthday))])]),e("el-col",{attrs:{span:6}},[e("span",{staticClass:"expand-key"},[t._v("推荐人:")]),e("span",{staticClass:"expand-value"},[t._v(t._s(t.row.spread_uid_nickname))])]),e("el-col",{attrs:{span:6}},[e("span",{staticClass:"expand-key"},[t._v("地址:")]),e("span",{staticClass:"expand-value"},[t._v(t._s(t.row.addres))])])],1),e("el-row",{staticClass:"expand-row"},[e("el-col",{attrs:{span:6}},[e("span",{staticClass:"expand-key"},[t._v("备注:")]),e("span",{staticClass:"expand-value"},[t._v(t._s(t.row.mark))])])],1)],1)}),[],!1,null,"47861808",null).exports,r("fc11")),m=(r("b64b"),r("4de4"),r("a434"),r("c24f")),h=(f={name:"userEdit",components:{userLabel:s.a},props:{userData:{type:Object,default:function(){}}},watch:{},data:function(){return{modals:!1,labelShow:!1,formItem:{uid:0,real_name:"",phone:"",birthday:"",card_id:"",addres:"",mark:"",pwd:"",true_pwd:"",level:"",group_id:"",label_id:[],spread_open:0,is_promoter:0,status:1},groupInfo:[],labelInfo:[],levelInfo:[],infoData:{groupInfo:[],labelInfo:[],levelInfo:[]},ruleValidate:{real_name:[{required:!0,message:" ",trigger:"blur"}],phone:[{required:!0,message:" ",trigger:"blur"}],pwd:[{required:!0,message:" ",trigger:"blur"}],true_pwd:[{required:!0,message:" ",trigger:"blur"}]},dataLabel:[]}},mounted:function(){var t=this,e=(this.$set(this.infoData,"groupInfo",this.userData.groupInfo),this.$set(this.infoData,"levelInfo",this.userData.levelInfo),this.$set(this.infoData,"labelInfo",this.userData.labelInfo),Object.keys(this.formItem));this.userData.userInfo?(e.map((function(e){t.formItem[e]=t.userData.userInfo[e]})),this.formItem.birthday||(this.formItem.birthday=""),this.formItem.label_id.length&&(this.dataLabel=this.formItem.label_id)):this.reset()},methods:(h={addLabel:function(){this.$modalForm(Object(m.M)(0)).then((function(){}))},closeLabel:function(t){var e=this.dataLabel.indexOf(this.dataLabel.filter((function(e){return e.id==t.id}))[0]);this.dataLabel.splice(e,1)},changeModal:function(t){t||(this.cancel(),this.reset())},openLabel:function(t){this.labelShow=!0,this.$refs.userLabel.userLabel(JSON.parse(JSON.stringify(this.infoData.labelInfo)))},cancel:function(){},activeData:function(t){this.labelShow=!1,this.dataLabel=t},labelClose:function(){this.labelShow=!1}},Object(f.a)(h,"closeLabel",(function(t){var e=this.dataLabel.indexOf(this.dataLabel.filter((function(e){return e.id==t.id}))[0]);this.dataLabel.splice(e,1)})),Object(f.a)(h,"reset",(function(){this.formItem={uid:"",real_name:"",phone:"",birthday:"",card_id:"",addres:"",mark:"",pwd:"",true_pwd:"",level:"",group_id:"",label_id:[],spread_open:0,is_promoter:0,status:1}})),h)},r("3f03"),Object(d.a)(f,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-form",{ref:"formItem",attrs:{rules:t.ruleValidate,model:t.formItem,"label-width":"100px"},nativeOn:{submit:function(t){t.preventDefault()}}},[t.formItem.uid?r("el-form-item",{attrs:{label:"用户ID"}},[r("el-input",{staticClass:"form-sty",staticStyle:{width:"80%"},attrs:{disabled:"",placeholder:"请输入编号"},model:{value:t.formItem.uid,callback:function(e){t.$set(t.formItem,"uid",e)},expression:"formItem.uid"}})],1):t._e(),r("el-form-item",{attrs:{label:"真实姓名:",prop:"real_name"}},[r("el-input",{staticClass:"form-sty",staticStyle:{width:"80%"},attrs:{placeholder:"请输入真实姓名"},model:{value:t.formItem.real_name,callback:function(e){t.$set(t.formItem,"real_name","string"==typeof e?e.trim():e)},expression:"formItem.real_name"}})],1),r("el-form-item",{attrs:{label:"手机号码:",prop:"phone"}},[r("el-input",{staticClass:"form-sty",staticStyle:{width:"80%"},attrs:{placeholder:"请输入手机号码"},model:{value:t.formItem.phone,callback:function(e){t.$set(t.formItem,"phone",e)},expression:"formItem.phone"}})],1),r("el-form-item",{attrs:{label:"生日:"}},[r("el-date-picker",{staticClass:"form-sty",staticStyle:{width:"80%"},attrs:{clearable:"",type:"date",placeholder:"请选择生日",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:t.formItem.birthday,callback:function(e){t.$set(t.formItem,"birthday",e)},expression:"formItem.birthday"}})],1),r("el-form-item",{attrs:{label:"身份证号:"}},[r("el-input",{staticClass:"form-sty",staticStyle:{width:"80%"},attrs:{placeholder:"请输入身份证号"},model:{value:t.formItem.card_id,callback:function(e){t.$set(t.formItem,"card_id","string"==typeof e?e.trim():e)},expression:"formItem.card_id"}})],1),r("el-form-item",{attrs:{label:"用户地址:"}},[r("el-input",{staticClass:"form-sty",staticStyle:{width:"80%"},attrs:{placeholder:"请输入用户地址"},model:{value:t.formItem.addres,callback:function(e){t.$set(t.formItem,"addres",e)},expression:"formItem.addres"}})],1),r("el-form-item",{attrs:{label:"用户备注:"}},[r("el-input",{staticClass:"form-sty",staticStyle:{width:"80%"},attrs:{placeholder:"请输入用户备注"},model:{value:t.formItem.mark,callback:function(e){t.$set(t.formItem,"mark",e)},expression:"formItem.mark"}})],1),r("el-form-item",{attrs:{label:"登录密码:",prop:"pwd"}},[r("el-input",{staticClass:"form-sty",staticStyle:{width:"80%"},attrs:{type:"password",placeholder:"请输入登录密码(修改用户可不填写,不填写不修改原密码)"},model:{value:t.formItem.pwd,callback:function(e){t.$set(t.formItem,"pwd",e)},expression:"formItem.pwd"}})],1),r("el-form-item",{attrs:{label:"确认密码:",prop:"true_pwd"}},[r("el-input",{staticClass:"form-sty",staticStyle:{width:"80%"},attrs:{type:"password",placeholder:"请输入确认密码(修改用户可不填写,不填写不修改原密码)"},model:{value:t.formItem.true_pwd,callback:function(e){t.$set(t.formItem,"true_pwd",e)},expression:"formItem.true_pwd"}})],1),r("el-form-item",{attrs:{label:"用户等级:"}},[r("el-select",{staticClass:"form-sty",attrs:{clearable:""},model:{value:t.formItem.level,callback:function(e){t.$set(t.formItem,"level",e)},expression:"formItem.level"}},t._l(t.infoData.levelInfo,(function(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.name}})})),1)],1),r("el-form-item",{attrs:{label:"用户分组:"}},[r("el-select",{staticClass:"form-sty",attrs:{clearable:""},model:{value:t.formItem.group_id,callback:function(e){t.$set(t.formItem,"group_id",e)},expression:"formItem.group_id"}},t._l(t.infoData.groupInfo,(function(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.group_name}})})),1)],1),r("el-form-item",{attrs:{label:"用户标签:"}},[r("div",{staticStyle:{display:"flex"}},[r("div",{staticClass:"labelInput acea-row row-between-wrapper",on:{click:t.openLabel}},[r("div",{staticStyle:{width:"90%"}},[t.dataLabel.length?r("div",t._l(t.dataLabel,(function(e,a){return r("el-tag",{key:a,staticClass:"mr10",attrs:{closable:""},on:{close:function(r){return t.closeLabel(e)}}},[t._v(t._s(e.label_name))])})),1):r("span",{staticClass:"span"},[t._v("选择用户关联标签")])]),r("div",{staticClass:"ivu-icon ivu-icon-ios-arrow-down"})]),r("span",{staticClass:"addfont",on:{click:t.addLabel}},[t._v("新增标签")])])]),r("el-form-item",{attrs:{label:"推广资格:"}},[r("el-radio-group",{staticClass:"form-sty",model:{value:t.formItem.spread_open,callback:function(e){t.$set(t.formItem,"spread_open",e)},expression:"formItem.spread_open"}},[r("el-radio",{attrs:{label:1}},[t._v("启用")]),r("el-radio",{attrs:{label:0}},[t._v("禁用")])],1),r("div",{staticClass:"tip"},[t._v("禁用用户的推广资格后,在任何分销模式下该用户都无分销权限")])],1),r("el-form-item",{attrs:{label:"推广权限:"}},[r("el-radio-group",{staticClass:"form-sty",model:{value:t.formItem.is_promoter,callback:function(e){t.$set(t.formItem,"is_promoter",e)},expression:"formItem.is_promoter"}},[r("el-radio",{attrs:{label:1}},[t._v("开启")]),r("el-radio",{attrs:{label:0}},[t._v("锁定")])],1),r("div",{staticClass:"tip"},[t._v("指定分销模式下,开启或关闭用户的推广权限")])],1),r("el-form-item",{attrs:{label:"用户状态:"}},[r("el-radio-group",{staticClass:"form-sty",model:{value:t.formItem.status,callback:function(e){t.$set(t.formItem,"status",e)},expression:"formItem.status"}},[r("el-radio",{attrs:{label:1}},[t._v("开启")]),r("el-radio",{attrs:{label:0}},[t._v("锁定")])],1)],1)],1),r("el-dialog",{attrs:{visible:t.labelShow,scrollable:"",title:"请选择用户标签",modal:!1,"show-close":!0,width:"540px"},on:{"update:visible":function(e){t.labelShow=e}}},[t.labelShow?r("userLabel",{attrs:{only_get:!0,uid:t.formItem.uid},on:{close:t.labelClose,activeData:t.activeData}}):t._e()],1)],1)}),[],!1,null,"2573a804",null).exports),p=r("bbbc"),v=r("3f2a");f=r("31b4");function b(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */b=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(e){c=function(t,e,r){return t[e]=r}}function u(t,e,r,a){var o,i,s,l;e=e&&e.prototype instanceof m?e:m,e=Object.create(e.prototype),a=new k(a||[]);return n(e,"_invoke",{value:(o=t,i=r,s=a,l="suspendedStart",function(t,e){if("executing"===l)throw new Error("Generator is already running");if("completed"===l){if("throw"===t)throw e;return S()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r&&(r=function t(e,r){var a=r.method,n=e.iterator[a];return void 0===n?(r.delegate=null,"throw"===a&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),f):(a=d(n,e.iterator,r.arg),"throw"===a.type?(r.method="throw",r.arg=a.arg,r.delegate=null,f):(n=a.arg,n?n.done?(r[e.resultName]=n.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):n:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)))}(r,s),r)){if(r===f)continue;return r}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===l)throw l="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(l="executing",r=d(o,i,s),"normal"===r.type){if(l=s.done?"completed":"suspendedYield",r.arg===f)continue;return{value:r.arg,done:s.done}}"throw"===r.type&&(l="completed",s.method="throw",s.arg=r.arg)}})}),e}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function m(){}function h(){}function p(){}o={};var v=(c(o,i,(function(){return this})),Object.getPrototypeOf),g=(v=v&&v(v(L([]))),v&&v!==e&&r.call(v,i)&&(o=v),p.prototype=m.prototype=Object.create(o));function y(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){var o;n(this,"_invoke",{value:function(n,i){function s(){return new e((function(o,s){!function n(o,i,s,l){var c;o=d(t[o],t,i);if("throw"!==o.type)return(i=(c=o.arg).value)&&"object"==Object(a.a)(i)&&r.call(i,"__await")?e.resolve(i.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(i).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,l)}));l(o.arg)}(n,i,o,s)}))}return o=o?o.then(s,s):s()}})}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function L(t){if(t){var e,a=t[i];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(a=function a(){for(;++e<t.length;)if(r.call(t,e))return a.value=t[e],a.done=!1,a;return a.value=void 0,a.done=!0,a}).next=a}return{next:S}}function S(){return{value:void 0,done:!0}}return n(g,"constructor",{value:h.prototype=p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,l,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},y(_.prototype),c(_.prototype,s,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,a,n,o){void 0===o&&(o=Promise);var i=new _(u(e,r,a,n),o);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},y(g),c(g,l,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),a=[];for(e in r)a.push(e);return a.reverse(),function t(){for(;a.length;){var e=a.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=L,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function a(r,a){return i.type="throw",i.arg=t,e.next=r,a&&(e.method="next",e.arg=void 0),!!a}for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;0<=a;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}var i=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,a,n=this.tryEntries[e];if(n.tryLoc===t)return"throw"===(r=n.completion).type&&(a=r.arg,x(n)),a}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var g={name:"send",props:{userIds:{type:String,default:""}},data:function(){return{modals:!1,loading:!1,couponList:[],page:{page:1,limit:15,coupon_title:"",receive_type:3},total:0}},methods:{getList:function(t){var e=this;this.loading=!0,Object(m.c)(this.page).then(function(){var t=Object(o.a)(b().mark((function t(r){var a;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:200===r.status?(a=r.data,e.couponList=a.list,e.total=a.count,e.loading=!1):(e.loading=!1,e.$message.error(r.msg));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$message.error(t.msg)}))},userSearchs:function(){this.getList()},sendGrant:function(t,e,r){var a=this;e={title:e,num:r,url:"marketing/coupon/user/grant",method:"post",ids:{id:t.id,uid:this.userIds}};this.$modalSure(e).then((function(t){a.$message.success(t.msg)})).catch((function(t){a.$message.error(t.msg)}))}}},y=(g=(r("1583"),Object(d.a)(g,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-dialog",{attrs:{visible:t.modals,"z-index":100,title:"发送优惠券","close-on-click-modal":!1,width:"1000px"},on:{"update:visible":function(e){t.modals=e}}},[r("div",{staticClass:"acea-row"},[r("span",{staticClass:"sp"},[t._v("优惠券名称:")]),r("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入优惠券名称"},model:{value:t.page.coupon_title,callback:function(e){t.$set(t.page,"coupon_title",e)},expression:"page.coupon_title"}}),r("el-button",{staticClass:"ml15",attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("查询")])],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"mt14",attrs:{data:t.couponList,"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"}},[r("el-table-column",{attrs:{label:"优惠券名称","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.title))])]}}])}),r("el-table-column",{attrs:{label:"优惠券面值","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.coupon_price))])]}}])}),r("el-table-column",{attrs:{label:"优惠券最低消费","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.use_min_price))])]}}])}),r("el-table-column",{attrs:{label:"优惠券有效期限","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.coupon_time?r("div",[t._v(t._s(e.row.coupon_time))]):r("div",[t._v(t._s(e.row.use_time))])]}}])}),r("el-table-column",{attrs:{label:"操作",fixed:"right",width:"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("a",{on:{click:function(r){return t.sendGrant(e.row,"发送优惠券",t.index)}}},[t._v("发送")])]}}])})],1),r("div",{staticClass:"acea-row row-right page"},[t.total?r("pagination",{attrs:{total:t.total,page:t.page.page,limit:t.page.limit},on:{"update:page":function(e){return t.$set(t.page,"page",e)},"update:limit":function(e){return t.$set(t.page,"limit",e)},pagination:t.getList}}):t._e()],1)],1)],1)}),[],!1,null,"7e0c8fdf",null).exports),r("a716")),_=r("c42b"),w=r("8c03"),x=r("b562");function k(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */k=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(e){c=function(t,e,r){return t[e]=r}}function u(t,e,r,a){var o,i,s,l;e=e&&e.prototype instanceof m?e:m,e=Object.create(e.prototype),a=new x(a||[]);return n(e,"_invoke",{value:(o=t,i=r,s=a,l="suspendedStart",function(t,e){if("executing"===l)throw new Error("Generator is already running");if("completed"===l){if("throw"===t)throw e;return S()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r&&(r=function t(e,r){var a=r.method,n=e.iterator[a];return void 0===n?(r.delegate=null,"throw"===a&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),f):(a=d(n,e.iterator,r.arg),"throw"===a.type?(r.method="throw",r.arg=a.arg,r.delegate=null,f):(n=a.arg,n?n.done?(r[e.resultName]=n.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):n:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f)))}(r,s),r)){if(r===f)continue;return r}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===l)throw l="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(l="executing",r=d(o,i,s),"normal"===r.type){if(l=s.done?"completed":"suspendedYield",r.arg===f)continue;return{value:r.arg,done:s.done}}"throw"===r.type&&(l="completed",s.method="throw",s.arg=r.arg)}})}),e}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var f={};function m(){}function h(){}function p(){}o={};var v=(c(o,i,(function(){return this})),Object.getPrototypeOf),b=(v=v&&v(v(L([]))),v&&v!==e&&r.call(v,i)&&(o=v),p.prototype=m.prototype=Object.create(o));function g(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){var o;n(this,"_invoke",{value:function(n,i){function s(){return new e((function(o,s){!function n(o,i,s,l){var c;o=d(t[o],t,i);if("throw"!==o.type)return(i=(c=o.arg).value)&&"object"==Object(a.a)(i)&&r.call(i,"__await")?e.resolve(i.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(i).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,l)}));l(o.arg)}(n,i,o,s)}))}return o=o?o.then(s,s):s()}})}function _(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function L(t){if(t){var e,a=t[i];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(a=function a(){for(;++e<t.length;)if(r.call(t,e))return a.value=t[e],a.done=!1,a;return a.value=void 0,a.done=!0,a}).next=a}return{next:S}}function S(){return{value:void 0,done:!0}}return n(b,"constructor",{value:h.prototype=p,configurable:!0}),n(p,"constructor",{value:h,configurable:!0}),h.displayName=c(p,l,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,l,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},g(y.prototype),c(y.prototype,s,(function(){return this})),t.AsyncIterator=y,t.async=function(e,r,a,n,o){void 0===o&&(o=Promise);var i=new y(u(e,r,a,n),o);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},g(b),c(b,l,"Generator"),c(b,i,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),a=[];for(e in r)a.push(e);return a.reverse(),function t(){for(;a.length;){var e=a.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=L,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function a(r,a){return i.type="throw",i.arg=t,e.next=r,a&&(e.method="next",e.arg=void 0),!!a}for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;0<=a;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}var i=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,a,n=this.tryEntries[e];if(n.tryLoc===t)return"throw"===(r=n.completion).type&&(a=r.arg,w(n)),a}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}u={name:"user_list",components:{expandRow:u,editFrom:f.a,sendFrom:g,userDetails:y.a,newsCategory:_.a,customerInfo:w.default,userLabel:s.a,userEdit:h},data:function(){return{dataLabel:[],selectDataLabel:[],userData:{},modals:!1,selectLabelShow:!1,labelShow:!1,customerShow:!1,promoterShow:!1,labelActive:{uid:0},formInline:{uid:0,spread_uid:0,image:""},pickerOptions:this.$timeOptions,collapse:!1,headeNum:[{type:"",name:"全部"},{type:"wechat",name:"微信公众号"},{type:"routine",name:"微信小程序"},{type:"h5",name:"H5"},{type:"pc",name:"PC"},{type:"app",name:"APP"}],address:[],addresData:[],isShowSend:!0,modal13:!1,maxCols:4,scrollerHeight:"600",contentTop:"130",contentWidth:"98%",grid:{xl:6,lg:6,md:8,sm:12,xs:24},grid2:{xl:8,lg:8,md:8,sm:12,xs:24},loading:!1,total:0,userFrom:{label_id:"",user_type:"",status:"",sex:"",is_promoter:"",country:"",isMember:"",pay_count:"",user_time_type:"",user_time:"",nickname:"",province:"",city:"",page:1,limit:15,level:"",group_id:"",field_key:""},field_key:"",level:"",group_id:"",label_id:"",user_time_type:"",pay_count:"",userLists:[],FromData:null,selectionList:[],user_ids:"",selectedData:[],timeVal:[],groupList:[],levelList:[],labelFrom:{page:1,limit:""},labelLists:[],selectedIds:[],ids:[]}},computed:Object(i.a)({},Object(l.d)("media",["isMobile"])),created:function(){this.getList(),this.getCityList()},mounted:function(){this.userGroup(),this.levelLists()},methods:{getCityList:function(){var t=this;Object(x.b)().then((function(e){t.addresData=e.data}))},setUser:function(){var t=this,e=this.$refs.userEdit.formItem,r=[];this.$refs.userEdit.dataLabel.map((function(t){r.push(t.id)})),e.label_id=r,e.uid?Object(m.h)(e).then((function(e){t.modals=!1,t.$message.success(e.msg),t.getList()})).catch((function(e){t.$message.error(e)})):Object(m.G)(e).then((function(e){t.modals=!1,t.$message.success(e.msg),t.getList()})).catch((function(e){t.$message.error(e.msg)}))},onceGetList:function(){this.labelActive.uid=0,this.getList()},labelClose:function(){this.labelActive.uid=0,this.labelShow=!1,this.selectLabelShow=!1},putSend:function(t){var e=this;this.$refs[t].validate((function(r){if(r){if(!e.formInline.spread_uid)return e.$message.error("请上传用户");Object(p.c)(e.formInline).then((function(r){e.promoterShow=!1,e.$message.success(r.msg),e.getList(),e.$refs[t].resetFields()})).catch((function(t){e.$message.error(t.msg)}))}}))},save:function(){this.modals=!0},synchro:function(){var t=this;Object(m.X)().then((function(e){t.$message.success(e.msg)})).catch((function(e){t.$message.error(e.msg)}))},isSel:function(t){return!t.is_del},groupLists:function(){var t=this;this.loading=!0,Object(m.O)(this.labelFrom).then(function(){var e=Object(o.a)(k().mark((function e(r){var a;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=r.data,t.labelLists=a.list;case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$message.error(e.msg)}))},onClickTab:function(){this.userFrom.page=1,this.getList()},userGroup:function(){var t=this;Object(m.L)({page:1,limit:""}).then((function(e){t.groupList=e.data.list}))},levelLists:function(){var t=this;Object(m.p)({page:1,limit:"",title:"",is_show:1}).then((function(e){t.levelList=e.data.list}))},setGroup:function(){var t,e=this;0===this.ids.length?this.$message.warning("请选择要设置分组的用户"):(t={uids:this.ids},this.$modalForm(Object(m.W)(t)).then((function(){return e.getList()})))},setLabel:function(){0===this.ids.length?this.$message.warning("请选择要设置标签的用户"):(this.ids,this.labelActive.uid=0,this.labelShow=!0)},activeSelectData:function(t){this.selectLabelShow=!1,this.selectDataLabel=t||[]},activeData:function(t){var e=this,r=[];t.length&&(t.map((function(t){r.push(t.id)})),Object(m.B)({uids:this.ids.join(","),label_id:r}).then((function(t){e.labelShow=!1,e.selectedIds=new Set,e.getList(),e.$message.success(t.msg)})))},changeMember:function(){this.userFrom.page=1,this.getList()},changeCountry:function(){"abroad"!==this.userFrom.country&&this.userFrom.country||(this.selectedData=[],this.userFrom.province="",this.userFrom.city="",this.address=[])},handleChange:function(t){this.selectedData=t.map((function(t){return t.label})),this.userFrom.province=this.selectedData[0],this.userFrom.city=this.selectedData[1]},onchangeTime:function(t){this.timeVal=t,this.userFrom.user_time=this.timeVal?this.timeVal.join("-"):""},userDetail:function(t){this.$refs.userDetails.modals=!0,this.$refs.userDetails.getDetails(t.uid)},changeMenu:function(t,e,r){var a=this,n=[],o=(n.push(t.uid),{uids:n});switch(e){case"1":this.edit(t);break;case"2":this.getOtherFrom(t.uid);break;case"3":this.giveLevelTime(t.uid);break;case"4":this.del(t,"清除 【 "+this.tenText(t.nickname)+" 】的会员等级",r,"user");break;case"5":this.$modalForm(Object(m.W)(o)).then((function(){return a.getList()}));break;case"6":this.openLabel(t);break;case"7":this.editS(t);break;default:this.del(t,"解除【 "+this.tenText(t.nickname)+" 】的上级推广人",r,"tuiguang")}},tenText:function(t){return 10<t.length?t.substr(0,10)+"...":t},openLabel:function(t){this.labelShow=!0,this.labelActive.uid=t.uid},openSelectLabel:function(){this.selectLabelShow=!0},editS:function(t){this.promoterShow=!0,this.formInline.uid=t.uid},customer:function(){this.customerShow=!0},imageObject:function(t){this.customerShow=!1,this.formInline.spread_uid=t.uid,this.formInline.image=t.image},cancel:function(t){this.promoterShow=!1,this.$refs[t].resetFields()},giveLevel:function(t){var e=this;this.$modalForm(Object(m.k)(t)).then((function(){return e.getList(1)}))},giveLevelTime:function(t){var e=this;this.$modalForm(Object(m.l)(t)).then((function(){return e.getList(1)}))},del:function(t,e,r,a){var n=this;e={title:e,num:r,url:("user"===a?"user/del_level/":"agent/stair/delete_spread/").concat(t.uid),method:"user"===a?"DELETE":"PUT",ids:"",width:600};this.$modalSure(e).then((function(t){n.$message.success(t.msg),n.getList()})).catch((function(t){n.$message.error(t.msg)}))},submitModel:function(){this.getList()},getList:function(){var t,e=this;this.selectDataLabel.length&&(t=[],this.selectDataLabel.forEach((function(e){t.push(e.id)})),this.userFrom.label_id=t.join(",")),this.userFrom.user_type=this.userFrom.user_type||"",this.userFrom.status=this.userFrom.status||"",this.userFrom.sex=this.userFrom.sex||"",this.userFrom.is_promoter=this.userFrom.is_promoter||"",this.userFrom.country=this.userFrom.country||"",this.userFrom.pay_count="all"===this.pay_count?"":this.pay_count,this.userFrom.user_time_type="all"===this.user_time_type?"":this.user_time_type,this.userFrom.field_key="all"===this.field_key?"":this.field_key,this.userFrom.level="all"===this.level?"":this.level,this.userFrom.group_id="all"===this.group_id?"":this.group_id,this.loading=!0,Object(m.R)(this.userFrom).then(function(){var t=Object(o.a)(k().mark((function t(r){var a;return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=r.data,e.userLists=a.list,e.total=a.count,e.loading=!1,e.$nextTick((function(){e.setChecked()}));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.loading=!1,e.$message.error(t.msg)}))},exportList:function(){var t=this;return Object(o.a)(k().mark((function e(){var r,a,n,o,i,s,l,c;return k().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.selectDataLabel.length&&(r=[],t.selectDataLabel.forEach((function(t){r.push(t.id)})),t.userFrom.label_id=r.join(",")),t.ids.length&&(t.userFrom.ids=t.ids),t.userFrom.user_type=t.userFrom.user_type||"",t.userFrom.status=t.userFrom.status||"",t.userFrom.sex=t.userFrom.sex||"",t.userFrom.is_promoter=t.userFrom.is_promoter||"",t.userFrom.country=t.userFrom.country||"",t.userFrom.pay_count="all"===t.pay_count?"":t.pay_count,t.userFrom.user_time_type="all"===t.user_time_type?"":t.user_time_type,t.userFrom.field_key="all"===t.field_key?"":t.field_key,t.userFrom.level="all"===t.level?"":t.level,t.userFrom.group_id="all"===t.group_id?"":t.group_id,a=[],n=[],o=[],i="",(s=JSON.parse(JSON.stringify(t.userFrom))).page=1,l=0;case 16:if(l<s.page+1)return e.next=19,t.getExcelData(s);e.next=33;break;case 19:c=e.sent,i=i||c.filename,n.length||(n=c.fileKey),a.length||(a=c.header),c.export.length?(o=o.concat(c.export),s.page++,e.next=30):e.next=28;break;case 28:return t.$exportExcel(a,n,i,o),e.abrupt("return");case 30:l++,e.next=16;break;case 33:case"end":return e.stop()}}),e)})))()},getExcelData:function(t){return new Promise((function(e,r){Object(v.g)(t).then((function(t){e(t.data)}))}))},pageChange:function(){this.selectionList=[],this.getList()},userSearchs:function(){this.userFrom.page=1,this.getList()},reset:function(t){this.userFrom={user_type:this.userFrom.user_type,status:"",sex:"",is_promoter:"",country:"",pay_count:"",user_time_type:"",user_time:"",nickname:"",field_key:"",level:"",group_id:"",label_id:"",page:1,limit:20},this.field_key="",this.level="",this.group_id="",this.dataLabel=[],this.selectDataLabel=[],this.user_time_type="",this.pay_count="",this.timeVal=[],this.selectedIds=new Set,this.getList()},getUserFrom:function(t){var e=this;Object(m.i)(t).then(function(){var t=Object(o.a)(k().mark((function t(r){return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.modals=!0,e.userData=r.data;case 2:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg)}))},getOtherFrom:function(t){var e=this;this.$modalForm(Object(m.g)(t)).then((function(){return e.getList(1)}))},onchangeIsShow:function(t){var e=this;t={id:t.uid,status:t.status};Object(m.o)(t).then(function(){var t=Object(o.a)(k().mark((function t(r){return k().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$message.success(r.msg);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(t){e.$message.error(t.msg)}))},onSend:function(){0===this.ids.length?this.$message.warning("请选择要发送优惠券的用户"):(this.$refs.sends.modals=!0,this.$refs.sends.getList())},onSendPic:function(){0===this.ids.length?this.$message.warning("请选择要发送图文消息的用户"):this.modal13=!0},edit:function(t){this.getUserFrom(t.uid)},submitFail:function(){},sortChanged:function(t,e,r){this.userFrom[t.prop]=t.order,this.getList()},handleSelectAll:function(t){var e=this,r=[];t.map((function(t){r.push(t.uid)})),this.selectedIds=r,this.$nextTick((function(){e.setChecked()}))},handleSelectRow:function(t,e){var r=this,a=[];t.map((function(t){a.push(t.uid)})),this.selectedIds=a,this.$nextTick((function(){r.setChecked()}))},setChecked:function(){this.ids=Object(n.a)(this.selectedIds);var t,e=this.$refs.table.objData;for(t in e)this.selectedIds.has(e[t].uid)&&(e[t]._isChecked=!0)}}},r("ae72"),f=Object(d.a)(u,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-card",{staticClass:"ivu-mt",attrs:{bordered:!1,shadow:"never","body-style":{padding:0}}},[r("div",{staticClass:"padding-add"},[r("el-form",{ref:"userFrom",attrs:{model:t.userFrom,"label-width":"80px","label-position":"right",inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[t.collapse?t._e():r("div",{staticClass:"acea-row search-form"},[r("div",[r("el-form-item",{attrs:{label:"用户标签:","label-for":"label_id"}},[r("div",{staticClass:"labelInput acea-row row-between-wrapper",on:{click:t.openSelectLabel}},[r("div",{staticStyle:{width:"222px"}},[t.selectDataLabel.length?r("div",t._l(t.selectDataLabel,(function(e,a){return r("el-tag",{key:a,staticClass:"mr10",attrs:{closable:!1}},[t._v(t._s(e.label_name))])})),1):r("span",{staticClass:"span"},[t._v("选择用户关联标签")])]),r("div",{staticClass:"ivu-icon ivu-icon-ios-arrow-down"})])]),r("el-form-item",{attrs:{label:"用户等级:","label-for":"level"}},[r("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择用户等级",clearable:""},model:{value:t.level,callback:function(e){t.level=e},expression:"level"}},[r("el-option",{attrs:{value:"all",label:"全部"}},[t._v("全部")]),t._l(t.levelList,(function(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.name}})}))],2)],1),r("el-form-item",{attrs:{label:"用户搜索:","label-for":"nickname"}},[r("el-input",{staticClass:"form_content_width",attrs:{placeholder:"请输入用户",clearable:""},model:{value:t.userFrom.nickname,callback:function(e){t.$set(t.userFrom,"nickname",e)},expression:"userFrom.nickname"}},[r("el-select",{staticStyle:{width:"100px"},attrs:{slot:"prepend"},slot:"prepend",model:{value:t.field_key,callback:function(e){t.field_key=e},expression:"field_key"}},[r("el-option",{attrs:{value:"all",label:"全部"}}),r("el-option",{attrs:{value:"uid",label:"UID"}}),r("el-option",{attrs:{value:"phone",label:"手机号"}}),r("el-option",{attrs:{value:"nickname",label:"用户昵称"}})],1)],1)],1)],1),r("el-form-item",{staticClass:"search-form-sub"},[r("el-button",{attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("搜索")]),r("el-button",{staticClass:"ResetSearch",on:{click:function(e){return t.reset("userFrom")}}},[t._v("重置")]),r("a",{staticClass:"ivu-ml-8 font12 ml10",on:{click:function(e){t.collapse=!t.collapse}}},[t.collapse?[t._v(" 收起 "),r("i",{staticClass:"el-icon-arrow-up"})]:[t._v(" 展开 "),r("i",{staticClass:"el-icon-arrow-down"})]],2)],1)],1),t.collapse?r("div",{staticClass:"acea-row search-form"},[r("div",{staticClass:"search-form-box"},[r("el-form-item",{attrs:{label:"用户搜索:","label-for":"nickname"}},[r("el-input",{staticClass:"form_content_width",attrs:{placeholder:"请输入用户",clearable:""},model:{value:t.userFrom.nickname,callback:function(e){t.$set(t.userFrom,"nickname",e)},expression:"userFrom.nickname"}},[r("el-select",{staticStyle:{width:"100px"},attrs:{slot:"prepend"},slot:"prepend",model:{value:t.field_key,callback:function(e){t.field_key=e},expression:"field_key"}},[r("el-option",{attrs:{value:"all",label:"全部"}}),r("el-option",{attrs:{value:"uid",label:"UID"}}),r("el-option",{attrs:{value:"phone",label:"手机号"}}),r("el-option",{attrs:{value:"nickname",label:"用户昵称"}})],1)],1)],1),r("el-form-item",{attrs:{label:"用户标签:","label-for":"label_id"}},[r("div",{staticClass:"labelInput acea-row row-between-wrapper",on:{click:t.openSelectLabel}},[r("div",{staticStyle:{width:"222px"}},[t.selectDataLabel.length?r("div",t._l(t.selectDataLabel,(function(e,a){return r("el-tag",{key:a,staticClass:"mr10",attrs:{closable:!1}},[t._v(t._s(e.label_name))])})),1):r("span",{staticClass:"span"},[t._v("选择用户关联标签")])]),r("div",{staticClass:"ivu-icon ivu-icon-ios-arrow-down"})])]),r("el-form-item",{attrs:{label:"下单次数:"}},[r("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择下单次数",clearable:""},model:{value:t.pay_count,callback:function(e){t.pay_count=e},expression:"pay_count"}},[r("el-option",{attrs:{value:"all",label:"全部"}}),r("el-option",{attrs:{value:"-1",label:"0次"}}),r("el-option",{attrs:{value:"0",label:"1次以上"}}),r("el-option",{attrs:{value:"1",label:"2次以上"}}),r("el-option",{attrs:{value:"2",label:"3次以上"}}),r("el-option",{attrs:{value:"3",label:"4次以上"}}),r("el-option",{attrs:{value:"4",label:"5次以上"}})],1)],1),r("el-form-item",{attrs:{label:"用户分组:"}},[r("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择用户分组",clearable:""},model:{value:t.group_id,callback:function(e){t.group_id=e},expression:"group_id"}},[r("el-option",{attrs:{value:"all",label:"全部"}}),t._l(t.groupList,(function(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.group_name}})}))],2)],1),r("el-form-item",{attrs:{label:"用户等级:","label-for":"level"}},[r("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择用户等级",clearable:""},model:{value:t.level,callback:function(e){t.level=e},expression:"level"}},[r("el-option",{attrs:{value:"all",label:"全部"}},[t._v("全部")]),t._l(t.levelList,(function(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.name}})}))],2)],1),r("el-form-item",{attrs:{label:"身份:"}},[r("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择",clearable:""},model:{value:t.userFrom.is_promoter,callback:function(e){t.$set(t.userFrom,"is_promoter",e)},expression:"userFrom.is_promoter"}},[r("el-option",{attrs:{value:"",label:"全部"}}),r("el-option",{attrs:{value:"1",label:"推广员"}}),r("el-option",{attrs:{value:"0",label:"普通用户"}})],1)],1),r("el-form-item",{attrs:{label:"付费会员:","label-for":"isMember"}},[r("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择",clearable:""},model:{value:t.userFrom.isMember,callback:function(e){t.$set(t.userFrom,"isMember",e)},expression:"userFrom.isMember"}},[r("el-option",{attrs:{value:"",label:"全部"}}),r("el-option",{attrs:{value:"1",label:"是"}}),r("el-option",{attrs:{value:"0",label:"否"}})],1)],1),r("el-form-item",{attrs:{label:"访问情况:","label-for":"user_time_type"}},[r("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择访问情况",clearable:""},model:{value:t.user_time_type,callback:function(e){t.user_time_type=e},expression:"user_time_type"}},[r("el-option",{attrs:{value:"",label:"全部"}}),r("el-option",{attrs:{value:"visitno",label:"时间段未访问"}}),r("el-option",{attrs:{value:"visit",label:"时间段访问过"}}),r("el-option",{attrs:{value:"add_time",label:"首次访问"}})],1)],1),t.user_time_type?r("el-form-item",{attrs:{label:"访问时间:","label-for":"user_time"}},[r("el-date-picker",{staticStyle:{width:"250px"},attrs:{clearable:"",type:"daterange",editable:!1,format:"yyyy/MM/dd","value-format":"yyyy/MM/dd","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":t.pickerOptions},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1):t._e(),r("el-form-item",{attrs:{label:"地区:","label-for":"country"}},[r("el-select",{staticClass:"form_content_width",attrs:{placeholder:"请选择国家",clearable:""},on:{change:t.changeCountry},model:{value:t.userFrom.country,callback:function(e){t.$set(t.userFrom,"country",e)},expression:"userFrom.country"}},[r("el-option",{attrs:{value:"domestic",label:"中国"}}),r("el-option",{attrs:{value:"abroad",label:"外国"}})],1)],1),"domestic"===t.userFrom.country?r("el-form-item",{attrs:{label:"省份:"}},[r("el-cascader",{staticStyle:{width:"250px"},attrs:{options:t.addresData,value:t.address,clearable:""},on:{change:t.handleChange},model:{value:t.address,callback:function(e){t.address=e},expression:"address"}})],1):t._e()],1),r("el-form-item",{staticClass:"search-form-sub"},[r("el-button",{attrs:{type:"primary",label:"default"},on:{click:t.userSearchs}},[t._v("搜索")]),r("el-button",{staticClass:"ResetSearch",on:{click:function(e){return t.reset("userFrom")}}},[t._v("重置")]),r("a",{staticClass:"ivu-ml-8 font12 ml10",on:{click:function(e){t.collapse=!t.collapse}}},[t.collapse?[t._v(" 收起 "),r("i",{staticClass:"el-icon-arrow-up"})]:[t._v(" 展开 "),r("i",{staticClass:"el-icon-arrow-down"})]],2)],1)],1):t._e()])],1)]),r("el-card",{staticClass:"ivu-mt mt16",attrs:{bordered:!1,shadow:"never","body-style":{padding:"0 20px 20px"}}},[r("el-tabs",{on:{"tab-click":t.onClickTab},model:{value:t.userFrom.user_type,callback:function(e){t.$set(t.userFrom,"user_type",e)},expression:"userFrom.user_type"}},t._l(t.headeNum,(function(t,e){return r("el-tab-pane",{key:e,attrs:{label:t.name,name:t.type}})})),1),r("el-row",{attrs:{gutter:24,justify:"space-between"}},[r("el-col",{attrs:{span:24}},[r("el-button",{directives:[{name:"auth",rawName:"v-auth",value:["admin-user-save"],expression:"['admin-user-save']"}],attrs:{type:"primary"},on:{click:function(e){return t.edit({uid:0})}}},[t._v("添加用户")]),r("el-button",{directives:[{name:"auth",rawName:"v-auth",value:["admin-user-coupon"],expression:"['admin-user-coupon']"}],on:{click:t.onSend}},[t._v("发送优惠券")]),"wechat"===t.userFrom.user_type?r("el-button",{directives:[{name:"auth",rawName:"v-auth",value:["admin-wechat-news"],expression:"['admin-wechat-news']"}],staticClass:"greens mr10",on:{click:t.onSendPic}},[t._v("\n 发送图文消息\n ")]):t._e(),r("el-button",{directives:[{name:"auth",rawName:"v-auth",value:["admin-user-group_set"],expression:"['admin-user-group_set']"}],on:{click:t.setGroup}},[t._v("批量设置分组")]),r("el-button",{directives:[{name:"auth",rawName:"v-auth",value:["admin-user-set_label"],expression:"['admin-user-set_label']"}],on:{click:t.setLabel}},[t._v("批量设置标签")]),r("el-button",{staticClass:"mr10",on:{click:t.exportList}},[t._v("导出")])],1),t.selectionList.length?r("el-col",{staticClass:"userAlert",attrs:{span:24}},[r("el-alert",{attrs:{"show-icon":""}},[r("template",{slot:"title"},[t._v("\n 已选择"),r("i",{staticClass:"userI"},[t._v(" "+t._s(t.selectionList.length)+" ")]),t._v("项\n ")])],2)],1):t._e()],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"table",staticClass:"mt16",attrs:{data:t.userLists,"highlight-current-row":"","empty-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果"},on:{"sort-change":t.sortChanged,select:t.handleSelectRow,"select-all":t.handleSelectAll}},[r("el-table-column",{attrs:{type:"expand"},scopedSlots:t._u([{key:"default",fn:function(t){return[r("expandRow",{attrs:{row:t.row}})]}}])}),r("el-table-column",{attrs:{type:"selection",selectable:t.isSel,width:"55"}}),r("el-table-column",{attrs:{label:"用户ID","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.uid))])]}}])}),r("el-table-column",{attrs:{label:"头像","min-width":"60"},scopedSlots:t._u([{key:"default",fn:function(t){return[r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.row.avatar,expression:"scope.row.avatar"}]})])]}}])}),r("el-table-column",{attrs:{label:"姓名","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",{staticClass:"acea-row"},[r("i",{directives:[{name:"show",rawName:"v-show",value:"男"===e.row.sex,expression:"scope.row.sex === '男'"}],staticClass:"el-icon-male",staticStyle:{color:"#2db7f5","font-size":"15px"}}),r("i",{directives:[{name:"show",rawName:"v-show",value:"女"===e.row.sex,expression:"scope.row.sex === '女'"}],staticClass:"el-icon-female",staticStyle:{color:"#ed4014","font-size":"15px"}}),r("div",{domProps:{textContent:t._s(e.row.nickname)}})]),1==e.row.is_del?r("div",{staticStyle:{color:"red"}},[t._v("用户已注销")]):t._e()]}}])}),r("el-table-column",{attrs:{label:"付费会员","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v(t._s(e.row.isMember?"是":"否"))])]}}])}),r("el-table-column",{attrs:{label:"用户等级","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v(t._s(e.row.level))])]}}])}),r("el-table-column",{attrs:{label:"分组","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v(t._s(e.row.group_id))])]}}])}),r("el-table-column",{attrs:{label:"手机号","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v(t._s(e.row.phone))])]}}])}),r("el-table-column",{attrs:{label:"用户类型","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v(t._s(e.row.user_type))])]}}])}),r("el-table-column",{attrs:{label:"余额",prop:"now_money","min-width":"100",sortable:!0},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v(t._s(e.row.now_money))])]}}])}),r("el-table-column",{attrs:{label:"操作",fixed:"right",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[1!=e.row.is_del?[r("a",{on:{click:function(r){return t.userDetail(e.row)}}},[t._v("详情")]),r("el-divider",{attrs:{direction:"vertical"}}),r("el-dropdown",{attrs:{size:"small",transfer:!0},on:{command:function(r){return t.changeMenu(e.row,r,e.$index)}}},[r("span",{staticClass:"el-dropdown-link"},[t._v("更多"),r("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),r("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[r("el-dropdown-item",{attrs:{command:"2"}},[t._v("积分余额")]),r("el-dropdown-item",{attrs:{command:"3"}},[t._v("赠送会员")]),r("el-dropdown-item",{attrs:{command:"5"}},[t._v("设置分组")]),r("el-dropdown-item",{attrs:{command:"6"}},[t._v("设置标签")]),r("el-dropdown-item",{attrs:{command:"7"}},[t._v("修改上级推广人")]),e.row.spread_uid?r("el-dropdown-item",{attrs:{command:"8"}},[t._v("清除上级推广人")]):t._e()],1)],1)]:[r("a",{on:{click:function(r){return t.userDetail(e.row)}}},[t._v("详情")])]]}}])})],1),r("div",{staticClass:"acea-row row-right page"},[t.total?r("pagination",{attrs:{total:t.total,page:t.userFrom.page,limit:t.userFrom.limit},on:{"update:page":function(e){return t.$set(t.userFrom,"page",e)},"update:limit":function(e){return t.$set(t.userFrom,"limit",e)},pagination:t.pageChange}}):t._e()],1)],1),r("edit-from",{ref:"edits",attrs:{FromData:t.FromData},on:{submitFail:t.submitFail}}),r("send-from",{ref:"sends",attrs:{userIds:t.ids.toString()}}),r("user-details",{ref:"userDetails"}),r("el-dialog",{staticClass:"modelBox",attrs:{visible:t.modal13,title:"发送消息",width:"1200px"},on:{"update:visible":function(e){t.modal13=e}}},[t.modal13?r("news-category",{attrs:{isShowSend:t.isShowSend,userIds:t.ids.toString(),scrollerHeight:t.scrollerHeight,contentTop:t.contentTop,contentWidth:t.contentWidth,maxCols:t.maxCols}}):t._e()],1),r("el-dialog",{attrs:{visible:t.promoterShow,title:"修改推广人",width:"540px","show-close":!0},on:{"update:visible":function(e){t.promoterShow=e}}},[r("el-form",{ref:"formInline",attrs:{model:t.formInline,"label-width":"100px"},nativeOn:{submit:function(t){t.preventDefault()}}},[t.formInline?r("el-form-item",{attrs:{label:"选择推广人:",prop:"image"}},[r("div",{staticClass:"picBox",on:{click:t.customer}},[t.formInline.image?r("div",{staticClass:"pictrue"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.formInline.image,expression:"formInline.image"}]})]):r("div",{staticClass:"upLoad acea-row row-center-wrapper"},[r("i",{staticClass:"el-icon-user"})])])]):t._e()],1),r("div",{staticClass:"acea-row row-right mt20"},[r("el-button",{on:{click:function(e){return t.cancel("formInline")}}},[t._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.putSend("formInline")}}},[t._v("提交")])],1)],1),r("el-dialog",{attrs:{visible:t.customerShow,title:"请选择商城用户","show-close":!0,width:"1000px"},on:{"update:visible":function(e){t.customerShow=e}}},[t.customerShow?r("customerInfo",{on:{imageObject:t.imageObject}}):t._e()],1),r("el-dialog",{attrs:{visible:t.labelShow,title:"请选择用户标签",width:"540px","show-close":!0},on:{"update:visible":function(e){t.labelShow=e}}},[t.labelShow?r("userLabel",{attrs:{uid:t.labelActive.uid,only_get:!t.labelActive.uid},on:{close:t.labelClose,activeData:t.activeData,onceGetList:t.onceGetList}}):t._e()],1),r("el-drawer",{attrs:{visible:t.modals,wrapperClosable:!1,size:"720",title:"用户信息填写"},on:{"update:visible":function(e){t.modals=e}}},[t.modals?r("userEdit",{ref:"userEdit",attrs:{userData:t.userData}}):t._e(),r("div",{staticClass:"acea-row row-center"},[r("el-button",{on:{click:function(e){t.modals=!1}}},[t._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:t.setUser}},[t._v("提交")])],1)],1),r("el-dialog",{attrs:{visible:t.selectLabelShow,title:"请选择用户标签",width:"540px","show-close":!0,"close-on-click-modal":!1},on:{"update:visible":function(e){t.selectLabelShow=e}}},[t.selectLabelShow?r("userLabel",{ref:"userLabel",attrs:{uid:0,only_get:!0},on:{activeData:t.activeSelectData,close:t.labelClose}}):t._e()],1)],1)}),[],!1,null,"4bda3e17",null),e.default=f.exports},1583:function(t,e,r){"use strict";var a=r("4612");r.n(a).a},"16de":function(t,e,r){"use strict";var a=r("1e1a");r.n(a).a},"1e1a":function(t,e,r){},"2c3e":function(t,e,r){var a=r("da84"),n=r("83ab"),o=r("9f7f").MISSED_STICKY,i=r("c6b6"),s=r("edd0"),l=r("69f3").get,c=RegExp.prototype,u=a.TypeError;n&&o&&s(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===i(this))return!!l(this).sticky;throw u("Incompatible receiver, RegExp required")}}})},"3f03":function(t,e,r){"use strict";var a=r("6f5d");r.n(a).a},"3f2a":function(t,e,r){"use strict";r.d(e,"g",(function(){return n})),r.d(e,"d",(function(){return o})),r.d(e,"c",(function(){return i})),r.d(e,"e",(function(){return s})),r.d(e,"a",(function(){return l})),r.d(e,"b",(function(){return c})),r.d(e,"f",(function(){return u})),r.d(e,"h",(function(){return d}));var a=r("6b6c");function n(t){return Object(a.a)({url:"/export/user_list",method:"get",params:t})}function o(t){return Object(a.a)({url:"/export/order_list",method:"get",params:t})}function i(t){return Object(a.a)({url:"/export/order_delivery_list",method:"get",params:t})}function s(t){return Object(a.a)({url:"/export/product_list",method:"get",params:t})}function l(t){return Object(a.a)({url:"/export/bargain_list",method:"get",params:t})}function c(t){return Object(a.a)({url:"/export/combination_list",method:"get",params:t})}function u(t){return Object(a.a)({url:"/export/seckill_list",method:"get",params:t})}function d(t){return Object(a.a)({url:"/export/member_card/".concat(t),method:"get"})}},4612:function(t,e,r){},"4d63":function(t,e,r){var a=r("83ab"),n=r("da84"),o=r("e330"),i=r("94ca"),s=r("7156"),l=r("9112"),c=r("241c").f,u=r("3a9b"),d=r("44e7"),f=r("577e"),m=r("90d8"),h=r("9f7f"),p=r("aeb0"),v=r("cb2d"),b=r("d039"),g=r("1a2d"),y=r("69f3").enforce,_=r("2626"),w=r("b622"),x=r("fce3"),k=r("107c"),L=w("match"),S=n.RegExp,C=S.prototype,O=n.SyntaxError,I=o(C.exec),j=o("".charAt),F=o("".replace),E=o("".indexOf),$=o("".slice),D=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,N=/a/g,T=/a/g,G=(r=new S(N)!==N,h.MISSED_STICKY),P=h.UNSUPPORTED_Y;w=a&&(!r||G||x||k||b((function(){return T[L]=!1,S(N)!=N||S(T)==T||"/a/i"!=S(N,"i")})));if(i("RegExp",w)){function R(t,e){var r,a,n=u(C,this),o=d(t),i=void 0===e,c=[],h=t;if(!n&&o&&i&&t.constructor===R)return t;if((o||u(C,t))&&(t=t.source,i&&(e=m(h))),t=void 0===t?"":f(t),e=void 0===e?"":f(e),h=t,o=e=x&&"dotAll"in N&&(r=!!e&&-1<E(e,"s"))?F(e,/s/g,""):e,G&&"sticky"in N&&(a=!!e&&-1<E(e,"y"))&&P&&(e=F(e,/y/g,"")),k&&(t=(i=function(t){for(var e,r=t.length,a=0,n="",o=[],i={},s=!1,l=!1,c=0,u="";a<=r;a++){if("\\"===(e=j(t,a)))e+=j(t,++a);else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:I(D,$(t,a+1))&&(a+=2,l=!0),n+=e,c++;continue;case">"===e&&l:if(""===u||g(i,u))throw new O("Invalid capture group name");i[u]=!0,l=!(o[o.length]=[u,c]),u="";continue}l?u+=e:n+=e}return[n,o]}(t))[0],c=i[1]),i=s(S(t,e),n?this:C,R),(r||a||c.length)&&(e=y(i),r&&(e.dotAll=!0,e.raw=R(function(t){for(var e,r=t.length,a=0,n="",o=!1;a<=r;a++)"\\"===(e=j(t,a))?n+=e+j(t,++a):o||"."!==e?("["===e?o=!0:"]"===e&&(o=!1),n+=e):n+="[\\s\\S]";return n}(t),o)),a&&(e.sticky=!0),c.length&&(e.groups=c)),t!==h)try{l(i,"source",""===h?"(?:)":h)}catch(t){}return i}for(var V=c(S),M=0;V.length>M;)p(R,S,V[M++]);(C.constructor=R).prototype=C,v(n,"RegExp",R,{constructor:!0})}_("RegExp")},"61f7":function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),r.d(e,"c",(function(){return l})),r.d(e,"b",(function(){return c}));var a=r("fc11"),n=r("f3f3");function o(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var r,a,n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(r in n)new RegExp("(".concat(r,")")).test(e)&&(a=n[r]+"",e=e.replace(RegExp.$1,1===RegExp.$1.length?a:("00"+a).substr(a.length)));return e}r("ac1f"),r("00b4"),r("5319"),r("4d63"),r("c607"),r("2c3e"),r("25f0"),r("498a"),r("d3b7"),r("b64b"),r("99af");var i={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"};function s(t,e){t.message=function(t){return e.replace("%s",t||"")}}function l(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object(n.a)({required:!0,message:t,type:"string"},e)}function c(t){return u.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}s(l,"请输入%s"),s(c,"%s格式不正确");var u=Object.keys(i).reduce((function(t,e){return t[e]=function(t){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i="range"===e?{min:t[0],max:t[1]}:Object(a.a)({},e,t);return Object(n.a)(Object(n.a)({message:r.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},i),o)},s(t[e],i[e]),t}),{})},"6f5d":function(t,e,r){},"8c03":function(t,e,r){"use strict";r.r(e);var a=r("0122"),n=r("c964"),o=(r("a15b"),r("d81d"),r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("d9e2"),r("159b"),r("b0c0"),r("131a"),r("fb6a"),r("90e7"));function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(e){u=function(t,e,r){return t[e]=r}}function d(t,e,r,a){var o,i,s,l;e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),a=new k(a||[]);return n(e,"_invoke",{value:(o=t,i=r,s=a,l="suspendedStart",function(t,e){if("executing"===l)throw new Error("Generator is already running");if("completed"===l){if("throw"===t)throw e;return S()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r&&(r=function t(e,r){var a=r.method,n=e.iterator[a];return void 0===n?(r.delegate=null,"throw"===a&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),m):(a=f(n,e.iterator,r.arg),"throw"===a.type?(r.method="throw",r.arg=a.arg,r.delegate=null,m):(n=a.arg,n?n.done?(r[e.resultName]=n.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,m):n:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)))}(r,s),r)){if(r===m)continue;return r}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===l)throw l="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(l="executing",r=f(o,i,s),"normal"===r.type){if(l=s.done?"completed":"suspendedYield",r.arg===m)continue;return{value:r.arg,done:s.done}}"throw"===r.type&&(l="completed",s.method="throw",s.arg=r.arg)}})}),e}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=d;var m={};function h(){}function p(){}function v(){}o={};var b=(u(o,s,(function(){return this})),Object.getPrototypeOf),g=(b=b&&b(b(L([]))),b&&b!==e&&r.call(b,s)&&(o=b),v.prototype=h.prototype=Object.create(o));function y(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){var o;n(this,"_invoke",{value:function(n,i){function s(){return new e((function(o,s){!function n(o,i,s,l){var c;o=f(t[o],t,i);if("throw"!==o.type)return(i=(c=o.arg).value)&&"object"==Object(a.a)(i)&&r.call(i,"__await")?e.resolve(i.__await).then((function(t){n("next",t,s,l)}),(function(t){n("throw",t,s,l)})):e.resolve(i).then((function(t){c.value=t,s(c)}),(function(t){return n("throw",t,s,l)}));l(o.arg)}(n,i,o,s)}))}return o=o?o.then(s,s):s()}})}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function L(t){if(t){var e,a=t[s];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(a=function a(){for(;++e<t.length;)if(r.call(t,e))return a.value=t[e],a.done=!1,a;return a.value=void 0,a.done=!0,a}).next=a}return{next:S}}function S(){return{value:void 0,done:!0}}return n(g,"constructor",{value:p.prototype=v,configurable:!0}),n(v,"constructor",{value:p,configurable:!0}),p.displayName=u(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,u(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},y(_.prototype),u(_.prototype,l,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,a,n,o){void 0===o&&(o=Promise);var i=new _(d(e,r,a,n),o);return t.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},y(g),u(g,c,"Generator"),u(g,s,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),a=[];for(e in r)a.push(e);return a.reverse(),function t(){for(;a.length;){var e=a.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=L,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function a(r,a){return i.type="throw",i.arg=t,e.next=r,a&&(e.method="next",e.arg=void 0),!!a}for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;0<=a;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}var i=(o=o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,a,n=this.tryEntries[e];if(n.tryLoc===t)return"throw"===(r=n.completion).type&&(a=r.arg,x(n)),a}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),m}},t}var s={name:"index",data:function(){return{formValidate:{page:1,limit:15,data:"",nickname:""},tableList2:[],timeVal:[],fromList:{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"}]},currentid:0,productRow:{},loading2:!1,total2:0}},created:function(){},mounted:function(){this.getListService()},methods:{onchangeTime:function(t){this.timeVal=t,this.formValidate.data=this.timeVal?this.timeVal.join("-"):"",this.getListService()},selectChange:function(t){this.formValidate.data=t,this.timeVal=[],this.getListService()},getListService:function(){var t=this;this.loading2=!0,Object(o.G)(this.formValidate).then(function(){var e=Object(n.a)(i().mark((function e(r){var a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=r.data,t.tableList2=a.list,t.total2=a.count,t.tableList2.map((function(t){t._isChecked=!1})),t.loading2=!1;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading2=!1,t.$message.error(e.msg)}))},userSearchs:function(){this.formValidate.page=1,this.getListService()},currentidRadio:function(t){self.currentid=t.uid,this.productRow=t,this.productRow.uid?"image"===this.$route.query.fodder?(t={image:this.productRow.headimgurl,uid:this.productRow.uid},form_create_helper.set("image",t),form_create_helper.close("image")):this.$emit("imageObject",{image:this.productRow.headimgurl,uid:this.productRow.uid}):this.$message.warning("请先选择商品")}}};r("c479"),r=r("2877"),r=Object(r.a)(s,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"customer"},[r("el-form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":"80px",inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[r("el-form-item",{attrs:{label:"搜索日期:"}},[r("el-date-picker",{staticStyle:{width:"250px"},attrs:{editable:!1,"value-format":"yyyy/MM/dd",type:"daterange",placement:"bottom-end","range-separator":"-","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.onchangeTime},model:{value:t.timeVal,callback:function(e){t.timeVal=e},expression:"timeVal"}})],1),r("el-form-item",{attrs:{label:"用户名称:"}},[r("el-input",{staticClass:"form_content_width",attrs:{clearable:"",placeholder:"请输入用户名称"},model:{value:t.formValidate.nickname,callback:function(e){t.$set(t.formValidate,"nickname",e)},expression:"formValidate.nickname"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:t.userSearchs}},[t._v("查询")])],1)],1),r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading2,expression:"loading2"}],ref:"selection",staticClass:"mt15",attrs:{"highlight-current-row":"","no-userFrom-text":"暂无数据","no-filtered-userFrom-text":"暂无筛选结果",data:t.tableList2,height:"450"}},[r("el-table-column",{attrs:{width:"50"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-radio",{attrs:{disabled:!!e.row.is_del,label:e.row.uid},on:{input:function(){return t.currentidRadio(e.row)}},model:{value:t.currentid,callback:function(e){t.currentid=e},expression:"currentid"}},[t._v(" ")])]}}])}),r("el-table-column",{attrs:{label:"ID",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",[t._v(t._s(e.row.uid))])]}}])}),r("el-table-column",{attrs:{label:"微信用户名称","min-width":"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v(t._s(e.row.nickname))]),r("div",{staticStyle:{color:"red"}},[t._v(t._s(e.row.is_del?"用户已注销":""))])]}}])}),r("el-table-column",{attrs:{label:"客服头像","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(t){return[r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"tabBox_img"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.row.headimgurl,expression:"scope.row.headimgurl"}]})])]}}])}),r("el-table-column",{attrs:{label:"用户类型","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return["wechat"===e.row.user_type?r("span",[t._v("公众号")]):"routine"===e.row.user_type?r("span",[t._v("小程序")]):"h5"===e.row.user_type?r("span",[t._v("H5")]):"pc"===e.row.user_type?r("span",[t._v("PC")]):r("span",[t._v("--")])]}}])}),r("el-table-column",{attrs:{label:"性别","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",{directives:[{name:"show",rawName:"v-show",value:1===e.row.sex,expression:"scope.row.sex === 1"}]},[t._v("男")]),r("span",{directives:[{name:"show",rawName:"v-show",value:2===e.row.sex,expression:"scope.row.sex === 2"}]},[t._v("女")]),r("span",{directives:[{name:"show",rawName:"v-show",value:0===e.row.sex,expression:"scope.row.sex === 0"}]},[t._v("保密")]),r("span",{directives:[{name:"show",rawName:"v-show",value:null===e.row.sex,expression:"scope.row.sex === null"}]},[t._v("--")])]}}])}),r("el-table-column",{attrs:{label:"是否关注公众号","min-width":"130"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("span",{domProps:{textContent:t._s(1===e.row.subscribe?"关注":"未关注")}})]}}])})],1),r("div",{staticClass:"acea-row row-right page"},[t.total2?r("pagination",{attrs:{total:t.total2,page:t.formValidate.page,limit:t.formValidate.limit},on:{"update:page":function(e){return t.$set(t.formValidate,"page",e)},"update:limit":function(e){return t.$set(t.formValidate,"limit",e)},pagination:t.getListService}}):t._e()],1)],1)}),[],!1,null,"2f15f824",null);e.default=r.exports},"96bb":function(t,e,r){},ae72:function(t,e,r){"use strict";var a=r("96bb");r.n(a).a},bbbc:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return o})),r.d(e,"n",(function(){return i})),r.d(e,"m",(function(){return s})),r.d(e,"h",(function(){return l})),r.d(e,"j",(function(){return c})),r.d(e,"i",(function(){return u})),r.d(e,"o",(function(){return d})),r.d(e,"l",(function(){return f})),r.d(e,"f",(function(){return m})),r.d(e,"a",(function(){return h})),r.d(e,"e",(function(){return p})),r.d(e,"k",(function(){return v})),r.d(e,"d",(function(){return b})),r.d(e,"g",(function(){return g})),r("99af");var a=r("6b6c");function n(t){return Object(a.a)({url:"agent/index",method:"get",params:t})}function o(t){return Object(a.a)({url:"agent/spread",method:"PUT",data:t})}function i(t){return Object(a.a)({url:"agent/statistics",method:"get",params:t})}function s(t,e){return Object(a.a)({url:t,method:"get",params:e})}function l(t){return Object(a.a)({url:"agent/look_code",method:"get",params:t})}function c(t){return Object(a.a)({url:"agent/look_xcx_code",method:"get",params:t})}function u(t){return Object(a.a)({url:"agent/look_h5_code",method:"get",params:t})}function d(t){return Object(a.a)({url:"export/userAgent",method:"get",params:t})}function f(t){return Object(a.a)({url:"agent/division/list",method:"get",params:t})}function m(t){return Object(a.a)({url:"agent/division/agent_apply/list",method:"get",params:t})}function h(t){return Object(a.a)({url:"agent/division/agent/create/".concat(t),method:"get"})}function p(t,e){return Object(a.a)({url:"agent/division/examine_apply/".concat(t,"/").concat(e),method:"get"})}function v(t){return Object(a.a)({url:"agent/division/create/".concat(t),method:"get"})}function b(t){return Object(a.a)({url:"agent/division/down_list",method:"get",params:t})}function g(t){return Object(a.a)({url:"agent/division/set_status/".concat(t.status,"/").concat(t.id),method:"put"})}},c479:function(t,e,r){"use strict";var a=r("f691");r.n(a).a},c607:function(t,e,r){var a=r("da84"),n=r("83ab"),o=r("fce3"),i=r("c6b6"),s=r("edd0"),l=r("69f3").get,c=RegExp.prototype,u=a.TypeError;n&&o&&s(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===i(this))return!!l(this).dotAll;throw u("Incompatible receiver, RegExp required")}}})},f691:function(t,e,r){}}]);