Commit 4290a165 by 无尘

fix: 修改接口

parent 572e5dd7
.line-18[data-v-d629a700]{line-height:18px}.w-165[data-v-d629a700]{width:165px}.bind-store-body[data-v-6ba57555]{width:331px;padding:10px;margin:20px 0 0 0;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-6ba57555]{width:215px}.bind-store-body .w-115[data-v-6ba57555]{width:115px}.bind-store-body .select-tree-wrap[data-v-6ba57555]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-6ba57555]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-6ba57555]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}.daily-store-select[data-v-000a81de]{position:relative;width:331px;min-height:398px;margin:20px 0 0 0;padding:10px;border:1px solid #e4e7ed}.daily-store-select .define-search-select .el-select-dropdown__wrap[data-v-000a81de]{max-height:343px}.daily-store-select .define-search-select .el-checkbox-group[data-v-000a81de]{overflow-x:auto;height:338px}.daily-store-select .define-search-select .el-checkbox-group ul[data-v-000a81de]{height:100%}.daily-store-select .define-search-select .el-checkbox-group ul li[data-v-000a81de]{overflow:unset;text-overflow:unset}.select-tree-wrap[data-v-b3b843c8]{height:445px;overflow-y:auto;border:1px solid #e4e7ed}.common-bottom-border[data-v-3ba3d1bb]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.w-162[data-v-3ba3d1bb]{width:162px}.crowd-scene-table .line-18[data-v-3ba3d1bb]{line-height:18px}
\ No newline at end of file
.common-bottom-border[data-v-6a55f87f]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.common-bottom-border.table-title[data-v-6a55f87f]{font-size:14px;line-height:20px;font-weight:600;color:#303133}.data-dimension-table[data-v-6a55f87f]{margin-top:32px}.data-dimension-table .m-b-18[data-v-6a55f87f]{margin-bottom:18px}.data-dimension-table .data-dimension-table_left[data-v-6a55f87f]{width:calc((100% - 47px)/2)}.data-dimension-table .data-dimension-table_right[data-v-6a55f87f]{width:calc((100% - 47px)/2);margin-left:47px}
\ No newline at end of file
.common-bottom-border[data-v-ba739fbc]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.common-bottom-border.table-title[data-v-ba739fbc]{font-size:14px;line-height:20px;font-weight:600;color:#303133}.data-dimension-table[data-v-ba739fbc]{margin-top:32px}.data-dimension-table .m-b-18[data-v-ba739fbc]{margin-bottom:18px}.data-dimension-table .data-dimension-table_left[data-v-ba739fbc]{width:calc((100% - 47px)/2)}.data-dimension-table .data-dimension-table_right[data-v-ba739fbc]{width:calc((100% - 47px)/2);margin-left:47px}
\ No newline at end of file
.m-t-46[data-v-5f13ddea]{margin-top:46px}.common-bottom-border[data-v-5f13ddea]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.set-tip-item[data-v-5f13ddea]{line-height:22px;padding-left:25px}.customer-data-body[data-v-5f13ddea]{padding:10px}
\ No newline at end of file
.m-t-46[data-v-2a40b7e2]{margin-top:46px}.common-bottom-border[data-v-2a40b7e2]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}
\ No newline at end of file
.line-18[data-v-d629a700]{line-height:18px}.w-165[data-v-d629a700]{width:165px}.bind-store-body[data-v-b486ddd2]{width:331px;padding:10px;margin:20px 0 0 0;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-b486ddd2]{width:215px}.bind-store-body .w-115[data-v-b486ddd2]{width:115px}.bind-store-body .select-tree-wrap[data-v-b486ddd2]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-b486ddd2]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-b486ddd2]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}.daily-store-select[data-v-465abb03]{position:relative;width:331px;min-height:398px;margin:20px 0 0 0;padding:10px;border:1px solid #e4e7ed}.daily-store-select .define-search-select .el-select-dropdown__wrap[data-v-465abb03]{max-height:343px}.daily-store-select .define-search-select .el-checkbox-group[data-v-465abb03]{overflow-x:auto;height:338px}.daily-store-select .define-search-select .el-checkbox-group ul[data-v-465abb03]{height:100%}.daily-store-select .define-search-select .el-checkbox-group ul li[data-v-465abb03]{overflow:unset;text-overflow:unset}.select-tree-wrap[data-v-b3b843c8]{height:445px;overflow-y:auto;border:1px solid #e4e7ed}.common-bottom-border[data-v-3ba3d1bb]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.w-162[data-v-3ba3d1bb]{width:162px}.crowd-scene-table .line-18[data-v-3ba3d1bb]{line-height:18px}
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-24cc6bb9"],{"1c48":function(t,e,a){"use strict";var n=a("93c9"),i=a.n(n);i.a},3081:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-alert-tip"},[a("div",{style:{"min-width":t.width}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:t.width},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipContent)+"\n ")]),t.tipTwoContent?a("div",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipTwoContent)+"\n ")]):t._e()])])])])},i=[],o={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""},tipTwoContent:{type:String,default:""}},data:function(){return{}}},r=o,s=a("2877"),l=Object(s["a"])(r,n,i,!1,null,"537f2e35",null);e["a"]=l.exports},"55f3":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:"common-app-right"},[a("div",[a("div",{staticClass:"data-dimension-tip"},[a("common-alert-tip",{attrs:{width:"100%","tip-content":t.tipContent}})],1),a("div",{staticClass:"data-dimension-table flex"},[a("div",{staticClass:"data-dimension-table_left flex-1"},[a("div",{staticClass:"m-b-18"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 排序越靠上的权重越高,当一家门店拥有多个会员卡时,优先展示排序最靠上的会员卡\n ")]),a("span",{staticClass:"common-bottom-border table-title"},[t._v("会员卡权重")])])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loadingMember,expression:"loadingMember"}],ref:"memberCardData",staticStyle:{width:"100%"},attrs:{data:t.memberCardData,"row-key":"memberCardId"}},[a("el-table-column",{attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell show-icon"}},[[a("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c0c4cc",staticStyle:{cursor:"move"}})]],2),a("el-table-column",{attrs:{prop:"name",label:"会员卡名称","show-overflow-tooltip":""}})],1)],1),a("div",{staticClass:"data-dimension-table_right flex-1"},[a("div",{staticClass:"m-b-18"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 排序越靠上的权重越高,当一家门店拥有多个服务号时,优先展示排序最靠上的服务号\n ")]),a("span",{staticClass:"common-bottom-border table-title"},[t._v("服务号权重")])])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loadingService,expression:"loadingService"}],ref:"serviceNumData",staticStyle:{width:"100%"},attrs:{data:t.serviceNumData,"row-key":"serviceCardId"}},[a("el-table-column",{attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell show-icon"}},[[a("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c0c4cc",staticStyle:{cursor:"move"}})]],2),a("el-table-column",{attrs:{prop:"name",label:"服务号名称","show-overflow-tooltip":""}})],1)],1)])])])},i=[],o=a("3081"),r=a("aa47"),s=a("d11a"),l=a("5b4e"),c=s["a"].getMemberData,d=s["a"].getServiceData,m=s["a"].saveSortMember,p={name:"DataDimensionPage",components:{commonAlertTip:o["a"]},props:{brandId:{type:String,default:""}},data:function(){return{tipContent:"当商户有多个会员卡和服务号时,会造成单家门店适用于多个会员卡或服务号,即单个顾客会有多个域的身份信息,这容易造成门店成员的困扰。请为以下会员卡和服务号域做权重排序,当顾客有多个域的身份信息时,门店成员将只能看到权重最高域的一个身份信息。",memberCardData:[],serviceNumData:[],loadingMember:!1,loadingService:!1}},mounted:function(){var t=this;t.rowDrop("memberCardData"),t.rowDrop("serviceNumData"),t.brandId&&(t.getMemberCrad(),t.getServiceNum())},methods:{rowDrop:function(t){var e=this.$refs[t].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],a=this;r["a"].create(e,{onEnd:function(e){var n=e.newIndex,i=e.oldIndex;if(n==i)return!1;var o=JSON.parse(JSON.stringify(a[t])),r=o.splice(i,1)[0];o.splice(n,0,r),a.setSort(o)}})},setSort:function(){var t=this,e={enterpriseId:t.brandId};m(e).then((function(e){t.getMemberCrad(),t.getServiceNum(),"0000"==e.code?l["a"].showmsg("操作成功","success"):l["a"].showmsg(e.message||"接口异常","warning")})).catch((function(t){}))},getMemberCrad:function(){var t=this;t.loadingMember=!0;var e={enterpriseId:t.brandId};c(e).then((function(e){t.loadingMember=!1,t.memberCardData=e.result||[]})).catch((function(e){t.loadingMember=!1}))},getServiceNum:function(){var t=this;t.loadingService=!0;var e={enterpriseId:t.brandId};d(e).then((function(e){t.loadingService=!1,t.serviceNumData=e.result||[]})).catch((function(e){t.loadingService=!1}))}},watch:{brandId:function(t){var e=this;t&&(e.getMemberCrad(),e.getServiceNum())}}},u=p,v=(a("1c48"),a("2877")),f=Object(v["a"])(u,n,i,!1,null,"6a55f87f",null);e["default"]=f.exports},"93c9":function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-411f6fae"],{3081:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-alert-tip"},[a("div",{style:{"min-width":t.width}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:t.width},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipContent)+"\n ")]),t.tipTwoContent?a("div",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipTwoContent)+"\n ")]):t._e()])])])])},i=[],o={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""},tipTwoContent:{type:String,default:""}},data:function(){return{}}},r=o,s=a("2877"),l=Object(s["a"])(r,n,i,!1,null,"537f2e35",null);e["a"]=l.exports},"55f3":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:"common-app-right"},[a("div",[a("div",{staticClass:"data-dimension-tip"},[a("common-alert-tip",{attrs:{width:"100%","tip-content":t.tipContent}})],1),a("div",{staticClass:"data-dimension-table flex"},[a("div",{staticClass:"data-dimension-table_left flex-1"},[a("div",{staticClass:"m-b-18"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 排序越靠上的权重越高,当一家门店拥有多个会员卡时,优先展示排序最靠上的会员卡\n ")]),a("span",{staticClass:"common-bottom-border table-title"},[t._v("会员卡权重")])])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loadingMember,expression:"loadingMember"}],ref:"memberCardData",staticStyle:{width:"100%"},attrs:{data:t.memberCardData,"row-key":"memberCardId"}},[a("el-table-column",{attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell show-icon"}},[[a("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c0c4cc",staticStyle:{cursor:"move"}})]],2),a("el-table-column",{attrs:{prop:"name",label:"会员卡名称","show-overflow-tooltip":""}})],1)],1),a("div",{staticClass:"data-dimension-table_right flex-1"},[a("div",{staticClass:"m-b-18"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 排序越靠上的权重越高,当一家门店拥有多个服务号时,优先展示排序最靠上的服务号\n ")]),a("span",{staticClass:"common-bottom-border table-title"},[t._v("服务号权重")])])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loadingService,expression:"loadingService"}],ref:"serviceNumData",staticStyle:{width:"100%"},attrs:{data:t.serviceNumData,"row-key":"serviceCardId"}},[a("el-table-column",{attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell show-icon"}},[[a("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c0c4cc",staticStyle:{cursor:"move"}})]],2),a("el-table-column",{attrs:{prop:"name",label:"服务号名称","show-overflow-tooltip":""}})],1)],1)])])])},i=[],o=a("3081"),r=a("aa47"),s=a("d11a"),l=a("5b4e"),c=s["a"].getMemberData,d=s["a"].saveSortMember,m={name:"DataDimensionPage",components:{commonAlertTip:o["a"]},props:{brandId:{type:String,default:""}},data:function(){return{tipContent:"当商户有多个会员卡和服务号时,会造成单家门店适用于多个会员卡或服务号,即单个顾客会有多个域的身份信息,这容易造成门店成员的困扰。请为以下会员卡和服务号域做权重排序,当顾客有多个域的身份信息时,门店成员将只能看到权重最高域的一个身份信息。",memberCardData:[],serviceNumData:[],loadingMember:!1,loadingService:!1}},mounted:function(){var t=this;t.rowDrop("memberCardData"),t.rowDrop("serviceNumData"),t.brandId&&t.getMemberCrad()},methods:{rowDrop:function(t){var e=this.$refs[t].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],a=this;r["a"].create(e,{onEnd:function(e){var n=e.newIndex,i=e.oldIndex;if(n==i)return!1;var o=JSON.parse(JSON.stringify(a[t])),r=o.splice(i,1)[0];o.splice(n,0,r),a.setSort(o)}})},setSort:function(t,e){var a=this,n={enterpriseId:a.brandId,sorts:t.map((function(t){return t.id})).join(","),type:"memberCardData"==e?"0":"1"};d(n).then((function(t){a.getMemberCrad(),"0000"==t.code?l["a"].showmsg("操作成功","success"):l["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){}))},getMemberCrad:function(){var t=this;t.loadingMember=!0,t.loadingService=!0;var e={enterpriseId:t.brandId};c(e).then((function(e){t.loadingMember=!1,t.loadingService=!1,t.memberCardData=e.result.cards||[],t.serviceNumData=e.result.services||[]})).catch((function(e){t.loadingMember=!1,t.loadingService=!1}))}},watch:{brandId:function(t){var e=this;t&&e.getMemberCrad()}}},p=m,u=(a("c262"),a("2877")),f=Object(u["a"])(p,n,i,!1,null,"ba739fbc",null);e["default"]=f.exports},"85fc":function(t,e,a){},c262:function(t,e,a){"use strict";var n=a("85fc"),i=a.n(n);i.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5dcde0bc"],{"28a5":function(e,t,a){"use strict";var r=a("aae3"),s=a("cb7c"),o=a("ebd6"),u=a("0390"),i=a("9def"),n=a("5f1b"),l=a("520a"),c=a("79e5"),m=Math.min,d=[].push,g="split",h="length",p="lastIndex",b=4294967295,f=!c((function(){RegExp(b,"y")}));a("214f")("split",2,(function(e,t,a,c){var v;return v="c"=="abbc"[g](/(b)*/)[1]||4!="test"[g](/(?:)/,-1)[h]||2!="ab"[g](/(?:ab)*/)[h]||4!="."[g](/(.?)(.?)/)[h]||"."[g](/()()/)[h]>1||""[g](/.?/)[h]?function(e,t){var s=String(this);if(void 0===e&&0===t)return[];if(!r(e))return a.call(s,e,t);var o,u,i,n=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,g=void 0===t?b:t>>>0,f=new RegExp(e.source,c+"g");while(o=l.call(f,s)){if(u=f[p],u>m&&(n.push(s.slice(m,o.index)),o[h]>1&&o.index<s[h]&&d.apply(n,o.slice(1)),i=o[0][h],m=u,n[h]>=g))break;f[p]===o.index&&f[p]++}return m===s[h]?!i&&f.test("")||n.push(""):n.push(s.slice(m)),n[h]>g?n.slice(0,g):n}:"0"[g](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,r){var s=e(this),o=void 0==a?void 0:a[t];return void 0!==o?o.call(a,s,r):v.call(String(s),a,r)},function(e,t){var r=c(v,e,this,t,v!==a);if(r.done)return r.value;var l=s(e),d=String(this),g=o(l,RegExp),h=l.unicode,p=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(f?"y":"g"),w=new g(f?l:"^(?:"+l.source+")",p),D=void 0===t?b:t>>>0;if(0===D)return[];if(0===d.length)return null===n(w,d)?[d]:[];var S=0,C=0,F=[];while(C<d.length){w.lastIndex=f?C:0;var k,y=n(w,f?d:d.slice(C));if(null===y||(k=m(i(w.lastIndex+(f?0:C)),d.length))===S)C=u(d,C,h);else{if(F.push(d.slice(S,C)),F.length===D)return F;for(var O=1;O<=y.length-1;O++)if(F.push(y[O]),F.length===D)return F;C=S=k}}return F.push(d.slice(S)),F}]}))},"3cf8":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-app-right"},[a("div",{staticClass:"customer-data-body"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.allStoreOrder,callback:function(t){e.$set(e.customerShowData,"allStoreOrder",t)},expression:"customerShowData.allStoreOrder"}},[e._v("展示所有门店的订单")]),a("div",{staticClass:"font-12 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看顾客在本店以外的消费订单")])],1),a("div",{staticClass:"m-b-10"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.shopOrder,callback:function(t){e.$set(e.customerShowData,"shopOrder",t)},expression:"customerShowData.shopOrder"}},[e._v("展示微商城的订单")]),a("div",{staticClass:"font-12 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看顾客在微商城的消费订单")])],1),a("div",{staticClass:"m-b-20"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选后将会在“顾客详情页”进行显示",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20 common-bottom-border"},[e._v("导购联系顾客方式:")])]),a("el-checkbox",{model:{value:e.customerShowData.allowGuideOnlineChat,callback:function(t){e.$set(e.customerShowData,"allowGuideOnlineChat",t)},expression:"customerShowData.allowGuideOnlineChat"}},[e._v("添加会员/发消息")]),a("el-checkbox",{model:{value:e.customerShowData.allowGuideMobile,callback:function(t){e.$set(e.customerShowData,"allowGuideMobile",t)},expression:"customerShowData.allowGuideMobile"}},[e._v("电话")]),a("el-checkbox",{model:{value:e.customerShowData.allowGuideMessage,callback:function(t){e.$set(e.customerShowData,"allowGuideMessage",t)},expression:"customerShowData.allowGuideMessage"}},[e._v("短信")])],1),a("div",{staticClass:"m-t-46 p-l-20"},[a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.submit}},[e._v("保存")])],1)])])},s=[],o=a("d11a"),u=a("d157"),i=a("5b4e"),n=o["a"].getCustomerSet,l=o["a"].saveCustomerSet,c={name:"CustomerDataSet",components:{},props:{brandId:{type:String,default:""}},data:function(){return{customerShowData:{allStoreOrder:!1,shopOrder:!1,allowGuideMobile:!1,allowGuideMessage:!1,allowGuideOnlineChat:!1},loading:!1}},mounted:function(){var e=this;e.brandId&&e.getCustomerData()},methods:{submit:Object(u["a"])((function(){var e=this;e.loading=!0,e.setData()}),500),setData:function(){var e=this,t={enterpriseId:e.brandId,allStoreOrder:e.customerShowData.allStoreOrder?1:"0",shopOrder:e.customerShowData.shopOrder?1:"0",allowGuideMobile:e.customerShowData.allowGuideMobile?1:"0",allowGuideMessage:e.customerShowData.allowGuideMessage?1:"0",allowGuideOnlineChat:e.customerShowData.allowGuideOnlineChat?1:"0"};l(t).then((function(t){e.loading=!1,e.getCustomerData(),"0000"==t.code?i["a"].showmsg("操作成功","success"):i["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){e.loading=!1}))},getCustomerData:function(){var e=this,t={enterpriseId:e.brandId};n(t).then((function(t){e.customerShowData=t.result||[]})).catch((function(e){}))}},watch:{brandId:function(e){var t=this;e&&t.getCustomerData()}}},m=c,d=(a("4647"),a("2877")),g=Object(d["a"])(m,r,s,!1,null,"5f13ddea",null);t["default"]=g.exports},4647:function(e,t,a){"use strict";var r=a("98df"),s=a.n(r);s.a},"5b4e":function(e,t,a){"use strict";var r=a("5c96");t["a"]={showmsg:function(e,t){Object(r["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},"71f6":function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));a("ac6a"),a("456d");var r=a("b775");function s(e,t){e=e||{};var a=Object.keys(e);return a.forEach((function(a){var s=e[a];"string"===typeof s&&(s={url:s}),s.url="".concat(t).concat(s.url),e[a]=function(e){return Object(r["a"])(s,e)}})),e}},"98df":function(e,t,a){},d11a:function(e,t,a){"use strict";var r=a("71f6"),s={getGroupList:"/member/store-group",getStoreList:"/member/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/member/member-list",method:"post",useFormData:!0},getBrand:"/member/list-brand",getClerkList:"/member/clerk-list",getMemberCount:"",saveAssign:{url:"/member/distribute-member",method:"post",useFormData:!0},getMemberData:"/member/dimension-detail",saveSortMember:{url:"/member/dimension-save",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"/member/switch-setting",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"/member/switch-setting",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"/member-group-list",getClassifyData:"/member-group-category-list",postSortGroup:{url:"/member-group-sort",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"/member-group-hb-list",saveSync:{url:"/member-group-save",method:"post",useFormData:!0,useIntercept:!1},getVisiable:"/member-group-range-view",saveVisiable:{url:"/member-group-range-save",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"/tagCategoryList",addClassify:"/tag-category-add",delClassify:{url:"/tag-category-del",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"/member-tag-list",addClerkTag:"/member-tag-add",editClerkTag:"/member-tag-edit",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1},sortClerkTag:{url:"/member-tag-sort",method:"post",useFormData:!0,useIntercept:!1},getTagVisiable:"/member-tag-range-view",saveTagVisiable:{url:"/member-tag-range-save",method:"post",useFormData:!0,useIntercept:!1}};s=Object(r["a"])(s,"/hb-manage-web"),t["a"]=s},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return s})),a.d(t,"c",(function(){return o}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function r(e,t){var a,r=t||200;return function(){var t=this,s=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(t,s)}),r)}}function s(e,t){var a,r,s=t||200;return function(){var t=this,o=arguments,u=+new Date;a&&u-a<s?(clearTimeout(r),r=setTimeout((function(){a=u,e.apply(t,o)}),s)):(a=u,e.apply(t,o))}}function o(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6088f780"],{"28a5":function(e,t,a){"use strict";var r=a("aae3"),o=a("cb7c"),s=a("ebd6"),u=a("0390"),n=a("9def"),i=a("5f1b"),l=a("520a"),c=a("79e5"),m=Math.min,d=[].push,g="split",h="length",p="lastIndex",b=4294967295,f=!c((function(){RegExp(b,"y")}));a("214f")("split",2,(function(e,t,a,c){var v;return v="c"=="abbc"[g](/(b)*/)[1]||4!="test"[g](/(?:)/,-1)[h]||2!="ab"[g](/(?:ab)*/)[h]||4!="."[g](/(.?)(.?)/)[h]||"."[g](/()()/)[h]>1||""[g](/.?/)[h]?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!r(e))return a.call(o,e,t);var s,u,n,i=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,g=void 0===t?b:t>>>0,f=new RegExp(e.source,c+"g");while(s=l.call(f,o)){if(u=f[p],u>m&&(i.push(o.slice(m,s.index)),s[h]>1&&s.index<o[h]&&d.apply(i,s.slice(1)),n=s[0][h],m=u,i[h]>=g))break;f[p]===s.index&&f[p]++}return m===o[h]?!n&&f.test("")||i.push(""):i.push(o.slice(m)),i[h]>g?i.slice(0,g):i}:"0"[g](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,r){var o=e(this),s=void 0==a?void 0:a[t];return void 0!==s?s.call(a,o,r):v.call(String(o),a,r)},function(e,t){var r=c(v,e,this,t,v!==a);if(r.done)return r.value;var l=o(e),d=String(this),g=s(l,RegExp),h=l.unicode,p=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(f?"y":"g"),w=new g(f?l:"^(?:"+l.source+")",p),D=void 0===t?b:t>>>0;if(0===D)return[];if(0===d.length)return null===i(w,d)?[d]:[];var S=0,C=0,F=[];while(C<d.length){w.lastIndex=f?C:0;var k,y=i(w,f?d:d.slice(C));if(null===y||(k=m(n(w.lastIndex+(f?0:C)),d.length))===S)C=u(d,C,h);else{if(F.push(d.slice(S,C)),F.length===D)return F;for(var O=1;O<=y.length-1;O++)if(F.push(y[O]),F.length===D)return F;C=S=k}}return F.push(d.slice(S)),F}]}))},"3cf8":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-app-right"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.allStoreOrder,callback:function(t){e.$set(e.customerShowData,"allStoreOrder",t)},expression:"customerShowData.allStoreOrder"}},[e._v("展示所有门店的订单")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看顾客在本店以外的消费订单")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.shopOrder,callback:function(t){e.$set(e.customerShowData,"shopOrder",t)},expression:"customerShowData.shopOrder"}},[e._v("展示微商城的订单")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看顾客在微商城的消费订单")])],1),a("div",{staticClass:"m-b-20"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选后将会在“顾客详情页”进行显示",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20 common-bottom-border"},[e._v("导购联系顾客方式")])]),a("el-checkbox",{model:{value:e.customerShowData.allowGuideOnlineChat,callback:function(t){e.$set(e.customerShowData,"allowGuideOnlineChat",t)},expression:"customerShowData.allowGuideOnlineChat"}},[e._v("添加会员/发消息")]),a("el-checkbox",{model:{value:e.customerShowData.allowGuideMobile,callback:function(t){e.$set(e.customerShowData,"allowGuideMobile",t)},expression:"customerShowData.allowGuideMobile"}},[e._v("电话")]),a("el-checkbox",{model:{value:e.customerShowData.allowGuideMessage,callback:function(t){e.$set(e.customerShowData,"allowGuideMessage",t)},expression:"customerShowData.allowGuideMessage"}},[e._v("短信")])],1),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:function(t){return e.submit()}}},[e._v("保存")])],1)])},o=[],s=a("d11a"),u=a("d157"),n=a("5b4e"),i=s["a"].getCustomerSet,l=s["a"].saveCustomerSet,c={name:"CustomerDataSet",components:{},props:{brandId:{type:String,default:""}},data:function(){return{customerShowData:{allStoreOrder:!1,shopOrder:!1,allowGuideMobile:!1,allowGuideMessage:!1,allowGuideOnlineChat:!1},loading:!1}},mounted:function(){var e=this;e.brandId&&e.getCustomerData()},methods:{submit:Object(u["a"])((function(){var e=this;e.loading=!0,e.setData()}),500),setData:function(){var e=this,t={enterpriseId:e.brandId,allStoreOrder:e.customerShowData.allStoreOrder?1:"0",shopOrder:e.customerShowData.shopOrder?1:"0",allowGuideMobile:e.customerShowData.allowGuideMobile?1:"0",allowGuideMessage:e.customerShowData.allowGuideMessage?1:"0",allowGuideOnlineChat:e.customerShowData.allowGuideOnlineChat?1:"0"};l(t).then((function(t){e.loading=!1,e.getCustomerData(),"0000"==t.code?n["a"].showmsg("操作成功","success"):n["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){e.loading=!1}))},getCustomerData:function(){var e=this,t={enterpriseId:e.brandId};i(t).then((function(t){e.customerShowData=t.result||[]})).catch((function(e){}))}},watch:{brandId:function(e){var t=this;e&&t.getCustomerData()}}},m=c,d=(a("741e"),a("2877")),g=Object(d["a"])(m,r,o,!1,null,"2a40b7e2",null);t["default"]=g.exports},"41b6":function(e,t,a){},"5b4e":function(e,t,a){"use strict";var r=a("5c96");t["a"]={showmsg:function(e,t){Object(r["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},"71f6":function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));a("ac6a"),a("456d");var r=a("b775");function o(e,t){e=e||{};var a=Object.keys(e);return a.forEach((function(a){var o=e[a];"string"===typeof o&&(o={url:o}),o.url="".concat(t).concat(o.url),e[a]=function(e){return Object(r["a"])(o,e)}})),e}},"741e":function(e,t,a){"use strict";var r=a("41b6"),o=a.n(r);o.a},d11a:function(e,t,a){"use strict";var r=a("71f6"),o={getGroupList:"/department-list",getStoreList:"/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/app-get-member-info-list",method:"post",useFormData:!0},getClerkList:"/clerk-list",getMemberCount:"",saveAssign:{url:"/",method:"post",useFormData:!0},getMemberData:"",getServiceData:"",saveSortMember:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"/member-group-list",getClassifyData:"/member-group-category-list",postSortGroup:{url:"/member-group-sort",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"/member-group-hb-list",saveSync:{url:"/member-group-save",method:"post",useFormData:!0,useIntercept:!1},getVisiable:"/member-group-range-view",saveVisiable:{url:"/member-group-range-save",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"/tagCategoryList",addClassify:"/tag-category-add",delClassify:{url:"/tag-category-del",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"/member-tag-list",addClerkTag:"/member-tag-add",editClerkTag:"/member-tag-edit",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1},sortClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getTagVisiable:"/member-tag-range-view",saveTagVisiable:{url:"/member-tag-range-save",method:"post",useFormData:!0,useIntercept:!1}};o=Object(r["a"])(o,"/hb-manage-web"),t["a"]=o},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return o})),a.d(t,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function r(e,t){var a,r=t||200;return function(){var t=this,o=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(t,o)}),r)}}function o(e,t){var a,r,o=t||200;return function(){var t=this,s=arguments,u=+new Date;a&&u-a<o?(clearTimeout(r),r=setTimeout((function(){a=u,e.apply(t,s)}),o)):(a=u,e.apply(t,s))}}function s(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-96ef390e"],{"28a5":function(e,t,a){"use strict";var r=a("aae3"),o=a("cb7c"),s=a("ebd6"),n=a("0390"),i=a("9def"),u=a("5f1b"),c=a("520a"),l=a("79e5"),m=Math.min,g=[].push,d="split",p="length",h="lastIndex",b=4294967295,f=!l((function(){RegExp(b,"y")}));a("214f")("split",2,(function(e,t,a,l){var v;return v="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[p]||2!="ab"[d](/(?:ab)*/)[p]||4!="."[d](/(.?)(.?)/)[p]||"."[d](/()()/)[p]>1||""[d](/.?/)[p]?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!r(e))return a.call(o,e,t);var s,n,i,u=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),m=0,d=void 0===t?b:t>>>0,f=new RegExp(e.source,l+"g");while(s=c.call(f,o)){if(n=f[h],n>m&&(u.push(o.slice(m,s.index)),s[p]>1&&s.index<o[p]&&g.apply(u,s.slice(1)),i=s[0][p],m=n,u[p]>=d))break;f[h]===s.index&&f[h]++}return m===o[p]?!i&&f.test("")||u.push(""):u.push(o.slice(m)),u[p]>d?u.slice(0,d):u}:"0"[d](void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,r){var o=e(this),s=void 0==a?void 0:a[t];return void 0!==s?s.call(a,o,r):v.call(String(o),a,r)},function(e,t){var r=l(v,e,this,t,v!==a);if(r.done)return r.value;var c=o(e),g=String(this),d=s(c,RegExp),p=c.unicode,h=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(f?"y":"g"),S=new d(f?c:"^(?:"+c.source+")",h),F=void 0===t?b:t>>>0;if(0===F)return[];if(0===g.length)return null===u(S,g)?[g]:[];var D=0,w=0,C=[];while(w<g.length){S.lastIndex=f?w:0;var y,k=u(S,f?g:g.slice(w));if(null===k||(y=m(i(S.lastIndex+(f?0:w)),g.length))===D)w=n(g,w,p);else{if(C.push(g.slice(D,w)),C.length===F)return C;for(var I=1;I<=k.length-1;I++)if(C.push(k[I]),C.length===F)return C;w=D=y}}return C.push(g.slice(D)),C}]}))},5898:function(e,t,a){"use strict";var r=a("d363"),o=a.n(r);o.a},"5b4e":function(e,t,a){"use strict";var r=a("5c96");t["a"]={showmsg:function(e,t){Object(r["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},"71f6":function(e,t,a){"use strict";a.d(t,"a",(function(){return o}));a("ac6a"),a("456d");var r=a("b775");function o(e,t){e=e||{};var a=Object.keys(e);return a.forEach((function(a){var o=e[a];"string"===typeof o&&(o={url:o}),o.url="".concat(t).concat(o.url),e[a]=function(e){return Object(r["a"])(o,e)}})),e}},d11a:function(e,t,a){"use strict";var r=a("71f6"),o={getGroupList:"/member/store-group",getStoreList:"/member/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/member/member-list",method:"post",useFormData:!0},getBrand:"/member/list-brand",getClerkList:"/member/clerk-list",getMemberCount:"",saveAssign:{url:"/member/distribute-member",method:"post",useFormData:!0},getMemberData:"/member/dimension-detail",saveSortMember:{url:"/member/dimension-save",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"/member/switch-setting",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"/member/switch-setting",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"/member-group-list",getClassifyData:"/member-group-category-list",postSortGroup:{url:"/member-group-sort",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"/member-group-hb-list",saveSync:{url:"/member-group-save",method:"post",useFormData:!0,useIntercept:!1},getVisiable:"/member-group-range-view",saveVisiable:{url:"/member-group-range-save",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"/tagCategoryList",addClassify:"/tag-category-add",delClassify:{url:"/tag-category-del",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"/member-tag-list",addClerkTag:"/member-tag-add",editClerkTag:"/member-tag-edit",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1},sortClerkTag:{url:"/member-tag-sort",method:"post",useFormData:!0,useIntercept:!1},getTagVisiable:"/member-tag-range-view",saveTagVisiable:{url:"/member-tag-range-save",method:"post",useFormData:!0,useIntercept:!1}};o=Object(r["a"])(o,"/hb-manage-web"),t["a"]=o},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return o})),a.d(t,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function r(e,t){var a,r=t||200;return function(){var t=this,o=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(t,o)}),r)}}function o(e,t){var a,r,o=t||200;return function(){var t=this,s=arguments,n=+new Date;a&&n-a<o?(clearTimeout(r),r=setTimeout((function(){a=n,e.apply(t,s)}),o)):(a=n,e.apply(t,s))}}function s(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}},d363:function(e,t,a){},f766:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-app-right"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.mainStoreFlag,callback:function(t){e.$set(e.customerShowData,"mainStoreFlag",t)},expression:"customerShowData.mainStoreFlag"}},[e._v("展示服务门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为服务门店名下顾客")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.minorStoreFlag,callback:function(t){e.$set(e.customerShowData,"minorStoreFlag",t)},expression:"customerShowData.minorStoreFlag"}},[e._v("展示协管门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为协管门店名下顾客")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:e.customerShowData.openCardStoreFlag,callback:function(t){e.$set(e.customerShowData,"openCardStoreFlag",t)},expression:"customerShowData.openCardStoreFlag"}},[e._v("展示开卡门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:保存勾选项后,门店导购和店长可查看本门店作为开卡门店名下顾客")])],1),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:function(t){return e.submit()}}},[e._v("保存")])],1)])},o=[],s=a("d11a"),n=a("d157"),i=a("5b4e"),u=s["a"].getShowSet,c=s["a"].saveShowSet,l={name:"CustomerShowSet",components:{},props:{brandId:{type:String,default:""}},data:function(){return{customerShowData:{mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1},loading:!1}},mounted:function(){var e=this;e.brandId&&e.getShowData()},methods:{submit:Object(n["a"])((function(){var e=this;e.loading=!0,e.setData()}),500),setData:function(){var e=this,t={enterpriseId:e.brandId,mainStoreFlag:e.customerShowData.mainStoreFlag?1:"0",minorStoreFlag:e.customerShowData.minorStoreFlag?1:"0",openCardStoreFlag:e.customerShowData.openCardStoreFlag?1:"0"};c(t).then((function(t){e.loading=!1,e.getShowData(),"0000"==t.code?i["a"].showmsg("操作成功","success"):i["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){e.loading=!1}))},getShowData:function(){var e=this,t={enterpriseId:e.brandId};u(t).then((function(t){e.customerShowData=t.result||[]})).catch((function(e){}))}},watch:{brandId:function(e){var t=this;e&&t.getShowData()}}},m=l,g=(a("5898"),a("2877")),d=Object(g["a"])(m,r,o,!1,null,"fdef3edc",null);t["default"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-96ef390e"],{"28a5":function(t,e,a){"use strict";var r=a("aae3"),o=a("cb7c"),s=a("ebd6"),n=a("0390"),u=a("9def"),i=a("5f1b"),c=a("520a"),l=a("79e5"),m=Math.min,g=[].push,d="split",p="length",h="lastIndex",f=4294967295,v=!l((function(){RegExp(f,"y")}));a("214f")("split",2,(function(t,e,a,l){var b;return b="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[p]||2!="ab"[d](/(?:ab)*/)[p]||4!="."[d](/(.?)(.?)/)[p]||"."[d](/()()/)[p]>1||""[d](/.?/)[p]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!r(t))return a.call(o,t,e);var s,n,u,i=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),m=0,d=void 0===e?f:e>>>0,v=new RegExp(t.source,l+"g");while(s=c.call(v,o)){if(n=v[h],n>m&&(i.push(o.slice(m,s.index)),s[p]>1&&s.index<o[p]&&g.apply(i,s.slice(1)),u=s[0][p],m=n,i[p]>=d))break;v[h]===s.index&&v[h]++}return m===o[p]?!u&&v.test("")||i.push(""):i.push(o.slice(m)),i[p]>d?i.slice(0,d):i}:"0"[d](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,r){var o=t(this),s=void 0==a?void 0:a[e];return void 0!==s?s.call(a,o,r):b.call(String(o),a,r)},function(t,e){var r=l(b,t,this,e,b!==a);if(r.done)return r.value;var c=o(t),g=String(this),d=s(c,RegExp),p=c.unicode,h=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),S=new d(v?c:"^(?:"+c.source+")",h),F=void 0===e?f:e>>>0;if(0===F)return[];if(0===g.length)return null===i(S,g)?[g]:[];var D=0,w=0,C=[];while(w<g.length){S.lastIndex=v?w:0;var y,k=i(S,v?g:g.slice(w));if(null===k||(y=m(u(S.lastIndex+(v?0:w)),g.length))===D)w=n(g,w,p);else{if(C.push(g.slice(D,w)),C.length===F)return C;for(var I=1;I<=k.length-1;I++)if(C.push(k[I]),C.length===F)return C;w=D=y}}return C.push(g.slice(D)),C}]}))},5898:function(t,e,a){"use strict";var r=a("d363"),o=a.n(r);o.a},"5b4e":function(t,e,a){"use strict";var r=a("5c96");e["a"]={showmsg:function(t,e){Object(r["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));a("ac6a"),a("456d");var r=a("b775");function o(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var o=t[a];"string"===typeof o&&(o={url:o}),o.url="".concat(e).concat(o.url),t[a]=function(t){return Object(r["a"])(o,t)}})),t}},d11a:function(t,e,a){"use strict";var r=a("71f6"),o={getGroupList:"/department-list",getStoreList:"/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/app-get-member-info-list",method:"post",useFormData:!0},getClerkList:"/clerk-list",getMemberCount:"",saveAssign:{url:"/",method:"post",useFormData:!0},getMemberData:"",getServiceData:"",saveSortMember:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"/member-group-list",getClassifyData:"/member-group-category-list",postSortGroup:{url:"/member-group-sort",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"/member-group-hb-list",saveSync:{url:"/member-group-save",method:"post",useFormData:!0,useIntercept:!1},getVisiable:"/member-group-range-view",saveVisiable:{url:"/member-group-range-save",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"/tagCategoryList",addClassify:"/tag-category-add",delClassify:{url:"/tag-category-del",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"/member-tag-list",addClerkTag:"/member-tag-add",editClerkTag:"/member-tag-edit",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1},sortClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getTagVisiable:"/member-tag-range-view",saveTagVisiable:{url:"/member-tag-range-save",method:"post",useFormData:!0,useIntercept:!1}};o=Object(r["a"])(o,"/hb-manage-web"),e["a"]=o},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return r})),a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function r(t,e){var a,r=e||200;return function(){var e=this,o=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,o)}),r)}}function o(t,e){var a,r,o=e||200;return function(){var e=this,s=arguments,n=+new Date;a&&n-a<o?(clearTimeout(r),r=setTimeout((function(){a=n,t.apply(e,s)}),o)):(a=n,t.apply(e,s))}}function s(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},d363:function(t,e,a){},f766:function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-app-right"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.mainStoreFlag,callback:function(e){t.$set(t.customerShowData,"mainStoreFlag",e)},expression:"customerShowData.mainStoreFlag"}},[t._v("展示服务门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看本门店作为服务门店名下顾客")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.minorStoreFlag,callback:function(e){t.$set(t.customerShowData,"minorStoreFlag",e)},expression:"customerShowData.minorStoreFlag"}},[t._v("展示协管门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看本门店作为协管门店名下顾客")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.openCardStoreFlag,callback:function(e){t.$set(t.customerShowData,"openCardStoreFlag",e)},expression:"customerShowData.openCardStoreFlag"}},[t._v("展示开卡门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看本门店作为开卡门店名下顾客")])],1),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return t.submit()}}},[t._v("保存")])],1)])},o=[],s=a("d11a"),n=a("d157"),u=a("5b4e"),i=s["a"].getShowSet,c=s["a"].saveShowSet,l={name:"CustomerShowSet",components:{},props:{brandId:{type:String,default:""}},data:function(){return{customerShowData:{mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1},loading:!1}},mounted:function(){var t=this;t.brandId&&t.getShowData()},methods:{submit:Object(n["a"])((function(){var t=this;t.loading=!0,t.setData()}),500),setData:function(){var t=this,e={enterpriseId:t.brandId,mainStoreFlag:t.customerShowData.mainStoreFlag?1:"0",minorStoreFlag:t.customerShowData.minorStoreFlag?1:"0",openCardStoreFlag:t.customerShowData.openCardStoreFlag?1:"0"};c(e).then((function(e){t.loading=!1,t.getShowData(),"0000"==e.code?u["a"].showmsg("操作成功","success"):u["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){t.loading=!1}))},getShowData:function(){var t=this,e={enterpriseId:t.brandId};i(e).then((function(e){t.customerShowData=e.result||[]})).catch((function(t){}))}},watch:{brandId:function(t){var e=this;t&&e.getShowData()}}},m=l,g=(a("5898"),a("2877")),d=Object(g["a"])(m,r,o,!1,null,"fdef3edc",null);e["default"]=d.exports}}]);
\ No newline at end of file
......@@ -4,36 +4,36 @@
* @Author: 无尘
* @Date: 2020-08-27 09:29:13
* @LastEditors: 无尘
* @LastEditTime: 2020-09-03 14:47:48
* @LastEditTime: 2020-09-03 16:48:50
*/
import getFetch from './get-fetch.js';
let api = {
// 顾客分配
getGroupList: '/department-list', // 获取 gic 分组列表
getStoreList: '/store-list', // 获取 gic 门店
getGroupList: '/member/store-group', // 获取 gic 分组列表
getStoreList: '/member/store-list', // 获取 gic 门店
getAssignStatus: '/app-distribute-status', // 获取分配状态
getNavChain: '/get-chain', // 获取面包屑
getMemberList: {
// 获取会员列表
url: '/app-get-member-info-list',
url: '/member/member-list',
method: 'post',
useFormData: true
},
getClerkList: '/clerk-list', // 获取导购列表
getBrand: '/member/list-brand', // 获取店招品牌
getClerkList: '/member/clerk-list', // 获取导购列表
getMemberCount: '', // 获取会员数量
saveAssign: {
// 保存分配会员
url: '/',
url: '/member/distribute-member',
method: 'post',
useFormData: true
},
// 数据维度
getMemberData: '', // 获取会员卡
getServiceData: '', // 获取服务号
getMemberData: '/member/dimension-detail', // 获取会员卡/服务号
saveSortMember: {
// 排序
url: '/',
url: '/member/dimension-save',
method: 'post',
useFormData: true,
useIntercept: false
......@@ -42,7 +42,7 @@ let api = {
getShowSet: '', // 获取顾客展示数据
saveShowSet: {
// 设置顾客展示数据
url: '',
url: '/member/switch-setting',
method: 'post',
useFormData: true,
useIntercept: false
......@@ -51,7 +51,7 @@ let api = {
getCustomerSet: '', // 获取顾客资料数据
saveCustomerSet: {
// 设置顾客资料数据
url: '',
url: '/member/switch-setting',
method: 'post',
useFormData: true,
useIntercept: false
......@@ -104,7 +104,7 @@ let api = {
},
sortClerkTag: {
// 导购标签排序
url: '/',
url: '/member-tag-sort',
method: 'post',
useFormData: true,
useIntercept: false
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-28 15:24:12
* @LastEditors: 无尘
* @LastEditTime: 2020-09-03 14:17:26
* @LastEditTime: 2020-09-03 15:58:09
-->
<!--
门店绑定-选择分组
......@@ -38,7 +38,7 @@ export default {
},
storeType: {
type: String,
default: '1' // 1 门店绑定, 2 门店共享
default: '2' // 1 门店绑定, 2 门店共享
},
selectGroup: {
type: [ Object, Array ],
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-28 15:24:42
* @LastEditors: 无尘
* @LastEditTime: 2020-09-03 14:18:01
* @LastEditTime: 2020-09-03 15:58:36
-->
<!--
<customer-store :brand-id="brandId" :select-store="selectStore" @checkStoreIds="checkStoreIds"></customer-store>
......@@ -43,6 +43,10 @@ export default {
type: String,
default: ''
},
storeType: {
type: String,
default: '2' // 1 门店绑定, 2 门店共享
},
selectStore: {
type: [ Object, Array ],
default() {
......
......@@ -4,27 +4,29 @@
* @Author: 无尘
* @Date: 2020-08-27 10:16:37
* @LastEditors: 无尘
* @LastEditTime: 2020-09-03 10:07:59
* @LastEditTime: 2020-09-03 15:51:27
-->
<template>
<div class="common-app-right">
<div class="m-b-20">
<div class="customer-data-body">
<div class="m-b-20">
<el-checkbox class="w-195" v-model="customerShowData.allStoreOrder">展示所有门店的订单</el-checkbox>
<div class="font-14 color-909399 set-tip-item">注:保存勾选项后,门店导购和店长可查看顾客在本店以外的消费订单</div>
<div class="font-12 color-909399 set-tip-item">注:保存勾选项后,门店导购和店长可查看顾客在本店以外的消费订单</div>
</div>
<div class="m-b-20">
<div class="m-b-10">
<el-checkbox class="w-195" v-model="customerShowData.shopOrder">展示微商城的订单</el-checkbox>
<div class="font-14 color-909399 set-tip-item">注:保存勾选项后,门店导购和店长可查看顾客在微商城的消费订单</div>
<div class="font-12 color-909399 set-tip-item">注:保存勾选项后,门店导购和店长可查看顾客在微商城的消费订单</div>
</div>
<div class="m-b-20">
<el-tooltip class="item" effect="dark" content="勾选后将会在“顾客详情页”进行显示" placement="top-start"> <span class="font-14 color-606266 m-r-20 common-bottom-border">导购联系顾客方式</span></el-tooltip>
<el-tooltip class="item" effect="dark" content="勾选后将会在“顾客详情页”进行显示" placement="top-start"> <span class="font-14 color-606266 m-r-20 common-bottom-border">导购联系顾客方式</span></el-tooltip>
<el-checkbox v-model="customerShowData.allowGuideOnlineChat">添加会员/发消息</el-checkbox>
<el-checkbox v-model="customerShowData.allowGuideMobile">电话</el-checkbox>
<el-checkbox v-model="customerShowData.allowGuideMessage">短信</el-checkbox>
</div>
<div class="m-t-46">
<el-button type="primary" :loading="loading" @click="submit()">保存</el-button>
<div class="m-t-46 p-l-20">
<el-button type="primary" :loading="loading" @click="submit">保存</el-button>
</div>
</div>
</div>
</template>
......@@ -135,4 +137,11 @@ export default {
padding-bottom: 2px;
border-bottom: 1px dashed #2f54eb;
}
.set-tip-item {
line-height: 22px;
padding-left: 25px;
}
.customer-data-body {
padding: 10px;
}
</style>
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-08-27 11:36:51
* @LastEditors: 无尘
* @LastEditTime: 2020-09-03 09:37:12
* @LastEditTime: 2020-09-03 16:00:35
-->
<template>
......@@ -78,7 +78,7 @@
import commonAlertTip from '@/components/common/common-alert-tip.vue';
import Sortable from 'sortablejs';
import fetch from '@/api/my-customer-app.js';
const { getMemberData, getServiceData, saveSortMember } = fetch;
const { getMemberData, saveSortMember } = fetch;
import showMsg from '@/common/js/showmsg.js';
export default {
name: 'DataDimensionPage',
......@@ -107,7 +107,6 @@ export default {
that.rowDrop('serviceNumData');
if (!!that.brandId) {
that.getMemberCrad();
that.getServiceNum();
}
},
// methods
......@@ -132,15 +131,16 @@ export default {
}
});
},
setSort() {
setSort(arr, data) {
const that = this;
const para = {
enterpriseId: that.brandId
enterpriseId: that.brandId,
sorts: arr.map(ele => ele.id).join(','),
type: data == 'memberCardData' ? '0' : '1'
};
saveSortMember(para)
.then(res => {
that.getMemberCrad();
that.getServiceNum();
if (res.code == '0000') {
showMsg.showmsg('操作成功', 'success');
}else {
......@@ -158,34 +158,19 @@ export default {
getMemberCrad() {
const that = this;
that.loadingMember = true;
that.loadingService = true;
const para = {
enterpriseId: that.brandId
};
getMemberData(para)
.then(res => {
that.loadingMember = false;
that.memberCardData = res.result || [];
})
.catch(function(error) {
that.loadingMember = false;
});
},
/**
* @description: 获取服务号数据
* @author: 无尘
*/
getServiceNum() {
const that = this;
that.loadingService = true;
const para = {
enterpriseId: that.brandId
};
getServiceData(para)
.then(res => {
that.loadingService = false;
that.serviceNumData = res.result || [];
that.memberCardData = res.result.cards || [];
that.serviceNumData = res.result.services || [];
})
.catch(function(error) {
that.loadingMember = false;
that.loadingService = false;
});
}
......@@ -195,7 +180,6 @@ export default {
const that = this;
if (val) {
that.getMemberCrad();
that.getServiceNum();
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment