You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
19 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0116158a"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),Math.easeInOutQuad=function(t,e,a,n){return t/=n/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var n=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function r(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(t,e,a){var i=o(),s=t-i,c=20,l=0;e="undefined"===typeof e?500:e;var u=function t(){l+=c;var o=Math.easeInOutQuad(l,i,s,e);r(o),l<e?n(t):a&&"function"===typeof a&&a()};u()}},"27ae":function(t,e,a){(function(a){var n,r;(function(e,a){t.exports=a(e)})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof a?a:this,(function(a){"use strict";a=a||{};var o,i=a.Base64,s="2.6.4",c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=function(t){for(var e={},a=0,n=t.length;a<n;a++)e[t.charAt(a)]=a;return e}(c),u=String.fromCharCode,m=function(t){if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?u(192|e>>>6)+u(128|63&e):u(224|e>>>12&15)+u(128|e>>>6&63)+u(128|63&e)}e=65536+1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320);return u(240|e>>>18&7)+u(128|e>>>12&63)+u(128|e>>>6&63)+u(128|63&e)},d=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,f=function(t){return t.replace(d,m)},b=function(t){var e=[0,2,1][t.length%3],a=t.charCodeAt(0)<<16|(t.length>1?t.charCodeAt(1):0)<<8|(t.length>2?t.charCodeAt(2):0),n=[c.charAt(a>>>18),c.charAt(a>>>12&63),e>=2?"=":c.charAt(a>>>6&63),e>=1?"=":c.charAt(63&a)];return n.join("")},p=a.btoa&&"function"==typeof a.btoa?function(t){return a.btoa(t)}:function(t){if(t.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return t.replace(/[\s\S]{1,3}/g,b)},g=function(t){return p(f(String(t)))},h=function(t){return t.replace(/[+\/]/g,(function(t){return"+"==t?"-":"_"})).replace(/=/g,"")},v=function(t,e){return e?h(g(t)):g(t)},T=function(t){return v(t,!0)};a.Uint8Array&&(o=function(t,e){for(var a="",n=0,r=t.length;n<r;n+=3){var o=t[n],i=t[n+1],s=t[n+2],l=o<<16|i<<8|s;a+=c.charAt(l>>>18)+c.charAt(l>>>12&63)+("undefined"!=typeof i?c.charAt(l>>>6&63):"=")+("undefined"!=typeof s?c.charAt(63&l):"=")}return e?h(a):a});var y,w=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,x=function(t){switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),a=e-65536;return u(55296+(a>>>10))+u(56320+(1023&a));case 3:return u((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return u((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},C=function(t){return t.replace(w,x)},A=function(t){var e=t.length,a=e%4,n=(e>0?l[t.charAt(0)]<<18:0)|(e>1?l[t.charAt(1)]<<12:0)|(e>2?l[t.charAt(2)]<<6:0)|(e>3?l[t.charAt(3)]:0),r=[u(n>>>16),u(n>>>8&255),u(255&n)];return r.length-=[0,0,2,1][a],r.join("")},O=a.atob&&"function"==typeof a.atob?function(t){return a.atob(t)}:function(t){return t.replace(/\S{1,4}/g,A)},P=function(t){return O(String(t).replace(/[^A-Za-z0-9\+\/]/g,""))},k=function(t){return C(O(t))},L=function(t){return String(t).replace(/[-_]/g,(function(t){return"-"==t?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},S=function(t){return k(L(t))};a.Uint8Array&&(y=function(t){return Uint8Array.from(P(L(t)),(function(t){return t.charCodeAt(0)}))});var j=function(){var t=a.Base64;return a.Base64=i,t};if(a.Base64={VERSION:s,atob:P,btoa:p,fromBase64:S,toBase64:v,utob:f,encode:v,encodeURI:T,btou:C,decode:S,noConflict:j,fromUint8Array:o,toUint8Array:y},"function"===typeof Object.defineProperty){var E=function(t){return{value:t,enumerable:!1,writable:!0,configurable:!0}};a.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",E((function(){return S(this)}))),Object.defineProperty(String.prototype,"toBase64",E((function(t){return v(this,t)}))),Object.defineProperty(String.prototype,"toBase64URI",E((function(){return v(this,!0)})))}}return a["Meteor"]&&(Base64=a.Base64),t.exports?t.exports.Base64=a.Base64:(n=[],r=function(){return a.Base64}.apply(e,n),void 0===r||(t.exports=r)),{Base64:a.Base64}}))}).call(this,a("c8ba"))},3319:function(t,e,a){},"366b":function(t,e,a){"use strict";a("99af");var n=a("9256"),r={getMemberList:"/member/page",addTag:"/member/addTag",forbiddenMember:"/member/forbidden",getMemberInfo:"/member/query/",getMemberAddress:"/memberAddress/page",getOrderList:"/order/findAdminOrderList",getCustomData:"/order/getOrderStatisticsByMid/",getCommentList:"/comment/findCommentList"};e["a"]={getMemberList:function(t){return Object(n["a"])({method:"POST",url:r.getMemberList,data:t})},addTag:function(t){return Object(n["a"])({method:"POST",url:r.addTag,data:t})},forbiddenMember:function(t){return Object(n["a"])({method:"POST",url:r.forbiddenMember,data:t})},getMemberInfo:function(t){return Object(n["a"])({method:"GET",url:"".concat(r.getMemberInfo).concat(t)})},getCustomData:function(t){return Object(n["a"])({method:"GET",url:"".concat(r.getCustomData).concat(t)})},getOrderList:function(t){return Object(n["a"])({method:"POST",url:r.getOrderList,data:t})},getCommentList:function(t){return Object(n["a"])({method:"POST",url:r.getCommentList,data:t})},getMemberAddress:function(t){return Object(n["a"])({method:"POST",url:r.getMemberAddress,data:t})}}},"4fad":function(t,e,a){var n=a("23e7"),r=a("6f53").entries;n({target:"Object",stat:!0},{entries:function(t){return r(t)}})},"6f53":function(t,e,a){var n=a("83ab"),r=a("df75"),o=a("fc6a"),i=a("d1e7").f,s=function(t){return function(e){var a,s=o(e),c=r(s),l=c.length,u=0,m=[];while(l>u)a=c[u++],n&&!i.call(s,a)||m.push(t?[a,s[a]]:s[a]);return m}};t.exports={entries:s(!0),values:s(!1)}},"7d05":function(t,e,a){},"80bc":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"label_page"},[a("el-dialog",{attrs:{title:t.dialog.title,visible:t.dialog.visible,width:"40%","before-close":t.close},on:{"update:visible":function(e){return t.$set(t.dialog,"visible",e)}}},[a("el-form",{attrs:{"label-width":"100px"}},[a("el-form-item",{attrs:{label:"标签名称"}},[a("el-col",{attrs:{span:12}},[a("el-input",{model:{value:t.form.model.name,callback:function(e){t.$set(t.form.model,"name",e)},expression:"form.model.name"}})],1),a("el-col",{staticClass:"el_col_text",attrs:{span:6}},[a("el-button",{on:{click:t.fetch}},[t._v("查询")])],1),a("el-col",{staticClass:"el_col_text",attrs:{span:6}},[a("span",{on:{click:t.manageTag}},[t._v("管理标签")])])],1),a("el-form-item",[a("el-row",[a("el-checkbox-group",{model:{value:t.checkList,callback:function(e){t.checkList=e},expression:"checkList"}},t._l(t.tableData.records,(function(e,n){return a("el-row",{key:n},[a("el-checkbox",{attrs:{label:e.id}},[t._v(t._s(e.name))])],1)})),1)],1),a("el-row",[a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.tableData.total>0,expression:"tableData.total > 0"}],attrs:{limit:t.form.size,page:t.form.current,total:Number(t.tableData.total)},on:{"update:limit":function(e){return t.$set(t.form,"size",e)},"update:page":function(e){return t.$set(t.form,"current",e)},pagination:t.fetch}})],1)],1)],1),a("div",{staticStyle:{"text-align":"center"}},[a("el-button",{on:{click:t.close}},[t._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:t.confirm}},[t._v("确 定")])],1)],1)],1)},r=[],o=(a("4160"),a("159b"),a("96cf"),a("1da1")),i=a("ac44"),s=a("333d"),c={components:{Pagination:s["a"]},props:{dialog:{type:Object,default:function(){return{}}}},data:function(){return{form:{current:1,map:{},model:{name:"",type:""},order:"descending",size:10,sort:"id"},checkList:[],list:[{name:"潜在客户",id:"1"},{name:"土豪",id:"2"},{name:"小气",id:"3"}],tableData:{}}},created:function(){this.getLabelList(),this.queryTag()},methods:{getLabelList:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,i["a"].getLabelList(t.form);case 2:a=e.sent,n=a.data,0===n.code&&(t.tableData=n.data);case 5:case"end":return e.stop()}}),e)})))()},queryTag:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,i["a"].queryTag(t.dialog.id);case 2:a=e.sent,n=a.data,r=[],0===n.code&&(n.data.length&&n.data.forEach((function(t){r.push(t.tagId)})),t.checkList=r);case 6:case"end":return e.stop()}}),e)})))()},fetch:function(){this.getLabelList()},manageTag:function(){this.$router.push({path:"/customer-manage/label"})},close:function(){this.$emit("close")},confirm:function(){this.$emit("confirm",this.checkList)}}},l=c,u=(a("db33"),a("2877")),m=Object(u["a"])(l,n,r,!1,null,"f06e62ea",null);e["a"]=m.exports},9256:function(t,e,a){"use strict";a("99af"),a("4160"),a("caad"),a("4fad"),a("d3b7"),a("159b");var n=a("5530"),r=a("bc3a"),o=a.n(r),i=a("5c96"),s=a("5657"),c=a("27ae");function l(t,e){"ECONNABORTED"===t.code?Object(i["Message"])({message:"请求超时"}):t.response&&t.response.data?Object(i["Message"])({message:t.response.data}):t.message&&Object(i["Message"])({message:t.message}),e(t)}function u(t,e){t.data.isError&&(4e4===t.data.code||40001===t.data.code||40002===t.data.code||40003===t.data.code||40005===t.data.code||40006===t.data.code||40008===t.data.code?i["MessageBox"].alert(t.data.msg,"提醒",{confirmButtonText:"确定",callback:function(){window.location.hash="/login"}}):i["Message"].error(t.data.msg)),e(t)}o.a.interceptors.request.use((function(t){var e=!1!==t.headers["X-isToken"]||t.headers["X-isToken"],a=s["a"].get("TOKEN","");a&&e&&(t.headers.token="Bearer "+a);var n="ceres_admin_web",r="ceres_admin_web";return t.headers["Authorization"]="Basic ".concat(c["Base64"].encode("".concat(n,":").concat(r))),t}),(function(t){return Promise.reject(t)})),o.a.interceptors.response.use((function(t){return t}),(function(t){return Promise.reject(t)}));var m=function(t){var e={ts:Date.now()},a=t.method.toUpperCase(),r={method:a,url:"".concat("https://pos.api.admin.gznl.top").concat(t.url),responseType:t.responseType||"",timeout:2e4},i=["PUT","POST","PATCH"];i.includes(a)?r.data=t.data||{}:r.params=Object(n["a"])(Object(n["a"])({},e),t.data||{}),t.formData&&(r.transformRequest=[function(t){var e=new FormData;return t&&Object.entries(t).forEach((function(t){e.append(t[0],t[1])})),e}]);var s=new Promise((function(t,e){o()(r).then((function(e){u(e,t)})).catch((function(t){l(t,e)}))}));return s};e["a"]=m},a83c:function(t,e,a){"use strict";var n=a("7d05"),r=a.n(n);r.a},ac44:function(t,e,a){"use strict";a("99af");var n=a("9256"),r={getLabelList:"/memberTag/page",addLabel:"/memberTag",queryTag:"/memberTag/queryTag/",deleteTag:"/memberTag",editTag:"/memberTag",exportTag:"/memberTag/export",getTagInfo:"/memberTag/"};e["a"]={getLabelList:function(t){return Object(n["a"])({method:"POST",url:r.getLabelList,data:t})},addLabel:function(t){return Object(n["a"])({method:"POST",url:r.addLabel,data:t})},queryTag:function(t){return Object(n["a"])({method:"GET",url:"".concat(r.queryTag).concat(t)})},deleteTag:function(t){return Object(n["a"])({method:"DELETE",url:r.deleteTag,data:t})},editTag:function(t){return Object(n["a"])({method:"PUT",url:r.editTag,data:t})},exportTag:function(t){return Object(n["a"])({method:"POST",url:r.exportTag,data:t})},getTagInfo:function(t){return Object(n["a"])({method:"GET",url:"".concat(r.getTagInfo).concat(t)})}}},c85f:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom_page"},[a("div",{staticClass:"content"},[a("div",{staticClass:"toolbar"},[a("el-form",{attrs:{model:t.formParams,"label-width":"120px"}},[a("el-row",[a("el-col",{attrs:{span:20}},[a("el-row",[a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"客户昵称"}},[a("el-input",{attrs:{size:"mini"},model:{value:t.formParams.model.nickname,callback:function(e){t.$set(t.formParams.model,"nickname",e)},expression:"formParams.model.nickname"}})],1)],1),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"手机号"}},[a("el-input",{attrs:{size:"mini"},model:{value:t.formParams.tel,callback:function(e){t.$set(t.formParams,"tel",e)},expression:"formParams.tel"}})],1)],1),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"标签"}},[a("el-input",{attrs:{size:"mini"},model:{value:t.formParams.model.tagId,callback:function(e){t.$set(t.formParams.model,"tagId",e)},expression:"formParams.model.tagId"}})],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"最近消费时间"}},[a("el-date-picker",{attrs:{size:"mini",type:"daterange","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"yyyy-MM-dd"},on:{change:t.handleChange},model:{value:t.date,callback:function(e){t.date=e},expression:"date"}})],1)],1)],1),a("el-row",{directives:[{name:"show",rawName:"v-show",value:t.showMore,expression:"showMore"}]},[a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"累计金额"}},[a("el-col",{attrs:{span:11}},[a("el-input",{attrs:{size:"mini"},model:{value:t.formParams.model.totalConsumAmountStart,callback:function(e){t.$set(t.formParams.model,"totalConsumAmountStart",e)},expression:"formParams.model.totalConsumAmountStart"}})],1),a("el-col",{staticStyle:{"text-align":"center",color:"#DCDFE6"},attrs:{span:2}},[t._v(" - ")]),a("el-col",{attrs:{span:11}},[a("el-input",{attrs:{size:"mini"},model:{value:t.formParams.model.totalConsumAmountEnd,callback:function(e){t.$set(t.formParams.model,"totalConsumAmountEnd",e)},expression:"formParams.model.totalConsumAmountEnd"}})],1)],1)],1),a("el-col",{attrs:{span:5}},[a("el-form-item",{attrs:{label:"购买次数"}},[a("el-col",{attrs:{span:11}},[a("el-input",{attrs:{size:"mini"},model:{value:t.formParams.model.buyTimesStart,callback:function(e){t.$set(t.formParams.model,"buyTimesStart",e)},expression:"formParams.model.buyTimesStart"}})],1),a("el-col",{staticStyle:{"text-align":"center",color:"#DCDFE6"},attrs:{span:2}},[t._v(" - ")]),a("el-col",{attrs:{span:11}},[a("el-input",{attrs:{size:"mini"},model:{value:t.formParams.model.buyTimesEnd,callback:function(e){t.$set(t.formParams.model,"buyTimesEnd",e)},expression:"formParams.model.buyTimesEnd"}})],1)],1)],1)],1)],1),a("el-col",{attrs:{span:4}},[a("el-form-item",{attrs:{"label-width":"0"}},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.query}},[t._v(" 查询 ")]),a("el-button",{attrs:{plain:"",size:"mini"},on:{click:t.reset}},[t._v(" 重置 ")]),a("span",{staticStyle:{"margin-left":"10px",dispaly:"inline-block","font-size":"16px"},on:{click:t.dispalyMore}},[a("i",{class:[t.showMore?"el-icon-arrow-up":"el-icon-arrow-down"]})])],1)],1)],1)],1)],1),a("div",{staticClass:"content_table"},[a("div",{staticClass:"table"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData.records,border:""}},[a("el-table-column",{attrs:{prop:"nickname",label:"客户昵称"}}),a("el-table-column",{attrs:{prop:"phone",label:"手机号"}}),a("el-table-column",{attrs:{prop:"expendAmount",label:"消费总额",formatter:t.getPrice}}),a("el-table-column",{attrs:{prop:"buyTimes",label:"购买次数"}}),a("el-table-column",{attrs:{prop:"lastBuyTime",label:"最近消费时间"}}),a("el-table-column",{attrs:{prop:"registerTime",label:"注册时间"}}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.preventDefault(),t.details(e.row.id)}}},[t._v(" 详情 ")]),a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.preventDefault(),t.makeTag(e.row.id)}}},[t._v(" 打标签 ")]),a("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(a){return a.preventDefault(),t.addBlackList(e.row)}}},[t._v(" "+t._s(e.row.status?"取消黑名单":"加入黑名单")+" ")])]}}])})],1)],1),a("pagination",{directives:[{name:"show",rawName:"v-show",value:t.tableData.total>0,expression:"tableData.total > 0"}],attrs:{limit:t.formParams.size,page:t.formParams.current,total:Number(t.tableData.total)},on:{"update:limit":function(e){return t.$set(t.formParams,"size",e)},"update:page":function(e){return t.$set(t.formParams,"current",e)},pagination:t.fetch}})],1)]),t.dialog.visible?a("labels",{attrs:{dialog:t.dialog},on:{close:t.close,confirm:t.confirm}}):t._e()],1)},r=[],o=(a("96cf"),a("1da1")),i=a("366b"),s=a("333d"),c=a("80bc"),l={components:{Pagination:s["a"],labels:c["a"]},data:function(){return{showMore:!1,formParams:{size:10,current:1,model:{buyTimesStart:"",buyTimesEnd:"",totalConsumAmountStart:"",totalConsumAmountEnd:"",nickname:"",tagId:"",lastConsumTimeStart:"",lastConsumTimeEnd:""}},date:[],tableData:{},dialog:{}}},created:function(){this.getList()},methods:{getList:function(){var t=this;return Object(o["a"])(regeneratorRuntime.mark((function e(){var a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,i["a"].getMemberList(t.formParams);case 2:a=e.sent,n=a.data,0===n.code&&(t.tableData=n.data);case 5:case"end":return e.stop()}}),e)})))()},getPrice:function(t,e,a){return a/100},query:function(){this.getList()},details:function(t){this.$router.push({path:"/customer-manage/custom-info",query:{id:t}})},makeTag:function(t){this.dialog={title:"选择标签",visible:!0,id:t}},confirm:function(t){var e={mid:this.dialog.id,tagIds:t},a=this;i["a"].addTag(e).then((function(t){0===t.data.code&&(a.$message.success("操作成功"),a.getList(),a.close())}))},addBlackList:function(t){var e=this;e.$confirm("".concat(t.status?"确认是否取消黑名单":"加入黑名单后,对方将无法登录商城"),"".concat(t.status?"取消黑名单":"加入黑名单"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i["a"].forbiddenMember({mid:t.id,status:!t.status}).then((function(a){0===a.data.code&&(e.getList(),e.$message.success("成功".concat(t.status?"取消":"加入","黑名单")))}))}))},close:function(){this.dialog={}},reset:function(){this.formParams={size:10,current:1,model:{buyTimesStart:"",buyTimesEnd:"",totalConsumAmountStart:"",totalConsumAmountEnd:"",nickname:"",tagId:"",lastConsumTimeStart:"",lastConsumTimeEnd:""}}},fetch:function(){this.getList()},selectItem:function(){this.getList()},handleChange:function(t){this.formParams.model.lastConsumTimeStart=t&&t[0]||"",this.formParams.model.lastConsumTimeEnd=t&&t[1]||""},dispalyMore:function(){this.showMore=!this.showMore}}},u=l,m=(a("a83c"),a("2877")),d=Object(m["a"])(u,n,r,!1,null,"340ab790",null);e["default"]=d.exports},db33:function(t,e,a){"use strict";var n=a("3319"),r=a.n(n);r.a}}]);