Commit db7d7ae6 by dingdang

update: dist

parent b96e48fa
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.76.css><script src=//at.alicdn.com/t/font_1628375_vcg1gtmx7lb.js></script><link rel=stylesheet href=//at.alicdn.com/t/font_2859043_udehp133w1.css><link rel="shortcut icon" href=./favicon.ico><link href=./static/css/app.3ee7e7f6f6cd6e3e1de8f16228aa96fe.css rel=stylesheet></head><body class=damolish><div id=app></div><script>(function() { <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.76.css><script src=//at.alicdn.com/t/font_1628375_vcg1gtmx7lb.js></script><link rel=stylesheet href=//at.alicdn.com/t/font_2859043_udehp133w1.css><link rel="shortcut icon" href=./favicon.ico><link href=./static/css/app.7a8c0b727cf1cdded1d222739fc778fc.css rel=stylesheet></head><body class=damolish><div id=app></div><script>(function() {
var src = '/component/static/import-component.js?timestrap='+ new Date().getTime(); var src = '/component/static/import-component.js?timestrap='+ new Date().getTime();
var host = window.location.host; var host = window.location.host;
host = host.indexOf('localhost') > -1 || host.indexOf('192.168') > -1 ? 'www.gicdev.com' : host; host = host.indexOf('localhost') > -1 || host.indexOf('192.168') > -1 ? 'www.gicdev.com' : host;
document.write('<script src="//'+ host + src +'"><\/script>') document.write('<script src="//'+ host + src +'"><\/script>')
})()</script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/common.1.0.3.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-data.1.0.11.js></script><script type=text/javascript src=./static/js/manifest.e297f3dacbc4514dc4e2.js></script><script type=text/javascript src=./static/js/vendor.b2ef304fef96f417d7e6.js></script><script type=text/javascript src=./static/js/app.3cae0b6df490fc71b91d.js></script></body></html> })()</script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.10.js></script><script src=//web-1251519181.file.myqcloud.com/components/common.1.0.3.js></script><script src=//web-1251519181.file.myqcloud.com/components/export-data.1.0.11.js></script><script type=text/javascript src=./static/js/manifest.dea7cab5d68dad5199b2.js></script><script type=text/javascript src=./static/js/vendor.01dc77f7336738e5cf77.js></script><script type=text/javascript src=./static/js/app.bb10072be649abe44b3e.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([118],{Y55K:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("zBsT")},"data-v-1778370e",null);e.default=o.exports},zBsT:function(t,e){}}); webpackJsonp([100],{K1Vb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("ibab")},"data-v-42a8460e",null);e.default=o.exports},ibab:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([100],{e8rA:function(e,t){},jPcV:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},collapseTag:function(e){this.collapseFlag=e}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"enterprise-wrap"},[t("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),t("div",{staticClass:"enterprise-wrap__body"},[t("div",{staticClass:"content",attrs:{id:"content"}},[t("div",{staticClass:"content-body",style:{height:this.contentHeight}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(e){n("e8rA")},"data-v-3cef0f12",null);t.default=o.exports}});
\ No newline at end of file
webpackJsonp([103],{VKgB:function(t,e){},rYZf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,a=0;a<t.length;a++){null!=t.charAt(a).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex"},[a("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),a("div",{staticClass:"draged-item-show"},[a("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),a("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var l=a("VU/8")(s,i,!1,function(t){a("VKgB")},"data-v-39067a2d",null);e.default=l.exports}});
\ No newline at end of file
webpackJsonp([104],{"4f1d":function(t,a){},aWmL:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("3Xzz"),i=e("Qie6"),c=e("Z8ln"),o=e("Ch4/"),r=e("P9l9"),s={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"内购券",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"内购券",path:""}],tabListData:[{tabId:"1",tabName:"卡券模板",icon:"iconmoban"},{tabId:"2",tabName:"卡券策略",icon:"iconcelve"},{tabId:"3",tabName:"内购券投放",icon:"icontoufang2"},{tabId:"4",tabName:"内购券记录",icon:"iconqiaquan",onlyIconActive:!1,children:[{tabId:"41",tabName:"投放记录",icon:""},{tabId:"42",tabName:"领取记录",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(r.b)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?o.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("cardTemplate");break;case"2":this.changeRoute("cardStrategy");break;case"3":this.changeRoute("cardPut");break;case"4":case"41":this.changeRoute("cardPutRecord");break;case"42":this.changeRoute("cardGetRecord")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})},changeNavShow:function(t){"/newCardTemp"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.templateId?"编辑模板":"新建模板",path:""}]:"/newCardStrategy"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.policyId?"编辑策略":"新建策略",path:""}]:"/newCardPut"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.repairId?"查看补发":"新建补发",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:""}]}},watch:{$route:{handler:function(t,a){this.changeNavShow(t)},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,commonDetailLeft:i.a,expiredDialog:c.a}},d={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var h=e("VU/8")(s,d,!1,function(t){e("4f1d")},"data-v-38e91801",null);a.default=h.exports}});
\ No newline at end of file
webpackJsonp([103],{"4ye2":function(e,t){},"6j9f":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3E4D"),r=a("Ch4/"),i=a("P9l9"),n={name:"unreview",data:function(){return{storeSwitch:!1,clerkChangeFlag:!1,wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:""}},methods:{postData:function(e){var t={wxEnterpriseId:this.wxEnterpriseId,auditFlag:this.storeSwitch,clerkChangeFlag:this.clerkChangeFlag};Object(i.g)("/haoban-manage3-web/audit/open-or-close",t).then(function(e){var t=e.data;1!=t.errorCode?r.a.errorMsg(t):s.a.showmsg("操作成功","success")}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},getData:function(e){var t=this,a={wxEnterpriseId:this.wxEnterpriseId};Object(i.b)("/haoban-manage3-web/audit/find-setting",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.storeSwitch=a.result.auditFlag,void(t.clerkChangeFlag=a.result.clerkChangeFlag);r.a.errorMsg(a)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab",3),this.getData()}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:e.storeSwitch,callback:function(t){e.storeSwitch=t},expression:"storeSwitch"}},[e._v("开启门店资料修改审核")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("开启后,所有门店在小程序端修改门店资料需要审核通过后才能修改")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:e.clerkChangeFlag,callback:function(t){e.clerkChangeFlag=t},expression:"clerkChangeFlag"}},[e._v("门店导购变更审核")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("开启后,企业微信成员在好办小程序店长删除或新增导购需要进行审核")])],1),e._v(" "),a("div",{staticClass:"m-t-46 m-l-25"},[e.$getButtonLimit(e.$buttonCode.saveApplySetting)?a("el-button",{attrs:{"limit-code":e.$buttonCode.saveApplySetting,type:"primary",loading:e.loading},on:{click:e.postData}},[e._v("保 存")]):e._e()],1)])])])},staticRenderFns:[]};var l=a("VU/8")(n,o,!1,function(e){a("4ye2")},"data-v-386819a0",null);t.default=l.exports}}); webpackJsonp([105],{"4ye2":function(e,t){},"6j9f":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3E4D"),r=a("Ch4/"),i=a("P9l9"),n={name:"unreview",data:function(){return{storeSwitch:!1,clerkChangeFlag:!1,wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:""}},methods:{postData:function(e){var t={wxEnterpriseId:this.wxEnterpriseId,auditFlag:this.storeSwitch,clerkChangeFlag:this.clerkChangeFlag};Object(i.g)("/haoban-manage3-web/audit/open-or-close",t).then(function(e){var t=e.data;1!=t.errorCode?r.a.errorMsg(t):s.a.showmsg("操作成功","success")}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},getData:function(e){var t=this,a={wxEnterpriseId:this.wxEnterpriseId};Object(i.b)("/haoban-manage3-web/audit/find-setting",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.storeSwitch=a.result.auditFlag,void(t.clerkChangeFlag=a.result.clerkChangeFlag);r.a.errorMsg(a)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab",3),this.getData()}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:e.storeSwitch,callback:function(t){e.storeSwitch=t},expression:"storeSwitch"}},[e._v("开启门店资料修改审核")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("开启后,所有门店在小程序端修改门店资料需要审核通过后才能修改")])],1),e._v(" "),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:e.clerkChangeFlag,callback:function(t){e.clerkChangeFlag=t},expression:"clerkChangeFlag"}},[e._v("门店导购变更审核")]),e._v(" "),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("开启后,企业微信成员在好办小程序店长删除或新增导购需要进行审核")])],1),e._v(" "),a("div",{staticClass:"m-t-46 m-l-25"},[e.$getButtonLimit(e.$buttonCode.saveApplySetting)?a("el-button",{attrs:{"limit-code":e.$buttonCode.saveApplySetting,type:"primary",loading:e.loading},on:{click:e.postData}},[e._v("保 存")]):e._e()],1)])])])},staticRenderFns:[]};var l=a("VU/8")(n,o,!1,function(e){a("4ye2")},"data-v-386819a0",null);t.default=l.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([104],{dhLd:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Ch4/"),s=a("3E4D"),o=a("PI0u"),i=a("P9l9"),r={components:{},props:{brandId:{type:String,default:""}},data:function(){var t=this;return{recordShow:!1,wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",statusObj:{3:"待领取",4:"待核销",5:"已核销",6:"已过期",7:"已销毁",8:"已占用"},activeId:"2",conditionObj:{postDateRange:[],searchInput:""},choiceDateCopy:[],pickerOptions:{onPick:function(e){var a=e.maxDate,n=e.minDate;t.choiceDateCopy=[n.getTime()],a&&(t.choiceDateCopy=[])},disabledDate:function(e){if(t.choiceDateCopy.length){var a=t.choiceDateCopy[0]-31536e6,n=t.choiceDateCopy[0]+31536e6;return e.getTime()<a||e.getTime()>n}}},templateData:[],strategyData:[],loading:!1,tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{changeDate:function(){this.currentPage=1,this.getTableList()},toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.coupCardId)}).catch(function(){})},delCardList:function(t){var e=this,a={gicEnterpriseId:e.brandId,coupCardId:t};Object(i.g)("/haoban-app-customer-web/inner/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return s.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(o.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(){var t=this;t.loading=!0,t.conditionObj.postDateRange||(t.conditionObj.postDateRange=[]);var e={wxEnterpriseId:t.wxEnterpriseId,search:t.conditionObj.searchInput,queryType:1,sendStartDate:t.conditionObj.postDateRange[0],sendEndDate:t.conditionObj.postDateRange[1],pageNum:t.currentPage,pageSize:t.pageSize};Object(i.g)("/haoban-app-customer-web/inner/find-card-log-page",e).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);n.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab","41"),this.getTableList()}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("div",[a("el-date-picker",{attrs:{"prefix-icon":"el-icon-time","picker-options":t.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"发送开始时间","end-placeholder":"发送结束时间"},on:{change:t.changeDate},model:{value:t.conditionObj.postDateRange,callback:function(e){t.$set(t.conditionObj,"postDateRange",e)},expression:"conditionObj.postDateRange"}}),a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"284px"},attrs:{placeholder:"请输入卡券名称/卡券代码/会员信息",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"成员信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info m-l-10",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",{staticClass:"font-14 color-606266 text-ellipsis line-18"},[t._v(t._s(e.row.staffName||"--"))]),t._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis line-18"},[t._v(t._s(t._f("formatPhoneNum")(e.row.phoneNum)))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"font-14 color-606266 line-18"},[t._v(t._s(e.row.memberName||"--"))]),t._v(" "),a("div",{staticClass:"font-12 color-909399 line-18"},[t._v(t._s(t._f("formatPhoneNum")(e.row.phoneNum)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发券渠道","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 好办内购券\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[3==e.row.status?a("span",{staticClass:"status-dot bg-7c6af2"}):t._e(),4==e.row.status?a("span",{staticClass:"status-dot bg-2f54eb"}):t._e(),5==e.row.status?a("span",{staticClass:"status-dot bg-52c41a"}):t._e(),6==e.row.status?a("span",{staticClass:"status-dot bg-f5222d"}):t._e(),7==e.row.status?a("span",{staticClass:"status-dot bg-c0c4cc"}):t._e(),8==e.row.status?a("span",{staticClass:"status-dot bg-faad14"}):t._e(),a("span",{staticClass:"inline-block"},[t._v(t._s(t.statusObj[e.row.status]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发送时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.createDate?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createDate)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createDate)))])]):a("div",[t._v("\n --\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.receiveTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.receiveTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.receiveTime)))])]):a("div",[t._v("\n --\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.useTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.useTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.useTime)))])]):a("div",[t._v("\n --\n ")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[]};var c=a("VU/8")(r,l,!1,function(t){a("nYmP")},"data-v-3812422a",null);e.default=c.exports},nYmP:function(t,e){}}); webpackJsonp([106],{dhLd:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Ch4/"),s=a("3E4D"),o=a("PI0u"),i=a("P9l9"),r={components:{},props:{brandId:{type:String,default:""}},data:function(){var t=this;return{recordShow:!1,wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",statusObj:{3:"待领取",4:"待核销",5:"已核销",6:"已过期",7:"已销毁",8:"已占用"},activeId:"2",conditionObj:{postDateRange:[],searchInput:""},choiceDateCopy:[],pickerOptions:{onPick:function(e){var a=e.maxDate,n=e.minDate;t.choiceDateCopy=[n.getTime()],a&&(t.choiceDateCopy=[])},disabledDate:function(e){if(t.choiceDateCopy.length){var a=t.choiceDateCopy[0]-31536e6,n=t.choiceDateCopy[0]+31536e6;return e.getTime()<a||e.getTime()>n}}},templateData:[],strategyData:[],loading:!1,tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{changeDate:function(){this.currentPage=1,this.getTableList()},toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.coupCardId)}).catch(function(){})},delCardList:function(t){var e=this,a={gicEnterpriseId:e.brandId,coupCardId:t};Object(i.g)("/haoban-app-customer-web/inner/del-card-coup",a).then(function(t){var a=t.data;if(1==a.errorCode)return s.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(o.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(){var t=this;t.loading=!0,t.conditionObj.postDateRange||(t.conditionObj.postDateRange=[]);var e={wxEnterpriseId:t.wxEnterpriseId,search:t.conditionObj.searchInput,queryType:1,sendStartDate:t.conditionObj.postDateRange[0],sendEndDate:t.conditionObj.postDateRange[1],pageNum:t.currentPage,pageSize:t.pageSize};Object(i.g)("/haoban-app-customer-web/inner/find-card-log-page",e).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);n.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.$emit("showTab","41"),this.getTableList()}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("div",[a("el-date-picker",{attrs:{"prefix-icon":"el-icon-time","picker-options":t.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"发送开始时间","end-placeholder":"发送结束时间"},on:{change:t.changeDate},model:{value:t.conditionObj.postDateRange,callback:function(e){t.$set(t.conditionObj,"postDateRange",e)},expression:"conditionObj.postDateRange"}}),a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"284px"},attrs:{placeholder:"请输入卡券名称/卡券代码/会员信息",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"成员信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[e.row.headImg?a("img",{attrs:{src:e.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),t._v(" "),a("div",{staticClass:"flex flex-column apply-info m-l-10",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",{staticClass:"font-14 color-606266 text-ellipsis line-18"},[t._v(t._s(e.row.staffName||"--"))]),t._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis line-18"},[t._v(t._s(t._f("formatPhoneNum")(e.row.phoneNum)))])])])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"font-14 color-606266 line-18"},[t._v(t._s(e.row.memberName||"--"))]),t._v(" "),a("div",{staticClass:"font-12 color-909399 line-18"},[t._v(t._s(t._f("formatPhoneNum")(e.row.phoneNum)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName||"--")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发券渠道","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n 好办内购券\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[3==e.row.status?a("span",{staticClass:"status-dot bg-7c6af2"}):t._e(),4==e.row.status?a("span",{staticClass:"status-dot bg-2f54eb"}):t._e(),5==e.row.status?a("span",{staticClass:"status-dot bg-52c41a"}):t._e(),6==e.row.status?a("span",{staticClass:"status-dot bg-f5222d"}):t._e(),7==e.row.status?a("span",{staticClass:"status-dot bg-c0c4cc"}):t._e(),8==e.row.status?a("span",{staticClass:"status-dot bg-faad14"}):t._e(),a("span",{staticClass:"inline-block"},[t._v(t._s(t.statusObj[e.row.status]))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"发送时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.createDate?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createDate)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createDate)))])]):a("div",[t._v("\n --\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"领取时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.receiveTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.receiveTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.receiveTime)))])]):a("div",[t._v("\n --\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.useTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.useTime)))]),t._v(" "),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.useTime)))])]):a("div",[t._v("\n --\n ")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[]};var c=a("VU/8")(r,l,!1,function(t){a("nYmP")},"data-v-3812422a",null);e.default=c.exports},nYmP:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([105],{"7m4r":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Dd8w"),i=a.n(n),o=a("PI0u"),r=a("PeHS"),s=a("Q0Ca"),l=[{label:"添加好友人数",prop:"addNumT",minWidth:"130",sortable:"custom",formatter:function(t){return"<span>"+(t.addNumT?t.addNumT:"- -")+"</span>"}},{label:"今日新增人数",prop:"addNum",minWidth:"130",sortable:"custom",formatter:function(t){return"<span>"+(t.addNum?t.addNum:"- -")+"</span>"}},{label:"点击总人次",prop:"clickTimesT",minWidth:"120",sortable:"custom",formatter:function(t){return"<span>"+(t.clickTimesT?t.clickTimesT:"- -")+"</span>"}},{label:"今日点击人次",prop:"clickTimes",minWidth:"130",sortable:"custom",formatter:function(t){return"<span>"+(t.clickTimes?t.clickTimes:"- -")+"</span>"}},{label:"点击总人数",prop:"clickNumT",minWidth:"120",sortable:"custom",formatter:function(t){return"<span>"+(t.clickNumT?t.clickNumT:"- -")+"</span>"}},{label:"今日点击人数",prop:"clickNum",minWidth:"130",sortable:"custom",formatter:function(t){return"<span>"+(t.clickNum?t.clickNum:"- -")+"</span>"}},{label:"创建人",minWidth:"100",tooltip:!0,prop:"creatorName",formatter:function(t){return"<span>"+(t.creatorName?t.creatorName:"- -")+"</span>"}},{label:"创建时间",width:"120",tooltip:!0,prop:"createTime",formatter:function(t){return s.a.timeStampToYmd(t.createTime)+"<br /> "+s.a.timeStampToHms(t.createTime)}}],c={name:"attractFlowLink",data:function(){var t=this;return{tableMaxHeight:document.body.clientHeight-285+"px",activeName:"first",loading:!1,form:{pageSize:20,pageNum:1,linkType:"",searchParams:"",dateRange:[],sortColumn:""},options:[{label:"专用链接",key:1},{label:"通用链接",key:2}],pickerOptions:{disabledDate:function(t){var e=new Date;return t.getTime()>e.getTime()}},btnArr:[{text:"数据",visible:function(e){return t.$getButtonLimit(t.$buttonCode.dataLink)},props:{limitCode:this.$buttonCode.dataLink},handler:function(e){return t.goDetail(e,"second")}},{text:"详情",visible:function(e){return t.$getButtonLimit(t.$buttonCode.infoLink)},props:{limitCode:this.$buttonCode.infoLink},handler:function(e){return t.goDetail(e,"first")}},{text:"链接",visible:function(e){return t.$getButtonLimit(t.$buttonCode.downLink)&&2==e.linkType},props:{limitCode:this.$buttonCode.downLink},handler:function(e){return t.goLink(e)}},{text:"编辑",visible:function(e){return t.$getButtonLimit(t.$buttonCode.editLink)},props:{limitCode:this.$buttonCode.editLink},handler:function(e){return t.goEdit(e)}}],total:"",tableData:[],tableHeader:l,show:!1,linkUrl:""}},mounted:function(){this.getList()},activated:function(){this.getList()},components:{links:a("jssv").a},methods:{clear:function(){console.log("clear")},toInput:Object(o.a)(function(t,e){this.getList()},500),getList:function(){var t=this,e=i()({},this.form);this.form.dateRange&&this.form.dateRange.length&&(e.startDate=this.form.dateRange[0]+" 00:00:00",e.endDate=this.form.dateRange[1]+" 23:59:59"),delete e.dateRange,console.log(e),this.loading=!0,Object(r.o)(e).then(function(e){if(console.log(e),e.data.result){var a=e.data.result,n=a.totalCount,i=a.result;t.tableData=i,t.total=n}}).finally(function(e){t.loading=!1})},handleSizeChange:function(t){this.form.pageNum=1,this.form.pageSize=t,this.getList()},handleCurrentChange:function(t){this.form.pageNum=t,this.getList()},handleSortChange:function(t){var e=t.prop,a=t.order;console.log(a),"descending"==a?(this.form.sortColumn=e,this.form.sortType="desc"):"ascending"===a?(this.form.sortColumn=e,this.form.sortType="asc"):(this.form.sortColumn="",this.form.sortType=void 0),this.form.pageNum=1,this.getList()},goLanding:function(){this.$router.push("/ladingPageList")},goDetail:function(t,e){"second"==e?this.$router.push("attractFlowLinkInfo/"+t.linkId+"?type="+e):this.$router.push("attractFlowLinkInfos/"+t.linkId+"?type="+e)},goLink:function(t){this.linkUrl=t.linkUrl,this.imageName=t.linkCode+"_"+t.name,this.show=!0},goEdit:function(t){this.$router.push("attractFlowLinkEdit/"+t.linkId)}}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"p-20"},[a("dm-sub-title",{staticClass:"m-b-10"},[a("div",{staticClass:"title"},[a("span",[t._v("引流加入")]),t._v(" "),a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:linkList",arg:"linkList"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("div",{staticClass:"flex flex-space-between m-b-16"},[a("div",{staticClass:"flex flex-align-center"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入链接ID/名称、创建人",clearable:""},on:{clear:t.getList},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.form.searchParams,callback:function(e){t.$set(t.form,"searchParams",e)},expression:"form.searchParams"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("el-select",{staticClass:"m-l-10 w-160",attrs:{placeholder:"全部类型",clearable:""},on:{change:t.getList,clear:t.clear},model:{value:t.form.linkType,callback:function(e){t.$set(t.form,"linkType",e)},expression:"form.linkType"}},t._l(t.options,function(t){return a("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})}),1),t._v(" "),a("el-date-picker",{staticClass:"m-l-10 w-256",attrs:{type:"daterange","picker-options":t.pickerOptions,"value-format":"yyyy-MM-dd",clearable:"","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期"},on:{change:t.getList,clear:t.getList},model:{value:t.form.dateRange,callback:function(e){t.$set(t.form,"dateRange",e)},expression:"form.dateRange"}})],1),t._v(" "),a("div",[a("el-button",{on:{click:t.goLanding}},[t._v("落地页模板")]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addLink)?a("el-button",{attrs:{type:"primary","limit-code":t.$buttonCode.addLink},on:{click:function(e){return t.$router.push("attractFlowLinkAdd")}}},[t._v("新增链接")]):t._e()],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData,"max-height":t.tableMaxHeight},on:{"sort-change":t.handleSortChange}},[a("el-table-column",{attrs:{"min-width":"120",prop:"linkCode",label:"链接ID"}}),t._v(" "),a("el-table-column",{attrs:{minWidth:"180",prop:"memberId",label:"链接信息"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("p",{staticClass:"overFlow"},[t._v(t._s(n.name))]),t._v(" "),a("p",{staticClass:"tips"},[t._v("code:"+t._s(n.shortCode))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"110",prop:"linkType",label:"链接类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.linkType?a("el-tag",{staticClass:"el-tag--cyan",attrs:{size:"mini"}},[t._v(" 专用链接 ")]):a("el-tag",{attrs:{size:"mini"}},[t._v("通用链接")])]}}])}),t._v(" "),t._l(t.tableHeader,function(e){return a("el-table-column",{key:e.prop,attrs:{"show-overflow-tooltip":e.tooltip,width:e.width,"min-width":e.minWidth,align:e.align,prop:e.prop,label:e.label,formatter:e.formatter,sortable:e.sortable,fixed:e.fixed},scopedSlots:t._u([{key:"default",fn:function(n){return[e.formatter?a("span",{domProps:{innerHTML:t._s(e.formatter(n.row))}}):a("span",[t._v(t._s(n.row[e.prop]))])]}}])})}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"160",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("dm-dropdown",{ref:"drop",attrs:{"scope-data":n,configs:t.btnArr}})]}}])})],2),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"text-right"},[a("el-pagination",{attrs:{background:"","page-size":t.form.pageSize,"current-page":t.form.pageNum,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[20,40,60,80],total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange,"update:pageSize":function(e){return t.$set(t.form,"pageSize",e)},"update:page-size":function(e){return t.$set(t.form,"pageSize",e)},"update:currentPage":function(e){return t.$set(t.form,"pageNum",e)},"update:current-page":function(e){return t.$set(t.form,"pageNum",e)}}})],1):t._e(),t._v(" "),a("links",{attrs:{src:t.linkUrl,show:t.show,imageName:t.imageName},on:{"update:show":function(e){t.show=e}}})],1)},staticRenderFns:[]};var d=a("VU/8")(c,u,!1,function(t){a("84fA")},"data-v-3416b606",null);e.default=d.exports},"84fA":function(t,e){}}); webpackJsonp([107],{"7m4r":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Dd8w"),i=a.n(n),o=a("PI0u"),r=a("PeHS"),s=a("Q0Ca"),l=[{label:"添加好友人数",prop:"addNumT",minWidth:"130",sortable:"custom",formatter:function(t){return"<span>"+(t.addNumT?t.addNumT:"- -")+"</span>"}},{label:"今日新增人数",prop:"addNum",minWidth:"130",sortable:"custom",formatter:function(t){return"<span>"+(t.addNum?t.addNum:"- -")+"</span>"}},{label:"点击总人次",prop:"clickTimesT",minWidth:"120",sortable:"custom",formatter:function(t){return"<span>"+(t.clickTimesT?t.clickTimesT:"- -")+"</span>"}},{label:"今日点击人次",prop:"clickTimes",minWidth:"130",sortable:"custom",formatter:function(t){return"<span>"+(t.clickTimes?t.clickTimes:"- -")+"</span>"}},{label:"点击总人数",prop:"clickNumT",minWidth:"120",sortable:"custom",formatter:function(t){return"<span>"+(t.clickNumT?t.clickNumT:"- -")+"</span>"}},{label:"今日点击人数",prop:"clickNum",minWidth:"130",sortable:"custom",formatter:function(t){return"<span>"+(t.clickNum?t.clickNum:"- -")+"</span>"}},{label:"创建人",minWidth:"100",tooltip:!0,prop:"creatorName",formatter:function(t){return"<span>"+(t.creatorName?t.creatorName:"- -")+"</span>"}},{label:"创建时间",width:"120",tooltip:!0,prop:"createTime",formatter:function(t){return s.a.timeStampToYmd(t.createTime)+"<br /> "+s.a.timeStampToHms(t.createTime)}}],c={name:"attractFlowLink",data:function(){var t=this;return{tableMaxHeight:document.body.clientHeight-285+"px",activeName:"first",loading:!1,form:{pageSize:20,pageNum:1,linkType:"",searchParams:"",dateRange:[],sortColumn:""},options:[{label:"专用链接",key:1},{label:"通用链接",key:2}],pickerOptions:{disabledDate:function(t){var e=new Date;return t.getTime()>e.getTime()}},btnArr:[{text:"数据",visible:function(e){return t.$getButtonLimit(t.$buttonCode.dataLink)},props:{limitCode:this.$buttonCode.dataLink},handler:function(e){return t.goDetail(e,"second")}},{text:"详情",visible:function(e){return t.$getButtonLimit(t.$buttonCode.infoLink)},props:{limitCode:this.$buttonCode.infoLink},handler:function(e){return t.goDetail(e,"first")}},{text:"链接",visible:function(e){return t.$getButtonLimit(t.$buttonCode.downLink)&&2==e.linkType},props:{limitCode:this.$buttonCode.downLink},handler:function(e){return t.goLink(e)}},{text:"编辑",visible:function(e){return t.$getButtonLimit(t.$buttonCode.editLink)},props:{limitCode:this.$buttonCode.editLink},handler:function(e){return t.goEdit(e)}}],total:"",tableData:[],tableHeader:l,show:!1,linkUrl:""}},mounted:function(){this.getList()},activated:function(){this.getList()},components:{links:a("jssv").a},methods:{clear:function(){console.log("clear")},toInput:Object(o.a)(function(t,e){this.getList()},500),getList:function(){var t=this,e=i()({},this.form);this.form.dateRange&&this.form.dateRange.length&&(e.startDate=this.form.dateRange[0]+" 00:00:00",e.endDate=this.form.dateRange[1]+" 23:59:59"),delete e.dateRange,console.log(e),this.loading=!0,Object(r.o)(e).then(function(e){if(console.log(e),e.data.result){var a=e.data.result,n=a.totalCount,i=a.result;t.tableData=i,t.total=n}}).finally(function(e){t.loading=!1})},handleSizeChange:function(t){this.form.pageNum=1,this.form.pageSize=t,this.getList()},handleCurrentChange:function(t){this.form.pageNum=t,this.getList()},handleSortChange:function(t){var e=t.prop,a=t.order;console.log(a),"descending"==a?(this.form.sortColumn=e,this.form.sortType="desc"):"ascending"===a?(this.form.sortColumn=e,this.form.sortType="asc"):(this.form.sortColumn="",this.form.sortType=void 0),this.form.pageNum=1,this.getList()},goLanding:function(){this.$router.push("/ladingPageList")},goDetail:function(t,e){"second"==e?this.$router.push("attractFlowLinkInfo/"+t.linkId+"?type="+e):this.$router.push("attractFlowLinkInfos/"+t.linkId+"?type="+e)},goLink:function(t){this.linkUrl=t.linkUrl,this.imageName=t.linkCode+"_"+t.name,this.show=!0},goEdit:function(t){this.$router.push("attractFlowLinkEdit/"+t.linkId)}}},u={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"p-20"},[a("dm-sub-title",{staticClass:"m-b-10"},[a("div",{staticClass:"title"},[a("span",[t._v("引流加入")]),t._v(" "),a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:linkList",arg:"linkList"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("div",{staticClass:"flex flex-space-between m-b-16"},[a("div",{staticClass:"flex flex-align-center"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入链接ID/名称、创建人",clearable:""},on:{clear:t.getList},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.form.searchParams,callback:function(e){t.$set(t.form,"searchParams",e)},expression:"form.searchParams"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("el-select",{staticClass:"m-l-10 w-160",attrs:{placeholder:"全部类型",clearable:""},on:{change:t.getList,clear:t.clear},model:{value:t.form.linkType,callback:function(e){t.$set(t.form,"linkType",e)},expression:"form.linkType"}},t._l(t.options,function(t){return a("el-option",{key:t.key,attrs:{label:t.label,value:t.key}})}),1),t._v(" "),a("el-date-picker",{staticClass:"m-l-10 w-256",attrs:{type:"daterange","picker-options":t.pickerOptions,"value-format":"yyyy-MM-dd",clearable:"","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期"},on:{change:t.getList,clear:t.getList},model:{value:t.form.dateRange,callback:function(e){t.$set(t.form,"dateRange",e)},expression:"form.dateRange"}})],1),t._v(" "),a("div",[a("el-button",{on:{click:t.goLanding}},[t._v("落地页模板")]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addLink)?a("el-button",{attrs:{type:"primary","limit-code":t.$buttonCode.addLink},on:{click:function(e){return t.$router.push("attractFlowLinkAdd")}}},[t._v("新增链接")]):t._e()],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableData,"max-height":t.tableMaxHeight},on:{"sort-change":t.handleSortChange}},[a("el-table-column",{attrs:{"min-width":"120",prop:"linkCode",label:"链接ID"}}),t._v(" "),a("el-table-column",{attrs:{minWidth:"180",prop:"memberId",label:"链接信息"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("p",{staticClass:"overFlow"},[t._v(t._s(n.name))]),t._v(" "),a("p",{staticClass:"tips"},[t._v("code:"+t._s(n.shortCode))])]}}])}),t._v(" "),a("el-table-column",{attrs:{width:"110",prop:"linkType",label:"链接类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.linkType?a("el-tag",{staticClass:"el-tag--cyan",attrs:{size:"mini"}},[t._v(" 专用链接 ")]):a("el-tag",{attrs:{size:"mini"}},[t._v("通用链接")])]}}])}),t._v(" "),t._l(t.tableHeader,function(e){return a("el-table-column",{key:e.prop,attrs:{"show-overflow-tooltip":e.tooltip,width:e.width,"min-width":e.minWidth,align:e.align,prop:e.prop,label:e.label,formatter:e.formatter,sortable:e.sortable,fixed:e.fixed},scopedSlots:t._u([{key:"default",fn:function(n){return[e.formatter?a("span",{domProps:{innerHTML:t._s(e.formatter(n.row))}}):a("span",[t._v(t._s(n.row[e.prop]))])]}}])})}),t._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"160",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.row;return[a("dm-dropdown",{ref:"drop",attrs:{"scope-data":n,configs:t.btnArr}})]}}])})],2),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"text-right"},[a("el-pagination",{attrs:{background:"","page-size":t.form.pageSize,"current-page":t.form.pageNum,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[20,40,60,80],total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange,"update:pageSize":function(e){return t.$set(t.form,"pageSize",e)},"update:page-size":function(e){return t.$set(t.form,"pageSize",e)},"update:currentPage":function(e){return t.$set(t.form,"pageNum",e)},"update:current-page":function(e){return t.$set(t.form,"pageNum",e)}}})],1):t._e(),t._v(" "),a("links",{attrs:{src:t.linkUrl,show:t.show,imageName:t.imageName},on:{"update:show":function(e){t.show=e}}})],1)},staticRenderFns:[]};var d=a("VU/8")(c,u,!1,function(t){a("84fA")},"data-v-3416b606",null);e.default=d.exports},"84fA":function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([106],{GdW8:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("PeHS"),i=a("PI0u"),o={data:function(){return{form:{searchContent:"",pageId:"",pageNum:1,pageSize:20},loading:!1,total:0,tableData:[]}},props:{pageId:{type:String,default:""},dialogVisible:{type:Boolean,default:!1}},watch:{pageId:function(e){e&&(this.form={searchContent:"",pageId:e,pageNum:1,pageSize:20},this.getList())}},methods:{toInput:Object(i.a)(function(e,t){this.getList()},500),getList:function(){var e=this;this.loading=!0,Object(n.k)(this.form).then(function(t){var a=t.data.result,n=a.totalCount,i=a.result;i&&(e.total=n,e.tableData=i)}).finally(function(t){e.loading=!1})},handleSizeChange:function(e){this.form.pageNum=1,this.form.pageSize=e,this.getList()},handleCurrentChange:function(e){this.form.pageNum=e,this.getList()}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"关联详情",width:"600px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t},close:function(t){return e.$emit("update:dialogVisible",!1)}}},[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"flex flex-space-between m-b-16"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入链接名称/ID",clearable:""},on:{clear:e.getList},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.form.searchContent,callback:function(t){e.$set(e.form,"searchContent",t)},expression:"form.searchContent"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",attrs:{data:e.tableData,height:"450","tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"releationId",label:"链接ID","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"referName",label:"链接名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("goLinkDetail",n.referId)}}},[e._v("查看")])]}}])})],1),e._v(" "),a("el-pagination",{staticClass:"text-right margin-pg",attrs:{"page-size":e.form.pageSize,"current-page":e.form.pageNum,layout:"prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.form,"pageSize",t)},"update:page-size":function(t){return e.$set(e.form,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.form,"pageNum",t)},"update:current-page":function(t){return e.$set(e.form,"pageNum",t)}}})],1)},staticRenderFns:[]};var l=a("VU/8")(o,r,!1,function(e){a("YYEh")},"data-v-29d9d5a9",null);t.default=l.exports},YYEh:function(e,t){}}); webpackJsonp([108],{GdW8:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("PeHS"),i=a("PI0u"),o={data:function(){return{form:{searchContent:"",pageId:"",pageNum:1,pageSize:20},loading:!1,total:0,tableData:[]}},props:{pageId:{type:String,default:""},dialogVisible:{type:Boolean,default:!1}},watch:{pageId:function(e){e&&(this.form={searchContent:"",pageId:e,pageNum:1,pageSize:20},this.getList())}},methods:{toInput:Object(i.a)(function(e,t){this.getList()},500),getList:function(){var e=this;this.loading=!0,Object(n.k)(this.form).then(function(t){var a=t.data.result,n=a.totalCount,i=a.result;i&&(e.total=n,e.tableData=i)}).finally(function(t){e.loading=!1})},handleSizeChange:function(e){this.form.pageNum=1,this.form.pageSize=e,this.getList()},handleCurrentChange:function(e){this.form.pageNum=e,this.getList()}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"关联详情",width:"600px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t},close:function(t){return e.$emit("update:dialogVisible",!1)}}},[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"flex flex-space-between m-b-16"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入链接名称/ID",clearable:""},on:{clear:e.getList},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.form.searchContent,callback:function(t){e.$set(e.form,"searchContent",t)},expression:"form.searchContent"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",attrs:{data:e.tableData,height:"450","tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"releationId",label:"链接ID","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"referName",label:"链接名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("goLinkDetail",n.referId)}}},[e._v("查看")])]}}])})],1),e._v(" "),a("el-pagination",{staticClass:"text-right margin-pg",attrs:{"page-size":e.form.pageSize,"current-page":e.form.pageNum,layout:"prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.form,"pageSize",t)},"update:page-size":function(t){return e.$set(e.form,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.form,"pageNum",t)},"update:current-page":function(t){return e.$set(e.form,"pageNum",t)}}})],1)},staticRenderFns:[]};var l=a("VU/8")(o,r,!1,function(e){a("YYEh")},"data-v-29d9d5a9",null);t.default=l.exports},YYEh:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([107],{TLVp:function(t,e){},m9dW:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("bzW+"),n=a("Qie6"),c=a("NKg7"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-288+"px",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"企业信息",icon:"iconqiyexinxi"},{tabId:"2",tabName:"管理员列表",icon:"iconguanliyuanliebiao"},{tabId:"3",tabName:"素材库",icon:"iconsucaiku"},{tabId:"4",tabName:"欢迎语",icon:"iconhuanyingci"},{tabId:"5",tabName:"审核中心",icon:"iconshenhezhongxin"},{tabId:"6",tabName:"操作设置",icon:"iconshezhi"}],activeBrand:"",activeGroup:""}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},changeRoute:function(t){this.$router.push(t)},setSelectTab:function(t){switch(this.activeTab=t.tabId,console.log(this.activeTab),t.tabId){case"1":this.changeRoute("enterpriseSet");break;case"2":this.changeRoute("adminList");break;case"3":this.changeRoute("material");break;case"4":this.changeRoute("salutatory");break;case"5":this.changeRoute("reviewCenter");break;case"6":this.changeRoute("setting")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,console.log(this.activeTab),console.log(this.activeSelTab),this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{$route:{handler:function(t,e){},deep:!0},activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:i.a,commonDetailLeft:n.a,vueOfficeHeader:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"enterprise-wrap__body"},[a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body"},[a("div",{staticClass:"right-content border-box"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right border-box"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])])])])])],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("TLVp")},"data-v-260d1026",null);e.default=r.exports}}); webpackJsonp([109],{TLVp:function(t,e){},m9dW:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("bzW+"),n=a("Qie6"),c=a("NKg7"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-288+"px",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"企业信息",icon:"iconqiyexinxi"},{tabId:"2",tabName:"管理员列表",icon:"iconguanliyuanliebiao"},{tabId:"3",tabName:"素材库",icon:"iconsucaiku"},{tabId:"4",tabName:"欢迎语",icon:"iconhuanyingci"},{tabId:"5",tabName:"审核中心",icon:"iconshenhezhongxin"},{tabId:"6",tabName:"操作设置",icon:"iconshezhi"}],activeBrand:"",activeGroup:""}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},changeRoute:function(t){this.$router.push(t)},setSelectTab:function(t){switch(this.activeTab=t.tabId,console.log(this.activeTab),t.tabId){case"1":this.changeRoute("enterpriseSet");break;case"2":this.changeRoute("adminList");break;case"3":this.changeRoute("material");break;case"4":this.changeRoute("salutatory");break;case"5":this.changeRoute("reviewCenter");break;case"6":this.changeRoute("setting")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,console.log(this.activeTab),console.log(this.activeSelTab),this.tabListData.forEach(function(e){e.tabId==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach(function(a){a.tabId==t&&(e.onlyIconActive=!0)})})})}},watch:{$route:{handler:function(t,e){},deep:!0},activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:i.a,commonDetailLeft:n.a,vueOfficeHeader:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("vue-office-header",{attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"enterprise-wrap__body"},[a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body"},[a("div",{staticClass:"right-content border-box"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right border-box"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])])])])])],1)},staticRenderFns:[]};var r=a("VU/8")(o,s,!1,function(t){a("TLVp")},"data-v-260d1026",null);e.default=r.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([11],{C86s:function(t,e){},QJEo:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALMAAABgCAYAAABWvkNyAAAAAXNSR0IArs4c6QAAAyNJREFUeAHt2rFu2zAQBmA7CNChW9e+/6N1Lbp0rYtkIOEgyykn8U76AgRgApo8ffeDUWTffv3+93j7vvki0FzgpXn9yicwBIR5UBh0FxDm7h1U/xAQ5kFh0F1AmLt3UP1DQJgHhUF3AWHu3kH1DwFhHhQG3QWEuXsH1T8EhHlQGHQXEObuHVT/EBDmQWHQXUCYu3dQ/UPgdYwMCOwo8PGTmT9/vNyzt3MyZ4tab5mAMC+jt3G2gDBni1pvmYAwL6O3cbaAMGeLWm+ZgDAvo7dxtoAwZ4tab5mAMC+jt3G2gDBni1pvmYAwL6O3cbaAMGeLWm+ZgDAvo7dxtoAwZ4tab5mAMC+jt3G2wOk/AnrERw+zm2K9bQJO5m1uXlVQQJgLNkVJ2wSEeZubVxUUEOaCTVHSNgFh3ubmVQUFTv80o6D5pyV56vIpS+iXTuYQl8mVBYS5cnfUFhIQ5hCXyZUFhLlyd9QWEhDmEJfJlQWEuXJ31BYSEOYQl8mVBYS5cnfUFhIQ5hCXyZUFvAOY3B3v5CWDBpZzMgewTK0tIMy1+6O6gIAwB7BMrS0gzLX7o7qAgDAHsEytLSDMtfujuoCAMAewTK0tIMy1+6O6gIAwB7BMrS0gzLX7o7qAgLezA1hnmnrGt92dzGdK6MWvpc3JfMaT5OLZS798J3M6qQVXCQjzKnn7pgsIczqpBVcJtLlnXgVk32eByv+7OJmfe+WnxgLC3Lh5Sn8WEOZnDz81Fth8z1z53qlxP5T+BQEn8xfwvLSWwOaTudZl5FfjL0++6d4rOpn3Frb+YQLCfBi1jfYWEOa9ha1/mIAwH0Zto70FhHlvYesfJiDMh1HbaG+Bwx/NeeS1d0uvu76T+bq9P92VC/PpWnrdCzr8NuO61Ptcudu26epknhZGzQWEuXkDlT8FhHlaGDUXEObmDVT+FBDmaWHUXECYmzdQ+VNAmKeFUXMBYW7eQOVPAWGeFkbNBYS5eQOVPwWEeVoYNRcQ5uYNVP4UEOZpYdRcQJibN1D5U0CYp4VRc4H72+dhv3+7N78M5RO43d5T/Ofv4wGDQHeB/300PDm6DxByAAAAAElFTkSuQmCC"},UMiQ:function(t,e){},jNLg:function(t,e,a){"use strict";var i=a("5i7M"),s=a("Q0Ca"),n={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:800}},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){this.chart&&this.chart.destroy(),this.chart=new i.a({container:this.id,width:this.width,autoFit:!0,height:280,padding:[50,80,60,60]}),this.chart.data(this.charData);var t=this.charData.length>7?15:25;this.chart.scale({avgVisitTime:{min:0,nice:!0,alias:"人均访问时长"},loginClerkCnt:{nice:!0,alias:"总登录人数"},bizDates:{}}),this.chart.annotation().text({top:!0,position:["-4%","-10%"],content:"登录人数",offsetX:0,offsetY:0}),this.chart.annotation().text({top:!0,position:["100%","-10%"],content:"访问时长",offsetX:0,offsetY:0}),this.chart.axis("avgVisitTime",{grid:null,title:null,label:{formatter:function(t){return s.a.formatTime(t)}}}),this.chart.axis("loginClerkCnt",{title:null,label:{formatter:function(t){return~String(t).indexOf(".")?"":t}}}),this.chart.tooltip({showCrosshairs:!0,shared:!0,itemTpl:'<li style="padding-bottom: 10px;><span style="background-color:{color};width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:8px;"></span>{name}: {value}</li>'}),this.chart.interval().position("bizDates*loginClerkCnt").color("#597EF7").size(t),this.chart.line().position("bizDates*avgVisitTime").color("#5ad8a6").tooltip("bizDates*avgVisitTime",function(t,e){return{name:"人均访问时长",value:s.a.formatTime(e)}}),this.chart.legend({position:"top",itemGap:20,custom:!0,items:[{value:"loginClerkCnt",name:"总登录人数",marker:{symbol:"square",style:{fill:"#597ef7",r:4}}},{value:"avgVisitTime",name:"人均访问时长",marker:{symbol:"hyphen",style:{stroke:"#5ad8a6",r:5,lineWidth:3}}}]}),this.chart.render()}}},o={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var r=a("VU/8")(n,o,!1,function(t){a("UMiQ")},"data-v-4325b8e5",null);e.a=r.exports},kX6v:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("ApSX"),s=a("jNLg"),n=a("rbYK"),o=a("P9l9"),r=a("Ch4/"),l=a("Q0Ca"),c={name:"activeDetail",data:function(){return{selectTendDay:"",activeName:"first",selectStartDay:"",endDay:"",selectEndDay:"",pickerOptions:{disabledDate:function(t){var e=Date.now()-6912e5;return t.getTime()>=Date.now()-864e5||t.getTime()<e}},groupIds:[],charData:[],currentPage:1,pageSize:20,total:0,tableData:[],multipleSelection:[],sortColumn:"",sortType:"",addShow:!1,loadingBtn:!1,selectRadio:0,tabActive:"1",storeId:""}},computed:{},methods:{changeTableDate:function(){this.getTableList()},changeDate:function(){this.getTendData()},changeTab:function(t){this.tabActive=t,this.getTendData()},checkGroupIds:function(t){this.groupIds=t,this.storeId="",this.getTableList()},handleClick:function(t,e){this.currentPage=1,this.pageSize=20,this.total=0,this.selectRadio=0,this.tableData=[],this.getTableList()},sortChangeLogin:function(t,e,a){this.sortColumn=t.prop,this.sortType="ascending"==t.order?"asc":"desc",this.getTableList()},sortChange:function(t,e,a){this.sortColumn=t.prop,this.sortType="ascending"==t.order?"asc":"desc",this.getTableList()},handleCommand:function(t){this.selectRadio=t},handleSelectionChange:function(t){this.multipleSelection=t},exportExcel:function(){this.loadingBtn=!0,this.postExcelData()},postExcelData:function(){var t=this,e={enterpriseId:t.$route.query.brandId,startDate:t.selectEndDay,endDate:t.selectEndDay,groupIdList:t.groupIds.map(function(t){return t.storeGroupId}).join(","),storeIdList:t.storeId,loginStatus:"first"==t.activeName?1:"0",selectType:t.selectRadio};Object(o.c)("/haoban-manage3-web/web/export-login-detail-list",e).then(function(e){if(t.loadingBtn=!1,!e.data)return r.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),i=("first"==t.activeName?"登录明细":"未登录明细")+"报表.csv",s=document.createElement("a");s.download=i,s.style.display="none",s.href=URL.createObjectURL(a),document.body.appendChild(s),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTendData:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,datesType:e.tabActive,startDate:1==e.tabActive?e.selectStartDay:e.selectTendDay,endDate:1==e.tabActive?e.endDay:e.selectTendDay};Object(o.b)("/haoban-manage3-web/web/total-login-data",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.result&&a.result.result.forEach(function(t){t.bizDates=1==e.tabActive?t.bizDates.split("-")[1]+"-"+t.bizDates.split("-")[2]:t.bizDates,t.avgLoginTimes=parseInt(t.avgLoginTimes),t.avgVisitTime=parseInt(t.avgVisitTime)}),e.charData=a.result.result||[],!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,startDate:e.selectEndDay,endDate:e.selectEndDay,groupIdList:e.groupIds.map(function(t){return t.storeGroupId}).join(","),storeIdList:e.storeId,loginStatus:"first"==e.activeName?1:"0",sortColumn:e.sortColumn,sortType:e.sortType,pageSize:e.pageSize,currentPage:e.currentPage};Object(o.g)("/haoban-manage3-web/web/login-detail-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result.list||[],e.total=a.result.result.total||0,!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){var t=this;t.selectStartDay=l.a.timeStampToYmd((new Date).getTime()-6048e5),t.endDay=l.a.timeStampToYmd((new Date).getTime()-864e5),t.selectEndDay=t.$route.query.selectTableDay?t.$route.query.selectTableDay:l.a.timeStampToYmd((new Date).getTime()-864e5),t.selectTendDay=l.a.timeStampToYmd((new Date).getTime()-864e5),t.storeId=t.$route.query.storeId?t.$route.query.storeId:"",t.$nextTick(function(){t.getTableList(),t.getTendData()})},components:{gicSelectGroupMult:i.a,dayLoginChart:s.a,timeLoginChart:n.a}},d={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"my-customer-wrap common-set-wrap"},[i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[i("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[i("div",{staticClass:"apps-content-right"},[i("div",{staticClass:"flex flex-space-between"},[i("div",{staticClass:"font-16 color-303133"},[i("div",{staticClass:"flex"},[i("div",{class:["font-14 font-w-600 cursor-pointer",1==t.tabActive?"color-303133":"color-909399"],on:{click:function(e){return t.changeTab("1")}}},[t._v("日访问趋势")]),t._v(" "),i("div",{class:["font-14 font-w-600 day-tend cursor-pointer",2==t.tabActive?"color-303133":"color-909399"],on:{click:function(e){return t.changeTab("2")}}},[t._v("日时段访问趋势")])])]),t._v(" "),t._m(0)]),t._v(" "),2==t.tabActive?i("div",{staticClass:"date-div m-t-20"},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:t.changeDate},model:{value:t.selectTendDay,callback:function(e){t.selectTendDay=e},expression:"selectTendDay"}})],1):t._e(),t._v(" "),i("div",{staticClass:"chart-body m-t-20"},[i("div",{staticClass:"flex flex-space-between"},[t.charData.length?i("day-login-chart",{staticClass:"flex-1",attrs:{charData:t.charData,id:"day-login-chart"}}):t._e(),t._v(" "),t.charData.length?t._e():i("div",{staticClass:"no-data-char"},[i("img",{attrs:{src:a("QJEo"),alt:""}}),t._v(" "),i("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])]),t._v(" "),t.charData.length?i("time-login-chart",{staticClass:"flex-1",attrs:{charData:t.charData,id:"time-login-chart"}}):t._e(),t._v(" "),t.charData.length?t._e():i("div",{staticClass:"no-data-char"},[i("img",{attrs:{src:a("QJEo"),alt:""}}),t._v(" "),i("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])])],1)]),t._v(" "),i("div",{staticClass:"m-t-20"},[i("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"登录人员",name:"first"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"未登录人员",name:"second"}})],1)],1),t._v(" "),i("div",{staticClass:"table-search"},[i("div",{staticClass:"flex flex-space-between"},[i("div",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:t.changeTableDate},model:{value:t.selectEndDay,callback:function(e){t.selectEndDay=e},expression:"selectEndDay"}}),i("gic-select-group-mult",{staticClass:"m-l-10",attrs:{selectData:t.groupIds},on:{checkGroupIds:t.checkGroupIds}}),i("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("筛选条件下,"+t._s("second"==t.activeName?"未":"")+"登录人员有 "+t._s(t.total)+" 人,名单如下:")])],1),t._v(" "),t.$getButtonLimit(t.$buttonCode.exportLoginUser)?i("el-button",{attrs:{"limit-code":t.$buttonCode.exportLoginUser,type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")]):t._e()],1)]),t._v(" "),i("div",{staticClass:"m-t-20"},["first"==t.activeName?i("div",[i("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"sort-change":t.sortChangeLogin,"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{prop:"",label:"员工信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"ul-li-cell"},[i("div",{staticClass:"cell-info"},[i("div",{staticClass:"cell-info-name font-14 color-303133 flex flex-column"},[i("span",{staticClass:"gic-name"},[i("span",[t._v(t._s(e.row.clerkName||"--"))]),1==e.row.clerkType?i("el-tag",{staticClass:"m-l-10",attrs:{size:"small",type:"warning"}},[t._v("店长")]):t._e()],1),i("span",{staticClass:"gic-version"},[t._v(t._s(e.row.clerkCode||"--"))])])])])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"",label:"归属门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName||"--"))]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"lastLoginTime",label:"最后登录时间",sortable:"custom","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.lastLoginTime))+" "+t._s(e.row.lastLoginTime?"":"--"))]),t._v(" "),i("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.lastLoginTime))+" "+t._s(e.row.lastLoginTime?"":"--"))])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"loginTimes",label:"登录次数",sortable:"custom","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.loginTimes||"0")+"\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"avgVisitTime",label:"平均访问时长",sortable:"custom","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("formatTime")(e.row.avgVisitTime))+" ")]}}])})],1)],1):i("div",[i("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"sort-change":t.sortChange,"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{prop:"",label:"员工信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"ul-li-cell"},[i("div",{staticClass:"cell-info"},[i("div",{staticClass:"cell-info-name font-14 color-303133 flex flex-column"},[i("span",{staticClass:"gic-name"},[i("span",[t._v(t._s(e.row.clerkName||"--"))]),1==e.row.clerkType?i("el-tag",{staticClass:"m-l-10",attrs:{size:"small",type:"warning"}},[t._v("店长")]):t._e()],1),i("span",{staticClass:"gic-version"},[t._v(t._s(e.row.clerkCode||"--"))])])])])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"",label:"归属门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName||"--"))]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"lastLoginTime",label:"上次登录时间",sortable:"custom","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.lastLoginTime))+t._s(e.row.lastLoginTime?"":"--"))]),t._v(" "),i("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.lastLoginTime))+t._s(e.row.lastLoginTime?"":"--"))])]}}])})],1)],1),t._v(" "),0!=t.tableData.length?i("div",{staticClass:"block common-wrap__page text-right m-t-24"},[i("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()])])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert-tip el-alert--info flex flex-align-start w-426",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("数据更新截至于昨日。今日数据需要隔天上午8点后进行查看。")])])])}]};var h=a("VU/8")(c,d,!1,function(t){a("C86s")},"data-v-f69aff60",null);e.default=h.exports},rbYK:function(t,e,a){"use strict";var i=a("5i7M"),s=a("Q0Ca"),n={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:800}},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){this.chart&&this.chart.destroy(),this.chart=new i.a({container:this.id,width:this.width,autoFit:!0,height:280,padding:[50,80,60,60]}),this.chart.data(this.charData);var t=this.charData.length>7?15:25;this.chart.scale({avgVisitTime:{min:0,nice:!0,alias:"人均访问时长"},avgLoginTimes:{nice:!0,alias:"平均每人登录次数"},bizDates:{}}),this.chart.annotation().text({top:!0,position:["-4%","-10%"],content:"登录次数",offsetX:0,offsetY:0}),this.chart.annotation().text({top:!0,position:["100%","-10%"],content:"访问时长",offsetX:0,offsetY:0}),this.chart.axis("avgVisitTime",{grid:null,title:null,label:{formatter:function(t){return s.a.formatTime(t)}}}),this.chart.axis("avgLoginTimes",{title:null,label:{formatter:function(t){return~String(t).indexOf(".")?"":t}}}),this.chart.tooltip({showCrosshairs:!0,shared:!0,itemTpl:'<li style="padding-bottom: 10px;><span style="background-color:{color};width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:8px;"></span>{name}: {value}</li>'}),this.chart.interval().position("bizDates*avgLoginTimes").color("#597EF7").size(t),this.chart.line().position("bizDates*avgVisitTime").color("#5ad8a6").tooltip("bizDates*avgVisitTime",function(t,e){return{name:"人均访问时长",value:s.a.formatTime(e)}}),this.chart.legend({position:"top",itemGap:20,custom:!0,items:[{value:"avgLoginTimes",name:"平均每人登录次数",marker:{symbol:"square",style:{fill:"#597ef7",r:4}}},{value:"avgVisitTime",name:"人均访问时长",marker:{symbol:"hyphen",style:{stroke:"#5ad8a6",r:5,lineWidth:3}}}]}),this.chart.render()}}},o={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var r=a("VU/8")(n,o,!1,function(t){a("rdGf")},"data-v-61dad336",null);e.a=r.exports},rdGf:function(t,e){}});
\ No newline at end of file
webpackJsonp([109],{"4N1S":function(t,e){},FIFf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("bzW+"),n=a("Qie6"),c=a("Z8ln"),s=a("Ch4/"),o=a("P9l9"),r={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"商品中心",path:"/goodsShowSet"},{name:"商品展示设置",path:""}],tabListData:[{tabId:"1",tabName:"商品展示设置",icon:"iconshangpinshezhi"}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,e={enterpriseId:t.activeBrand};Object(o.b)("/haoban-manage3-web/enterprise-is-over",e).then(function(e){var a=e.data;1!=a.errorCode?s.a.errorMsg(a):t.expiredFlag=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("goodsShowSet")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:i.a,commonDetailLeft:n.a,expiredDialog:c.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[t.activeBrand?a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}}):t._e()],1)],1)])])]),t._v(" "),t.expiredFlag?a("expired-dialog"):t._e()],1)},staticRenderFns:[]};var h=a("VU/8")(r,d,!1,function(t){a("4N1S")},"data-v-21978d24",null);e.default=h.exports}}); webpackJsonp([110],{"4N1S":function(t,e){},FIFf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("bzW+"),n=a("Qie6"),c=a("Z8ln"),s=a("Ch4/"),o=a("P9l9"),r={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"商品中心",path:"/goodsShowSet"},{name:"商品展示设置",path:""}],tabListData:[{tabId:"1",tabName:"商品展示设置",icon:"iconshangpinshezhi"}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,e={enterpriseId:t.activeBrand};Object(o.b)("/haoban-manage3-web/enterprise-is-over",e).then(function(e){var a=e.data;1!=a.errorCode?s.a.errorMsg(a):t.expiredFlag=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){this.activeBrand=t,this.activeGroup=e,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("goodsShowSet")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:i.a,commonDetailLeft:n.a,expiredDialog:c.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[a("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[t.activeBrand?a("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}}):t._e()],1)],1)])])]),t._v(" "),t.expiredFlag?a("expired-dialog"):t._e()],1)},staticRenderFns:[]};var h=a("VU/8")(r,d,!1,function(t){a("4N1S")},"data-v-21978d24",null);e.default=h.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([110],{"+lem":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={name:"reviewed",data:function(){return{activeTab:"1",tabListData:[{tabId:"1",tabName:"待审核",icon:"icondaishenhe_orange"},{tabId:"2",tabName:"已审核",icon:"iconrenwu1"},{tabId:"3",tabName:"审核设置",icon:"iconshenhe"}]}},computed:{},methods:{handleClick:function(e,t){switch(e.name){case"1":this.$router.push("unreview");break;case"2":this.$router.push("reviewed");break;case"3":this.$router.push("reviewSet")}console.log(e,t)}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.$emit("showTab",5),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},e._l(e.tabListData,function(e){return a("el-tab-pane",{key:e.tabId,attrs:{label:e.tabName,name:e.tabId}},[a("div",{staticClass:"border-box"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view")],1)],1)])}),1)],1)])},staticRenderFns:[]};var i=a("VU/8")(n,o,!1,function(e){a("ztov")},"data-v-21288b0d",null);t.default=i.exports},ztov:function(e,t){}}); webpackJsonp([111],{"+lem":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={name:"reviewed",data:function(){return{activeTab:"1",tabListData:[{tabId:"1",tabName:"待审核",icon:"icondaishenhe_orange"},{tabId:"2",tabName:"已审核",icon:"iconrenwu1"},{tabId:"3",tabName:"审核设置",icon:"iconshenhe"}]}},computed:{},methods:{handleClick:function(e,t){switch(e.name){case"1":this.$router.push("unreview");break;case"2":this.$router.push("reviewed");break;case"3":this.$router.push("reviewSet")}console.log(e,t)}},watch:{$route:{handler:function(e,t){},deep:!0}},mounted:function(){this.$emit("showTab",5),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},e._l(e.tabListData,function(e){return a("el-tab-pane",{key:e.tabId,attrs:{label:e.tabName,name:e.tabId}},[a("div",{staticClass:"border-box"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view")],1)],1)])}),1)],1)])},staticRenderFns:[]};var i=a("VU/8")(n,o,!1,function(e){a("ztov")},"data-v-21288b0d",null);t.default=i.exports},ztov:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([111],{QZxC:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Dd8w"),i=a.n(s),l=a("P9l9"),r=a("Ch4/"),o={name:"authMerchant",data:function(){return{pageParams:{pageNum:1,pageSize:20,enterpriseId:this.$route.query.enterprise||""},total:0,tableData:[],addShow:!1}},computed:{},methods:{toInput:function(t){this.pageParams.pageNum=1,this.getTableList()},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){this.pageParams.pageNum=1,this.pageParams.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.pageParams.pageNum=t,this.getTableList()},getTableList:function(t){var e=this,a=this,s=i()({},this.pageParams);Object(l.b)("/haoban-manage3-web/bind-store-list",s).then(function(t){var s=t.data;if(1==s.errorCode&&s.result)return a.tableData=s.result.result||[],e.total=s.result.totalCount||0,!1;a.tableData=[],r.a.errorMsg(s)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.getTableList()}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[a("div",{staticClass:"apps-content-right"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition m-b-19"},[a("el-input",{staticClass:"w-264 ",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},nativeOn:{keyup:function(e){return t.toInput(e)}},model:{value:t.pageParams.search,callback:function(e){t.$set(t.pageParams,"search",e)},expression:"pageParams.search"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"门店 ","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("p",{staticClass:"gic-name color-606266"},[t._v(t._s(e.row.storeName||""))]),t._v(" "),a("p",{staticClass:"gic-version color-606266"},[t._v(t._s(e.row.storeCode||""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"门店分组","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeGroupName||""))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"绑定时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18 color-606266"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"line-18 color-606266"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1),t._v(" "),t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.pageParams.pageNum,"page-sizes":[10,20,30],"page-size":t.pageParams.pageSize,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"overstore-tip m-b-19"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-center w-604",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-warning font-13 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("p",{staticClass:"el-alert__title color-303133 font-13"},[this._v("授权范围:展示授权商户资源组全部授权范围,包含关联企业的门店和未关联企业的门店")])])])])}]};var c=a("VU/8")(o,n,!1,function(t){a("edv2")},"data-v-1fc002e2",null);e.default=c.exports},edv2:function(t,e){}}); webpackJsonp([112],{QZxC:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Dd8w"),i=a.n(s),l=a("P9l9"),r=a("Ch4/"),o={name:"authMerchant",data:function(){return{pageParams:{pageNum:1,pageSize:20,enterpriseId:this.$route.query.enterprise||""},total:0,tableData:[],addShow:!1}},computed:{},methods:{toInput:function(t){this.pageParams.pageNum=1,this.getTableList()},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){this.pageParams.pageNum=1,this.pageParams.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.pageParams.pageNum=t,this.getTableList()},getTableList:function(t){var e=this,a=this,s=i()({},this.pageParams);Object(l.b)("/haoban-manage3-web/bind-store-list",s).then(function(t){var s=t.data;if(1==s.errorCode&&s.result)return a.tableData=s.result.result||[],e.total=s.result.totalCount||0,!1;a.tableData=[],r.a.errorMsg(s)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.getTableList()}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[a("div",{staticClass:"apps-content-right"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition m-b-19"},[a("el-input",{staticClass:"w-264 ",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},nativeOn:{keyup:function(e){return t.toInput(e)}},model:{value:t.pageParams.search,callback:function(e){t.$set(t.pageParams,"search",e)},expression:"pageParams.search"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"门店 ","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("p",{staticClass:"gic-name color-606266"},[t._v(t._s(e.row.storeName||""))]),t._v(" "),a("p",{staticClass:"gic-version color-606266"},[t._v(t._s(e.row.storeCode||""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"门店分组","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeGroupName||""))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"绑定时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18 color-606266"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"line-18 color-606266"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])})],1),t._v(" "),t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.pageParams.pageNum,"page-sizes":[10,20,30],"page-size":t.pageParams.pageSize,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"overstore-tip m-b-19"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-center w-604",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-warning font-13 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("p",{staticClass:"el-alert__title color-303133 font-13"},[this._v("授权范围:展示授权商户资源组全部授权范围,包含关联企业的门店和未关联企业的门店")])])])])}]};var c=a("VU/8")(o,n,!1,function(t){a("edv2")},"data-v-1fc002e2",null);e.default=c.exports},edv2:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([112],{"K+rH":function(e,t){},"t/sc":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("feRM"),r=a("RSOD"),o=a("PeHS"),n={components:{previewPage:r.a,singleUpload:i.a},data:function(){return{form:{pageName:"",pageTitle:"",merchantName:"",merchantPhoneNumber:"",merchantLogo:"",pageBackgroundImg:"",guideComment:"长按保存图片并识别二维码添加您的专属导购"},wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",logoImageList:[],isEdit:"edit"==this.$route.meta.type,isAdd:"add"==this.$route.meta.type,loading:!1,btnLoading:!1,rules:{merchantPhoneNumber:[{validator:function(e,t,a){t?((/^\s*$/.test(t)||/^\+*$/.test(t)||/^\-*$/.test(t))&&a("请输入正确的手机号"),/^[0-9 \+\-]{0,20}$/.test(t)||a("仅支持输入数字,空格,-,+"),a()):a()}}],pageName:[{required:!0,message:"请输入模板名称"}]}}},mounted:function(){this.isEdit?this.getDetail():this.getEchoEnterpriseInfo()},methods:{getDetail:function(){var e=this;console.log(this.$route),this.loading=!0,Object(o.h)({pageId:this.$route.params.id}).then(function(t){if(t.data.result){var a=t.data.result;e.form=a}}).finally(function(t){e.loading=!1})},getEchoEnterpriseInfo:function(){var e=this;Object(o.y)({}).then(function(t){var a=t.data;if(a.result&&a.result.length){var i=a.result.filter(function(t){return t.wxEnterpriseId==e.wxEnterpriseId})[0],r=i.customerPhone,o=i.enterpriseLogo,n=i.enterpriseName;e.form.merchantLogo=o,e.form.merchantPhoneNumber=r,e.form.merchantName=n}})},guidePageEdit:function(){var e=this;this.btnLoading=!0,Object(o.i)(this.form).then(function(t){e.$router.push("/ladingPageList"),e.$message.success("保存成功")}).finally(function(t){e.btnLoading=!1})},guidePageSave:function(){var e=this;this.btnLoading=!0,Object(o.l)(this.form).then(function(t){e.$router.push("/ladingPageList"),e.$message.success("保存成功")}).finally(function(t){e.btnLoading=!1})},save:function(){var e=this;this.$refs.form.validate(function(t){t&&(e.isEdit?e.guidePageEdit():e.guidePageSave())})}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"daily-set-content"},[a("el-form",{ref:"form",staticClass:"form",attrs:{"label-width":"100px",model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"模板名称",prop:"pageName"}},[a("el-input",{staticClass:"w-340",attrs:{"show-word-limit":"",placeholder:"请输入模板名称",type:"text",maxlength:"20"},model:{value:e.form.pageName,callback:function(t){e.$set(e.form,"pageName",t)},expression:"form.pageName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"页面标题",prop:"pageTitle"}},[a("el-input",{staticClass:"w-340",attrs:{"show-word-limit":"",placeholder:"请输入页面标题",type:"text",maxlength:"10"},model:{value:e.form.pageTitle,callback:function(t){e.$set(e.form,"pageTitle",t)},expression:"form.pageTitle"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商户名称",prop:"merchantName"}},[a("el-input",{staticClass:"w-340",attrs:{"show-word-limit":"",placeholder:"请输入商户名称",type:"text",maxlength:"20"},model:{value:e.form.merchantName,callback:function(t){e.$set(e.form,"merchantName",t)},expression:"form.merchantName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商户电话",prop:"merchantPhoneNumber"}},[a("el-input",{staticClass:"w-340",attrs:{"show-word-limit":"",placeholder:"请输入商户电话",type:"text",maxlength:"20"},model:{value:e.form.merchantPhoneNumber,callback:function(t){e.$set(e.form,"merchantPhoneNumber",t)},expression:"form.merchantPhoneNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商户LOGO"}},[a("single-upload",{staticClass:"app-set",attrs:{uploadType:"1",showDel:!0,showTips:!1,imgSrc:e.form.merchantLogo,field:"",uploadLimit:"200/KB",imgType:["image/jpeg","image/jpg","image/png","image/gif"]},on:{"update:imgSrc":function(t){return e.$set(e.form,"merchantLogo",t)},"update:img-src":function(t){return e.$set(e.form,"merchantLogo",t)}}}),e._v(" "),a("p",{staticStyle:{"margin-top":"6px","font-size":"12px",color:"#909399","line-height":"17px"}},[e._v("图片建议尺寸 240*240px,格式 jpg/jpep/png/gif,大小 200KB 以内。")])],1),e._v(" "),a("el-form-item",{attrs:{label:"页面背景"}},[a("single-upload",{staticClass:"app-set",attrs:{uploadType:"1",showDel:!0,showTips:!1,imgSrc:e.form.pageBackgroundImg,field:"",imgType:["image/jpeg","image/jpg","image/png","image/gif"]},on:{"update:imgSrc":function(t){return e.$set(e.form,"pageBackgroundImg",t)},"update:img-src":function(t){return e.$set(e.form,"pageBackgroundImg",t)}}}),e._v(" "),a("p",{staticStyle:{"margin-top":"6px","font-size":"12px",color:"#909399","line-height":"17px"}},[e._v("图片建议尺寸 750*1334px,格式 jpg/png/gif,大小 2M 以内。")])],1),e._v(" "),a("el-form-item",{attrs:{label:"引导语",prop:"guideComment"}},[a("el-input",{staticClass:"w-340",attrs:{"show-word-limit":"",placeholder:"请输入引导语",type:"textarea",maxlength:"50",autosize:{minRows:4,maxRows:6}},model:{value:e.form.guideComment,callback:function(t){e.$set(e.form,"guideComment",t)},expression:"form.guideComment"}})],1)],1),e._v(" "),a("div",{staticClass:"rightContent"},[a("p",{staticClass:"previewTitle"},[e._v("落地页预览")]),e._v(" "),a("previewPage",{staticClass:"preview",attrs:{data:e.form}}),e._v(" "),a("p",{staticClass:"previewBottom"},[e._v("此二维码只是样式预览效果,请勿直接使用")])],1)],1),e._v(" "),a("div",{staticClass:"footBtn"},[a("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("保存")])],1)])},staticRenderFns:[]};var m=a("VU/8")(n,s,!1,function(e){a("K+rH")},"data-v-1d638a1c",null);t.default=m.exports}}); webpackJsonp([113],{"K+rH":function(e,t){},"t/sc":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("feRM"),r=a("RSOD"),o=a("PeHS"),n={components:{previewPage:r.a,singleUpload:i.a},data:function(){return{form:{pageName:"",pageTitle:"",merchantName:"",merchantPhoneNumber:"",merchantLogo:"",pageBackgroundImg:"",guideComment:"长按保存图片并识别二维码添加您的专属导购"},wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",logoImageList:[],isEdit:"edit"==this.$route.meta.type,isAdd:"add"==this.$route.meta.type,loading:!1,btnLoading:!1,rules:{merchantPhoneNumber:[{validator:function(e,t,a){t?((/^\s*$/.test(t)||/^\+*$/.test(t)||/^\-*$/.test(t))&&a("请输入正确的手机号"),/^[0-9 \+\-]{0,20}$/.test(t)||a("仅支持输入数字,空格,-,+"),a()):a()}}],pageName:[{required:!0,message:"请输入模板名称"}]}}},mounted:function(){this.isEdit?this.getDetail():this.getEchoEnterpriseInfo()},methods:{getDetail:function(){var e=this;console.log(this.$route),this.loading=!0,Object(o.h)({pageId:this.$route.params.id}).then(function(t){if(t.data.result){var a=t.data.result;e.form=a}}).finally(function(t){e.loading=!1})},getEchoEnterpriseInfo:function(){var e=this;Object(o.y)({}).then(function(t){var a=t.data;if(a.result&&a.result.length){var i=a.result.filter(function(t){return t.wxEnterpriseId==e.wxEnterpriseId})[0],r=i.customerPhone,o=i.enterpriseLogo,n=i.enterpriseName;e.form.merchantLogo=o,e.form.merchantPhoneNumber=r,e.form.merchantName=n}})},guidePageEdit:function(){var e=this;this.btnLoading=!0,Object(o.i)(this.form).then(function(t){e.$router.push("/ladingPageList"),e.$message.success("保存成功")}).finally(function(t){e.btnLoading=!1})},guidePageSave:function(){var e=this;this.btnLoading=!0,Object(o.l)(this.form).then(function(t){e.$router.push("/ladingPageList"),e.$message.success("保存成功")}).finally(function(t){e.btnLoading=!1})},save:function(){var e=this;this.$refs.form.validate(function(t){t&&(e.isEdit?e.guidePageEdit():e.guidePageSave())})}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"daily-set-content"},[a("el-form",{ref:"form",staticClass:"form",attrs:{"label-width":"100px",model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"模板名称",prop:"pageName"}},[a("el-input",{staticClass:"w-340",attrs:{"show-word-limit":"",placeholder:"请输入模板名称",type:"text",maxlength:"20"},model:{value:e.form.pageName,callback:function(t){e.$set(e.form,"pageName",t)},expression:"form.pageName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"页面标题",prop:"pageTitle"}},[a("el-input",{staticClass:"w-340",attrs:{"show-word-limit":"",placeholder:"请输入页面标题",type:"text",maxlength:"10"},model:{value:e.form.pageTitle,callback:function(t){e.$set(e.form,"pageTitle",t)},expression:"form.pageTitle"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商户名称",prop:"merchantName"}},[a("el-input",{staticClass:"w-340",attrs:{"show-word-limit":"",placeholder:"请输入商户名称",type:"text",maxlength:"20"},model:{value:e.form.merchantName,callback:function(t){e.$set(e.form,"merchantName",t)},expression:"form.merchantName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商户电话",prop:"merchantPhoneNumber"}},[a("el-input",{staticClass:"w-340",attrs:{"show-word-limit":"",placeholder:"请输入商户电话",type:"text",maxlength:"20"},model:{value:e.form.merchantPhoneNumber,callback:function(t){e.$set(e.form,"merchantPhoneNumber",t)},expression:"form.merchantPhoneNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"商户LOGO"}},[a("single-upload",{staticClass:"app-set",attrs:{uploadType:"1",showDel:!0,showTips:!1,imgSrc:e.form.merchantLogo,field:"",uploadLimit:"200/KB",imgType:["image/jpeg","image/jpg","image/png","image/gif"]},on:{"update:imgSrc":function(t){return e.$set(e.form,"merchantLogo",t)},"update:img-src":function(t){return e.$set(e.form,"merchantLogo",t)}}}),e._v(" "),a("p",{staticStyle:{"margin-top":"6px","font-size":"12px",color:"#909399","line-height":"17px"}},[e._v("图片建议尺寸 240*240px,格式 jpg/jpep/png/gif,大小 200KB 以内。")])],1),e._v(" "),a("el-form-item",{attrs:{label:"页面背景"}},[a("single-upload",{staticClass:"app-set",attrs:{uploadType:"1",showDel:!0,showTips:!1,imgSrc:e.form.pageBackgroundImg,field:"",imgType:["image/jpeg","image/jpg","image/png","image/gif"]},on:{"update:imgSrc":function(t){return e.$set(e.form,"pageBackgroundImg",t)},"update:img-src":function(t){return e.$set(e.form,"pageBackgroundImg",t)}}}),e._v(" "),a("p",{staticStyle:{"margin-top":"6px","font-size":"12px",color:"#909399","line-height":"17px"}},[e._v("图片建议尺寸 750*1334px,格式 jpg/png/gif,大小 2M 以内。")])],1),e._v(" "),a("el-form-item",{attrs:{label:"引导语",prop:"guideComment"}},[a("el-input",{staticClass:"w-340",attrs:{"show-word-limit":"",placeholder:"请输入引导语",type:"textarea",maxlength:"50",autosize:{minRows:4,maxRows:6}},model:{value:e.form.guideComment,callback:function(t){e.$set(e.form,"guideComment",t)},expression:"form.guideComment"}})],1)],1),e._v(" "),a("div",{staticClass:"rightContent"},[a("p",{staticClass:"previewTitle"},[e._v("落地页预览")]),e._v(" "),a("previewPage",{staticClass:"preview",attrs:{data:e.form}}),e._v(" "),a("p",{staticClass:"previewBottom"},[e._v("此二维码只是样式预览效果,请勿直接使用")])],1)],1),e._v(" "),a("div",{staticClass:"footBtn"},[a("el-button",{attrs:{type:"primary",loading:e.btnLoading},on:{click:e.save}},[e._v("保存")])],1)])},staticRenderFns:[]};var m=a("VU/8")(n,s,!1,function(e){a("K+rH")},"data-v-1d638a1c",null);t.default=m.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([113],{"8fbE":function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=o("3E4D"),n=o("Ch4/"),i=o("P9l9"),r={name:"app-detail",props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",loading:!1,templateList:[],canAddTemp:!1}},methods:{getTemplateCount:function(){var t=this;Object(i.b)("/haoban-app-customer-web/get-template-count",{}).then(function(e){var o=e.data||{},a=o.errorCode,i=o.result;1==a?t.canAddTemp=i>=20:n.a.errorMsg(e.data)})},toDel:function(t,e){var o=this;o.$confirm("是否要删除选中的模板?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){o.delTempList(e.templateId)}).catch(function(){})},delTempList:function(t){var e=this,o={templateId:t};Object(i.g)("/haoban-app-customer-web/del-group-template",o).then(function(t){var o=t.data;if(1==o.errorCode)return a.a.showmsg("删除成功","success"),void e.getTableList();n.a.errorMsg(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/editGroupTemplate?templateId="+e.templateId)},toStore:function(t,e){this.$router.push("/storeRangeSet?templateId="+e.templateId+"&brandId="+this.brandId)},addTemplate:function(){this.$router.push("/addGroupTemplate")},getTableList:function(){var t=this,e={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(i.g)("/haoban-app-customer-web/get-template-list",e).then(function(e){var o=e.data;1!=o.errorCode?n.a.errorMsg(o):t.templateList=o.result||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.getTableList(),this.getTemplateCount()},activated:function(){this.getTableList(),this.getTemplateCount()}},s={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:" border-box p-lbr-20"},[o("div",{staticClass:"flex flex-space-between"},[o("div"),t._v(" "),o("div",[o("span",{staticClass:"font-12 color-909399"},[t._v("最多新建20个模板")]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addGroupTemp)?o("el-button",{staticClass:"m-l-20",attrs:{"limit-code":t.$buttonCode.addGroupTemp,disabled:t.$store.state.wxEnterpriseType||t.canAddTemp,type:"primary"},on:{click:t.addTemplate}},[t._v("新建模版")]):t._e()],1)]),t._v(" "),o("div",{staticClass:"m-t-20"},[o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"tempTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.templateList,"tooltip-effect":"dark"}},[o("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":"","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.templateName))]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"模板id","show-overflow-tooltip":"","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.templateId))]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"创建人",prop:"creatorName","show-overflow-tooltip":"","min-width":"90"}}),t._v(" "),o("el-table-column",{attrs:{label:"创建时间",prop:"createTime","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),o("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"编辑人","show-overflow-tooltip":"","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.editPerson))]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"",label:"最近编辑时间","show-overflow-tooltip":"","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.editTime)))]),t._v(" "),o("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.editTime)))])]}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.editGroupTemp)||t.$getButtonLimit(t.$buttonCode.setStoreArea)||t.$getButtonLimit(t.$buttonCode.delGroupTemp)?o("el-table-column",{attrs:{label:"操作","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.editGroupTemp)?o("el-button",{attrs:{"limit-code":t.$buttonCode.editGroupTemp,type:"text",disabled:t.$store.state.wxEnterpriseType},on:{click:function(o){return t.toEdit(e.$index,e.row)}}},[t._v("编辑")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.setStoreArea)?o("el-button",{attrs:{"limit-code":t.$buttonCode.setStoreArea,type:"text",disabled:t.$store.state.wxEnterpriseType},on:{click:function(o){return t.toStore(e.$index,e.row)}}},[t._v("门店范围设置")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.delGroupTemp)?o("el-button",{attrs:{"limit-code":t.$buttonCode.delGroupTemp,type:"text",disabled:t.$store.state.wxEnterpriseType},on:{click:function(o){return t.toDel(e.$index,e.row)}}},[t._v("删除")]):t._e()]}}])}):t._e()],1)],1)])},staticRenderFns:[]};var l=o("VU/8")(r,s,!1,function(t){o("m59b")},"data-v-1c8e199b",null);e.default=l.exports},m59b:function(t,e){}}); webpackJsonp([114],{"8fbE":function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=o("3E4D"),n=o("Ch4/"),i=o("P9l9"),r={name:"app-detail",props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",loading:!1,templateList:[],canAddTemp:!1}},methods:{getTemplateCount:function(){var t=this;Object(i.b)("/haoban-app-customer-web/get-template-count",{}).then(function(e){var o=e.data||{},a=o.errorCode,i=o.result;1==a?t.canAddTemp=i>=20:n.a.errorMsg(e.data)})},toDel:function(t,e){var o=this;o.$confirm("是否要删除选中的模板?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){o.delTempList(e.templateId)}).catch(function(){})},delTempList:function(t){var e=this,o={templateId:t};Object(i.g)("/haoban-app-customer-web/del-group-template",o).then(function(t){var o=t.data;if(1==o.errorCode)return a.a.showmsg("删除成功","success"),void e.getTableList();n.a.errorMsg(o)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/editGroupTemplate?templateId="+e.templateId)},toStore:function(t,e){this.$router.push("/storeRangeSet?templateId="+e.templateId+"&brandId="+this.brandId)},addTemplate:function(){this.$router.push("/addGroupTemplate")},getTableList:function(){var t=this,e={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(i.g)("/haoban-app-customer-web/get-template-list",e).then(function(e){var o=e.data;1!=o.errorCode?n.a.errorMsg(o):t.templateList=o.result||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.getTableList(),this.getTemplateCount()},activated:function(){this.getTableList(),this.getTemplateCount()}},s={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:" border-box p-lbr-20"},[o("div",{staticClass:"flex flex-space-between"},[o("div"),t._v(" "),o("div",[o("span",{staticClass:"font-12 color-909399"},[t._v("最多新建20个模板")]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addGroupTemp)?o("el-button",{staticClass:"m-l-20",attrs:{"limit-code":t.$buttonCode.addGroupTemp,disabled:t.$store.state.wxEnterpriseType||t.canAddTemp,type:"primary"},on:{click:t.addTemplate}},[t._v("新建模版")]):t._e()],1)]),t._v(" "),o("div",{staticClass:"m-t-20"},[o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"tempTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.templateList,"tooltip-effect":"dark"}},[o("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":"","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.templateName))]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"模板id","show-overflow-tooltip":"","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.templateId))]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"创建人",prop:"creatorName","show-overflow-tooltip":"","min-width":"90"}}),t._v(" "),o("el-table-column",{attrs:{label:"创建时间",prop:"createTime","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),o("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),o("el-table-column",{attrs:{label:"编辑人","show-overflow-tooltip":"","min-width":"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.editPerson))]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"",label:"最近编辑时间","show-overflow-tooltip":"","min-width":"80"},scopedSlots:t._u([{key:"default",fn:function(e){return[o("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.editTime)))]),t._v(" "),o("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.editTime)))])]}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.editGroupTemp)||t.$getButtonLimit(t.$buttonCode.setStoreArea)||t.$getButtonLimit(t.$buttonCode.delGroupTemp)?o("el-table-column",{attrs:{label:"操作","min-width":"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.editGroupTemp)?o("el-button",{attrs:{"limit-code":t.$buttonCode.editGroupTemp,type:"text",disabled:t.$store.state.wxEnterpriseType},on:{click:function(o){return t.toEdit(e.$index,e.row)}}},[t._v("编辑")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.setStoreArea)?o("el-button",{attrs:{"limit-code":t.$buttonCode.setStoreArea,type:"text",disabled:t.$store.state.wxEnterpriseType},on:{click:function(o){return t.toStore(e.$index,e.row)}}},[t._v("门店范围设置")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.delGroupTemp)?o("el-button",{attrs:{"limit-code":t.$buttonCode.delGroupTemp,type:"text",disabled:t.$store.state.wxEnterpriseType},on:{click:function(o){return t.toDel(e.$index,e.row)}}},[t._v("删除")]):t._e()]}}])}):t._e()],1)],1)])},staticRenderFns:[]};var l=o("VU/8")(r,s,!1,function(t){o("m59b")},"data-v-1c8e199b",null);e.default=l.exports},m59b:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([114],{"BW/r":function(t,a){},tqu3:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=e("Xxa5"),i=e.n(r),n=e("exGp"),s=e.n(n),c=e("5i7M"),o={data:function(){return{chart:null,maxNum:0,maxTimes:0}},props:{charData:{type:Array,default:function(){return[]}},id:String},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){var t=this;return s()(i.a.mark(function a(){var e;return i.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(t.chart&&t.chart.destroy(),t.charData.length){a.next=3;break}return a.abrupt("return");case 3:e=t.handleData(t.charData),t.chart=new c.a({container:t.id,autoFit:!0,forceFit:!0,height:359,width:1400,padding:[70,60,40,70]}),t.chart.source(e,{value:{type:"linear",tickInterval:50}}),t.chart.tooltip({showMarkers:!1,shared:!0}),t.chart.scale({date:{dataKey:"date",type:"cat"},num:{min:0,tickCount:t.maxNum>2?5:t.maxNum+1,tickMethod:"wilkinson-extended",nice:!0},times:{min:0,tickCount:t.maxTimes>2?5:t.maxTimes+1,tickMethod:"wilkinson-extended",nice:!0}}),t.chart.legend({position:"top-left"}),t.chart.axis("times",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return Math.floor(t)+"人次"}}}),t.chart.axis("num",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return Math.floor(t)+"人"}}}),t.chart.tooltip({showMarkers:!1,shared:!0,showCrosshairs:!0}),t.chart.line().position("date*num").color("type",["rgba(75,116,232,1)","rgba(20, 201, 201, 1)","rgba(214, 179, 140, 1)"]),t.chart.line().position("date*times").color("type",["rgba(214, 179, 140, 1)"]),t.chart.render();case 15:case"end":return a.stop()}},a,t)}))()},handleData:function(t){var a=[],e=0,r=0;return t.forEach(function(t){t.clickNum>e&&(e=t.clickNum),t.clickTimes>r&&(r=t.clickTimes),a.push({date:t.bizDate,type:"新增人数",num:t.addNum}),a.push({date:t.bizDate,type:"点击人数",num:t.clickNum}),a.push({date:t.bizDate,type:"点击人次",times:t.clickTimes})}),this.maxNum=e,this.maxTimes=r,console.log(e,r),a}}},h={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("div",{staticClass:"chart--nodata",attrs:{id:this.id}}),this._v(" "),this.charData.length?this._e():a("div",{staticClass:"chart--nodata"},[this._m(0)])])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"image-120",attrs:{src:e("es7N")}}),this._v(" "),a("p",{staticClass:"font-14 color-606266 no-data-text"},[this._v("暂无数据")])])}]};var u=e("VU/8")(o,h,!1,function(t){e("BW/r")},"data-v-193fe4c4",null);a.default=u.exports}}); webpackJsonp([115],{"BW/r":function(t,a){},tqu3:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var r=e("Xxa5"),i=e.n(r),n=e("exGp"),s=e.n(n),c=e("5i7M"),o={data:function(){return{chart:null,maxNum:0,maxTimes:0}},props:{charData:{type:Array,default:function(){return[]}},id:String},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){var t=this;return s()(i.a.mark(function a(){var e;return i.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(t.chart&&t.chart.destroy(),t.charData.length){a.next=3;break}return a.abrupt("return");case 3:e=t.handleData(t.charData),t.chart=new c.a({container:t.id,autoFit:!0,forceFit:!0,height:359,width:1400,padding:[70,60,40,70]}),t.chart.source(e,{value:{type:"linear",tickInterval:50}}),t.chart.tooltip({showMarkers:!1,shared:!0}),t.chart.scale({date:{dataKey:"date",type:"cat"},num:{min:0,tickCount:t.maxNum>2?5:t.maxNum+1,tickMethod:"wilkinson-extended",nice:!0},times:{min:0,tickCount:t.maxTimes>2?5:t.maxTimes+1,tickMethod:"wilkinson-extended",nice:!0}}),t.chart.legend({position:"top-left"}),t.chart.axis("times",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return Math.floor(t)+"人次"}}}),t.chart.axis("num",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return Math.floor(t)+"人"}}}),t.chart.tooltip({showMarkers:!1,shared:!0,showCrosshairs:!0}),t.chart.line().position("date*num").color("type",["rgba(75,116,232,1)","rgba(20, 201, 201, 1)","rgba(214, 179, 140, 1)"]),t.chart.line().position("date*times").color("type",["rgba(214, 179, 140, 1)"]),t.chart.render();case 15:case"end":return a.stop()}},a,t)}))()},handleData:function(t){var a=[],e=0,r=0;return t.forEach(function(t){t.clickNum>e&&(e=t.clickNum),t.clickTimes>r&&(r=t.clickTimes),a.push({date:t.bizDate,type:"新增人数",num:t.addNum}),a.push({date:t.bizDate,type:"点击人数",num:t.clickNum}),a.push({date:t.bizDate,type:"点击人次",times:t.clickTimes})}),this.maxNum=e,this.maxTimes=r,console.log(e,r),a}}},h={render:function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("div",{staticClass:"chart--nodata",attrs:{id:this.id}}),this._v(" "),this.charData.length?this._e():a("div",{staticClass:"chart--nodata"},[this._m(0)])])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"image-120",attrs:{src:e("es7N")}}),this._v(" "),a("p",{staticClass:"font-14 color-606266 no-data-text"},[this._v("暂无数据")])])}]};var u=e("VU/8")(o,h,!1,function(t){e("BW/r")},"data-v-193fe4c4",null);a.default=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([115],{RXoq:function(e,t){},t6Nl:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r("Dd8w"),a=r.n(i),o=r("Xxa5"),s=r.n(o),u=r("exGp"),n=r.n(u),p=r("PeHS"),c=r("P9l9"),l={name:"staffActCodeGroupList",data:function(){var e,t=this;return{searchTip:!1,groupLoading:!1,currentListItemUuid:-1,groupList:[],scrollLoad:!1,title:"新增分组",addOrEditGroupDialog:!1,groupListForm:{groupName:"",groupId:""},groupListFormRules:{groupName:[{required:!0,message:"请输入分组名称",trigger:"blur"},{validator:(e=n()(s.a.mark(function e(r,i,a){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(c.b)("/haoban-manage3-web/hm/group/check/name",{groupName:t.groupListForm.groupName}).then(function(e){if(t.checkNameLength=e.data.result.length,t.isEditGroup){var r=e.data.result.map(function(e){return e.groupName});t.checkNameLength>0&&t.editNamePre!=r&&a(new Error("该分组名称已存在,请重新输入")),a()}else t.checkNameLength>0&&a(new Error("该分组名称已存在,请重新输入")),a()});case 2:case"end":return e.stop()}},e,t)})),function(t,r,i){return e.apply(this,arguments)}),trigger:"blur"}]},isEditGroup:!1,allPageNum:1,pageP:{groupName:"",pageNum:1,pageSize:40},checkNameLength:-1,editNamePre:""}},created:function(){this.searchGroup()},activated:function(){this.searchGroup()},methods:{onSearch:function(){this.pageP.pageNum=1,this.searchGroup()},load:function(){this.pageP.pageNum<this.allPageNum&&(this.pageP.pageNum++,this.searchGroup())},clickGroupListItem:function(e){this.currentListItemUuid=e.groupId,this.$emit("updateList",this.currentListItemUuid)},isShowGroupListItemMore:function(e){return![1,2].includes(e.groupId)},addGroup:function(){var e=this;this.scrollLoad=!1,this.isEditGroup=!1,this.groupListForm={groupName:"",groupId:""},this.$nextTick(function(){e.$refs.groupListForm.clearValidate()}),this.addOrEditGroupDialog=!0},editGroupListItem:function(e){var t=this;this.isEditGroup=!0,this.editNamePre=e.groupName,this.$nextTick(function(){t.$refs.groupListForm.clearValidate()}),this.addOrEditGroupDialog=!0,this.groupListForm=a()({},e)},delGroupListItem:function(e){var t=this;this.$confirm("分组删除后,创建号活码时将无法选取到该分组,是否继续删除?","删除提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){if(!(t.groupList.findIndex(function(t){return t.groupId===e.groupId})<0)){var r={groupId:e.groupId};Object(p.d)(r).then(function(r){0==r.data.code&&(t.$message({type:"success",message:"删除成功!"}),t.currentListItemUuid==e.groupId&&(t.pageP.pageNum=1,t.currentListItemUuid=-1,t.$emit("updateList",t.currentListItemUuid)),t.pageP.pageNum=1,t.searchGroup())})}}).catch(function(){})},handleGroupListItem:function(){var e,t=this;this.$refs.groupListForm.validate((e=n()(s.a.mark(function e(r){var i,a,o,u;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=15;break}if(i={},a=(t.isEditGroup?"修改":"新增")+"成功",!t.isEditGroup){e.next=10;break}return o={groupId:t.groupListForm.groupId,groupName:t.groupListForm.groupName},e.next=7,Object(p.f)(o);case 7:i=e.sent,e.next=14;break;case 10:return u={groupName:t.groupListForm.groupName},e.next=13,Object(p.b)(u);case 13:i=e.sent;case 14:0==i.data.code?(t.$message({type:"success",message:a,duration:1e3}),t.isEditGroup&&(t.groupList.find(function(e){return e.groupId==t.groupListForm.groupId}).groupName=t.groupListForm.groupName),t.pageP.pageNum=1,t.searchGroup(),t.addOrEditGroupDialog=!1):t.$message({type:"warning",message:i.data.message});case 15:case"end":return e.stop()}},e,t)})),function(t){return e.apply(this,arguments)}))},searchGroup:function(e){var t=this;return n()(s.a.mark(function e(){var r;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.groupLoading=!0,e.next=3,Object(c.b)("/haoban-manage3-web/hm/group/refer/count",{});case 3:return r=e.sent,1==t.pageP.pageNum&&(t.groupList=[{groupName:"全部分组",referNum:"",groupId:"-1"}],t.groupList[0].referNum=r.data.result),String(t.pageP.groupName)&&(t.pageP.pageNum=1,t.groupList=[]),e.next=8,Object(c.b)("/haoban-manage3-web/hm/group/list",t.pageP).then(function(e){if(0==e.data.code){var r=e.data.result||{},i=r.result,a=r.pages;t.groupList=t.groupList.concat(i),""==t.pageP.groupName?t.searchTip=!1:""!=t.pageP.groupName&&t.groupList.length<=0&&(t.searchTip=!0),t.allPageNum=a||1,t.groupLoading=!1}});case 8:case"end":return e.stop()}},e,t)}))()}}},g={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("section",[r("div",{staticClass:"mb-10 mt-20 pl-16 pr-15"},[r("el-input",{attrs:{placeholder:"请输入分组名称",maxlength:"50",clearable:""},on:{change:e.onSearch},model:{value:e.pageP.groupName,callback:function(t){e.$set(e.pageP,"groupName",t)},expression:"pageP.groupName"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),r("div",{staticClass:"lists-content-box infinite-list-wrapper"},[r("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.load,expression:"load"}],staticClass:"list",attrs:{"infinite-scroll-disabled":"scrollLoad","infinite-scroll-immediate":"false","infinite-scroll-distance":"1"}},[e._l(e.groupList,function(t){return r("li",{key:t.groupId,class:["list-item","member-list",{"active-li":t.groupId==e.currentListItemUuid}],on:{click:function(r){return e.clickGroupListItem(t)}}},[r("div",{staticClass:"wrap"},[r("span",{staticClass:"listItemName overflow-ellipsis",attrs:{title:t.groupName}},[e._v(e._s(t.groupName))]),e._v(" "),r("span",[e._v(e._s("("+t.referNum+")"))])]),e._v(" "),e.isShowGroupListItemMore(t)?r("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[r("p",{staticClass:"more",on:{click:function(r){return e.editGroupListItem(t)}}},[e._v("编辑")]),e._v(" "),t.referNum?e._e():r("p",{staticClass:"more",on:{click:function(r){return e.delGroupListItem(t)}}},[e._v("删除")]),e._v(" "),"全部分组"!=t.groupName&&"默认分组"!=t.groupName?r("i",{staticClass:"iconfont-hb3 icongengduo3 icon iconhover",attrs:{slot:"reference"},slot:"reference"}):e._e()]):e._e()],1)}),e._v(" "),r("li",[e.groupLoading?r("div",{staticClass:"el-loading-spinner",staticStyle:{width:"86%"}},[r("i",{staticClass:"el-icon-loading"})]):e._e()])],2),e._v(" "),e.searchTip?r("p",{staticClass:"searchTip"},[e._v("没有找到和“"+e._s(e.pageP.groupName)+"”相关的内容")]):e._e()]),e._v(" "),e.groupList.length>1?r("div",{staticClass:"add-category"},[r("el-button",{staticClass:"ghost-btn add-group",attrs:{type:"primary"},on:{click:e.addGroup}},[e._v("新增分组")])],1):e._e(),e._v(" "),r("el-dialog",{attrs:{title:e.isEditGroup?"编辑分组":"新增分组",visible:e.addOrEditGroupDialog,width:"500px",top:"30vh","close-on-click-modal":!1},on:{"update:visible":function(t){e.addOrEditGroupDialog=t}}},[r("el-form",{ref:"groupListForm",attrs:{model:e.groupListForm,rules:e.groupListFormRules}},[r("el-form-item",{attrs:{label:"分组名称",prop:"groupName"}},[r("el-input",{attrs:{placeholder:"请输入分组名称",maxlength:10,"show-word-limit":"",clearable:""},model:{value:e.groupListForm.groupName,callback:function(t){e.$set(e.groupListForm,"groupName",t)},expression:"groupListForm.groupName"}})],1),e._v(" "),r("p",{directives:[{name:"show",rawName:"v-show",value:!e.isEditGroup,expression:"!isEditGroup"}],staticClass:"addGroupTip"},[e._v('分组名称不可重复,建议"创建人姓名-分组名称"')])],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.addOrEditGroupDialog=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.handleGroupListItem}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var d=r("VU/8")(l,g,!1,function(e){r("RXoq")},"data-v-192f497d",null);t.default=d.exports}}); webpackJsonp([116],{RXoq:function(e,t){},t6Nl:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=r("Dd8w"),a=r.n(i),o=r("Xxa5"),s=r.n(o),u=r("exGp"),n=r.n(u),p=r("PeHS"),c=r("P9l9"),l={name:"staffActCodeGroupList",data:function(){var e,t=this;return{searchTip:!1,groupLoading:!1,currentListItemUuid:-1,groupList:[],scrollLoad:!1,title:"新增分组",addOrEditGroupDialog:!1,groupListForm:{groupName:"",groupId:""},groupListFormRules:{groupName:[{required:!0,message:"请输入分组名称",trigger:"blur"},{validator:(e=n()(s.a.mark(function e(r,i,a){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(c.b)("/haoban-manage3-web/hm/group/check/name",{groupName:t.groupListForm.groupName}).then(function(e){if(t.checkNameLength=e.data.result.length,t.isEditGroup){var r=e.data.result.map(function(e){return e.groupName});t.checkNameLength>0&&t.editNamePre!=r&&a(new Error("该分组名称已存在,请重新输入")),a()}else t.checkNameLength>0&&a(new Error("该分组名称已存在,请重新输入")),a()});case 2:case"end":return e.stop()}},e,t)})),function(t,r,i){return e.apply(this,arguments)}),trigger:"blur"}]},isEditGroup:!1,allPageNum:1,pageP:{groupName:"",pageNum:1,pageSize:40},checkNameLength:-1,editNamePre:""}},created:function(){this.searchGroup()},activated:function(){this.searchGroup()},methods:{onSearch:function(){this.pageP.pageNum=1,this.searchGroup()},load:function(){this.pageP.pageNum<this.allPageNum&&(this.pageP.pageNum++,this.searchGroup())},clickGroupListItem:function(e){this.currentListItemUuid=e.groupId,this.$emit("updateList",this.currentListItemUuid)},isShowGroupListItemMore:function(e){return![1,2].includes(e.groupId)},addGroup:function(){var e=this;this.scrollLoad=!1,this.isEditGroup=!1,this.groupListForm={groupName:"",groupId:""},this.$nextTick(function(){e.$refs.groupListForm.clearValidate()}),this.addOrEditGroupDialog=!0},editGroupListItem:function(e){var t=this;this.isEditGroup=!0,this.editNamePre=e.groupName,this.$nextTick(function(){t.$refs.groupListForm.clearValidate()}),this.addOrEditGroupDialog=!0,this.groupListForm=a()({},e)},delGroupListItem:function(e){var t=this;this.$confirm("分组删除后,创建号活码时将无法选取到该分组,是否继续删除?","删除提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){if(!(t.groupList.findIndex(function(t){return t.groupId===e.groupId})<0)){var r={groupId:e.groupId};Object(p.d)(r).then(function(r){0==r.data.code&&(t.$message({type:"success",message:"删除成功!"}),t.currentListItemUuid==e.groupId&&(t.pageP.pageNum=1,t.currentListItemUuid=-1,t.$emit("updateList",t.currentListItemUuid)),t.pageP.pageNum=1,t.searchGroup())})}}).catch(function(){})},handleGroupListItem:function(){var e,t=this;this.$refs.groupListForm.validate((e=n()(s.a.mark(function e(r){var i,a,o,u;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=15;break}if(i={},a=(t.isEditGroup?"修改":"新增")+"成功",!t.isEditGroup){e.next=10;break}return o={groupId:t.groupListForm.groupId,groupName:t.groupListForm.groupName},e.next=7,Object(p.f)(o);case 7:i=e.sent,e.next=14;break;case 10:return u={groupName:t.groupListForm.groupName},e.next=13,Object(p.b)(u);case 13:i=e.sent;case 14:0==i.data.code?(t.$message({type:"success",message:a,duration:1e3}),t.isEditGroup&&(t.groupList.find(function(e){return e.groupId==t.groupListForm.groupId}).groupName=t.groupListForm.groupName),t.pageP.pageNum=1,t.searchGroup(),t.addOrEditGroupDialog=!1):t.$message({type:"warning",message:i.data.message});case 15:case"end":return e.stop()}},e,t)})),function(t){return e.apply(this,arguments)}))},searchGroup:function(e){var t=this;return n()(s.a.mark(function e(){var r;return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.groupLoading=!0,e.next=3,Object(c.b)("/haoban-manage3-web/hm/group/refer/count",{});case 3:return r=e.sent,1==t.pageP.pageNum&&(t.groupList=[{groupName:"全部分组",referNum:"",groupId:"-1"}],t.groupList[0].referNum=r.data.result),String(t.pageP.groupName)&&(t.pageP.pageNum=1,t.groupList=[]),e.next=8,Object(c.b)("/haoban-manage3-web/hm/group/list",t.pageP).then(function(e){if(0==e.data.code){var r=e.data.result||{},i=r.result,a=r.pages;t.groupList=t.groupList.concat(i),""==t.pageP.groupName?t.searchTip=!1:""!=t.pageP.groupName&&t.groupList.length<=0&&(t.searchTip=!0),t.allPageNum=a||1,t.groupLoading=!1}});case 8:case"end":return e.stop()}},e,t)}))()}}},g={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("section",[r("div",{staticClass:"mb-10 mt-20 pl-16 pr-15"},[r("el-input",{attrs:{placeholder:"请输入分组名称",maxlength:"50",clearable:""},on:{change:e.onSearch},model:{value:e.pageP.groupName,callback:function(t){e.$set(e.pageP,"groupName",t)},expression:"pageP.groupName"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),r("div",{staticClass:"lists-content-box infinite-list-wrapper"},[r("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.load,expression:"load"}],staticClass:"list",attrs:{"infinite-scroll-disabled":"scrollLoad","infinite-scroll-immediate":"false","infinite-scroll-distance":"1"}},[e._l(e.groupList,function(t){return r("li",{key:t.groupId,class:["list-item","member-list",{"active-li":t.groupId==e.currentListItemUuid}],on:{click:function(r){return e.clickGroupListItem(t)}}},[r("div",{staticClass:"wrap"},[r("span",{staticClass:"listItemName overflow-ellipsis",attrs:{title:t.groupName}},[e._v(e._s(t.groupName))]),e._v(" "),r("span",[e._v(e._s("("+t.referNum+")"))])]),e._v(" "),e.isShowGroupListItemMore(t)?r("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[r("p",{staticClass:"more",on:{click:function(r){return e.editGroupListItem(t)}}},[e._v("编辑")]),e._v(" "),t.referNum?e._e():r("p",{staticClass:"more",on:{click:function(r){return e.delGroupListItem(t)}}},[e._v("删除")]),e._v(" "),"全部分组"!=t.groupName&&"默认分组"!=t.groupName?r("i",{staticClass:"iconfont-hb3 icongengduo3 icon iconhover",attrs:{slot:"reference"},slot:"reference"}):e._e()]):e._e()],1)}),e._v(" "),r("li",[e.groupLoading?r("div",{staticClass:"el-loading-spinner",staticStyle:{width:"86%"}},[r("i",{staticClass:"el-icon-loading"})]):e._e()])],2),e._v(" "),e.searchTip?r("p",{staticClass:"searchTip"},[e._v("没有找到和“"+e._s(e.pageP.groupName)+"”相关的内容")]):e._e()]),e._v(" "),e.groupList.length>1?r("div",{staticClass:"add-category"},[r("el-button",{staticClass:"ghost-btn add-group",attrs:{type:"primary"},on:{click:e.addGroup}},[e._v("新增分组")])],1):e._e(),e._v(" "),r("el-dialog",{attrs:{title:e.isEditGroup?"编辑分组":"新增分组",visible:e.addOrEditGroupDialog,width:"500px",top:"30vh","close-on-click-modal":!1},on:{"update:visible":function(t){e.addOrEditGroupDialog=t}}},[r("el-form",{ref:"groupListForm",attrs:{model:e.groupListForm,rules:e.groupListFormRules}},[r("el-form-item",{attrs:{label:"分组名称",prop:"groupName"}},[r("el-input",{attrs:{placeholder:"请输入分组名称",maxlength:10,"show-word-limit":"",clearable:""},model:{value:e.groupListForm.groupName,callback:function(t){e.$set(e.groupListForm,"groupName",t)},expression:"groupListForm.groupName"}})],1),e._v(" "),r("p",{directives:[{name:"show",rawName:"v-show",value:!e.isEditGroup,expression:"!isEditGroup"}],staticClass:"addGroupTip"},[e._v('分组名称不可重复,建议"创建人姓名-分组名称"')])],1),e._v(" "),r("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:function(t){e.addOrEditGroupDialog=!1}}},[e._v("取 消")]),e._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:e.handleGroupListItem}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var d=r("VU/8")(l,g,!1,function(e){r("RXoq")},"data-v-192f497d",null);t.default=d.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([116],{"7koN":function(t,e){},i0rV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("woOf"),l=a.n(i),n=a("P9l9"),s=a("Ch4/"),r={name:"GuideAuthSetting",data:function(){return{loading:!1,settingData:{editClerkFlag:0,addClerkFlag:0,delClerkFlag:0}}},created:function(){this.getSetting()},methods:{getSetting:function(){var t=this;Object(n.b)("/haoban-manage3-web/application-open-close-list",{}).then(function(e){var a=e.data||{},i=a.errorCode,n=a.result;if(1!=i)return s.a.errorMsg(e.data);var r=(n||{}).clerkEditInfo;l()(t.settingData,r)})},onSave:function(){var t=this;this.loading=!0;var e=this.settingData,a={editClerkFlag:e.editClerkFlag,addClerkFlag:e.addClerkFlag,delClerkFlag:e.delClerkFlag};Object(n.g)("/haoban-manage3-web/save-clerk-edit-flag",a).then(function(e){if(1!=(e.data||{}).errorCode)return s.a.errorMsg(e.data);t.$message.success("保存成功")}).finally(function(){setTimeout(function(){return t.loading=!1},100)})}}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"guide-setting"},[a("div",{staticClass:"guide-auth-list"},[a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许编辑导购信息")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.editClerkFlag,callback:function(e){t.$set(t.settingData,"editClerkFlag",e)},expression:"settingData.editClerkFlag"}})],1),t._v(" "),a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许店长添加导购")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.addClerkFlag,callback:function(e){t.$set(t.settingData,"addClerkFlag",e)},expression:"settingData.addClerkFlag"}})],1),t._v(" "),a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许店长删除导购")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.delClerkFlag,callback:function(e){t.$set(t.settingData,"delClerkFlag",e)},expression:"settingData.delClerkFlag"}})],1)]),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveGuideSetting)?a("el-button",{staticClass:"save-btn",attrs:{"limit-code":t.$buttonCode.saveGuideSetting,loading:t.loading,type:"primary"},on:{click:t.onSave}},[t._v("保存")]):t._e()],1)},staticRenderFns:[]};var c=a("VU/8")(r,d,!1,function(t){a("7koN")},"data-v-18cf3981",null);e.default=c.exports}}); webpackJsonp([117],{"7koN":function(t,e){},i0rV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("woOf"),l=a.n(i),n=a("P9l9"),s=a("Ch4/"),r={name:"GuideAuthSetting",data:function(){return{loading:!1,settingData:{editClerkFlag:0,addClerkFlag:0,delClerkFlag:0}}},created:function(){this.getSetting()},methods:{getSetting:function(){var t=this;Object(n.b)("/haoban-manage3-web/application-open-close-list",{}).then(function(e){var a=e.data||{},i=a.errorCode,n=a.result;if(1!=i)return s.a.errorMsg(e.data);var r=(n||{}).clerkEditInfo;l()(t.settingData,r)})},onSave:function(){var t=this;this.loading=!0;var e=this.settingData,a={editClerkFlag:e.editClerkFlag,addClerkFlag:e.addClerkFlag,delClerkFlag:e.delClerkFlag};Object(n.g)("/haoban-manage3-web/save-clerk-edit-flag",a).then(function(e){if(1!=(e.data||{}).errorCode)return s.a.errorMsg(e.data);t.$message.success("保存成功")}).finally(function(){setTimeout(function(){return t.loading=!1},100)})}}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"guide-setting"},[a("div",{staticClass:"guide-auth-list"},[a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许编辑导购信息")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.editClerkFlag,callback:function(e){t.$set(t.settingData,"editClerkFlag",e)},expression:"settingData.editClerkFlag"}})],1),t._v(" "),a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许店长添加导购")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.addClerkFlag,callback:function(e){t.$set(t.settingData,"addClerkFlag",e)},expression:"settingData.addClerkFlag"}})],1),t._v(" "),a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许店长删除导购")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.delClerkFlag,callback:function(e){t.$set(t.settingData,"delClerkFlag",e)},expression:"settingData.delClerkFlag"}})],1)]),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveGuideSetting)?a("el-button",{staticClass:"save-btn",attrs:{"limit-code":t.$buttonCode.saveGuideSetting,loading:t.loading,type:"primary"},on:{click:t.onSave}},[t._v("保存")]):t._e()],1)},staticRenderFns:[]};var c=a("VU/8")(r,d,!1,function(t){a("7koN")},"data-v-18cf3981",null);e.default=c.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([117],{"5GE8":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Xxa5"),s=a.n(n),o=a("exGp"),i=a.n(o),r=a("Ch4/"),l=a("3E4D"),c=a("PI0u"),u=a("P9l9"),p={components:{},props:{brandId:{type:String,default:""}},data:function(){var e=this;return{activeId:"2",wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",statusObj:{3:"待领取",4:"待核销",5:"已核销",6:"已过期",7:"已销毁",8:"已占用"},conditionObj:{getDateRange:[],useDateRange:[],searchInput:""},choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,n=t.minDate;e.choiceDateCopy=[n.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,n=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>n}}},loading:!1,templateList:[],strategyList:[],tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(e){e&&this.getTableList()}},methods:{changeDate:function(){this.currentPage=1,this.getTableList()},toDel:function(e,t){var a=this;a.$confirm("是否要删除选中的卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(t.coupCardId)}).catch(function(){})},delCardList:function(e){var t=this,a={coupCardId:e};Object(u.g)("/haoban-app-customer-web/inner/del-card-coup",a).then(function(e){var a=e.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),void t.getTableList();r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toInput:Object(c.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(){var e=this;return i()(s.a.mark(function t(){var a,n;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(a=e).loading=!0,a.conditionObj.getDateRange||(a.conditionObj.getDateRange=[]),a.conditionObj.useDateRange||(a.conditionObj.useDateRange=[]),n={queryType:2,wxEnterpriseId:a.wxEnterpriseId,receiveStartDate:a.conditionObj.getDateRange[0],receiveEndDate:a.conditionObj.getDateRange[1],useStartDate:a.conditionObj.useDateRange[0],useEndDate:a.conditionObj.useDateRange[1],search:a.conditionObj.searchInput||"",pageNum:a.currentPage,pageSize:a.pageSize},Object(u.g)("/haoban-app-customer-web/inner/find-card-log-page",n).then(function(e){var t=e.data;if(a.loading=!1,1==t.errorCode)return a.tableData=t.result.result||[],void(a.total=t.result.totalCount);r.a.errorMsg(t)}).catch(function(e){a.loading=!1,a.$message.error({duration:1e3,message:e.message})});case 6:case"end":return t.stop()}},t,e)}))()}},mounted:function(){this.$emit("showTab","42"),this.getTableList()}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("div",{staticClass:"flex "},[a("el-date-picker",{attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"领取开始时间","end-placeholder":"领取结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.getDateRange,callback:function(t){e.$set(e.conditionObj,"getDateRange",t)},expression:"conditionObj.getDateRange"}}),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"核销开始时间","end-placeholder":"核销结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.useDateRange,callback:function(t){e.$set(e.conditionObj,"useDateRange",t)},expression:"conditionObj.useDateRange"}}),e._v(" "),a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"284px"},attrs:{placeholder:"请输入卡券名称/卡券代码/会员信息",maxlength:"50",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"领取时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.receiveTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.receiveTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.receiveTime)))])]):a("div",[e._v("\n --\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.useTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.useTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.useTime)))])]):a("div",[e._v("\n --\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"font-14 color-606266 line-18"},[e._v(e._s(t.row.memberName||"--"))]),e._v(" "),a("div",{staticClass:"font-12 color-909399 line-18"},[e._v(e._s(e._f("formatPhoneNum")(t.row.phoneNum)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"员工信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.headImg?a("img",{attrs:{src:t.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info m-l-10",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",{staticClass:"font-14 color-606266 text-ellipsis line-18"},[e._v(e._s(t.row.staffName||"--"))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis line-18"},[e._v(e._s(t.row.departmentName||"--"))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.cardType?a("span",[e._v("抵金券")]):e._e(),e._v(" "),1==t.row.cardType?a("span",[e._v("折扣券")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.cardName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[3==t.row.status?a("span",{staticClass:"status-dot bg-7c6af2"}):e._e(),4==t.row.status?a("span",{staticClass:"status-dot bg-2f54eb"}):e._e(),5==t.row.status?a("span",{staticClass:"status-dot bg-52c41a"}):e._e(),6==t.row.status?a("span",{staticClass:"status-dot bg-f5222d"}):e._e(),7==t.row.status?a("span",{staticClass:"status-dot bg-c0c4cc"}):e._e(),8==t.row.status?a("span",{staticClass:"status-dot bg-faad14"}):e._e(),a("span",{staticClass:"inline-block"},[e._v(e._s(e.statusObj[t.row.status]))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"投放来源","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 好办内购券\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销来源","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(5!=t.row.status?"--":0==t.row.checkSource?"订单核销":"手动核销")+"\n ")]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var g=a("VU/8")(p,d,!1,function(e){a("xdHX")},"data-v-184604bd",null);t.default=g.exports},xdHX:function(e,t){}}); webpackJsonp([118],{"5GE8":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Xxa5"),s=a.n(n),o=a("exGp"),i=a.n(o),r=a("Ch4/"),l=a("3E4D"),c=a("PI0u"),u=a("P9l9"),p={components:{},props:{brandId:{type:String,default:""}},data:function(){var e=this;return{activeId:"2",wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",statusObj:{3:"待领取",4:"待核销",5:"已核销",6:"已过期",7:"已销毁",8:"已占用"},conditionObj:{getDateRange:[],useDateRange:[],searchInput:""},choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,n=t.minDate;e.choiceDateCopy=[n.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-31536e6,n=e.choiceDateCopy[0]+31536e6;return t.getTime()<a||t.getTime()>n}}},loading:!1,templateList:[],strategyList:[],tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(e){e&&this.getTableList()}},methods:{changeDate:function(){this.currentPage=1,this.getTableList()},toDel:function(e,t){var a=this;a.$confirm("是否要删除选中的卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(t.coupCardId)}).catch(function(){})},delCardList:function(e){var t=this,a={coupCardId:e};Object(u.g)("/haoban-app-customer-web/inner/del-card-coup",a).then(function(e){var a=e.data;if(1==a.errorCode)return l.a.showmsg("删除成功","success"),void t.getTableList();r.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toInput:Object(c.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(){var e=this;return i()(s.a.mark(function t(){var a,n;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(a=e).loading=!0,a.conditionObj.getDateRange||(a.conditionObj.getDateRange=[]),a.conditionObj.useDateRange||(a.conditionObj.useDateRange=[]),n={queryType:2,wxEnterpriseId:a.wxEnterpriseId,receiveStartDate:a.conditionObj.getDateRange[0],receiveEndDate:a.conditionObj.getDateRange[1],useStartDate:a.conditionObj.useDateRange[0],useEndDate:a.conditionObj.useDateRange[1],search:a.conditionObj.searchInput||"",pageNum:a.currentPage,pageSize:a.pageSize},Object(u.g)("/haoban-app-customer-web/inner/find-card-log-page",n).then(function(e){var t=e.data;if(a.loading=!1,1==t.errorCode)return a.tableData=t.result.result||[],void(a.total=t.result.totalCount);r.a.errorMsg(t)}).catch(function(e){a.loading=!1,a.$message.error({duration:1e3,message:e.message})});case 6:case"end":return t.stop()}},t,e)}))()}},mounted:function(){this.$emit("showTab","42"),this.getTableList()}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[a("div",{staticClass:"flex "},[a("el-date-picker",{attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"领取开始时间","end-placeholder":"领取结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.getDateRange,callback:function(t){e.$set(e.conditionObj,"getDateRange",t)},expression:"conditionObj.getDateRange"}}),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"~","start-placeholder":"核销开始时间","end-placeholder":"核销结束时间"},on:{change:e.changeDate},model:{value:e.conditionObj.useDateRange,callback:function(t){e.$set(e.conditionObj,"useDateRange",t)},expression:"conditionObj.useDateRange"}}),e._v(" "),a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"284px"},attrs:{placeholder:"请输入卡券名称/卡券代码/会员信息",maxlength:"50",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 3px)"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"领取时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.receiveTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.receiveTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.receiveTime)))])]):a("div",[e._v("\n --\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[t.row.useTime?a("div",[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.useTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.useTime)))])]):a("div",[e._v("\n --\n ")])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"font-14 color-606266 line-18"},[e._v(e._s(t.row.memberName||"--"))]),e._v(" "),a("div",{staticClass:"font-12 color-909399 line-18"},[e._v(e._s(e._f("formatPhoneNum")(t.row.phoneNum)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"员工信息","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex nowrap"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.headImg?a("img",{attrs:{src:t.row.headImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info m-l-10",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",{staticClass:"font-14 color-606266 text-ellipsis line-18"},[e._v(e._s(t.row.staffName||"--"))]),e._v(" "),a("span",{staticClass:"font-12 color-909399 text-ellipsis line-18"},[e._v(e._s(t.row.departmentName||"--"))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券类型"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.cardType?a("span",[e._v("抵金券")]):e._e(),e._v(" "),1==t.row.cardType?a("span",[e._v("折扣券")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.cardName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[3==t.row.status?a("span",{staticClass:"status-dot bg-7c6af2"}):e._e(),4==t.row.status?a("span",{staticClass:"status-dot bg-2f54eb"}):e._e(),5==t.row.status?a("span",{staticClass:"status-dot bg-52c41a"}):e._e(),6==t.row.status?a("span",{staticClass:"status-dot bg-f5222d"}):e._e(),7==t.row.status?a("span",{staticClass:"status-dot bg-c0c4cc"}):e._e(),8==t.row.status?a("span",{staticClass:"status-dot bg-faad14"}):e._e(),a("span",{staticClass:"inline-block"},[e._v(e._s(e.statusObj[t.row.status]))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"投放来源","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n 好办内购券\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"核销来源","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(5!=t.row.status?"--":0==t.row.checkSource?"订单核销":"手动核销")+"\n ")]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var g=a("VU/8")(p,d,!1,function(e){a("xdHX")},"data-v-184604bd",null);t.default=g.exports},xdHX:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([119],{"92mS":function(t,e){},zHtI:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var c=i("VU/8")(l,a,!1,function(t){i("92mS")},"data-v-17b428fa",null);e.default=c.exports}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([12],{C86s:function(t,e){},NebN:function(t,e){},QJEo:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALMAAABgCAYAAABWvkNyAAAAAXNSR0IArs4c6QAAAyNJREFUeAHt2rFu2zAQBmA7CNChW9e+/6N1Lbp0rYtkIOEgyykn8U76AgRgApo8ffeDUWTffv3+93j7vvki0FzgpXn9yicwBIR5UBh0FxDm7h1U/xAQ5kFh0F1AmLt3UP1DQJgHhUF3AWHu3kH1DwFhHhQG3QWEuXsH1T8EhHlQGHQXEObuHVT/EBDmQWHQXUCYu3dQ/UPgdYwMCOwo8PGTmT9/vNyzt3MyZ4tab5mAMC+jt3G2gDBni1pvmYAwL6O3cbaAMGeLWm+ZgDAvo7dxtoAwZ4tab5mAMC+jt3G2gDBni1pvmYAwL6O3cbaAMGeLWm+ZgDAvo7dxtoAwZ4tab5mAMC+jt3G2wOk/AnrERw+zm2K9bQJO5m1uXlVQQJgLNkVJ2wSEeZubVxUUEOaCTVHSNgFh3ubmVQUFTv80o6D5pyV56vIpS+iXTuYQl8mVBYS5cnfUFhIQ5hCXyZUFhLlyd9QWEhDmEJfJlQWEuXJ31BYSEOYQl8mVBYS5cnfUFhIQ5hCXyZUFvAOY3B3v5CWDBpZzMgewTK0tIMy1+6O6gIAwB7BMrS0gzLX7o7qAgDAHsEytLSDMtfujuoCAMAewTK0tIMy1+6O6gIAwB7BMrS0gzLX7o7qAgLezA1hnmnrGt92dzGdK6MWvpc3JfMaT5OLZS798J3M6qQVXCQjzKnn7pgsIczqpBVcJtLlnXgVk32eByv+7OJmfe+WnxgLC3Lh5Sn8WEOZnDz81Fth8z1z53qlxP5T+BQEn8xfwvLSWwOaTudZl5FfjL0++6d4rOpn3Frb+YQLCfBi1jfYWEOa9ha1/mIAwH0Zto70FhHlvYesfJiDMh1HbaG+Bwx/NeeS1d0uvu76T+bq9P92VC/PpWnrdCzr8NuO61Ptcudu26epknhZGzQWEuXkDlT8FhHlaGDUXEObmDVT+FBDmaWHUXECYmzdQ+VNAmKeFUXMBYW7eQOVPAWGeFkbNBYS5eQOVPwWEeVoYNRcQ5uYNVP4UEOZpYdRcQJibN1D5U0CYp4VRc4H72+dhv3+7N78M5RO43d5T/Ofv4wGDQHeB/300PDm6DxByAAAAAElFTkSuQmCC"},Xevq:function(t,e){},jNLg:function(t,e,a){"use strict";var i=a("5i7M"),s=a("Q0Ca"),n={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:800}},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){this.chart&&this.chart.destroy(),this.chart=new i.a({container:this.id,width:this.width,autoFit:!0,height:280,padding:[50,80,60,60]}),this.chart.data(this.charData);var t=this.charData.length>7?15:25;this.chart.scale({avgVisitTime:{min:0,nice:!0,alias:"人均访问时长"},loginClerkCnt:{nice:!0,alias:"总登录人数"},bizDates:{}}),this.chart.annotation().text({top:!0,position:["-4%","-10%"],content:"登录人数",offsetX:0,offsetY:0}),this.chart.annotation().text({top:!0,position:["100%","-10%"],content:"访问时长",offsetX:0,offsetY:0}),this.chart.axis("avgVisitTime",{grid:null,title:null,label:{formatter:function(t){return s.a.formatTime(t)}}}),this.chart.axis("loginClerkCnt",{title:null,label:{formatter:function(t){return~String(t).indexOf(".")?"":t}}}),this.chart.tooltip({showCrosshairs:!0,shared:!0,itemTpl:'<li style="padding-bottom: 10px;><span style="background-color:{color};width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:8px;"></span>{name}: {value}</li>'}),this.chart.interval().position("bizDates*loginClerkCnt").color("#597EF7").size(t),this.chart.line().position("bizDates*avgVisitTime").color("#5ad8a6").tooltip("bizDates*avgVisitTime",function(t,e){return{name:"人均访问时长",value:s.a.formatTime(e)}}),this.chart.legend({position:"top",itemGap:20,custom:!0,items:[{value:"loginClerkCnt",name:"总登录人数",marker:{symbol:"square",style:{fill:"#597ef7",r:4}}},{value:"avgVisitTime",name:"人均访问时长",marker:{symbol:"hyphen",style:{stroke:"#5ad8a6",r:5,lineWidth:3}}}]}),this.chart.render()}}},o={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var r=a("VU/8")(n,o,!1,function(t){a("Xevq")},"data-v-2e746f7c",null);e.a=r.exports},kX6v:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("ApSX"),s=a("jNLg"),n=a("rbYK"),o=a("P9l9"),r=a("Ch4/"),l=a("Q0Ca"),c={name:"activeDetail",data:function(){return{selectTendDay:"",activeName:"first",selectStartDay:"",endDay:"",selectEndDay:"",pickerOptions:{disabledDate:function(t){var e=Date.now()-6912e5;return t.getTime()>=Date.now()-864e5||t.getTime()<e}},groupIds:[],charData:[],currentPage:1,pageSize:20,total:0,tableData:[],multipleSelection:[],sortColumn:"",sortType:"",addShow:!1,loadingBtn:!1,selectRadio:0,tabActive:"1",storeId:""}},computed:{},methods:{changeTableDate:function(){this.getTableList()},changeDate:function(){this.getTendData()},changeTab:function(t){this.tabActive=t,this.getTendData()},checkGroupIds:function(t){this.groupIds=t,this.storeId="",this.getTableList()},handleClick:function(t,e){this.currentPage=1,this.pageSize=20,this.total=0,this.selectRadio=0,this.tableData=[],this.getTableList()},sortChangeLogin:function(t,e,a){this.sortColumn=t.prop,this.sortType="ascending"==t.order?"asc":"desc",this.getTableList()},sortChange:function(t,e,a){this.sortColumn=t.prop,this.sortType="ascending"==t.order?"asc":"desc",this.getTableList()},handleCommand:function(t){this.selectRadio=t},handleSelectionChange:function(t){this.multipleSelection=t},exportExcel:function(){this.loadingBtn=!0,this.postExcelData()},postExcelData:function(){var t=this,e={enterpriseId:t.$route.query.brandId,startDate:t.selectEndDay,endDate:t.selectEndDay,groupIdList:t.groupIds.map(function(t){return t.storeGroupId}).join(","),storeIdList:t.storeId,loginStatus:"first"==t.activeName?1:"0",selectType:t.selectRadio};Object(o.c)("/haoban-manage3-web/web/export-login-detail-list",e).then(function(e){if(t.loadingBtn=!1,!e.data)return r.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),i=("first"==t.activeName?"登录明细":"未登录明细")+"报表.csv",s=document.createElement("a");s.download=i,s.style.display="none",s.href=URL.createObjectURL(a),document.body.appendChild(s),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTendData:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,datesType:e.tabActive,startDate:1==e.tabActive?e.selectStartDay:e.selectTendDay,endDate:1==e.tabActive?e.endDay:e.selectTendDay};Object(o.b)("/haoban-manage3-web/web/total-login-data",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.result&&a.result.result.forEach(function(t){t.bizDates=1==e.tabActive?t.bizDates.split("-")[1]+"-"+t.bizDates.split("-")[2]:t.bizDates,t.avgLoginTimes=parseInt(t.avgLoginTimes),t.avgVisitTime=parseInt(t.avgVisitTime)}),e.charData=a.result.result||[],!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,startDate:e.selectEndDay,endDate:e.selectEndDay,groupIdList:e.groupIds.map(function(t){return t.storeGroupId}).join(","),storeIdList:e.storeId,loginStatus:"first"==e.activeName?1:"0",sortColumn:e.sortColumn,sortType:e.sortType,pageSize:e.pageSize,currentPage:e.currentPage};Object(o.g)("/haoban-manage3-web/web/login-detail-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result.list||[],e.total=a.result.result.total||0,!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){var t=this;t.selectStartDay=l.a.timeStampToYmd((new Date).getTime()-6048e5),t.endDay=l.a.timeStampToYmd((new Date).getTime()-864e5),t.selectEndDay=t.$route.query.selectTableDay?t.$route.query.selectTableDay:l.a.timeStampToYmd((new Date).getTime()-864e5),t.selectTendDay=l.a.timeStampToYmd((new Date).getTime()-864e5),t.storeId=t.$route.query.storeId?t.$route.query.storeId:"",t.$nextTick(function(){t.getTableList(),t.getTendData()})},components:{gicSelectGroupMult:i.a,dayLoginChart:s.a,timeLoginChart:n.a}},d={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"my-customer-wrap common-set-wrap"},[i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[i("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[i("div",{staticClass:"apps-content-right"},[i("div",{staticClass:"flex flex-space-between"},[i("div",{staticClass:"font-16 color-303133"},[i("div",{staticClass:"flex"},[i("div",{class:["font-14 font-w-600 cursor-pointer",1==t.tabActive?"color-303133":"color-909399"],on:{click:function(e){return t.changeTab("1")}}},[t._v("日访问趋势")]),t._v(" "),i("div",{class:["font-14 font-w-600 day-tend cursor-pointer",2==t.tabActive?"color-303133":"color-909399"],on:{click:function(e){return t.changeTab("2")}}},[t._v("日时段访问趋势")])])]),t._v(" "),t._m(0)]),t._v(" "),2==t.tabActive?i("div",{staticClass:"date-div m-t-20"},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:t.changeDate},model:{value:t.selectTendDay,callback:function(e){t.selectTendDay=e},expression:"selectTendDay"}})],1):t._e(),t._v(" "),i("div",{staticClass:"chart-body m-t-20"},[i("div",{staticClass:"flex flex-space-between"},[t.charData.length?i("day-login-chart",{staticClass:"flex-1",attrs:{charData:t.charData,id:"day-login-chart"}}):t._e(),t._v(" "),t.charData.length?t._e():i("div",{staticClass:"no-data-char"},[i("img",{attrs:{src:a("QJEo"),alt:""}}),t._v(" "),i("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])]),t._v(" "),t.charData.length?i("time-login-chart",{staticClass:"flex-1",attrs:{charData:t.charData,id:"time-login-chart"}}):t._e(),t._v(" "),t.charData.length?t._e():i("div",{staticClass:"no-data-char"},[i("img",{attrs:{src:a("QJEo"),alt:""}}),t._v(" "),i("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])])],1)]),t._v(" "),i("div",{staticClass:"m-t-20"},[i("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[i("el-tab-pane",{attrs:{label:"登录人员",name:"first"}}),t._v(" "),i("el-tab-pane",{attrs:{label:"未登录人员",name:"second"}})],1)],1),t._v(" "),i("div",{staticClass:"table-search"},[i("div",{staticClass:"flex flex-space-between"},[i("div",[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:t.changeTableDate},model:{value:t.selectEndDay,callback:function(e){t.selectEndDay=e},expression:"selectEndDay"}}),i("gic-select-group-mult",{staticClass:"m-l-10",attrs:{selectData:t.groupIds},on:{checkGroupIds:t.checkGroupIds}}),i("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("筛选条件下,"+t._s("second"==t.activeName?"未":"")+"登录人员有 "+t._s(t.total)+" 人,名单如下:")])],1),t._v(" "),t.$getButtonLimit(t.$buttonCode.exportLoginUser)?i("el-button",{attrs:{"limit-code":t.$buttonCode.exportLoginUser,type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")]):t._e()],1)]),t._v(" "),i("div",{staticClass:"m-t-20"},["first"==t.activeName?i("div",[i("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"sort-change":t.sortChangeLogin,"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{prop:"",label:"员工信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"ul-li-cell"},[i("div",{staticClass:"cell-info"},[i("div",{staticClass:"cell-info-name font-14 color-303133 flex flex-column"},[i("span",{staticClass:"gic-name"},[i("span",[t._v(t._s(e.row.clerkName||"--"))]),1==e.row.clerkType?i("el-tag",{staticClass:"m-l-10",attrs:{size:"small",type:"warning"}},[t._v("店长")]):t._e()],1),i("span",{staticClass:"gic-version"},[t._v(t._s(e.row.clerkCode||"--"))])])])])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"",label:"归属门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName||"--"))]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"lastLoginTime",label:"最后登录时间",sortable:"custom","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.lastLoginTime))+" "+t._s(e.row.lastLoginTime?"":"--"))]),t._v(" "),i("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.lastLoginTime))+" "+t._s(e.row.lastLoginTime?"":"--"))])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"loginTimes",label:"登录次数",sortable:"custom","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.loginTimes||"0")+"\n ")]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"avgVisitTime",label:"平均访问时长",sortable:"custom","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("formatTime")(e.row.avgVisitTime))+" ")]}}])})],1)],1):i("div",[i("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"sort-change":t.sortChange,"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{prop:"",label:"员工信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"ul-li-cell"},[i("div",{staticClass:"cell-info"},[i("div",{staticClass:"cell-info-name font-14 color-303133 flex flex-column"},[i("span",{staticClass:"gic-name"},[i("span",[t._v(t._s(e.row.clerkName||"--"))]),1==e.row.clerkType?i("el-tag",{staticClass:"m-l-10",attrs:{size:"small",type:"warning"}},[t._v("店长")]):t._e()],1),i("span",{staticClass:"gic-version"},[t._v(t._s(e.row.clerkCode||"--"))])])])])]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"",label:"归属门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName||"--"))]}}])}),t._v(" "),i("el-table-column",{attrs:{prop:"lastLoginTime",label:"上次登录时间",sortable:"custom","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.lastLoginTime))+t._s(e.row.lastLoginTime?"":"--"))]),t._v(" "),i("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.lastLoginTime))+t._s(e.row.lastLoginTime?"":"--"))])]}}])})],1)],1),t._v(" "),0!=t.tableData.length?i("div",{staticClass:"block common-wrap__page text-right m-t-24"},[i("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()])])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert el-alert-tip el-alert--info flex flex-align-start w-426",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("数据更新截至于昨日。今日数据需要隔天上午8点后进行查看。")])])])}]};var h=a("VU/8")(c,d,!1,function(t){a("C86s")},"data-v-f69aff60",null);e.default=h.exports},rbYK:function(t,e,a){"use strict";var i=a("5i7M"),s=a("Q0Ca"),n={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:800}},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){this.chart&&this.chart.destroy(),this.chart=new i.a({container:this.id,width:this.width,autoFit:!0,height:280,padding:[50,80,60,60]}),this.chart.data(this.charData);var t=this.charData.length>7?15:25;this.chart.scale({avgVisitTime:{min:0,nice:!0,alias:"人均访问时长"},avgLoginTimes:{nice:!0,alias:"平均每人登录次数"},bizDates:{}}),this.chart.annotation().text({top:!0,position:["-4%","-10%"],content:"登录次数",offsetX:0,offsetY:0}),this.chart.annotation().text({top:!0,position:["100%","-10%"],content:"访问时长",offsetX:0,offsetY:0}),this.chart.axis("avgVisitTime",{grid:null,title:null,label:{formatter:function(t){return s.a.formatTime(t)}}}),this.chart.axis("avgLoginTimes",{title:null,label:{formatter:function(t){return~String(t).indexOf(".")?"":t}}}),this.chart.tooltip({showCrosshairs:!0,shared:!0,itemTpl:'<li style="padding-bottom: 10px;><span style="background-color:{color};width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:8px;"></span>{name}: {value}</li>'}),this.chart.interval().position("bizDates*avgLoginTimes").color("#597EF7").size(t),this.chart.line().position("bizDates*avgVisitTime").color("#5ad8a6").tooltip("bizDates*avgVisitTime",function(t,e){return{name:"人均访问时长",value:s.a.formatTime(e)}}),this.chart.legend({position:"top",itemGap:20,custom:!0,items:[{value:"avgLoginTimes",name:"平均每人登录次数",marker:{symbol:"square",style:{fill:"#597ef7",r:4}}},{value:"avgVisitTime",name:"人均访问时长",marker:{symbol:"hyphen",style:{stroke:"#5ad8a6",r:5,lineWidth:3}}}]}),this.chart.render()}}},o={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var r=a("VU/8")(n,o,!1,function(t){a("NebN")},"data-v-9eaa33dc",null);e.a=r.exports}});
\ No newline at end of file
webpackJsonp([119],{Dqgq:function(e,t){},zYBJ:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("P9l9"),s=a("3E4D"),r=a("Ch4/"),o=a("9F6+"),i={props:{},comments:{NotManager:o.default},data:function(){return{wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",roleList:[],isManager:!1}},methods:{changeRoute:function(){this.$router.push("/contactsList")},goto:function(){window.open("https://www.yuque.com/docs/share/89a899fe-caae-41b3-86ea-2435a8066418?#")},changeToggle:function(e){e.expand=!e.expand},getData:function(e){var t=this,a={wxEnterpriseId:this.wxEnterpriseId};Object(n.b)("/haoban-manage3-web/admin-list",a).then(function(e){var a=e.data;1==a.errorCode&&(a.result&&a.result.length&&a.result.forEach(function(e){e.expand=!1}),t.roleList=[],a.result.forEach(function(e){e.roleUser.length&&(t.roleList=t.roleList.concat(e.roleUser))})),t.isManager=10030!=a.errorCode,r.a.errorMsg(a)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},refresh:function(){var e=this;Object(n.b)("/haoban-manage3-web/sync-qywx",{}).then(function(t){s.a.showmsg("刷新成功","success"),e.getData()})}},watch:{},mounted:function(){this.getData()},components:{NotManager:o.default}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap "},[e.isManager?a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"company-title m-b-20 m-t-26 flex flex-space-between flex-align-center"},[a("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title"},[e._v("1.好办管理后台管理员需在企业微信后台添加,"),a("el-button",{staticStyle:{"font-size":"13px"},attrs:{type:"text"},on:{click:e.goto}},[e._v("详情请见")]),e._v(" "),a("br"),e._v("\n 2.企业微信后台新增管理员后,请点击右侧【刷新】按钮刷新企业成员,否则不会同步到好办管理员列表。\n ")],1)])]),e._v(" "),e.$getButtonLimit(e.$buttonCode.refreshAdminList)?a("el-button",{attrs:{"limit-code":e.$buttonCode.refreshAdminList,type:"primary"},on:{click:e.refresh}},[e._v("刷新")]):e._e()],1),e._v(" "),a("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.roleList}},[a("el-table-column",{attrs:{prop:"userName",label:"姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"userPhone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"departmentName",label:"部门"}})],1)],1):a("not-manager")],1)},staticRenderFns:[]};var c=a("VU/8")(i,l,!1,function(e){a("Dqgq")},"data-v-17197ffc",null);t.default=c.exports}}); webpackJsonp([120],{Dqgq:function(e,t){},zYBJ:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("P9l9"),s=a("3E4D"),r=a("Ch4/"),o=a("9F6+"),i={props:{},comments:{NotManager:o.default},data:function(){return{wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",roleList:[],isManager:!1}},methods:{changeRoute:function(){this.$router.push("/contactsList")},goto:function(){window.open("https://www.yuque.com/docs/share/89a899fe-caae-41b3-86ea-2435a8066418?#")},changeToggle:function(e){e.expand=!e.expand},getData:function(e){var t=this,a={wxEnterpriseId:this.wxEnterpriseId};Object(n.b)("/haoban-manage3-web/admin-list",a).then(function(e){var a=e.data;1==a.errorCode&&(a.result&&a.result.length&&a.result.forEach(function(e){e.expand=!1}),t.roleList=[],a.result.forEach(function(e){e.roleUser.length&&(t.roleList=t.roleList.concat(e.roleUser))})),t.isManager=10030!=a.errorCode,r.a.errorMsg(a)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},refresh:function(){var e=this;Object(n.b)("/haoban-manage3-web/sync-qywx",{}).then(function(t){s.a.showmsg("刷新成功","success"),e.getData()})}},watch:{},mounted:function(){this.getData()},components:{NotManager:o.default}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-wrap "},[e.isManager?a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"company-title m-b-20 m-t-26 flex flex-space-between flex-align-center"},[a("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title"},[e._v("1.好办管理后台管理员需在企业微信后台添加,"),a("el-button",{staticStyle:{"font-size":"13px"},attrs:{type:"text"},on:{click:e.goto}},[e._v("详情请见")]),e._v(" "),a("br"),e._v("\n 2.企业微信后台新增管理员后,请点击右侧【刷新】按钮刷新企业成员,否则不会同步到好办管理员列表。\n ")],1)])]),e._v(" "),e.$getButtonLimit(e.$buttonCode.refreshAdminList)?a("el-button",{attrs:{"limit-code":e.$buttonCode.refreshAdminList,type:"primary"},on:{click:e.refresh}},[e._v("刷新")]):e._e()],1),e._v(" "),a("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.roleList}},[a("el-table-column",{attrs:{prop:"userName",label:"姓名"}}),e._v(" "),a("el-table-column",{attrs:{prop:"userPhone",label:"手机号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"departmentName",label:"部门"}})],1)],1):a("not-manager")],1)},staticRenderFns:[]};var c=a("VU/8")(i,l,!1,function(e){a("Dqgq")},"data-v-17197ffc",null);t.default=c.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([121],{JbAx:function(t,a){},aWmL:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("3Xzz"),i=e("Qie6"),c=e("Z8ln"),o=e("Ch4/"),r=e("P9l9"),s={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"内购券",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"内购券",path:""}],tabListData:[{tabId:"1",tabName:"卡券模板",icon:"iconmoban"},{tabId:"2",tabName:"卡券策略",icon:"iconcelve"},{tabId:"3",tabName:"内购券投放",icon:"icontoufang2"},{tabId:"4",tabName:"内购券记录",icon:"iconqiaquan",onlyIconActive:!1,children:[{tabId:"41",tabName:"投放记录",icon:""},{tabId:"42",tabName:"领取记录",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(r.b)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?o.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("cardTemplate");break;case"2":this.changeRoute("cardStrategy");break;case"3":this.changeRoute("cardPut");break;case"4":case"41":this.changeRoute("cardPutRecord");break;case"42":this.changeRoute("cardGetRecord")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})},changeNavShow:function(t){"/newCardTemp"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.templateId?"编辑模板":"新建模板",path:""}]:"/newCardStrategy"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.policyId?"编辑策略":"新建策略",path:""}]:"/newCardPut"==t.path?this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:"/cardTemplate"},{name:this.$route.query.repairId?"查看补发":"新建补发",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"内购券",path:""}]}},watch:{$route:{handler:function(t,a){this.changeNavShow(t)},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,commonDetailLeft:i.a,expiredDialog:c.a}},d={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var h=e("VU/8")(s,d,!1,function(t){e("JbAx")},"data-v-125e6edc",null);a.default=h.exports}});
\ No newline at end of file
webpackJsonp([120],{"+qr5":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),o=r.n(a),n=r("PI0u"),s=r("Ch4/"),c=r("3E4D"),l=r("P9l9"),i={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,operationStaffName:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).staffName:"",tableData:[],performanceSum:"0.00",clerkObj:{storeId:"",storeName:"",yearMonth:"",settingAble:1,storePerformance:""},equalFlag:!0}},computed:{},methods:{objectSpanMethod:function(e){e.row,e.column;var t=e.rowIndex;if(2===e.columnIndex)return 0==t?{rowspan:this.tableData.length,colspan:1}:{rowspan:0,colspan:0}},inputPerformance:function(e,t,r){r.clerkPerformance=Number(r.clerkPerformance.replace(/[^\d.]/g,""))?r.clerkPerformance.replace(/[^\d+(.\d+)]/g,""):"",r.clerkPerformance=Number(r.clerkPerformance).toFixed(2);var a=0;this.tableData.forEach(function(e){a+=Number(e.clerkPerformance)}),this.performanceSum=Number(a).toFixed(2),this.diffData()},inputValue:function(e,t){t.performanceValue=Number(String(e).replace(/[^\d.]/g,""))?String(e).replace(/[^\d+(.\d+)]/g,""):"";var r=0;this.tableData.forEach(function(e){r+=Number(e.performanceValue)}),this.performanceSum=Number(r).toFixed(2),this.diffData()},inputMonthPerformance:function(e){this.clerkObj.storePerformance=Number(this.clerkObj.storePerformance.replace(/[^\d.]/g,""))?this.clerkObj.storePerformance.replace(/[^\d+(.\d+)]/g,""):"",this.clerkObj.storePerformance=Number(this.clerkObj.storePerformance).toFixed(2),this.diffData()},diffData:function(){var e=Number(this.performanceSum)==Number(this.clerkObj.storePerformance);return this.equalFlag=!!e,e},saveSet:Object(n.a)(function(){if(!this.diffData())return!1;if(""==this.clerkObj.storePerformance)return this.$message.error({duration:1e3,message:"请输入门店月指标"}),!1;var e={clerkPerformanceList:this.tableData,storePerformance:this.clerkObj.storePerformance,operationStaffName:this.operationStaffName};this.postSave(e)},500),postSave:function(e){var t=this,r={enterpriseId:t.activeBrand,storeId:t.clerkObj.storeId,yearMonth:t.clerkObj.yearMonth,performance:o()(e)};Object(l.g)("/haoban-app-performance-three-web/performance/save-clerk-month-performance",r).then(function(e){var t=e.data;1!=t.errorCode?s.a.errorMsg(t):c.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this,t={enterpriseId:e.activeBrand,storeId:e.clerkObj.storeId,yearMonth:e.clerkObj.yearMonth};Object(l.g)("/haoban-app-performance-three-web/performance/query-clerk-month-performance",t).then(function(t){var r=t.data;if(1==r.errorCode){r.result.clerkPerformanceList&&r.result.clerkPerformanceList.length&&(r.result.clerkPerformanceList.forEach(function(e){e.clerkPerformance=Number(e.clerkPerformance).toFixed(2)}),e.tableData=r.result.clerkPerformanceList||[]),r.result.storePerformance=Number(r.result.storePerformance).toFixed(2),e.clerkObj=r.result;var a=0;return e.tableData.forEach(function(e){a+=Number(e.clerkPerformance)}),void(e.performanceSum=Number(a).toFixed(2))}s.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.clerkObj.yearMonth=this.$route.query.yearMonth,this.clerkObj.storeId=this.$route.query.storeId,this.getData())}},mounted:function(){this.brandId&&(this.clerkObj.yearMonth=this.$route.query.yearMonth,this.clerkObj.storeId=this.$route.query.storeId,this.getData())},components:{}},f={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-detail-wrap common-right-wrap"},[r("div",{staticClass:"task-set-content border-box"},[r("div",{staticClass:"saler-set-title flex flex-space-between m-b-15"},[r("div",{staticClass:"saler-set-title_left"},[r("span",[e._v(e._s(e.clerkObj.yearMonth))]),r("span",{staticClass:"p-l-18"},[e._v(e._s(e.clerkObj.storeName)+"门店导购月指标详情")])])]),e._v(" "),r("div",{staticClass:"saler-set-table"},[r("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{"span-method":e.objectSpanMethod,data:e.tableData,"tooltip-effect":"dark"}},[r("el-table-column",{attrs:{label:"导购"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.clerkName))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"月指标"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("el-input",{staticClass:"w-120 p-l-8",attrs:{maxlength:"12",placeholder:"请输入",disabled:0==e.clerkObj.settingAble||0==t.row.bindFlag},on:{blur:function(r){return e.inputPerformance(r,t.$index,t.row)},input:function(r){return e.inputValue(r,t.row)}},model:{value:t.row.clerkPerformance,callback:function(r){e.$set(t.row,"clerkPerformance",r)},expression:"scope.row.clerkPerformance"}},[r("i",{staticStyle:{"font-style":"normal",position:"absolute",top:"4px",left:"12px"},attrs:{slot:"prefix"},slot:"prefix"},[e._v("¥")])])],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"总计=门店月指标",width:"418px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.$index;return[r("div",{key:a},[r("span",{staticClass:"font-14 color-606266 text-left"},[e._v("总计")]),r("span",{staticClass:" p-l-175 font-14 color-606266 text-left"},[e._v("门店月指标")])]),e._v(" "),r("div",{staticStyle:{"margin-top":"4px"}},[r("el-input",{staticClass:"w-161",attrs:{disabled:""},model:{value:e.performanceSum,callback:function(t){e.performanceSum=t},expression:"performanceSum"}},[r("i",{staticStyle:{"font-style":"normal",position:"absolute",top:"4px",left:"10px"},attrs:{slot:"prefix"},slot:"prefix"},[e._v("¥")])]),e._v(" "),r("span",{staticClass:"p-l-10 p-r-10"},[e._v("=")]),e._v(" "),r("el-input",{staticClass:"w-161 p-l-8",attrs:{maxlength:"50",placeholder:"请输入指标值",disabled:0==e.clerkObj.settingAble},on:{blur:function(t){return e.inputMonthPerformance(t)}},model:{value:e.clerkObj.storePerformance,callback:function(t){e.$set(e.clerkObj,"storePerformance",t)},expression:"clerkObj.storePerformance"}},[r("i",{staticStyle:{"font-style":"normal",position:"absolute",top:"4px",left:"16px"},attrs:{slot:"prefix"},slot:"prefix"},[e._v("¥")])])],1)]}}])})],1)],1),e._v(" "),r("div",{staticClass:"task-set-save text-center m-t-30"},[1==e.clerkObj.settingAble?r("el-button",{attrs:{disabled:!e.equalFlag,type:"primary"},on:{click:e.saveSet}},[e._v("确认")]):e._e()],1)])])},staticRenderFns:[]};var u=r("VU/8")(i,f,!1,function(e){r("6zc5")},"data-v-12c51294",null);t.default=u.exports},"6zc5":function(e,t){}}); webpackJsonp([121],{"+qr5":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),o=r.n(a),n=r("PI0u"),s=r("Ch4/"),c=r("3E4D"),l=r("P9l9"),i={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,operationStaffName:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).staffName:"",tableData:[],performanceSum:"0.00",clerkObj:{storeId:"",storeName:"",yearMonth:"",settingAble:1,storePerformance:""},equalFlag:!0}},computed:{},methods:{objectSpanMethod:function(e){e.row,e.column;var t=e.rowIndex;if(2===e.columnIndex)return 0==t?{rowspan:this.tableData.length,colspan:1}:{rowspan:0,colspan:0}},inputPerformance:function(e,t,r){r.clerkPerformance=Number(r.clerkPerformance.replace(/[^\d.]/g,""))?r.clerkPerformance.replace(/[^\d+(.\d+)]/g,""):"",r.clerkPerformance=Number(r.clerkPerformance).toFixed(2);var a=0;this.tableData.forEach(function(e){a+=Number(e.clerkPerformance)}),this.performanceSum=Number(a).toFixed(2),this.diffData()},inputValue:function(e,t){t.performanceValue=Number(String(e).replace(/[^\d.]/g,""))?String(e).replace(/[^\d+(.\d+)]/g,""):"";var r=0;this.tableData.forEach(function(e){r+=Number(e.performanceValue)}),this.performanceSum=Number(r).toFixed(2),this.diffData()},inputMonthPerformance:function(e){this.clerkObj.storePerformance=Number(this.clerkObj.storePerformance.replace(/[^\d.]/g,""))?this.clerkObj.storePerformance.replace(/[^\d+(.\d+)]/g,""):"",this.clerkObj.storePerformance=Number(this.clerkObj.storePerformance).toFixed(2),this.diffData()},diffData:function(){var e=Number(this.performanceSum)==Number(this.clerkObj.storePerformance);return this.equalFlag=!!e,e},saveSet:Object(n.a)(function(){if(!this.diffData())return!1;if(""==this.clerkObj.storePerformance)return this.$message.error({duration:1e3,message:"请输入门店月指标"}),!1;var e={clerkPerformanceList:this.tableData,storePerformance:this.clerkObj.storePerformance,operationStaffName:this.operationStaffName};this.postSave(e)},500),postSave:function(e){var t=this,r={enterpriseId:t.activeBrand,storeId:t.clerkObj.storeId,yearMonth:t.clerkObj.yearMonth,performance:o()(e)};Object(l.g)("/haoban-app-performance-three-web/performance/save-clerk-month-performance",r).then(function(e){var t=e.data;1!=t.errorCode?s.a.errorMsg(t):c.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var e=this,t={enterpriseId:e.activeBrand,storeId:e.clerkObj.storeId,yearMonth:e.clerkObj.yearMonth};Object(l.g)("/haoban-app-performance-three-web/performance/query-clerk-month-performance",t).then(function(t){var r=t.data;if(1==r.errorCode){r.result.clerkPerformanceList&&r.result.clerkPerformanceList.length&&(r.result.clerkPerformanceList.forEach(function(e){e.clerkPerformance=Number(e.clerkPerformance).toFixed(2)}),e.tableData=r.result.clerkPerformanceList||[]),r.result.storePerformance=Number(r.result.storePerformance).toFixed(2),e.clerkObj=r.result;var a=0;return e.tableData.forEach(function(e){a+=Number(e.clerkPerformance)}),void(e.performanceSum=Number(a).toFixed(2))}s.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.clerkObj.yearMonth=this.$route.query.yearMonth,this.clerkObj.storeId=this.$route.query.storeId,this.getData())}},mounted:function(){this.brandId&&(this.clerkObj.yearMonth=this.$route.query.yearMonth,this.clerkObj.storeId=this.$route.query.storeId,this.getData())},components:{}},f={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"app-detail-wrap common-right-wrap"},[r("div",{staticClass:"task-set-content border-box"},[r("div",{staticClass:"saler-set-title flex flex-space-between m-b-15"},[r("div",{staticClass:"saler-set-title_left"},[r("span",[e._v(e._s(e.clerkObj.yearMonth))]),r("span",{staticClass:"p-l-18"},[e._v(e._s(e.clerkObj.storeName)+"门店导购月指标详情")])])]),e._v(" "),r("div",{staticClass:"saler-set-table"},[r("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:e.tableH},attrs:{"span-method":e.objectSpanMethod,data:e.tableData,"tooltip-effect":"dark"}},[r("el-table-column",{attrs:{label:"导购"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[e._v(e._s(t.row.clerkName))])]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"月指标"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("div",[r("el-input",{staticClass:"w-120 p-l-8",attrs:{maxlength:"12",placeholder:"请输入",disabled:0==e.clerkObj.settingAble||0==t.row.bindFlag},on:{blur:function(r){return e.inputPerformance(r,t.$index,t.row)},input:function(r){return e.inputValue(r,t.row)}},model:{value:t.row.clerkPerformance,callback:function(r){e.$set(t.row,"clerkPerformance",r)},expression:"scope.row.clerkPerformance"}},[r("i",{staticStyle:{"font-style":"normal",position:"absolute",top:"4px",left:"12px"},attrs:{slot:"prefix"},slot:"prefix"},[e._v("¥")])])],1)]}}])}),e._v(" "),r("el-table-column",{attrs:{label:"总计=门店月指标",width:"418px"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.$index;return[r("div",{key:a},[r("span",{staticClass:"font-14 color-606266 text-left"},[e._v("总计")]),r("span",{staticClass:" p-l-175 font-14 color-606266 text-left"},[e._v("门店月指标")])]),e._v(" "),r("div",{staticStyle:{"margin-top":"4px"}},[r("el-input",{staticClass:"w-161",attrs:{disabled:""},model:{value:e.performanceSum,callback:function(t){e.performanceSum=t},expression:"performanceSum"}},[r("i",{staticStyle:{"font-style":"normal",position:"absolute",top:"4px",left:"10px"},attrs:{slot:"prefix"},slot:"prefix"},[e._v("¥")])]),e._v(" "),r("span",{staticClass:"p-l-10 p-r-10"},[e._v("=")]),e._v(" "),r("el-input",{staticClass:"w-161 p-l-8",attrs:{maxlength:"50",placeholder:"请输入指标值",disabled:0==e.clerkObj.settingAble},on:{blur:function(t){return e.inputMonthPerformance(t)}},model:{value:e.clerkObj.storePerformance,callback:function(t){e.$set(e.clerkObj,"storePerformance",t)},expression:"clerkObj.storePerformance"}},[r("i",{staticStyle:{"font-style":"normal",position:"absolute",top:"4px",left:"16px"},attrs:{slot:"prefix"},slot:"prefix"},[e._v("¥")])])],1)]}}])})],1)],1),e._v(" "),r("div",{staticClass:"task-set-save text-center m-t-30"},[1==e.clerkObj.settingAble?r("el-button",{attrs:{disabled:!e.equalFlag,type:"primary"},on:{click:e.saveSet}},[e._v("确认")]):e._e()],1)])])},staticRenderFns:[]};var u=r("VU/8")(i,f,!1,function(e){r("6zc5")},"data-v-12c51294",null);t.default=u.exports},"6zc5":function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([13,39,115],{MtoL:function(e,t){},RXoq:function(e,t){},Uryh:function(e,t){},XZyq:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Dd8w"),o=a.n(r),s=a("Xxa5"),i=a.n(s),n=a("exGp"),l=a.n(n),c=a("PeHS"),u=a("jssv"),d=a("P9l9"),p={name:"actCodeTable",components:{links:u.a},directives:{loadmore:{inserted:function(e,t){e.querySelector(".el-select-dropdown .el-select-dropdown__wrap").addEventListener("scroll",function(){this.clientHeight+this.scrollTop+20>=this.scrollHeight&&t.value()})}}},props:{currentGroupId:{type:[Number,String],default:-1}},data:function(){var e=this;return{tableMaxHeight:document.body.clientHeight-312+"px",inFields:{hmSelect:"",statusFlagInt:"",storeSelect:"",clerkSelect:"",hmTypeInt:"",startTime:"",endTime:"",orderByField:"createTime desc",hmGroupId:"-1"},storeSelect:1,dateTime:[],tableData:[],total:1,totalCount:100,selectPage:{type:0,dataReady:!1},actCodeList:[],loadingStatus:!1,pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()>t.getTime()}},operateBtnArr:[{text:"数据",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.dataActCode))return!0},props:{limitCode:this.$buttonCode.dataActCode},handler:function(t){e.$router.push("/actCodeDetail?hmId="+t.hmId+"&activeName=second")}},{text:"详情",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.infoActCode))return!0},props:{limitCode:this.$buttonCode.infoActCode},handler:function(t){e.$router.push("/actCodeDetails?hmId="+t.hmId)}},{text:"编辑",visible:function(t){return!(!e.$getButtonLimit(e.$buttonCode.editActCode)||2==t.statusFlag)},props:{limitCode:this.$buttonCode.editActCode},handler:function(t){e.$router.push("/actCodeEdit?hmId="+t.hmId)}},{text:"下载活码",visible:function(t){return!(!e.$getButtonLimit(e.$buttonCode.downActCode)||1==t.hmType||1!=t.statusFlag)},props:{limitCode:this.$buttonCode.downActCode},handler:function(e){var t,a,r,o;t=e.hmCode+"_"+e.hmName,a=e.wxQrcode,r=a,(o=new XMLHttpRequest).open("GET",r,!0),o.responseType="blob",o.onload=function(e){var a=new Blob([o.response]),r=window.URL.createObjectURL(a),s=document.createElement("a");s.href=r,s.download=t+".png",s.click()},o.send()}},{text:"作废",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.delActCode)&&2!=t.statusFlag)return!0},props:{limitCode:this.$buttonCode.delActCode},handler:function(t){e.$confirm("此操作将永久废弃该活码,请确保不影响其他投放使用!","确认要作废该活码?",{confirmButtonText:"作废",cancelButtonText:"取消",type:"warning"}).then(function(){e.loadingStatus=!0,Object(d.a)("/haoban-manage3-web/hm/qrcode/del",{hmId:t.hmId}).then(function(t){0==t.data.code&&setTimeout(function(){e.getTableList(),e.loadingStatus=!1},1e3)})})}}],selectLoading:!1,memberList:[],shopList:[],pageParam:{pageSize:20,pageNo:1},sortColumn:"",sortType:"",multipleSelection:[],selectHmIds:[],dialogGroupFormVisible:!1,formGroup:{groupId:[]},groupList:[],pageParamGroup:{groupName:"",pageNum:1,pageSize:20,total:1},name:"",storeParam:{searchParam:"",pageSize:20,currentPage:1,scenes:"integral",creatorId:"",total:1},wxQrcode:"",show:!1}},created:function(){this.searchGroup(),this.getTableList()},activated:function(){this.searchGroup(),this.getTableList()},methods:{storeMemberSe:function(e){1==e?(this.inFields.clerkSelect="",this.memberList=[]):2==e&&(this.inFields.storeSelect="",this.shopList=[])},onLoadmoreStore:function(){this.storeParam.currentPage>=this.storeParam.total||(this.storeParam.currentPage++,this.getStore())},getStore:function(){var e=this;return l()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(d.g)("/api-plug/query-store-by-code-name-new?requestProject=haoban-manage-web",e.storeParam).then(function(t){0==t.data.errorCode&&(e.storeParam.total=t.data.totalCount,Array.isArray(t.data.result.result)&&(e.shopList=e.shopList.concat(t.data.result.result)))});case 2:case"end":return t.stop()}},t,e)}))()},remoteMethods:function(e){""!==e?(this.storeParam.searchParam=e,this.storeParam.currentPage=1,this.shopList=[],this.getStore()):this.shopList=[]},remoteMethodShop:function(e){""!==e?(this.name=e,this.memberList=[],this.getStraff()):this.memberList=[]},getStraff:function(){var e=this;return l()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(d.g)("/api-plug/search-clerk?type=2",{name:e.name}).then(function(t){0==t.data.errorCode&&(e.memberList=t.data.result||[])});case 2:case"end":return t.stop()}},t,e)}))()},onLoadmore:function(){this.pageParamGroup.pageNum>=this.pageParamGroup.total||(this.pageParamGroup.pageNum++,this.searchGroup())},searchGroup:function(){var e=this;return l()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return 1==e.pageParamGroup.pageNum&&(e.groupList=[]),t.next=3,Object(d.b)("/haoban-manage3-web/hm/group/list",e.pageParamGroup).then(function(t){if(0==t.data.code){var a=t.data.result||{},r=a.result,o=a.pages;e.pageParamGroup.total=o,Array.isArray(r)&&(e.groupList=e.groupList.concat(r))}});case 3:case"end":return t.stop()}},t,e)}))()},remoteMethod:function(e){this.pageParamGroup.groupName=e,this.pageParamGroup.pageNum=1,this.groupList=[],this.searchGroup()},visibleChange:function(e){e||this.remoteMethod()},handleSelectionChange:function(e){this.multipleSelection=e,this.selectHmIds=e.map(function(e){return e.hmId})},batchGoupEvent:function(){if(0==this.selectHmIds.length)return this.$message({message:"请先选择活码",type:"warning"});this.dialogGroupFormVisible=!0,this.searchGroup()},batchOK:function(){var e=this;return l()(i.a.mark(function t(){var a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a={hmIds:e.selectHmIds,groupId:e.formGroup.groupId},t.next=3,Object(d.f)("/haoban-manage3-web/hm/qrcode/update/qrcode/group",a).then(function(t){0==t.data.code&&(e.dialogGroupFormVisible=!1,e.$router.go(0))});case 3:case"end":return t.stop()}},t,e)}))()},handleCurrentChange:function(e){this.pageParam.pageNo=e,this.getTableList()},handleSizeChange:function(e){this.pageParam.pageNo=1,this.pageParam.pageSize=e,this.getTableList()},sortChange:function(e){this.sortColumn=e.prop,this.sortType="ascending"==e.order?"asc":"desc",this.inFields.orderByField=this.sortColumn+" "+this.sortType,this.getTableList()},searchListShop:function(){this.shopList=[]},searchList:function(e){this.pageParam.pageNo=1,this.getTableList()},getTableList:function(){var e=this;this.loadingStatus=!0,this.dateTime&&this.dateTime.length?(this.inFields.startTime=this.dateTime?this.dateTime[0]+" 00:00:00":"",this.inFields.endTime=this.dateTime?this.dateTime[1]+" 23:59:59":"",this.inFields.startTime=Date.parse(new Date(this.inFields.startTime).toString()),this.inFields.endTime=Date.parse(new Date(this.inFields.endTime).toString())):(this.inFields.startTime="",this.inFields.endTime=""),this.currentGroupId&&(this.inFields.hmGroupId=this.currentGroupId),""==this.inFields.hmSelect&&delete this.inFields.hmSelect,""==this.inFields.storeSelect&&delete this.inFields.storeSelect,""==this.inFields.clerkSelect&&delete this.inFields.clerkSelect,""==this.inFields.startTime&&delete this.inFields.startTime,""==this.inFields.endTime&&delete this.inFields.endTime;var t=o()({inFields:this.inFields},this.pageParam);this.selectPage.dataReady=!1,Object(c.a)(t).then(function(t){0==t.data.code&&(e.tableData=t.data.result.data||[],e.totalCount=t.data.result.page.totalCount),e.selectPage.dataReady=!0}).finally(function(t){e.loadingStatus=!1})}},watch:{currentGroupId:{handler:function(e){e&&(this.currentGroupId=e,this.pageParam.pageNo=1,this.getTableList())},immediate:!0}}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"}},[a("el-form",{attrs:{inline:""}},[a("el-form-item",[a("el-input",{staticStyle:{width:"260px"},attrs:{placeholder:"请输入活码ID/名称、创建人",clearable:""},on:{change:e.searchList},model:{value:e.inFields.hmSelect,callback:function(t){e.$set(e.inFields,"hmSelect",t)},expression:"inFields.hmSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("el-form-item",[a("el-select",{staticStyle:{width:"128px"},attrs:{placeholder:"请选择"},on:{change:e.storeMemberSe},model:{value:e.storeSelect,callback:function(t){e.storeSelect=t},expression:"storeSelect"}},[a("el-option",{attrs:{label:"成员所属门店",value:1}}),e._v(" "),a("el-option",{attrs:{label:"关联导购",value:2}})],1),e._v(" "),1==e.storeSelect?a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmoreStore,expression:"onLoadmoreStore"}],staticStyle:{"margin-left":"-4px",width:"196px"},attrs:{filterable:"",remote:"",placeholder:"请输入门店名称/code","remote-method":e.remoteMethods,loading:e.selectLoading,clearable:"","popper-class":"s-select"},on:{change:e.searchList,clear:e.searchListShop},model:{value:e.inFields.storeSelect,callback:function(t){e.$set(e.inFields,"storeSelect",t)},expression:"inFields.storeSelect"}},e._l(e.shopList,function(t){return a("el-option",{key:t.storeId,attrs:{label:t.storeName,value:t.storeId}},[a("p",{staticClass:"sname"},[e._v(e._s(t.storeName))]),e._v(" "),a("p",{staticClass:"scode"},[e._v("code:"+e._s(t.storeCode))])])}),1):e._e(),e._v(" "),2==e.storeSelect?a("el-select",{staticStyle:{"margin-left":"-4px",width:"196px"},attrs:{filterable:"",remote:"",placeholder:"请输入成员名称/code","remote-method":e.remoteMethodShop,loading:e.selectLoading,clearable:"","popper-class":"s-select"},on:{change:e.searchList},model:{value:e.inFields.clerkSelect,callback:function(t){e.$set(e.inFields,"clerkSelect",t)},expression:"inFields.clerkSelect"}},e._l(e.memberList,function(t){return a("el-option",{key:t.clerkId,attrs:{label:t.clerkName,value:t.clerkId}},[a("p",{staticClass:"sname"},[e._v(e._s(t.clerkName))]),e._v(" "),a("p",{staticClass:"scode"},[e._v("code:"+e._s(t.clerkCode))])])}),1):e._e()],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"w160",attrs:{placeholder:"全部状态",clearable:""},on:{change:e.searchList},model:{value:e.inFields.statusFlagInt,callback:function(t){e.$set(e.inFields,"statusFlagInt",t)},expression:"inFields.statusFlagInt"}},[a("el-option",{key:1,attrs:{label:"正常",value:1}}),e._v(" "),a("el-option",{key:2,attrs:{label:"作废",value:2}}),e._v(" "),a("el-option",{key:3,attrs:{label:"待生效",value:3}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"w160",attrs:{placeholder:"全部类型",clearable:""},on:{change:e.searchList},model:{value:e.inFields.hmTypeInt,callback:function(t){e.$set(e.inFields,"hmTypeInt",t)},expression:"inFields.hmTypeInt"}},[a("el-option",{key:1,attrs:{label:"单人活码",value:1}}),e._v(" "),a("el-option",{key:2,attrs:{label:"多人活码",value:2}})],1)],1),e._v(" "),a("el-form-item",[a("el-date-picker",{attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期"},on:{change:e.searchList},model:{value:e.dateTime,callback:function(t){e.dateTime=t},expression:"dateTime"}})],1),e._v(" "),a("el-form-item",{staticClass:"frmbt20"},[e.$getButtonLimit(e.$buttonCode.batchGroup)?a("el-button",{attrs:{"limit-code":e.$buttonCode.batchGroup},on:{click:e.batchGoupEvent}},[e._v("批量分组")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.batchActCode)?a("el-button",{staticClass:"ghost-btn ",attrs:{type:"primary","limit-code":e.$buttonCode.batchActCode},on:{click:function(t){return e.$router.push("/actCodeBatch")}}},[e._v("批量创建活码")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.addActCode)?a("el-button",{attrs:{type:"primary","limit-code":e.$buttonCode.addActCode},on:{click:function(t){return e.$router.push("/actCodeAdd")}}},[e._v("新增活码")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingStatus,expression:"loadingStatus"}],ref:"actCodeTableRef",staticClass:"act-code-table",attrs:{data:e.tableData,"max-height":e.tableMaxHeight},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection","min-width":"60",fixed:""}}),e._v(" "),a("el-table-column",{attrs:{label:"活码ID",fixed:"","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.hmCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活码信息","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",{staticClass:"overflow-ellipsis",attrs:{title:r.hmName}},[e._v(e._s(r.hmName?r.hmName:"--"))]),e._v(" "),a("p",[1==r.hmType?a("span",{staticClass:"oneActCode"},[e._v("单人活码")]):a("span",{staticClass:"moreActCOde"},[e._v("多人活码")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活码状态","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[1==r.statusFlag?a("span",{staticClass:"dot normal"},[e._v("正常")]):e._e(),2==r.statusFlag?a("span",{staticClass:"dot voided"},[e._v("作废")]):e._e(),3==r.statusFlag?a("span",{staticClass:"dot needSure"},[e._v("待生效")]):e._e()]),e._v(" "),1==r.overFlag?a("p",{staticClass:"toTopTip"},[e._v("(今日已达上限)")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"添加好友人数",prop:"addNumT",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.addNumT?r.addNumT:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"今日新增人数",prop:"addNum",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.addNum?r.addNum:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"关联导购","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(r.clerkList[0]?r.clerkList[0].clerkName:"--"))]),e._v(" "),a("p",{staticClass:"ft-12 phone overflow-ellipsis"},[e._v(e._s(r.clerkList[0]?"code:"+r.clerkList[0].clerkCode:"--"))]),e._v(" "),r.clerkList&&r.clerkList.length>1?a("p",[a("el-popover",{attrs:{width:"200",trigger:"click"}},[a("ul",{staticClass:"userMember-ul"},e._l(r.clerkList,function(t){return a("li",{key:t.clerkId,staticClass:"userMemberLi"},[a("p",{staticClass:"ulName"},[e._v(e._s(t.clerkName))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v("code:"+e._s(t.clerkCode))])])}),0),e._v(" "),a("el-button",{staticClass:"ft-12",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("查看更多")])],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"成员所属门店","min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(r.storeList[0]?r.storeList[0].storeName:"--"))]),e._v(" "),a("p",{staticClass:"ft-12 phone overflow-ellipsis"},[e._v(e._s(r.storeList[0]?"code:"+r.storeList[0].storeCode:"--"))]),e._v(" "),r.storeList&&r.storeList.length>1?a("p",[a("el-popover",{attrs:{width:"200",trigger:"click"}},[a("ul",{staticClass:"userMember-ul"},e._l(r.storeList,function(t){return a("li",{key:t.storeId,staticClass:"userMemberLi"},[a("p",{staticClass:"ulName"},[e._v(e._s(t.storeName))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v("code:"+e._s(t.storeCode))])])}),0),e._v(" "),a("el-button",{staticClass:"ft-12",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("查看更多")])],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"所属分组","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(r.hmGroupName?r.hmGroupName:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建人","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(r.creatorName?r.creatorName:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime",sortable:"custom","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return r.createTime?[a("div",[e._v(e._s(e._f("timeStampToYmd")(r.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("timeStampToHms")(r.createTime)))])]:void 0}}],!0)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"160",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("dm-dropdown",{attrs:{"scope-data":r,max:3,configs:e.operateBtnArr}})]}}])})],1),e._v(" "),e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","page-size":e.pageParam.pageSize,"current-page":e.pageParam.pageNo,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[20,40,60,80],total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.pageParam,"pageSize",t)},"update:page-size":function(t){return e.$set(e.pageParam,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.pageParam,"pageNo",t)},"update:current-page":function(t){return e.$set(e.pageParam,"pageNo",t)}}})],1):e._e(),e._v(" "),a("el-dialog",{attrs:{title:"选择分组",visible:e.dialogGroupFormVisible,width:"500px"},on:{"update:visible":function(t){e.dialogGroupFormVisible=t}}},[a("el-form",{attrs:{model:e.formGroup}},[a("el-form-item",{attrs:{label:"活码分组",rules:[{required:!0,message:"请选择分组",trigger:"blur"}]}},[a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmore,expression:"onLoadmore"}],staticClass:"chooseGroup",attrs:{placeholder:"选择分组",filterable:"","filter-method":e.remoteMethod,clearable:""},on:{"visible-change":e.visibleChange},model:{value:e.formGroup.groupId,callback:function(t){e.$set(e.formGroup,"groupId",t)},expression:"formGroup.groupId"}},e._l(e.groupList,function(e){return a("el-option",{key:e.groupId,attrs:{label:e.groupName,value:e.groupId}})}),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogGroupFormVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.batchOK}},[e._v("确 定")])],1)],1),e._v(" "),a("links",{attrs:{src:e.wxQrcode,show:e.show,imageName:e.imageName,sourceType:!1},on:{"update:show":function(t){e.show=t}}})],1)},staticRenderFns:[]};var h=a("VU/8")(p,m,!1,function(e){a("MtoL"),a("Uryh")},"data-v-76c52662",null);t.default=h.exports},rvwt:function(e,t){},t6Nl:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Dd8w"),o=a.n(r),s=a("Xxa5"),i=a.n(s),n=a("exGp"),l=a.n(n),c=a("PeHS"),u=a("P9l9"),d={name:"staffActCodeGroupList",data:function(){var e,t=this;return{searchTip:!1,groupLoading:!1,currentListItemUuid:-1,groupList:[],scrollLoad:!1,title:"新增分组",addOrEditGroupDialog:!1,groupListForm:{groupName:"",groupId:""},groupListFormRules:{groupName:[{required:!0,message:"请输入分组名称",trigger:"blur"},{validator:(e=l()(i.a.mark(function e(a,r,o){return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(u.b)("/haoban-manage3-web/hm/group/check/name",{groupName:t.groupListForm.groupName}).then(function(e){if(t.checkNameLength=e.data.result.length,t.isEditGroup){var a=e.data.result.map(function(e){return e.groupName});t.checkNameLength>0&&t.editNamePre!=a&&o(new Error("该分组名称已存在,请重新输入")),o()}else t.checkNameLength>0&&o(new Error("该分组名称已存在,请重新输入")),o()});case 2:case"end":return e.stop()}},e,t)})),function(t,a,r){return e.apply(this,arguments)}),trigger:"blur"}]},isEditGroup:!1,allPageNum:1,pageP:{groupName:"",pageNum:1,pageSize:40},checkNameLength:-1,editNamePre:""}},created:function(){this.searchGroup()},activated:function(){this.searchGroup()},methods:{onSearch:function(){this.pageP.pageNum=1,this.searchGroup()},load:function(){this.pageP.pageNum<this.allPageNum&&(this.pageP.pageNum++,this.searchGroup())},clickGroupListItem:function(e){this.currentListItemUuid=e.groupId,this.$emit("updateList",this.currentListItemUuid)},isShowGroupListItemMore:function(e){return![1,2].includes(e.groupId)},addGroup:function(){var e=this;this.scrollLoad=!1,this.isEditGroup=!1,this.groupListForm={groupName:"",groupId:""},this.$nextTick(function(){e.$refs.groupListForm.clearValidate()}),this.addOrEditGroupDialog=!0},editGroupListItem:function(e){var t=this;this.isEditGroup=!0,this.editNamePre=e.groupName,this.$nextTick(function(){t.$refs.groupListForm.clearValidate()}),this.addOrEditGroupDialog=!0,this.groupListForm=o()({},e)},delGroupListItem:function(e){var t=this;this.$confirm("分组删除后,创建号活码时将无法选取到该分组,是否继续删除?","删除提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){if(!(t.groupList.findIndex(function(t){return t.groupId===e.groupId})<0)){var a={groupId:e.groupId};Object(c.d)(a).then(function(a){0==a.data.code&&(t.$message({type:"success",message:"删除成功!"}),t.currentListItemUuid==e.groupId&&(t.pageP.pageNum=1,t.currentListItemUuid=-1,t.$emit("updateList",t.currentListItemUuid)),t.pageP.pageNum=1,t.searchGroup())})}}).catch(function(){})},handleGroupListItem:function(){var e,t=this;this.$refs.groupListForm.validate((e=l()(i.a.mark(function e(a){var r,o,s,n;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=15;break}if(r={},o=(t.isEditGroup?"修改":"新增")+"成功",!t.isEditGroup){e.next=10;break}return s={groupId:t.groupListForm.groupId,groupName:t.groupListForm.groupName},e.next=7,Object(c.f)(s);case 7:r=e.sent,e.next=14;break;case 10:return n={groupName:t.groupListForm.groupName},e.next=13,Object(c.b)(n);case 13:r=e.sent;case 14:0==r.data.code?(t.$message({type:"success",message:o,duration:1e3}),t.isEditGroup&&(t.groupList.find(function(e){return e.groupId==t.groupListForm.groupId}).groupName=t.groupListForm.groupName),t.pageP.pageNum=1,t.searchGroup(),t.addOrEditGroupDialog=!1):t.$message({type:"warning",message:r.data.message});case 15:case"end":return e.stop()}},e,t)})),function(t){return e.apply(this,arguments)}))},searchGroup:function(e){var t=this;return l()(i.a.mark(function e(){var a;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.groupLoading=!0,e.next=3,Object(u.b)("/haoban-manage3-web/hm/group/refer/count",{});case 3:return a=e.sent,1==t.pageP.pageNum&&(t.groupList=[{groupName:"全部分组",referNum:"",groupId:"-1"}],t.groupList[0].referNum=a.data.result),String(t.pageP.groupName)&&(t.pageP.pageNum=1,t.groupList=[]),e.next=8,Object(u.b)("/haoban-manage3-web/hm/group/list",t.pageP).then(function(e){if(0==e.data.code){var a=e.data.result||{},r=a.result,o=a.pages;t.groupList=t.groupList.concat(r),""==t.pageP.groupName?t.searchTip=!1:""!=t.pageP.groupName&&t.groupList.length<=0&&(t.searchTip=!0),t.allPageNum=o||1,t.groupLoading=!1}});case 8:case"end":return e.stop()}},e,t)}))()}}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[a("div",{staticClass:"mb-10 mt-20 pl-16 pr-15"},[a("el-input",{attrs:{placeholder:"请输入分组名称",maxlength:"50",clearable:""},on:{change:e.onSearch},model:{value:e.pageP.groupName,callback:function(t){e.$set(e.pageP,"groupName",t)},expression:"pageP.groupName"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"lists-content-box infinite-list-wrapper"},[a("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.load,expression:"load"}],staticClass:"list",attrs:{"infinite-scroll-disabled":"scrollLoad","infinite-scroll-immediate":"false","infinite-scroll-distance":"1"}},[e._l(e.groupList,function(t){return a("li",{key:t.groupId,class:["list-item","member-list",{"active-li":t.groupId==e.currentListItemUuid}],on:{click:function(a){return e.clickGroupListItem(t)}}},[a("div",{staticClass:"wrap"},[a("span",{staticClass:"listItemName overflow-ellipsis",attrs:{title:t.groupName}},[e._v(e._s(t.groupName))]),e._v(" "),a("span",[e._v(e._s("("+t.referNum+")"))])]),e._v(" "),e.isShowGroupListItemMore(t)?a("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[a("p",{staticClass:"more",on:{click:function(a){return e.editGroupListItem(t)}}},[e._v("编辑")]),e._v(" "),t.referNum?e._e():a("p",{staticClass:"more",on:{click:function(a){return e.delGroupListItem(t)}}},[e._v("删除")]),e._v(" "),"全部分组"!=t.groupName&&"默认分组"!=t.groupName?a("i",{staticClass:"iconfont-hb3 icongengduo3 icon iconhover",attrs:{slot:"reference"},slot:"reference"}):e._e()]):e._e()],1)}),e._v(" "),a("li",[e.groupLoading?a("div",{staticClass:"el-loading-spinner",staticStyle:{width:"86%"}},[a("i",{staticClass:"el-icon-loading"})]):e._e()])],2),e._v(" "),e.searchTip?a("p",{staticClass:"searchTip"},[e._v("没有找到和“"+e._s(e.pageP.groupName)+"”相关的内容")]):e._e()]),e._v(" "),e.groupList.length>1?a("div",{staticClass:"add-category"},[a("el-button",{staticClass:"ghost-btn add-group",attrs:{type:"primary"},on:{click:e.addGroup}},[e._v("新增分组")])],1):e._e(),e._v(" "),a("el-dialog",{attrs:{title:e.isEditGroup?"编辑分组":"新增分组",visible:e.addOrEditGroupDialog,width:"500px",top:"30vh","close-on-click-modal":!1},on:{"update:visible":function(t){e.addOrEditGroupDialog=t}}},[a("el-form",{ref:"groupListForm",attrs:{model:e.groupListForm,rules:e.groupListFormRules}},[a("el-form-item",{attrs:{label:"分组名称",prop:"groupName"}},[a("el-input",{attrs:{placeholder:"请输入分组名称",maxlength:10,"show-word-limit":"",clearable:""},model:{value:e.groupListForm.groupName,callback:function(t){e.$set(e.groupListForm,"groupName",t)},expression:"groupListForm.groupName"}})],1),e._v(" "),a("p",{directives:[{name:"show",rawName:"v-show",value:!e.isEditGroup,expression:"!isEditGroup"}],staticClass:"addGroupTip"},[e._v('分组名称不可重复,建议"创建人姓名-分组名称"')])],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.addOrEditGroupDialog=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.handleGroupListItem}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var m=a("VU/8")(d,p,!1,function(e){a("RXoq")},"data-v-192f497d",null);t.default=m.exports},tVK0:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("t6Nl"),o=a("XZyq"),s={name:"staffActCode",components:{GroupList:r.default,ActCodeTable:o.default},data:function(){return{currentGroupId:null}},methods:{getCurrentGroupID:function(e){this.currentGroupId=e}},watch:{currentGroupId:{handler:function(e){this.currentGroupId=e},immediate:!0}}},i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("section",{staticClass:"app-detail-wrap"},[t("div",{staticClass:"border-box"},[t("div",{staticClass:"list-body flex"},[t("div",{staticClass:"list-left border-box"},[t("group-list",{ref:"groupListRef",on:{updateList:this.getCurrentGroupID}})],1),this._v(" "),t("div",{staticClass:"list-right p-20 border-box"},[t("dm-sub-title",{staticClass:"m-b-10",attrs:{text:"配置标签"}},[t("div",{staticClass:"title"},[t("span",[this._v("员工活码")]),this._v(" "),t("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:codeList",arg:"codeList"}],attrs:{type:"text"}},[t("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),this._v("指标说明")])],1)]),this._v(" "),t("act-code-table",{attrs:{currentGroupId:this.currentGroupId}})],1)])])])},staticRenderFns:[]};var n=a("VU/8")(s,i,!1,function(e){a("rvwt")},"data-v-38d73068",null);t.default=n.exports}}); webpackJsonp([13,41,116],{MtoL:function(e,t){},RXoq:function(e,t){},Uryh:function(e,t){},XZyq:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Dd8w"),o=a.n(r),s=a("Xxa5"),i=a.n(s),n=a("exGp"),l=a.n(n),c=a("PeHS"),u=a("jssv"),d=a("P9l9"),p={name:"actCodeTable",components:{links:u.a},directives:{loadmore:{inserted:function(e,t){e.querySelector(".el-select-dropdown .el-select-dropdown__wrap").addEventListener("scroll",function(){this.clientHeight+this.scrollTop+20>=this.scrollHeight&&t.value()})}}},props:{currentGroupId:{type:[Number,String],default:-1}},data:function(){var e=this;return{tableMaxHeight:document.body.clientHeight-312+"px",inFields:{hmSelect:"",statusFlagInt:"",storeSelect:"",clerkSelect:"",hmTypeInt:"",startTime:"",endTime:"",orderByField:"createTime desc",hmGroupId:"-1"},storeSelect:1,dateTime:[],tableData:[],total:1,totalCount:100,selectPage:{type:0,dataReady:!1},actCodeList:[],loadingStatus:!1,pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()>t.getTime()}},operateBtnArr:[{text:"数据",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.dataActCode))return!0},props:{limitCode:this.$buttonCode.dataActCode},handler:function(t){e.$router.push("/actCodeDetail?hmId="+t.hmId+"&activeName=second")}},{text:"详情",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.infoActCode))return!0},props:{limitCode:this.$buttonCode.infoActCode},handler:function(t){e.$router.push("/actCodeDetails?hmId="+t.hmId)}},{text:"编辑",visible:function(t){return!(!e.$getButtonLimit(e.$buttonCode.editActCode)||2==t.statusFlag)},props:{limitCode:this.$buttonCode.editActCode},handler:function(t){e.$router.push("/actCodeEdit?hmId="+t.hmId)}},{text:"下载活码",visible:function(t){return!(!e.$getButtonLimit(e.$buttonCode.downActCode)||1==t.hmType||1!=t.statusFlag)},props:{limitCode:this.$buttonCode.downActCode},handler:function(e){var t,a,r,o;t=e.hmCode+"_"+e.hmName,a=e.wxQrcode,r=a,(o=new XMLHttpRequest).open("GET",r,!0),o.responseType="blob",o.onload=function(e){var a=new Blob([o.response]),r=window.URL.createObjectURL(a),s=document.createElement("a");s.href=r,s.download=t+".png",s.click()},o.send()}},{text:"作废",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.delActCode)&&2!=t.statusFlag)return!0},props:{limitCode:this.$buttonCode.delActCode},handler:function(t){e.$confirm("此操作将永久废弃该活码,请确保不影响其他投放使用!","确认要作废该活码?",{confirmButtonText:"作废",cancelButtonText:"取消",type:"warning"}).then(function(){e.loadingStatus=!0,Object(d.a)("/haoban-manage3-web/hm/qrcode/del",{hmId:t.hmId}).then(function(t){0==t.data.code&&setTimeout(function(){e.getTableList(),e.loadingStatus=!1},1e3)})})}}],selectLoading:!1,memberList:[],shopList:[],pageParam:{pageSize:20,pageNo:1},sortColumn:"",sortType:"",multipleSelection:[],selectHmIds:[],dialogGroupFormVisible:!1,formGroup:{groupId:[]},groupList:[],pageParamGroup:{groupName:"",pageNum:1,pageSize:20,total:1},name:"",storeParam:{searchParam:"",pageSize:20,currentPage:1,scenes:"integral",creatorId:"",total:1},wxQrcode:"",show:!1}},created:function(){this.searchGroup(),this.getTableList()},activated:function(){this.searchGroup(),this.getTableList()},methods:{storeMemberSe:function(e){1==e?(this.inFields.clerkSelect="",this.memberList=[]):2==e&&(this.inFields.storeSelect="",this.shopList=[])},onLoadmoreStore:function(){this.storeParam.currentPage>=this.storeParam.total||(this.storeParam.currentPage++,this.getStore())},getStore:function(){var e=this;return l()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(d.g)("/api-plug/query-store-by-code-name-new?requestProject=haoban-manage-web",e.storeParam).then(function(t){0==t.data.errorCode&&(e.storeParam.total=t.data.totalCount,Array.isArray(t.data.result.result)&&(e.shopList=e.shopList.concat(t.data.result.result)))});case 2:case"end":return t.stop()}},t,e)}))()},remoteMethods:function(e){""!==e?(this.storeParam.searchParam=e,this.storeParam.currentPage=1,this.shopList=[],this.getStore()):this.shopList=[]},remoteMethodShop:function(e){""!==e?(this.name=e,this.memberList=[],this.getStraff()):this.memberList=[]},getStraff:function(){var e=this;return l()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(d.g)("/api-plug/search-clerk?type=2",{name:e.name}).then(function(t){0==t.data.errorCode&&(e.memberList=t.data.result||[])});case 2:case"end":return t.stop()}},t,e)}))()},onLoadmore:function(){this.pageParamGroup.pageNum>=this.pageParamGroup.total||(this.pageParamGroup.pageNum++,this.searchGroup())},searchGroup:function(){var e=this;return l()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return 1==e.pageParamGroup.pageNum&&(e.groupList=[]),t.next=3,Object(d.b)("/haoban-manage3-web/hm/group/list",e.pageParamGroup).then(function(t){if(0==t.data.code){var a=t.data.result||{},r=a.result,o=a.pages;e.pageParamGroup.total=o,Array.isArray(r)&&(e.groupList=e.groupList.concat(r))}});case 3:case"end":return t.stop()}},t,e)}))()},remoteMethod:function(e){this.pageParamGroup.groupName=e,this.pageParamGroup.pageNum=1,this.groupList=[],this.searchGroup()},visibleChange:function(e){e||this.remoteMethod()},handleSelectionChange:function(e){this.multipleSelection=e,this.selectHmIds=e.map(function(e){return e.hmId})},batchGoupEvent:function(){if(0==this.selectHmIds.length)return this.$message({message:"请先选择活码",type:"warning"});this.dialogGroupFormVisible=!0,this.searchGroup()},batchOK:function(){var e=this;return l()(i.a.mark(function t(){var a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a={hmIds:e.selectHmIds,groupId:e.formGroup.groupId},t.next=3,Object(d.f)("/haoban-manage3-web/hm/qrcode/update/qrcode/group",a).then(function(t){0==t.data.code&&(e.dialogGroupFormVisible=!1,e.$router.go(0))});case 3:case"end":return t.stop()}},t,e)}))()},handleCurrentChange:function(e){this.pageParam.pageNo=e,this.getTableList()},handleSizeChange:function(e){this.pageParam.pageNo=1,this.pageParam.pageSize=e,this.getTableList()},sortChange:function(e){this.sortColumn=e.prop,this.sortType="ascending"==e.order?"asc":"desc",this.inFields.orderByField=this.sortColumn+" "+this.sortType,this.getTableList()},searchListShop:function(){this.shopList=[]},searchList:function(e){this.pageParam.pageNo=1,this.getTableList()},getTableList:function(){var e=this;this.loadingStatus=!0,this.dateTime&&this.dateTime.length?(this.inFields.startTime=this.dateTime?this.dateTime[0]+" 00:00:00":"",this.inFields.endTime=this.dateTime?this.dateTime[1]+" 23:59:59":"",this.inFields.startTime=Date.parse(new Date(this.inFields.startTime).toString()),this.inFields.endTime=Date.parse(new Date(this.inFields.endTime).toString())):(this.inFields.startTime="",this.inFields.endTime=""),this.currentGroupId&&(this.inFields.hmGroupId=this.currentGroupId),""==this.inFields.hmSelect&&delete this.inFields.hmSelect,""==this.inFields.storeSelect&&delete this.inFields.storeSelect,""==this.inFields.clerkSelect&&delete this.inFields.clerkSelect,""==this.inFields.startTime&&delete this.inFields.startTime,""==this.inFields.endTime&&delete this.inFields.endTime;var t=o()({inFields:this.inFields},this.pageParam);this.selectPage.dataReady=!1,Object(c.a)(t).then(function(t){0==t.data.code&&(e.tableData=t.data.result.data||[],e.totalCount=t.data.result.page.totalCount),e.selectPage.dataReady=!0}).finally(function(t){e.loadingStatus=!1})}},watch:{currentGroupId:{handler:function(e){e&&(this.currentGroupId=e,this.pageParam.pageNo=1,this.getTableList())},immediate:!0}}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"}},[a("el-form",{attrs:{inline:""}},[a("el-form-item",[a("el-input",{staticStyle:{width:"260px"},attrs:{placeholder:"请输入活码ID/名称、创建人",clearable:""},on:{change:e.searchList},model:{value:e.inFields.hmSelect,callback:function(t){e.$set(e.inFields,"hmSelect",t)},expression:"inFields.hmSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("el-form-item",[a("el-select",{staticStyle:{width:"128px"},attrs:{placeholder:"请选择"},on:{change:e.storeMemberSe},model:{value:e.storeSelect,callback:function(t){e.storeSelect=t},expression:"storeSelect"}},[a("el-option",{attrs:{label:"成员所属门店",value:1}}),e._v(" "),a("el-option",{attrs:{label:"关联导购",value:2}})],1),e._v(" "),1==e.storeSelect?a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmoreStore,expression:"onLoadmoreStore"}],staticStyle:{"margin-left":"-4px",width:"196px"},attrs:{filterable:"",remote:"",placeholder:"请输入门店名称/code","remote-method":e.remoteMethods,loading:e.selectLoading,clearable:"","popper-class":"s-select"},on:{change:e.searchList,clear:e.searchListShop},model:{value:e.inFields.storeSelect,callback:function(t){e.$set(e.inFields,"storeSelect",t)},expression:"inFields.storeSelect"}},e._l(e.shopList,function(t){return a("el-option",{key:t.storeId,attrs:{label:t.storeName,value:t.storeId}},[a("p",{staticClass:"sname"},[e._v(e._s(t.storeName))]),e._v(" "),a("p",{staticClass:"scode"},[e._v("code:"+e._s(t.storeCode))])])}),1):e._e(),e._v(" "),2==e.storeSelect?a("el-select",{staticStyle:{"margin-left":"-4px",width:"196px"},attrs:{filterable:"",remote:"",placeholder:"请输入成员名称/code","remote-method":e.remoteMethodShop,loading:e.selectLoading,clearable:"","popper-class":"s-select"},on:{change:e.searchList},model:{value:e.inFields.clerkSelect,callback:function(t){e.$set(e.inFields,"clerkSelect",t)},expression:"inFields.clerkSelect"}},e._l(e.memberList,function(t){return a("el-option",{key:t.clerkId,attrs:{label:t.clerkName,value:t.clerkId}},[a("p",{staticClass:"sname"},[e._v(e._s(t.clerkName))]),e._v(" "),a("p",{staticClass:"scode"},[e._v("code:"+e._s(t.clerkCode))])])}),1):e._e()],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"w160",attrs:{placeholder:"全部状态",clearable:""},on:{change:e.searchList},model:{value:e.inFields.statusFlagInt,callback:function(t){e.$set(e.inFields,"statusFlagInt",t)},expression:"inFields.statusFlagInt"}},[a("el-option",{key:1,attrs:{label:"正常",value:1}}),e._v(" "),a("el-option",{key:2,attrs:{label:"作废",value:2}}),e._v(" "),a("el-option",{key:3,attrs:{label:"待生效",value:3}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"w160",attrs:{placeholder:"全部类型",clearable:""},on:{change:e.searchList},model:{value:e.inFields.hmTypeInt,callback:function(t){e.$set(e.inFields,"hmTypeInt",t)},expression:"inFields.hmTypeInt"}},[a("el-option",{key:1,attrs:{label:"单人活码",value:1}}),e._v(" "),a("el-option",{key:2,attrs:{label:"多人活码",value:2}})],1)],1),e._v(" "),a("el-form-item",[a("el-date-picker",{attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期"},on:{change:e.searchList},model:{value:e.dateTime,callback:function(t){e.dateTime=t},expression:"dateTime"}})],1),e._v(" "),a("el-form-item",{staticClass:"frmbt20"},[e.$getButtonLimit(e.$buttonCode.batchGroup)?a("el-button",{attrs:{"limit-code":e.$buttonCode.batchGroup},on:{click:e.batchGoupEvent}},[e._v("批量分组")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.batchActCode)?a("el-button",{staticClass:"ghost-btn ",attrs:{type:"primary","limit-code":e.$buttonCode.batchActCode},on:{click:function(t){return e.$router.push("/actCodeBatch")}}},[e._v("批量创建活码")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.addActCode)?a("el-button",{attrs:{type:"primary","limit-code":e.$buttonCode.addActCode},on:{click:function(t){return e.$router.push("/actCodeAdd")}}},[e._v("新增活码")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingStatus,expression:"loadingStatus"}],ref:"actCodeTableRef",staticClass:"act-code-table",attrs:{data:e.tableData,"max-height":e.tableMaxHeight},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection","min-width":"60",fixed:""}}),e._v(" "),a("el-table-column",{attrs:{label:"活码ID",fixed:"","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.hmCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活码信息","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",{staticClass:"overflow-ellipsis",attrs:{title:r.hmName}},[e._v(e._s(r.hmName?r.hmName:"--"))]),e._v(" "),a("p",[1==r.hmType?a("span",{staticClass:"oneActCode"},[e._v("单人活码")]):a("span",{staticClass:"moreActCOde"},[e._v("多人活码")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活码状态","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[1==r.statusFlag?a("span",{staticClass:"dot normal"},[e._v("正常")]):e._e(),2==r.statusFlag?a("span",{staticClass:"dot voided"},[e._v("作废")]):e._e(),3==r.statusFlag?a("span",{staticClass:"dot needSure"},[e._v("待生效")]):e._e()]),e._v(" "),1==r.overFlag?a("p",{staticClass:"toTopTip"},[e._v("(今日已达上限)")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"添加好友人数",prop:"addNumT",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.addNumT?r.addNumT:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"今日新增人数",prop:"addNum",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",[e._v(e._s(r.addNum?r.addNum:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"关联导购","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(r.clerkList[0]?r.clerkList[0].clerkName:"--"))]),e._v(" "),a("p",{staticClass:"ft-12 phone overflow-ellipsis"},[e._v(e._s(r.clerkList[0]?"code:"+r.clerkList[0].clerkCode:"--"))]),e._v(" "),r.clerkList&&r.clerkList.length>1?a("p",[a("el-popover",{attrs:{width:"200",trigger:"click"}},[a("ul",{staticClass:"userMember-ul"},e._l(r.clerkList,function(t){return a("li",{key:t.clerkId,staticClass:"userMemberLi"},[a("p",{staticClass:"ulName"},[e._v(e._s(t.clerkName))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v("code:"+e._s(t.clerkCode))])])}),0),e._v(" "),a("el-button",{staticClass:"ft-12",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("查看更多")])],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"成员所属门店","min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(r.storeList[0]?r.storeList[0].storeName:"--"))]),e._v(" "),a("p",{staticClass:"ft-12 phone overflow-ellipsis"},[e._v(e._s(r.storeList[0]?"code:"+r.storeList[0].storeCode:"--"))]),e._v(" "),r.storeList&&r.storeList.length>1?a("p",[a("el-popover",{attrs:{width:"200",trigger:"click"}},[a("ul",{staticClass:"userMember-ul"},e._l(r.storeList,function(t){return a("li",{key:t.storeId,staticClass:"userMemberLi"},[a("p",{staticClass:"ulName"},[e._v(e._s(t.storeName))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v("code:"+e._s(t.storeCode))])])}),0),e._v(" "),a("el-button",{staticClass:"ft-12",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("查看更多")])],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"所属分组","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(r.hmGroupName?r.hmGroupName:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建人","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(r.creatorName?r.creatorName:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime",sortable:"custom","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return r.createTime?[a("div",[e._v(e._s(e._f("timeStampToYmd")(r.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("timeStampToHms")(r.createTime)))])]:void 0}}],!0)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"160",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.row;return[a("dm-dropdown",{attrs:{"scope-data":r,max:3,configs:e.operateBtnArr}})]}}])})],1),e._v(" "),e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","page-size":e.pageParam.pageSize,"current-page":e.pageParam.pageNo,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[20,40,60,80],total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.pageParam,"pageSize",t)},"update:page-size":function(t){return e.$set(e.pageParam,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.pageParam,"pageNo",t)},"update:current-page":function(t){return e.$set(e.pageParam,"pageNo",t)}}})],1):e._e(),e._v(" "),a("el-dialog",{attrs:{title:"选择分组",visible:e.dialogGroupFormVisible,width:"500px"},on:{"update:visible":function(t){e.dialogGroupFormVisible=t}}},[a("el-form",{attrs:{model:e.formGroup}},[a("el-form-item",{attrs:{label:"活码分组",rules:[{required:!0,message:"请选择分组",trigger:"blur"}]}},[a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmore,expression:"onLoadmore"}],staticClass:"chooseGroup",attrs:{placeholder:"选择分组",filterable:"","filter-method":e.remoteMethod,clearable:""},on:{"visible-change":e.visibleChange},model:{value:e.formGroup.groupId,callback:function(t){e.$set(e.formGroup,"groupId",t)},expression:"formGroup.groupId"}},e._l(e.groupList,function(e){return a("el-option",{key:e.groupId,attrs:{label:e.groupName,value:e.groupId}})}),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogGroupFormVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.batchOK}},[e._v("确 定")])],1)],1),e._v(" "),a("links",{attrs:{src:e.wxQrcode,show:e.show,imageName:e.imageName,sourceType:!1},on:{"update:show":function(t){e.show=t}}})],1)},staticRenderFns:[]};var h=a("VU/8")(p,m,!1,function(e){a("MtoL"),a("Uryh")},"data-v-76c52662",null);t.default=h.exports},rvwt:function(e,t){},t6Nl:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Dd8w"),o=a.n(r),s=a("Xxa5"),i=a.n(s),n=a("exGp"),l=a.n(n),c=a("PeHS"),u=a("P9l9"),d={name:"staffActCodeGroupList",data:function(){var e,t=this;return{searchTip:!1,groupLoading:!1,currentListItemUuid:-1,groupList:[],scrollLoad:!1,title:"新增分组",addOrEditGroupDialog:!1,groupListForm:{groupName:"",groupId:""},groupListFormRules:{groupName:[{required:!0,message:"请输入分组名称",trigger:"blur"},{validator:(e=l()(i.a.mark(function e(a,r,o){return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(u.b)("/haoban-manage3-web/hm/group/check/name",{groupName:t.groupListForm.groupName}).then(function(e){if(t.checkNameLength=e.data.result.length,t.isEditGroup){var a=e.data.result.map(function(e){return e.groupName});t.checkNameLength>0&&t.editNamePre!=a&&o(new Error("该分组名称已存在,请重新输入")),o()}else t.checkNameLength>0&&o(new Error("该分组名称已存在,请重新输入")),o()});case 2:case"end":return e.stop()}},e,t)})),function(t,a,r){return e.apply(this,arguments)}),trigger:"blur"}]},isEditGroup:!1,allPageNum:1,pageP:{groupName:"",pageNum:1,pageSize:40},checkNameLength:-1,editNamePre:""}},created:function(){this.searchGroup()},activated:function(){this.searchGroup()},methods:{onSearch:function(){this.pageP.pageNum=1,this.searchGroup()},load:function(){this.pageP.pageNum<this.allPageNum&&(this.pageP.pageNum++,this.searchGroup())},clickGroupListItem:function(e){this.currentListItemUuid=e.groupId,this.$emit("updateList",this.currentListItemUuid)},isShowGroupListItemMore:function(e){return![1,2].includes(e.groupId)},addGroup:function(){var e=this;this.scrollLoad=!1,this.isEditGroup=!1,this.groupListForm={groupName:"",groupId:""},this.$nextTick(function(){e.$refs.groupListForm.clearValidate()}),this.addOrEditGroupDialog=!0},editGroupListItem:function(e){var t=this;this.isEditGroup=!0,this.editNamePre=e.groupName,this.$nextTick(function(){t.$refs.groupListForm.clearValidate()}),this.addOrEditGroupDialog=!0,this.groupListForm=o()({},e)},delGroupListItem:function(e){var t=this;this.$confirm("分组删除后,创建号活码时将无法选取到该分组,是否继续删除?","删除提示",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){if(!(t.groupList.findIndex(function(t){return t.groupId===e.groupId})<0)){var a={groupId:e.groupId};Object(c.d)(a).then(function(a){0==a.data.code&&(t.$message({type:"success",message:"删除成功!"}),t.currentListItemUuid==e.groupId&&(t.pageP.pageNum=1,t.currentListItemUuid=-1,t.$emit("updateList",t.currentListItemUuid)),t.pageP.pageNum=1,t.searchGroup())})}}).catch(function(){})},handleGroupListItem:function(){var e,t=this;this.$refs.groupListForm.validate((e=l()(i.a.mark(function e(a){var r,o,s,n;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!a){e.next=15;break}if(r={},o=(t.isEditGroup?"修改":"新增")+"成功",!t.isEditGroup){e.next=10;break}return s={groupId:t.groupListForm.groupId,groupName:t.groupListForm.groupName},e.next=7,Object(c.f)(s);case 7:r=e.sent,e.next=14;break;case 10:return n={groupName:t.groupListForm.groupName},e.next=13,Object(c.b)(n);case 13:r=e.sent;case 14:0==r.data.code?(t.$message({type:"success",message:o,duration:1e3}),t.isEditGroup&&(t.groupList.find(function(e){return e.groupId==t.groupListForm.groupId}).groupName=t.groupListForm.groupName),t.pageP.pageNum=1,t.searchGroup(),t.addOrEditGroupDialog=!1):t.$message({type:"warning",message:r.data.message});case 15:case"end":return e.stop()}},e,t)})),function(t){return e.apply(this,arguments)}))},searchGroup:function(e){var t=this;return l()(i.a.mark(function e(){var a;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t.groupLoading=!0,e.next=3,Object(u.b)("/haoban-manage3-web/hm/group/refer/count",{});case 3:return a=e.sent,1==t.pageP.pageNum&&(t.groupList=[{groupName:"全部分组",referNum:"",groupId:"-1"}],t.groupList[0].referNum=a.data.result),String(t.pageP.groupName)&&(t.pageP.pageNum=1,t.groupList=[]),e.next=8,Object(u.b)("/haoban-manage3-web/hm/group/list",t.pageP).then(function(e){if(0==e.data.code){var a=e.data.result||{},r=a.result,o=a.pages;t.groupList=t.groupList.concat(r),""==t.pageP.groupName?t.searchTip=!1:""!=t.pageP.groupName&&t.groupList.length<=0&&(t.searchTip=!0),t.allPageNum=o||1,t.groupLoading=!1}});case 8:case"end":return e.stop()}},e,t)}))()}}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",[a("div",{staticClass:"mb-10 mt-20 pl-16 pr-15"},[a("el-input",{attrs:{placeholder:"请输入分组名称",maxlength:"50",clearable:""},on:{change:e.onSearch},model:{value:e.pageP.groupName,callback:function(t){e.$set(e.pageP,"groupName",t)},expression:"pageP.groupName"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"lists-content-box infinite-list-wrapper"},[a("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:e.load,expression:"load"}],staticClass:"list",attrs:{"infinite-scroll-disabled":"scrollLoad","infinite-scroll-immediate":"false","infinite-scroll-distance":"1"}},[e._l(e.groupList,function(t){return a("li",{key:t.groupId,class:["list-item","member-list",{"active-li":t.groupId==e.currentListItemUuid}],on:{click:function(a){return e.clickGroupListItem(t)}}},[a("div",{staticClass:"wrap"},[a("span",{staticClass:"listItemName overflow-ellipsis",attrs:{title:t.groupName}},[e._v(e._s(t.groupName))]),e._v(" "),a("span",[e._v(e._s("("+t.referNum+")"))])]),e._v(" "),e.isShowGroupListItemMore(t)?a("el-popover",{attrs:{placement:"bottom",trigger:"hover"}},[a("p",{staticClass:"more",on:{click:function(a){return e.editGroupListItem(t)}}},[e._v("编辑")]),e._v(" "),t.referNum?e._e():a("p",{staticClass:"more",on:{click:function(a){return e.delGroupListItem(t)}}},[e._v("删除")]),e._v(" "),"全部分组"!=t.groupName&&"默认分组"!=t.groupName?a("i",{staticClass:"iconfont-hb3 icongengduo3 icon iconhover",attrs:{slot:"reference"},slot:"reference"}):e._e()]):e._e()],1)}),e._v(" "),a("li",[e.groupLoading?a("div",{staticClass:"el-loading-spinner",staticStyle:{width:"86%"}},[a("i",{staticClass:"el-icon-loading"})]):e._e()])],2),e._v(" "),e.searchTip?a("p",{staticClass:"searchTip"},[e._v("没有找到和“"+e._s(e.pageP.groupName)+"”相关的内容")]):e._e()]),e._v(" "),e.groupList.length>1?a("div",{staticClass:"add-category"},[a("el-button",{staticClass:"ghost-btn add-group",attrs:{type:"primary"},on:{click:e.addGroup}},[e._v("新增分组")])],1):e._e(),e._v(" "),a("el-dialog",{attrs:{title:e.isEditGroup?"编辑分组":"新增分组",visible:e.addOrEditGroupDialog,width:"500px",top:"30vh","close-on-click-modal":!1},on:{"update:visible":function(t){e.addOrEditGroupDialog=t}}},[a("el-form",{ref:"groupListForm",attrs:{model:e.groupListForm,rules:e.groupListFormRules}},[a("el-form-item",{attrs:{label:"分组名称",prop:"groupName"}},[a("el-input",{attrs:{placeholder:"请输入分组名称",maxlength:10,"show-word-limit":"",clearable:""},model:{value:e.groupListForm.groupName,callback:function(t){e.$set(e.groupListForm,"groupName",t)},expression:"groupListForm.groupName"}})],1),e._v(" "),a("p",{directives:[{name:"show",rawName:"v-show",value:!e.isEditGroup,expression:"!isEditGroup"}],staticClass:"addGroupTip"},[e._v('分组名称不可重复,建议"创建人姓名-分组名称"')])],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.addOrEditGroupDialog=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.handleGroupListItem}},[e._v("确 定")])],1)],1)],1)},staticRenderFns:[]};var m=a("VU/8")(d,p,!1,function(e){a("RXoq")},"data-v-192f497d",null);t.default=m.exports},tVK0:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("t6Nl"),o=a("XZyq"),s={name:"staffActCode",components:{GroupList:r.default,ActCodeTable:o.default},data:function(){return{currentGroupId:null}},methods:{getCurrentGroupID:function(e){this.currentGroupId=e}},watch:{currentGroupId:{handler:function(e){this.currentGroupId=e},immediate:!0}}},i={render:function(){var e=this.$createElement,t=this._self._c||e;return t("section",{staticClass:"app-detail-wrap"},[t("div",{staticClass:"border-box"},[t("div",{staticClass:"list-body flex"},[t("div",{staticClass:"list-left border-box"},[t("group-list",{ref:"groupListRef",on:{updateList:this.getCurrentGroupID}})],1),this._v(" "),t("div",{staticClass:"list-right p-20 border-box"},[t("dm-sub-title",{staticClass:"m-b-10",attrs:{text:"配置标签"}},[t("div",{staticClass:"title"},[t("span",[this._v("员工活码")]),this._v(" "),t("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:codeList",arg:"codeList"}],attrs:{type:"text"}},[t("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),this._v("指标说明")])],1)]),this._v(" "),t("act-code-table",{attrs:{currentGroupId:this.currentGroupId}})],1)])])])},staticRenderFns:[]};var n=a("VU/8")(s,i,!1,function(e){a("rvwt")},"data-v-38d73068",null);t.default=n.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([14,48,106],{"4KYo":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={data:function(){return{card:{pageName:"",pageCode:"",pageId:"",pageTitle:"",merchantName:"",merchantPhoneNumber:"",merchantLogo:"",pageBackgroundImg:"",guideComment:""}}},props:{content:{type:Object,default:function(){}}},watch:{content:{handler:function(e){if(e){var t=e.pageName,a=e.pageCode,i=e.pageId,n=e.pageTitle,o=e.merchantName,r=e.merchantPhoneNumber,s=e.merchantLogo,l=e.pageBackgroundImg,c=e.guideComment,g=e.createorName,d=e.createTime;this.card={pageName:t,pageCode:a,pageId:i,pageTitle:n,merchantName:o,merchantPhoneNumber:r,merchantLogo:s,pageBackgroundImg:l,guideComment:c,createorName:g,createTime:d}}},immediate:!0}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"card"},[i("div",{staticClass:"head"},[i("div",{staticClass:"operation"},[i("div",{staticClass:"idNum"},[e._v("ID:"+e._s(e.card.pageCode))]),e._v(" "),i("div",{staticClass:"btns"},[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("relationDetail")}}},[e._v("关联详情")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("deleteTemp")}}},[e._v("删除")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("editTemp")}}},[e._v("编辑")])],1)]),e._v(" "),i("div",{staticClass:"tempName"},[e._v(e._s(e.card.pageName))]),e._v(" "),i("div",{staticClass:"cardName"},[i("div",{staticClass:"createName"},[e._v(e._s(e.card.createorName))]),e._v(" "),i("div",{staticClass:"createTime"},[e._v(e._s(e._f("formatTimeStamp")(e.card.createTime)))])])]),e._v(" "),i("div",{staticClass:"iphone-content"},[i("div",{staticClass:"iphone"},[i("span",{staticClass:"pageTitle"},[e._v(e._s(e.card.pageTitle))]),e._v(" "),i("img",{attrs:{src:a("NBDD")}}),e._v(" "),i("div",{staticClass:"content"},[i("img",{directives:[{name:"show",rawName:"v-show",value:e.card.pageBackgroundImg,expression:"card.pageBackgroundImg"}],staticClass:"bgImg",attrs:{src:e.card.pageBackgroundImg}}),e._v(" "),i("div",{staticClass:"enterpriseInfo"},[e.card.merchantLogo?i("div",{staticClass:"logo"},[i("img",{attrs:{src:e.card.merchantLogo}})]):e._e(),e._v(" "),i("div",{staticClass:"name"},[e._v(e._s(e.card.merchantName))])]),e._v(" "),i("div",{staticClass:"QRcode"}),e._v(" "),i("div",{staticClass:"leadingText"},[e._v(e._s(e.card.guideComment))]),e._v(" "),e.card.merchantPhoneNumber?i("div",{staticClass:"enterpriseNum"},[i("i",{staticClass:"iconfont-hb3 icondianhua"}),e._v(" "),i("p",[e._v(e._s(e.card.merchantPhoneNumber))])]):e._e()])])])])},staticRenderFns:[]};var o=a("VU/8")(i,n,!1,function(e){a("H6Hr")},"data-v-254ab8a9",null);t.default=o.exports},"5YDF":function(e,t){},GdW8:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("PeHS"),n=a("PI0u"),o={data:function(){return{form:{searchContent:"",pageId:"",pageNum:1,pageSize:20},loading:!1,total:0,tableData:[]}},props:{pageId:{type:String,default:""},dialogVisible:{type:Boolean,default:!1}},watch:{pageId:function(e){e&&(this.form={searchContent:"",pageId:e,pageNum:1,pageSize:20},this.getList())}},methods:{toInput:Object(n.a)(function(e,t){this.getList()},500),getList:function(){var e=this;this.loading=!0,Object(i.k)(this.form).then(function(t){var a=t.data.result,i=a.totalCount,n=a.result;n&&(e.total=i,e.tableData=n)}).finally(function(t){e.loading=!1})},handleSizeChange:function(e){this.form.pageNum=1,this.form.pageSize=e,this.getList()},handleCurrentChange:function(e){this.form.pageNum=e,this.getList()}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"关联详情",width:"600px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t},close:function(t){return e.$emit("update:dialogVisible",!1)}}},[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"flex flex-space-between m-b-16"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入链接名称/ID",clearable:""},on:{clear:e.getList},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.form.searchContent,callback:function(t){e.$set(e.form,"searchContent",t)},expression:"form.searchContent"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",attrs:{data:e.tableData,height:"450","tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"releationId",label:"链接ID","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"referName",label:"链接名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("goLinkDetail",i.referId)}}},[e._v("查看")])]}}])})],1),e._v(" "),a("el-pagination",{staticClass:"text-right margin-pg",attrs:{"page-size":e.form.pageSize,"current-page":e.form.pageNum,layout:"prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.form,"pageSize",t)},"update:page-size":function(t){return e.$set(e.form,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.form,"pageNum",t)},"update:current-page":function(t){return e.$set(e.form,"pageNum",t)}}})],1)},staticRenderFns:[]};var s=a("VU/8")(o,r,!1,function(e){a("YYEh")},"data-v-29d9d5a9",null);t.default=s.exports},H6Hr:function(e,t){},NBDD:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAABLCAYAAAABIF7dAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ2MCwgMjAyMC8wNS8xMi0xNjowNDo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Nf5evnw5kzCE+BDk0YxQtsztNm/ebOvdu7dt9+7dTutnzJhhz+WjGaGn0/vp6em6n+HAPJ4DzMrK0u+MjIx0Wn/16lVb06ZN7cdUp04d29mzZ522MZypvme4U0vfhWv0lK4wrneD+euvv9T9GQcqK1eulAkTJvBnlhAfYD4BUrt2bbc/A3nBffv2yYABAyQ2NrZcx+NqNxjkJRGaX7lyxcnlIbRdsmSJ5iMnT54sYWFh9vdu376tT5wZRkxycnIshb7Id+IalTAMWIFbVWBUX8xOiUuXLuVPMSE+AJVNuK6nVDgrfUdoOFNoyLvvvmt5n7i4ON1n8eLFlraH8yulo3i+20+CGE7QHg5TBAnxDejigVC4KgogQAgMDZk3b16Z2yYnJ9u77FgF4W8paYL8cj0KBxE07ClzgoT4MA9YlR+Fu3nzpq1Dhw6qIX379i2xL+Lly5dtMTExus3zzz9vM0Jmy59v5VG4Ryj6uBv3Gycg3bt3F+MgJTExUWbNmsXkDCFeBFVRjMLk65GYkP/DUyVmJdkqGLBg2LBhsmvXLnuFGpqCPo7ofpOdna3r8bQZtmnQoIHlz0VfyVKGCNNH4YLKc9KNGzfWvkMvvPCCjsNFCPEu6FJidQDQigQC7I4GoDvLzp079cGKqKgo7SOYkZEhaWlpKn4YDxCFGow3YFX8IHxWCkRwgB6ZIgpfZk66QgjxLuZQ+P5gQnAeiCwhYiEhIS73QYSkwRVDWMvY957HBJAQ4lsch8QPVEzxszohFAWQED90ggj9Am1eEHNSJAif1XwoBZAQPwPpKOQEzbly/T0tBdeL88USYa8rc5JQAAnx01AQo63AFTlOiu4PrtD27ziIEDxzlBfk+typglMACfFzIYRIoPnTrW66WghfeWahowASQgIWToxOCKEAEkIIBZAQQiiAhBDi37gzzjWKJoW8dISQSgYe/XBpnPz/CzAApwNwMT9F2uMAAAAASUVORK5CYII="},YYEh:function(e,t){},fjEt:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Dd8w"),n=a.n(i),o=a("4KYo"),r=a("GdW8"),s=a("PeHS"),l=a("PI0u"),c={name:"ladingPageList",data:function(){return{form:{pageSearchText:"",dateRange:[],pageSize:20,pageNum:1},loading:!1,total:0,pageId:"",dialogVisible:!1,list:[]}},components:{cardView:o.default,relationDialog:r.default},mounted:function(){this.getList()},activated:function(){this.getList()},methods:{toInput:Object(l.a)(function(e,t){this.getList()},500),getList:function(){var e=this,t=n()({},this.form);this.form.dateRange&&this.form.dateRange.length&&(t.startTime=this.form.dateRange[0]+" 00:00:00",t.endTime=this.form.dateRange[1]+" 23:59:59"),delete t.dateRange,this.loading=!0,Object(s.j)(t).then(function(t){var a=t.data.result,i=a.result,n=a.totalCount;i&&(e.total=n,e.list=i)}).finally(function(t){e.loading=!1})},handleSizeChange:function(e){this.form.pageNum=1,this.form.pageSize=e,this.getList()},handleCurrentChange:function(e){this.form.pageNum=e,this.getList()},addTemp:function(){this.$router.push("/ladingPageAdd")},relationDetail:function(e){this.dialogVisible=!0,this.pageId=e.pageId},deleteTemp:function(e){var t=this;Object(s.k)({pageId:e.pageId}).then(function(a){var i=a.data.result.totalCount;i?t.$confirm("当前模板已关联链接("+i+"),请确认投放链接已投放结束,解除关联后才可删除该模板","无法删除该模板",{confirmButtonText:"关联详情",cancelButtonText:"取消",type:"warning"}).then(function(a){t.relationDetail(e)}):t.$confirm("模板删除后将无法恢复","确认要删除该模板吗?",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(a){t.deleteRequest(e)})})},deleteRequest:function(e){var t=this;Object(s.g)({pageId:e.pageId}).then(function(e){t.$message.success("删除成功"),t.getList()})},editTemp:function(e){this.$router.push("/ladingPageEdit/"+e.pageId)},goLinkDetail:function(e){window.open("/haoban-3/#/attractFlowLinkInfo/"+e)}}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-content"},[a("div",{staticClass:"flex flex-space-between m-b-16"},[a("div",{staticClass:"flex flex-align-center"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入模板ID/名称、创建人",clearable:""},on:{clear:e.getList},nativeOn:{keyup:function(t){return e.toInput(t)}},model:{value:e.form.pageSearchText,callback:function(t){e.$set(e.form,"pageSearchText",t)},expression:"form.pageSearchText"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("span",{staticClass:"m-l-10",staticStyle:{"font-size":"14px"}},[e._v("模板创建时间:")]),e._v(" "),a("el-date-picker",{staticClass:"m-l-10 w-256",attrs:{type:"daterange","value-format":"yyyy-MM-dd",clearable:"","range-separator":"~","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.getList,clear:e.getList},model:{value:e.form.dateRange,callback:function(t){e.$set(e.form,"dateRange",t)},expression:"form.dateRange"}})],1),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.addTemp}},[e._v("新增模板")])],1),e._v(" "),a("div",{staticClass:"tips m-b-16"},[e._v("\n 二维码只是样式预览效果,请勿直接使用\n ")]),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[e.list&&e.list.length?a("div",{staticClass:"card-content"},e._l(e.list,function(t){return a("card-view",{key:t.pageId,attrs:{content:t},on:{relationDetail:function(a){return e.relationDetail(t)},deleteTemp:function(a){return e.deleteTemp(t)},editTemp:function(a){return e.editTemp(t)}}})}),1):a("div",{staticClass:"chart--nodata"},[e._m(0)])]),e._v(" "),a("relation-dialog",{attrs:{dialogVisible:e.dialogVisible,pageId:e.pageId},on:{"update:dialogVisible":function(t){e.dialogVisible=t},"update:dialog-visible":function(t){e.dialogVisible=t},goLinkDetail:e.goLinkDetail}}),e._v(" "),0!=e.list.length?a("div",{staticClass:"text-right"},[a("el-pagination",{attrs:{background:"","page-size":e.form.pageSize,"current-page":e.form.pageNum,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[20,40,60,80],total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.form,"pageSize",t)},"update:page-size":function(t){return e.$set(e.form,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.form,"pageNum",t)},"update:current-page":function(t){return e.$set(e.form,"pageNum",t)}}})],1):e._e()],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("img",{staticClass:"image-120",attrs:{src:a("es7N")}}),this._v(" "),t("p",{staticClass:"font-14 color-606266 no-data-text"},[this._v("暂无数据")])])}]};var d=a("VU/8")(c,g,!1,function(e){a("5YDF")},"data-v-124302fb",null);t.default=d.exports}}); webpackJsonp([14,48,108],{"4KYo":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={data:function(){return{card:{pageName:"",pageCode:"",pageId:"",pageTitle:"",merchantName:"",merchantPhoneNumber:"",merchantLogo:"",pageBackgroundImg:"",guideComment:""}}},props:{content:{type:Object,default:function(){}}},watch:{content:{handler:function(e){if(e){var t=e.pageName,a=e.pageCode,i=e.pageId,n=e.pageTitle,o=e.merchantName,r=e.merchantPhoneNumber,s=e.merchantLogo,l=e.pageBackgroundImg,c=e.guideComment,g=e.createorName,d=e.createTime;this.card={pageName:t,pageCode:a,pageId:i,pageTitle:n,merchantName:o,merchantPhoneNumber:r,merchantLogo:s,pageBackgroundImg:l,guideComment:c,createorName:g,createTime:d}}},immediate:!0}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"card"},[i("div",{staticClass:"head"},[i("div",{staticClass:"operation"},[i("div",{staticClass:"idNum"},[e._v("ID:"+e._s(e.card.pageCode))]),e._v(" "),i("div",{staticClass:"btns"},[i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("relationDetail")}}},[e._v("关联详情")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("deleteTemp")}}},[e._v("删除")]),e._v(" "),i("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("editTemp")}}},[e._v("编辑")])],1)]),e._v(" "),i("div",{staticClass:"tempName"},[e._v(e._s(e.card.pageName))]),e._v(" "),i("div",{staticClass:"cardName"},[i("div",{staticClass:"createName"},[e._v(e._s(e.card.createorName))]),e._v(" "),i("div",{staticClass:"createTime"},[e._v(e._s(e._f("formatTimeStamp")(e.card.createTime)))])])]),e._v(" "),i("div",{staticClass:"iphone-content"},[i("div",{staticClass:"iphone"},[i("span",{staticClass:"pageTitle"},[e._v(e._s(e.card.pageTitle))]),e._v(" "),i("img",{attrs:{src:a("NBDD")}}),e._v(" "),i("div",{staticClass:"content"},[i("img",{directives:[{name:"show",rawName:"v-show",value:e.card.pageBackgroundImg,expression:"card.pageBackgroundImg"}],staticClass:"bgImg",attrs:{src:e.card.pageBackgroundImg}}),e._v(" "),i("div",{staticClass:"enterpriseInfo"},[e.card.merchantLogo?i("div",{staticClass:"logo"},[i("img",{attrs:{src:e.card.merchantLogo}})]):e._e(),e._v(" "),i("div",{staticClass:"name"},[e._v(e._s(e.card.merchantName))])]),e._v(" "),i("div",{staticClass:"QRcode"}),e._v(" "),i("div",{staticClass:"leadingText"},[e._v(e._s(e.card.guideComment))]),e._v(" "),e.card.merchantPhoneNumber?i("div",{staticClass:"enterpriseNum"},[i("i",{staticClass:"iconfont-hb3 icondianhua"}),e._v(" "),i("p",[e._v(e._s(e.card.merchantPhoneNumber))])]):e._e()])])])])},staticRenderFns:[]};var o=a("VU/8")(i,n,!1,function(e){a("H6Hr")},"data-v-254ab8a9",null);t.default=o.exports},"5YDF":function(e,t){},GdW8:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("PeHS"),n=a("PI0u"),o={data:function(){return{form:{searchContent:"",pageId:"",pageNum:1,pageSize:20},loading:!1,total:0,tableData:[]}},props:{pageId:{type:String,default:""},dialogVisible:{type:Boolean,default:!1}},watch:{pageId:function(e){e&&(this.form={searchContent:"",pageId:e,pageNum:1,pageSize:20},this.getList())}},methods:{toInput:Object(n.a)(function(e,t){this.getList()},500),getList:function(){var e=this;this.loading=!0,Object(i.k)(this.form).then(function(t){var a=t.data.result,i=a.totalCount,n=a.result;n&&(e.total=i,e.tableData=n)}).finally(function(t){e.loading=!1})},handleSizeChange:function(e){this.form.pageNum=1,this.form.pageSize=e,this.getList()},handleCurrentChange:function(e){this.form.pageNum=e,this.getList()}}},r={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"关联详情",width:"600px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t},close:function(t){return e.$emit("update:dialogVisible",!1)}}},[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"flex flex-space-between m-b-16"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入链接名称/ID",clearable:""},on:{clear:e.getList},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.form.searchContent,callback:function(t){e.$set(e.form,"searchContent",t)},expression:"form.searchContent"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",attrs:{data:e.tableData,height:"450","tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"releationId",label:"链接ID","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"referName",label:"链接名称","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.$emit("goLinkDetail",i.referId)}}},[e._v("查看")])]}}])})],1),e._v(" "),a("el-pagination",{staticClass:"text-right margin-pg",attrs:{"page-size":e.form.pageSize,"current-page":e.form.pageNum,layout:"prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.form,"pageSize",t)},"update:page-size":function(t){return e.$set(e.form,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.form,"pageNum",t)},"update:current-page":function(t){return e.$set(e.form,"pageNum",t)}}})],1)},staticRenderFns:[]};var s=a("VU/8")(o,r,!1,function(e){a("YYEh")},"data-v-29d9d5a9",null);t.default=s.exports},H6Hr:function(e,t){},NBDD:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAABLCAYAAAABIF7dAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyVpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ2MCwgMjAyMC8wNS8xMi0xNjowNDoxNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjIgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MTRCQkQ2MDMwQTRDMTFFRDkyNEZGNTNBMkRBMzgxQ0YiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTRCQkQ2MDQ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XLnuFGpqCPo7ofpOdna3r8bQZtmnQoIHlz0VfyVKGCNNH4YLKc9KNGzfWvkMvvPCCjsNFCPEu6FJidQDQigQC7I4GoDvLzp079cGKqKgo7SOYkZEhaWlpKn4YDxCFGow3YFX8IHxWCkRwgB6ZIgpfZk66QgjxLuZQ+P5gQnAeiCwhYiEhIS73QYSkwRVDWMvY957HBJAQ4lsch8QPVEzxszohFAWQED90ggj9Am1eEHNSJAif1XwoBZAQPwPpKOQEzbly/T0tBdeL88USYa8rc5JQAAnx01AQo63AFTlOiu4PrtD27ziIEDxzlBfk+typglMACfFzIYRIoPnTrW66WghfeWahowASQgIWToxOCKEAEkIIBZAQQiiAhBDi37gzzjWKJoW8dISQSgYe/XBpnPz/CzAApwNwMT9F2uMAAAAASUVORK5CYII="},YYEh:function(e,t){},fjEt:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Dd8w"),n=a.n(i),o=a("4KYo"),r=a("GdW8"),s=a("PeHS"),l=a("PI0u"),c={name:"ladingPageList",data:function(){return{form:{pageSearchText:"",dateRange:[],pageSize:20,pageNum:1},loading:!1,total:0,pageId:"",dialogVisible:!1,list:[]}},components:{cardView:o.default,relationDialog:r.default},mounted:function(){this.getList()},activated:function(){this.getList()},methods:{toInput:Object(l.a)(function(e,t){this.getList()},500),getList:function(){var e=this,t=n()({},this.form);this.form.dateRange&&this.form.dateRange.length&&(t.startTime=this.form.dateRange[0]+" 00:00:00",t.endTime=this.form.dateRange[1]+" 23:59:59"),delete t.dateRange,this.loading=!0,Object(s.j)(t).then(function(t){var a=t.data.result,i=a.result,n=a.totalCount;i&&(e.total=n,e.list=i)}).finally(function(t){e.loading=!1})},handleSizeChange:function(e){this.form.pageNum=1,this.form.pageSize=e,this.getList()},handleCurrentChange:function(e){this.form.pageNum=e,this.getList()},addTemp:function(){this.$router.push("/ladingPageAdd")},relationDetail:function(e){this.dialogVisible=!0,this.pageId=e.pageId},deleteTemp:function(e){var t=this;Object(s.k)({pageId:e.pageId}).then(function(a){var i=a.data.result.totalCount;i?t.$confirm("当前模板已关联链接("+i+"),请确认投放链接已投放结束,解除关联后才可删除该模板","无法删除该模板",{confirmButtonText:"关联详情",cancelButtonText:"取消",type:"warning"}).then(function(a){t.relationDetail(e)}):t.$confirm("模板删除后将无法恢复","确认要删除该模板吗?",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(a){t.deleteRequest(e)})})},deleteRequest:function(e){var t=this;Object(s.g)({pageId:e.pageId}).then(function(e){t.$message.success("删除成功"),t.getList()})},editTemp:function(e){this.$router.push("/ladingPageEdit/"+e.pageId)},goLinkDetail:function(e){window.open("/haoban-3/#/attractFlowLinkInfo/"+e)}}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-set-content"},[a("div",{staticClass:"flex flex-space-between m-b-16"},[a("div",{staticClass:"flex flex-align-center"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入模板ID/名称、创建人",clearable:""},on:{clear:e.getList},nativeOn:{keyup:function(t){return e.toInput(t)}},model:{value:e.form.pageSearchText,callback:function(t){e.$set(e.form,"pageSearchText",t)},expression:"form.pageSearchText"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),e._v(" "),a("span",{staticClass:"m-l-10",staticStyle:{"font-size":"14px"}},[e._v("模板创建时间:")]),e._v(" "),a("el-date-picker",{staticClass:"m-l-10 w-256",attrs:{type:"daterange","value-format":"yyyy-MM-dd",clearable:"","range-separator":"~","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.getList,clear:e.getList},model:{value:e.form.dateRange,callback:function(t){e.$set(e.form,"dateRange",t)},expression:"form.dateRange"}})],1),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.addTemp}},[e._v("新增模板")])],1),e._v(" "),a("div",{staticClass:"tips m-b-16"},[e._v("\n 二维码只是样式预览效果,请勿直接使用\n ")]),e._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[e.list&&e.list.length?a("div",{staticClass:"card-content"},e._l(e.list,function(t){return a("card-view",{key:t.pageId,attrs:{content:t},on:{relationDetail:function(a){return e.relationDetail(t)},deleteTemp:function(a){return e.deleteTemp(t)},editTemp:function(a){return e.editTemp(t)}}})}),1):a("div",{staticClass:"chart--nodata"},[e._m(0)])]),e._v(" "),a("relation-dialog",{attrs:{dialogVisible:e.dialogVisible,pageId:e.pageId},on:{"update:dialogVisible":function(t){e.dialogVisible=t},"update:dialog-visible":function(t){e.dialogVisible=t},goLinkDetail:e.goLinkDetail}}),e._v(" "),0!=e.list.length?a("div",{staticClass:"text-right"},[a("el-pagination",{attrs:{background:"","page-size":e.form.pageSize,"current-page":e.form.pageNum,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[20,40,60,80],total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.form,"pageSize",t)},"update:page-size":function(t){return e.$set(e.form,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.form,"pageNum",t)},"update:current-page":function(t){return e.$set(e.form,"pageNum",t)}}})],1):e._e()],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",[t("img",{staticClass:"image-120",attrs:{src:a("es7N")}}),this._v(" "),t("p",{staticClass:"font-14 color-606266 no-data-text"},[this._v("暂无数据")])])}]};var d=a("VU/8")(c,g,!1,function(e){a("5YDF")},"data-v-124302fb",null);t.default=d.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([17],{"8ZrH":function(e,t){},OsGj:function(e,t){},RYCc:function(e,t){},Zen0:function(e,t){},Zx22:function(e,t,a){"use strict";var i={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-manage-web",customDialog:this.value,leftData:[],rightData:[]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(e,t){function a(e){return e>9?""+e:"0"+e}var i=new Date(e),o=i.getFullYear(),s=i.getMonth()+1,n=i.getDate();return o+t+a(s)+t+a(n)+t}},watch:{value:function(e,t){this.customDialog=e},storeChangeData:function(e,t){this.leftData=e.beforeContent,this.rightData=e.afterContent}},mounted:function(){this.leftData=this.storeChangeData.beforeContent,this.rightData=this.storeChangeData.afterContent}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:e.customDialog,width:"600px","before-close":e.handleCardClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更前\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.leftData,function(e,t){return[a("img",{key:"img"+t,attrs:{src:e,alt:""}})]})],2)])]),e._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更后\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.rightData,function(e,t){return[a("img",{key:"img0"+t,attrs:{src:e,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var s=a("VU/8")(i,o,!1,function(e){a("Zen0")},"data-v-31e05f38",null);t.a=s.exports},xCEU:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Zx22"),o=a("Ch4/"),s=a("P9l9"),n={name:"record-list",props:{detailShow:{type:Boolean,default:!1},batchId:{type:String,default:function(){return""}},tableListData:{type:Object,default:function(){return[]}}},data:function(){return{customDialog:!1,tableData:[]}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")},getTableData:function(){var e=this,t={batchId:e.batchId};Object(s.b)("/haoban-manage3-web/audit/audit-detail-list",t).then(function(t){var a=t.data;1!=a.errorCode?o.a.errorMsg(a):e.tableData=a.result||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{detailShow:function(e,t){this.customDialog=e},batchId:function(e,t){e&&this.getTableData()}},mounted:function(){this.customDialog=this.detailShow,this.batchId&&this.getTableData()}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"审核详情",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,height:"332"}},[a("el-table-column",{attrs:{prop:"publishRecordId",label:"审核事项","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.auditType?a("span",[e._v("门店信息变更")]):e._e(),e._v(" "),2==t.row.auditType?a("span",[e._v("导购绑定")]):e._e(),e._v(" "),3==t.row.auditType?a("span",[e._v("导购新增")]):e._e(),e._v(" "),4==t.row.auditType?a("span",[e._v("导购删除")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.enterpriseName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人",width:"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.commitName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.commitTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.commitTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"审核结果","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.auditResult?"成功":"失败")+"\n ")]}}])})],1)],1)])],1)},staticRenderFns:[]};var r=a("VU/8")(n,l,!1,function(e){a("OsGj")},"data-v-a6e3bc3c",null).exports,u={name:"record-list",props:{resultText:{type:String,default:""},failCount:{type:[String,Boolean],default:"0"},resultShow:{type:Boolean,default:!1}},data:function(){return{customDialog:this.resultShow}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideResultDialog")},showDetail:function(){this.$emit("showResultDetail")}},watch:{resultShow:function(e,t){this.customDialog=e}},mounted:function(){this.customDialog=this.resultShow}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"提示",visible:e.customDialog,width:"420px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("div",{staticClass:"result-content"},[a("span",[e._v(e._s(e.resultText))]),a("span",{staticClass:"color-f5222d"},[e._v(e._s(e.failCount)+" 条失败。")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:e.showDetail}},[e._v("查看详情")])],1)])])],1)},staticRenderFns:[]};var d=a("VU/8")(u,c,!1,function(e){a("8ZrH")},"data-v-22052f42",null).exports,f=a("3E4D"),h=a("PI0u"),p={name:"unreview",data:function(){return{wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",auditName:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).staffName:"",filterValue:"",searchValue:"",filterOptions:[{label:"全部事项",value:""},{label:"门店信息变更",value:"1"},{label:"导购绑定",value:"2"},{label:"导购新增",value:"3"},{label:"导购删除",value:"4"}],loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,selectId:"",ruleForm:{refuseReason:""},rules:{refuseReason:[{required:!0,message:"拒绝理由不能为空",trigger:"change"},{min:1,max:50,message:"长度在 1 到 50 个字",trigger:"change"}]},showStoreDialog:!1,storeChangeData:{beforeContent:[],afterContent:[]},approveVisible:!1,refuseVisible:!1,detailShow:!1,resultShow:!1,tableListData:[],batchId:"",resultText:"",failCount:"0",userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""},dialogVisible:!1,loadBtn:!1}},computed:{},methods:{clearSearch:function(){this.currentPage=1,this.getTableList()},searchEnterFun:Object(h.a)(function(e){if(!String(e.target.value).trim())return!1;this.currentPage=1,this.getTableList()},200),hideDetailDialog:function(){this.detailShow=!1},hideResultDialog:function(){this.resultShow=!1,this.getTableList()},showResultDetail:function(){this.detailShow=!0},handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleClick:function(e,t,a){var i=this;if(i.selectId=t.auditId,a&&(i.refuseVisible=!0),a)return!1;i.$confirm("是否确认同意?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){i.sendApprove()}).catch(function(){i.selectId=""})},sendApprove:Object(h.a)(function(){this.postApprove(this.selectId)},500),postApprove:function(e){var t=this,a={auditId:e,auditName:t.auditName};Object(s.g)("/haoban-manage3-web/audit/audit",a).then(function(e){var a=e.data;if(1==a.errorCode)return f.a.showmsg("操作成功","success"),t.approveVisible=!1,t.currentPage=1,t.getTableList(),void t.$forceUpdate();"-888"==a.errorCode&&(t.currentPage=1,t.getTableList()),o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},approveAll:function(){if(!(this.multipleSelection.length?this.multipleSelection.map(function(e){return e.auditId}).join(","):""))return this.$message({message:"请至少选择一条审核事项",type:"warning"}),!1;this.dialogVisible=!0},postAllApprove:function(e){var t=this;t.loadBtn=!0;var a={auditIds:e,auditName:t.auditName};Object(s.g)("/haoban-manage3-web/audit/batch-approve",a).then(function(e){var a=e.data;if(t.loadBtn=!1,1==a.errorCode)return t.dialogVisible=!1,t.batchId=a.result.batchId,t.resultText="共"+t.multipleSelection.length+"条审核事项,"+a.result.successCount+"条成功,",t.failCount=a.result.failCount,void(t.resultShow=!0);o.a.errorMsg(a)}).catch(function(e){t.loadBtn=!1,t.$message.error({duration:1e3,message:e.message})})},cancelRefuse:function(e){this.refuseVisible=!1,this.$refs.ruleForm.resetFields()},sendRefuse:Object(h.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.postRefuse()})},500),postRefuse:function(){var e=this,t={auditName:e.auditName,auditId:e.selectId,auditReason:e.ruleForm.refuseReason};Object(s.b)("/haoban-manage3-web/audit/refuse",t).then(function(t){var a=t.data;if(1==a.errorCode)return f.a.showmsg("操作成功","success"),e.refuseVisible=!1,e.$refs.ruleForm.resetFields(),void e.getTableList();o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},showSingleInfo:function(e){var t=this,a={staffId:e};Object(s.g)("/haoban-manage3-web/get-staff-info",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.userData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},showStoreChange:function(e){this.storeChangeData={beforeContent:[],afterContent:[]},this.showStoreDialog=!0,this.storeChangeData={beforeContent:""!=e.oldValue?e.oldValue.split(","):[],afterContent:""!=e.newValue?e.newValue.split(","):[]}},getTableList:function(e){var t=this;e&&(t.currentPage=1),t.loading=!0;var a={wxEnterpriseId:t.wxEnterpriseId,auditType:t.filterValue,auditStatus:"0",auditFlag:"0",search:t.searchValue,pageNum:t.currentPage,pageSize:t.pageSize};Object(s.b)("/haoban-manage3-web/audit/find-page",a).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);o.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.getTableList()},components:{storeChange:i.a,reviewResultDetail:r,reviewResult:d}},v={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"reviewed-body-head flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-250",attrs:{maxlength:"50",placeholder:"请输入提交人姓名或门店名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.searchEnterFun(a,e.searchInput);var a}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}),e._v(" "),a("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部事项"},on:{change:e.getTableList},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}},e._l(e.filterOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),e.$getButtonLimit(e.$buttonCode.multipleResolve)?a("el-button",{attrs:{"limit-code":e.$buttonCode.multipleResolve,type:"primary"},on:{click:e.approveAll}},[e._v("批量同意")]):e._e()],1),e._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.auditType?a("span",[e._v("门店信息变更")]):e._e(),e._v(" "),2==t.row.auditType?a("span",[e._v("导购绑定")]):e._e(),e._v(" "),3==t.row.auditType?a("span",[e._v("导购新增")]):e._e(),e._v(" "),4==t.row.auditType?a("span",[e._v("导购删除")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){return e.showSingleInfo(t.row.commitStaffId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.userData.headImg?a("img",{attrs:{src:e.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(e.userData.staffName||"--")+" ( "+e._s(e.userData.position||"--")+")\n ")]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==e.userData.nationCode?e.userData.phoneNumber:"+"+e.userData.nationCode+"-"+e.userData.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属部门:")]),a("span",{staticClass:"w-130"},[e._v(e._s(e.userData.departmentName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[t.row.commitStaffImg?a("img",{attrs:{src:t.row.commitStaffImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",[e._v(e._s(t.row.commitStaffName||"--"))]),e._v(" "),a("span",{staticClass:"font-13",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.commitStoreName||"--"))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[6!=t.row.changeField?a("span",[e._v(e._s(t.row.detail))]):e._e(),e._v(" "),6==t.row.changeField?a("div",{staticClass:"line-hidden-2"},[a("span",[e._v(e._s(t.row.detail))]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.showStoreChange(t.row)}}},[e._v("查看详情")])],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.singleResolve)||e.$getButtonLimit(e.$buttonCode.singleReject)?a("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.singleResolve)?a("el-button",{attrs:{"limit-code":e.$buttonCode.singleResolve,type:"text"},on:{click:function(a){return e.handleClick(t.$index,t.row)}}},[e._v("同意")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.singleReject)?a("el-button",{attrs:{"limit-code":e.$buttonCode.singleReject,type:"text"},on:{click:function(a){return e.handleClick(t.$index,t.row,"refuse")}}},[e._v("拒绝")]):e._e()]}}])}):e._e()],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])]),e._v(" "),a("storeChange",{attrs:{storeChangeData:e.storeChangeData},model:{value:e.showStoreDialog,callback:function(t){e.showStoreDialog=t},expression:"showStoreDialog"}}),e._v(" "),a("el-dialog",{staticClass:"approve-dialog",attrs:{title:"",visible:e.approveVisible,width:"422px"},on:{"update:visible":function(t){e.approveVisible=t}}},[a("div",{staticClass:"approve-body text-center"},[a("div",[a("i",{staticClass:"el-icon-success"}),a("span",{staticClass:"approve-icon-tip"},[e._v("同意")])]),e._v(" "),a("div",{staticClass:"approve-tip"},[e._v("是否确认同意")])]),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.approveVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.sendApprove}},[e._v("确 定")])],1)]),e._v(" "),a("el-dialog",{staticClass:"refuse-dialog",attrs:{title:"提示",visible:e.refuseVisible,"before-close":e.cancelRefuse,width:"422px"},on:{"update:visible":function(t){e.refuseVisible=t}}},[a("div",[a("div",{staticClass:"refuse-tip"},[e._v("请输入拒绝理由")]),e._v(" "),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"refuseReason"}},[a("el-input",{staticClass:"font-14",attrs:{maxlength:"50",type:"textarea",placeholder:"最多 50 个字",rows:3},model:{value:e.ruleForm.refuseReason,callback:function(t){e.$set(e.ruleForm,"refuseReason",t)},expression:"ruleForm.refuseReason"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.cancelRefuse("ruleForm")}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.sendRefuse("ruleForm")}}},[e._v("确 定")])],1)]),e._v(" "),a("review-result-detail",{attrs:{batchId:e.batchId,detailShow:e.detailShow},on:{hideDetailDialog:e.hideDetailDialog}}),e._v(" "),a("review-result",{attrs:{resultText:e.resultText,failCount:e.failCount,resultShow:e.resultShow},on:{showResultDetail:e.showResultDetail,hideResultDialog:e.hideResultDialog}}),e._v(" "),a("el-dialog",{attrs:{title:"提示",visible:e.dialogVisible,width:"30%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("span",[e._v("共"+e._s(e.multipleSelection.length)+"条审核事项,是否批量同意?")]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.loadBtn},on:{click:function(t){e.postAllApprove(e.multipleSelection.map(function(e){return e.auditId}).join(","))}}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var g=a("VU/8")(p,v,!1,function(e){a("RYCc")},"data-v-2eb8bfe1",null);t.default=g.exports}});
\ No newline at end of file
webpackJsonp([17],{OsGj:function(e,t){},RYCc:function(e,t){},Vxlt:function(e,t){},Zen0:function(e,t){},Zx22:function(e,t,a){"use strict";var i={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-manage-web",customDialog:this.value,leftData:[],rightData:[]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(e,t){function a(e){return e>9?""+e:"0"+e}var i=new Date(e),o=i.getFullYear(),s=i.getMonth()+1,l=i.getDate();return o+t+a(s)+t+a(l)+t}},watch:{value:function(e,t){this.customDialog=e},storeChangeData:function(e,t){this.leftData=e.beforeContent,this.rightData=e.afterContent}},mounted:function(){this.leftData=this.storeChangeData.beforeContent,this.rightData=this.storeChangeData.afterContent}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:e.customDialog,width:"600px","before-close":e.handleCardClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更前\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.leftData,function(e,t){return[a("img",{key:"img"+t,attrs:{src:e,alt:""}})]})],2)])]),e._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更后\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.rightData,function(e,t){return[a("img",{key:"img0"+t,attrs:{src:e,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var s=a("VU/8")(i,o,!1,function(e){a("Zen0")},"data-v-31e05f38",null);t.a=s.exports},xCEU:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Zx22"),o=a("Ch4/"),s=a("P9l9"),l={name:"record-list",props:{detailShow:{type:Boolean,default:!1},batchId:{type:String,default:function(){return""}},tableListData:{type:Object,default:function(){return[]}}},data:function(){return{customDialog:!1,tableData:[]}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideDetailDialog")},getTableData:function(){var e=this,t={batchId:e.batchId};Object(s.b)("/haoban-manage3-web/audit/audit-detail-list",t).then(function(t){var a=t.data;1!=a.errorCode?o.a.errorMsg(a):e.tableData=a.result||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{detailShow:function(e,t){this.customDialog=e},batchId:function(e,t){e&&this.getTableData()}},mounted:function(){this.customDialog=this.detailShow,this.batchId&&this.getTableData()}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"审核详情",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,height:"332"}},[a("el-table-column",{attrs:{prop:"publishRecordId",label:"审核事项","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.auditType?a("span",[e._v("门店信息变更")]):e._e(),e._v(" "),2==t.row.auditType?a("span",[e._v("导购绑定")]):e._e(),e._v(" "),3==t.row.auditType?a("span",[e._v("导购新增")]):e._e(),e._v(" "),4==t.row.auditType?a("span",[e._v("导购删除")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"品牌","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.enterpriseName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人",width:"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.commitName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.commitTime)))]),e._v(" "),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.commitTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"审核结果","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.auditResult?"成功":"失败")+"\n ")]}}])})],1)],1)])],1)},staticRenderFns:[]};var r=a("VU/8")(l,n,!1,function(e){a("OsGj")},"data-v-a6e3bc3c",null).exports,u={name:"record-list",props:{resultText:{type:String,default:""},failCount:{type:[String,Boolean],default:"0"},resultShow:{type:Boolean,default:!1}},data:function(){return{customDialog:this.resultShow}},methods:{handleClose:function(e){e(),this.hideDialog()},customCancel:function(){this.hideDialog()},hideDialog:function(){this.customDialog=!1,this.$emit("hideResultDialog")},showDetail:function(){this.$emit("showResultDetail")}},watch:{resultShow:function(e,t){this.customDialog=e}},mounted:function(){this.customDialog=this.resultShow}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"提示",visible:e.customDialog,width:"420px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("div",{staticClass:"result-content"},[a("span",[e._v(e._s(e.resultText))]),a("span",{staticClass:"color-f5222d"},[e._v(e._s(e.failCount)+" 条失败。")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:e.showDetail}},[e._v("查看详情")])],1)])])],1)},staticRenderFns:[]};var d=a("VU/8")(u,c,!1,function(e){a("Vxlt")},"data-v-5f8975d3",null).exports,f=a("3E4D"),h=a("PI0u"),p={name:"unreview",data:function(){return{wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",auditName:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).staffName:"",filterValue:"",searchValue:"",filterOptions:[{label:"全部事项",value:""},{label:"门店信息变更",value:"1"},{label:"导购绑定",value:"2"},{label:"导购新增",value:"3"},{label:"导购删除",value:"4"}],loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,selectId:"",ruleForm:{refuseReason:""},rules:{refuseReason:[{required:!0,message:"拒绝理由不能为空",trigger:"change"},{min:1,max:50,message:"长度在 1 到 50 个字",trigger:"change"}]},showStoreDialog:!1,storeChangeData:{beforeContent:[],afterContent:[]},approveVisible:!1,refuseVisible:!1,detailShow:!1,resultShow:!1,tableListData:[],batchId:"",resultText:"",failCount:"0",userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""},dialogVisible:!1,loadBtn:!1}},computed:{},methods:{clearSearch:function(){this.currentPage=1,this.getTableList()},searchEnterFun:Object(h.a)(function(e){if(!String(e.target.value).trim())return!1;this.currentPage=1,this.getTableList()},200),hideDetailDialog:function(){this.detailShow=!1},hideResultDialog:function(){this.resultShow=!1,this.getTableList()},showResultDetail:function(){this.detailShow=!0},handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleClick:function(e,t,a){var i=this;if(i.selectId=t.auditId,a&&(i.refuseVisible=!0),a)return!1;i.$confirm("是否确认同意?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){i.sendApprove()}).catch(function(){i.selectId=""})},sendApprove:Object(h.a)(function(){this.postApprove(this.selectId)},500),postApprove:function(e){var t=this,a={auditId:e,auditName:t.auditName};Object(s.g)("/haoban-manage3-web/audit/audit",a).then(function(e){var a=e.data;if(1==a.errorCode)return f.a.showmsg("操作成功","success"),t.approveVisible=!1,t.currentPage=1,t.getTableList(),void t.$forceUpdate();"-888"==a.errorCode&&(t.currentPage=1,t.getTableList()),o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},approveAll:function(){if(!(this.multipleSelection.length?this.multipleSelection.map(function(e){return e.auditId}).join(","):""))return this.$message({message:"请至少选择一条审核事项",type:"warning"}),!1;this.dialogVisible=!0},postAllApprove:function(e){var t=this;t.loadBtn=!0;var a={auditIds:e,auditName:t.auditName};Object(s.g)("/haoban-manage3-web/audit/batch-approve",a).then(function(e){var a=e.data;if(t.loadBtn=!1,1==a.errorCode)return t.dialogVisible=!1,t.batchId=a.result.batchId,t.resultText="共"+t.multipleSelection.length+"条审核事项,"+a.result.successCount+"条成功,",t.failCount=a.result.failCount,void(t.resultShow=!0);o.a.errorMsg(a)}).catch(function(e){t.loadBtn=!1,t.$message.error({duration:1e3,message:e.message})})},cancelRefuse:function(e){this.refuseVisible=!1,this.$refs.ruleForm.resetFields()},sendRefuse:Object(h.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.postRefuse()})},500),postRefuse:function(){var e=this,t={auditName:e.auditName,auditId:e.selectId,auditReason:e.ruleForm.refuseReason};Object(s.b)("/haoban-manage3-web/audit/refuse",t).then(function(t){var a=t.data;if(1==a.errorCode)return f.a.showmsg("操作成功","success"),e.refuseVisible=!1,e.$refs.ruleForm.resetFields(),void e.getTableList();o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},showSingleInfo:function(e){var t=this,a={staffId:e};Object(s.g)("/haoban-manage3-web/get-staff-info",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.userData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},showStoreChange:function(e){this.storeChangeData={beforeContent:[],afterContent:[]},this.showStoreDialog=!0,this.storeChangeData={beforeContent:""!=e.oldValue?e.oldValue.split(","):[],afterContent:""!=e.newValue?e.newValue.split(","):[]}},getTableList:function(e){var t=this;e&&(t.currentPage=1),t.loading=!0;var a={wxEnterpriseId:t.wxEnterpriseId,auditType:t.filterValue,auditStatus:"0",auditFlag:"0",search:t.searchValue,pageNum:t.currentPage,pageSize:t.pageSize};Object(s.b)("/haoban-manage3-web/audit/find-page",a).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);o.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.getTableList()},components:{storeChange:i.a,reviewResultDetail:r,reviewResult:d}},v={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"reviewed-body-head flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-250",attrs:{maxlength:"50",placeholder:"请输入提交人姓名或门店名称","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.searchEnterFun(a,e.searchInput);var a}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}),e._v(" "),a("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部事项"},on:{change:e.getTableList},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}},e._l(e.filterOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),e.$getButtonLimit(e.$buttonCode.multipleResolve)?a("el-button",{attrs:{"limit-code":e.$buttonCode.multipleResolve,type:"primary"},on:{click:e.approveAll}},[e._v("批量同意")]):e._e()],1),e._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.auditType?a("span",[e._v("门店信息变更")]):e._e(),e._v(" "),2==t.row.auditType?a("span",[e._v("导购绑定")]):e._e(),e._v(" "),3==t.row.auditType?a("span",[e._v("导购新增")]):e._e(),e._v(" "),4==t.row.auditType?a("span",[e._v("导购删除")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){return e.showSingleInfo(t.row.commitStaffId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.userData.headImg?a("img",{attrs:{src:e.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(e.userData.staffName||"--")+" ( "+e._s(e.userData.position||"--")+")\n ")]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==e.userData.nationCode?e.userData.phoneNumber:"+"+e.userData.nationCode+"-"+e.userData.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属部门:")]),a("span",{staticClass:"w-130"},[e._v(e._s(e.userData.departmentName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[t.row.commitStaffImg?a("img",{attrs:{src:t.row.commitStaffImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("span",[e._v(e._s(t.row.commitStaffName||"--"))]),e._v(" "),a("span",{staticClass:"font-13",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.commitStoreName||"--"))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[6!=t.row.changeField?a("span",[e._v(e._s(t.row.detail))]):e._e(),e._v(" "),6==t.row.changeField?a("div",{staticClass:"line-hidden-2"},[a("span",[e._v(e._s(t.row.detail))]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.showStoreChange(t.row)}}},[e._v("查看详情")])],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.singleResolve)||e.$getButtonLimit(e.$buttonCode.singleReject)?a("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.singleResolve)?a("el-button",{attrs:{"limit-code":e.$buttonCode.singleResolve,type:"text"},on:{click:function(a){return e.handleClick(t.$index,t.row)}}},[e._v("同意")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.singleReject)?a("el-button",{attrs:{"limit-code":e.$buttonCode.singleReject,type:"text"},on:{click:function(a){return e.handleClick(t.$index,t.row,"refuse")}}},[e._v("拒绝")]):e._e()]}}])}):e._e()],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])]),e._v(" "),a("storeChange",{attrs:{storeChangeData:e.storeChangeData},model:{value:e.showStoreDialog,callback:function(t){e.showStoreDialog=t},expression:"showStoreDialog"}}),e._v(" "),a("el-dialog",{staticClass:"approve-dialog",attrs:{title:"",visible:e.approveVisible,width:"422px"},on:{"update:visible":function(t){e.approveVisible=t}}},[a("div",{staticClass:"approve-body text-center"},[a("div",[a("i",{staticClass:"el-icon-success"}),a("span",{staticClass:"approve-icon-tip"},[e._v("同意")])]),e._v(" "),a("div",{staticClass:"approve-tip"},[e._v("是否确认同意")])]),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.approveVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.sendApprove}},[e._v("确 定")])],1)]),e._v(" "),a("el-dialog",{staticClass:"refuse-dialog",attrs:{title:"提示",visible:e.refuseVisible,"before-close":e.cancelRefuse,width:"422px"},on:{"update:visible":function(t){e.refuseVisible=t}}},[a("div",[a("div",{staticClass:"refuse-tip"},[e._v("请输入拒绝理由")]),e._v(" "),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"refuseReason"}},[a("el-input",{staticClass:"font-14",attrs:{maxlength:"50",type:"textarea",placeholder:"最多 50 个字",rows:3},model:{value:e.ruleForm.refuseReason,callback:function(t){e.$set(e.ruleForm,"refuseReason",t)},expression:"ruleForm.refuseReason"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){return e.cancelRefuse("ruleForm")}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.sendRefuse("ruleForm")}}},[e._v("确 定")])],1)]),e._v(" "),a("review-result-detail",{attrs:{batchId:e.batchId,detailShow:e.detailShow},on:{hideDetailDialog:e.hideDetailDialog}}),e._v(" "),a("review-result",{attrs:{resultText:e.resultText,failCount:e.failCount,resultShow:e.resultShow},on:{showResultDetail:e.showResultDetail,hideResultDialog:e.hideResultDialog}}),e._v(" "),a("el-dialog",{attrs:{title:"提示",visible:e.dialogVisible,width:"30%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("span",[e._v("共"+e._s(e.multipleSelection.length)+"条审核事项,是否批量同意?")]),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.loadBtn},on:{click:function(t){e.postAllApprove(e.multipleSelection.map(function(e){return e.auditId}).join(","))}}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var g=a("VU/8")(p,v,!1,function(e){a("RYCc")},"data-v-2eb8bfe1",null);t.default=g.exports}});
\ No newline at end of file
webpackJsonp([18,68,113],{"8fbE":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3E4D"),o=a("Ch4/"),n=a("P9l9"),s={name:"app-detail",props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",loading:!1,templateList:[],canAddTemp:!1}},methods:{getTemplateCount:function(){var e=this;Object(n.b)("/haoban-app-customer-web/get-template-count",{}).then(function(t){var a=t.data||{},r=a.errorCode,n=a.result;1==r?e.canAddTemp=n>=20:o.a.errorMsg(t.data)})},toDel:function(e,t){var a=this;a.$confirm("是否要删除选中的模板?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delTempList(t.templateId)}).catch(function(){})},delTempList:function(e){var t=this,a={templateId:e};Object(n.g)("/haoban-app-customer-web/del-group-template",a).then(function(e){var a=e.data;if(1==a.errorCode)return r.a.showmsg("删除成功","success"),void t.getTableList();o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toEdit:function(e,t){this.$router.push("/editGroupTemplate?templateId="+t.templateId)},toStore:function(e,t){this.$router.push("/storeRangeSet?templateId="+t.templateId+"&brandId="+this.brandId)},addTemplate:function(){this.$router.push("/addGroupTemplate")},getTableList:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(n.g)("/haoban-app-customer-web/get-template-list",t).then(function(t){var a=t.data;1!=a.errorCode?o.a.errorMsg(a):e.templateList=a.result||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getTableList(),this.getTemplateCount()},activated:function(){this.getTableList(),this.getTemplateCount()}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:" border-box p-lbr-20"},[a("div",{staticClass:"flex flex-space-between"},[a("div"),e._v(" "),a("div",[a("span",{staticClass:"font-12 color-909399"},[e._v("最多新建20个模板")]),e._v(" "),e.$getButtonLimit(e.$buttonCode.addGroupTemp)?a("el-button",{staticClass:"m-l-20",attrs:{"limit-code":e.$buttonCode.addGroupTemp,disabled:e.$store.state.wxEnterpriseType||e.canAddTemp,type:"primary"},on:{click:e.addTemplate}},[e._v("新建模版")]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tempTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.templateList,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":"","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateName))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"模板id","show-overflow-tooltip":"","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateId))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建人",prop:"creatorName","show-overflow-tooltip":"","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"编辑人","show-overflow-tooltip":"","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.editPerson))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近编辑时间","show-overflow-tooltip":"","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.editTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.editTime)))])]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.editGroupTemp)||e.$getButtonLimit(e.$buttonCode.setStoreArea)||e.$getButtonLimit(e.$buttonCode.delGroupTemp)?a("el-table-column",{attrs:{label:"操作","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.editGroupTemp)?a("el-button",{attrs:{"limit-code":e.$buttonCode.editGroupTemp,type:"text",disabled:e.$store.state.wxEnterpriseType},on:{click:function(a){return e.toEdit(t.$index,t.row)}}},[e._v("编辑")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.setStoreArea)?a("el-button",{attrs:{"limit-code":e.$buttonCode.setStoreArea,type:"text",disabled:e.$store.state.wxEnterpriseType},on:{click:function(a){return e.toStore(t.$index,t.row)}}},[e._v("门店范围设置")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.delGroupTemp)?a("el-button",{attrs:{"limit-code":e.$buttonCode.delGroupTemp,type:"text",disabled:e.$store.state.wxEnterpriseType},on:{click:function(a){return e.toDel(t.$index,t.row)}}},[e._v("删除")]):e._e()]}}])}):e._e()],1)],1)])},staticRenderFns:[]};var l=a("VU/8")(s,i,!1,function(e){a("m59b")},"data-v-1c8e199b",null);t.default=l.exports},AYL1:function(e,t){},JuNN:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("scn4"),o=a("8fbE"),n={name:"memberGroupSet",components:{MemberGroupList:r.default,MemberGroupSetList:o.default},props:{brandId:{type:String,default:""}},data:function(){return{activeName:"first"}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"客户分组列表",name:"first"}},[a("member-group-list",{attrs:{"brand-id":e.brandId}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"分组展示设置",name:"second"}},[a("member-group-set-list",{attrs:{"brand-id":e.brandId}})],1)],1)],1)},staticRenderFns:[]};var i=a("VU/8")(n,s,!1,function(e){a("LX0i")},"data-v-6ad8a13f",null);t.default=i.exports},LX0i:function(e,t){},m59b:function(e,t){},scn4:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3E4D"),o=a("Ch4/"),n=a("PI0u"),s=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",overTimeSeeFlag:!1,conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,loading:!1,syncDate:"",loadingBtn:!1}},methods:{getSyncDate:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-group_last_syn_time",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.syncDate=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toSync:Object(n.a)(function(){var e=this;e.loadingBtn=!0;var t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/syn-group",t).then(function(t){var a=t.data;if(e.loadingBtn=!1,1==a.errorCode)return r.a.showmsg("同步成功","success"),void e.getSyncDate();o.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},500),getGroupClassSet:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-member-group-setting",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.overTimeSeeFlag=0!=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},saveGroupSet:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,overTimeSeeFlag:1==e.overTimeSeeFlag?1:0};Object(s.g)("/haoban-app-customer-web/memberGroup/save-member-group-setting",t).then(function(e){var t=e.data;if(1==t.errorCode)return r.a.showmsg("设置成功","success"),!1;o.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(n.a)(function(e,t){this.currentPage=1,this.getGroupList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getGroupList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getGroupList(this.brandId)},getGroupClassify:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-member-class-list",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.classifyList=a.result.list||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getGroupList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getGroupList(this.brandId)},getGroupList:function(e){var t=this;t.loading=!0;var a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId,memberGroupName:t.conditionObj.searchInput,classifyName:t.conditionObj.classifyName,effectiveStatus:t.conditionObj.effectiveStatus,pageNum:t.currentPage,pageSize:t.pageSize};Object(s.g)("/haoban-app-customer-web/memberGroup/member-tag-group-list",a).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.isSendTemplate=1==e.isSendTemplate}),t.groupListData=a.result.list||[],void(t.total=a.result.pageInfo?a.result.pageInfo.total:0);o.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.brandId&&(this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId))}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-pane border-box p-lbr-20"},[a("div",{staticClass:"condition-wrap flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"217px"},attrs:{placeholder:"请输入分组名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部分类"},on:{change:e.changeCondition},model:{value:e.conditionObj.classifyName,callback:function(t){e.$set(e.conditionObj,"classifyName",t)},expression:"conditionObj.classifyName"}},[a("el-option",{attrs:{label:"全部分类",value:""}}),e._v(" "),e._l(e.classifyList,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})],2),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部状态"},on:{change:e.changeCondition},model:{value:e.conditionObj.effectiveStatus,callback:function(t){e.$set(e.conditionObj,"effectiveStatus",t)},expression:"conditionObj.effectiveStatus"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"有效",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"失效",value:"0"}})],1)],1),e._v(" "),a("div",[e.$getButtonLimit(e.$buttonCode.groupExpire)?a("el-checkbox",{attrs:{"limit-code":e.$buttonCode.groupExpire,disabled:e.$store.state.wxEnterpriseType},on:{change:e.saveGroupSet},model:{value:e.overTimeSeeFlag,callback:function(t){e.overTimeSeeFlag=t},expression:"overTimeSeeFlag"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后,GIC中设置的好办端会员分组失效后,即使在GIC开启好办展示,好办移动端也不再展示该条分组",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB","margin-left":"-4px"}},[e._v("会员分组失效后不展示")])])],1):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.syncGroup)?a("el-button",{attrs:{"limit-code":e.$buttonCode.syncGroup,type:"primary",loading:e.loadingBtn,disabled:e.$store.state.wxEnterpriseType},on:{click:e.toSync}},[e._v("立即同步")]):e._e(),e._v(" "),e.syncDate?a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("最近一次同步时间:"+e._s(e._f("formatTimeStamp")(e.syncDate)))]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.groupListData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.groupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberTagGroupClassifyName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否固化","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.curingFlag?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+" ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])})],1),e._v(" "),0!=e.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var d=a("VU/8")(i,l,!1,function(e){a("AYL1")},"data-v-9b6be24e",null);t.default=d.exports}}); webpackJsonp([18,69,114],{"8fbE":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3E4D"),o=a("Ch4/"),n=a("P9l9"),s={name:"app-detail",props:{brandId:{type:String,default:""}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",loading:!1,templateList:[],canAddTemp:!1}},methods:{getTemplateCount:function(){var e=this;Object(n.b)("/haoban-app-customer-web/get-template-count",{}).then(function(t){var a=t.data||{},r=a.errorCode,n=a.result;1==r?e.canAddTemp=n>=20:o.a.errorMsg(t.data)})},toDel:function(e,t){var a=this;a.$confirm("是否要删除选中的模板?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delTempList(t.templateId)}).catch(function(){})},delTempList:function(e){var t=this,a={templateId:e};Object(n.g)("/haoban-app-customer-web/del-group-template",a).then(function(e){var a=e.data;if(1==a.errorCode)return r.a.showmsg("删除成功","success"),void t.getTableList();o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toEdit:function(e,t){this.$router.push("/editGroupTemplate?templateId="+t.templateId)},toStore:function(e,t){this.$router.push("/storeRangeSet?templateId="+t.templateId+"&brandId="+this.brandId)},addTemplate:function(){this.$router.push("/addGroupTemplate")},getTableList:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(n.g)("/haoban-app-customer-web/get-template-list",t).then(function(t){var a=t.data;1!=a.errorCode?o.a.errorMsg(a):e.templateList=a.result||[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getTableList(),this.getTemplateCount()},activated:function(){this.getTableList(),this.getTemplateCount()}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:" border-box p-lbr-20"},[a("div",{staticClass:"flex flex-space-between"},[a("div"),e._v(" "),a("div",[a("span",{staticClass:"font-12 color-909399"},[e._v("最多新建20个模板")]),e._v(" "),e.$getButtonLimit(e.$buttonCode.addGroupTemp)?a("el-button",{staticClass:"m-l-20",attrs:{"limit-code":e.$buttonCode.addGroupTemp,disabled:e.$store.state.wxEnterpriseType||e.canAddTemp,type:"primary"},on:{click:e.addTemplate}},[e._v("新建模版")]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"tempTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.templateList,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":"","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateName))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"模板id","show-overflow-tooltip":"","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.templateId))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建人",prop:"creatorName","show-overflow-tooltip":"","min-width":"90"}}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"编辑人","show-overflow-tooltip":"","min-width":"90"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.editPerson))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"最近编辑时间","show-overflow-tooltip":"","min-width":"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.editTime)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.editTime)))])]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.editGroupTemp)||e.$getButtonLimit(e.$buttonCode.setStoreArea)||e.$getButtonLimit(e.$buttonCode.delGroupTemp)?a("el-table-column",{attrs:{label:"操作","min-width":"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.editGroupTemp)?a("el-button",{attrs:{"limit-code":e.$buttonCode.editGroupTemp,type:"text",disabled:e.$store.state.wxEnterpriseType},on:{click:function(a){return e.toEdit(t.$index,t.row)}}},[e._v("编辑")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.setStoreArea)?a("el-button",{attrs:{"limit-code":e.$buttonCode.setStoreArea,type:"text",disabled:e.$store.state.wxEnterpriseType},on:{click:function(a){return e.toStore(t.$index,t.row)}}},[e._v("门店范围设置")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.delGroupTemp)?a("el-button",{attrs:{"limit-code":e.$buttonCode.delGroupTemp,type:"text",disabled:e.$store.state.wxEnterpriseType},on:{click:function(a){return e.toDel(t.$index,t.row)}}},[e._v("删除")]):e._e()]}}])}):e._e()],1)],1)])},staticRenderFns:[]};var l=a("VU/8")(s,i,!1,function(e){a("m59b")},"data-v-1c8e199b",null);t.default=l.exports},AYL1:function(e,t){},JuNN:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("scn4"),o=a("8fbE"),n={name:"memberGroupSet",components:{MemberGroupList:r.default,MemberGroupSetList:o.default},props:{brandId:{type:String,default:""}},data:function(){return{activeName:"first"}}},s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"客户分组列表",name:"first"}},[a("member-group-list",{attrs:{"brand-id":e.brandId}})],1),e._v(" "),a("el-tab-pane",{attrs:{label:"分组展示设置",name:"second"}},[a("member-group-set-list",{attrs:{"brand-id":e.brandId}})],1)],1)],1)},staticRenderFns:[]};var i=a("VU/8")(n,s,!1,function(e){a("LX0i")},"data-v-6ad8a13f",null);t.default=i.exports},LX0i:function(e,t){},m59b:function(e,t){},scn4:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3E4D"),o=a("Ch4/"),n=a("PI0u"),s=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",overTimeSeeFlag:!1,conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,loading:!1,syncDate:"",loadingBtn:!1}},methods:{getSyncDate:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-group_last_syn_time",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.syncDate=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toSync:Object(n.a)(function(){var e=this;e.loadingBtn=!0;var t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/syn-group",t).then(function(t){var a=t.data;if(e.loadingBtn=!1,1==a.errorCode)return r.a.showmsg("同步成功","success"),void e.getSyncDate();o.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},500),getGroupClassSet:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-member-group-setting",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.overTimeSeeFlag=0!=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},saveGroupSet:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,overTimeSeeFlag:1==e.overTimeSeeFlag?1:0};Object(s.g)("/haoban-app-customer-web/memberGroup/save-member-group-setting",t).then(function(e){var t=e.data;if(1==t.errorCode)return r.a.showmsg("设置成功","success"),!1;o.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(n.a)(function(e,t){this.currentPage=1,this.getGroupList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getGroupList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getGroupList(this.brandId)},getGroupClassify:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-member-class-list",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.classifyList=a.result.list||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getGroupList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getGroupList(this.brandId)},getGroupList:function(e){var t=this;t.loading=!0;var a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId,memberGroupName:t.conditionObj.searchInput,classifyName:t.conditionObj.classifyName,effectiveStatus:t.conditionObj.effectiveStatus,pageNum:t.currentPage,pageSize:t.pageSize};Object(s.g)("/haoban-app-customer-web/memberGroup/member-tag-group-list",a).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.isSendTemplate=1==e.isSendTemplate}),t.groupListData=a.result.list||[],void(t.total=a.result.pageInfo?a.result.pageInfo.total:0);o.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.brandId&&(this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId))}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-pane border-box p-lbr-20"},[a("div",{staticClass:"condition-wrap flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"217px"},attrs:{placeholder:"请输入分组名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部分类"},on:{change:e.changeCondition},model:{value:e.conditionObj.classifyName,callback:function(t){e.$set(e.conditionObj,"classifyName",t)},expression:"conditionObj.classifyName"}},[a("el-option",{attrs:{label:"全部分类",value:""}}),e._v(" "),e._l(e.classifyList,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})],2),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部状态"},on:{change:e.changeCondition},model:{value:e.conditionObj.effectiveStatus,callback:function(t){e.$set(e.conditionObj,"effectiveStatus",t)},expression:"conditionObj.effectiveStatus"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"有效",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"失效",value:"0"}})],1)],1),e._v(" "),a("div",[e.$getButtonLimit(e.$buttonCode.groupExpire)?a("el-checkbox",{attrs:{"limit-code":e.$buttonCode.groupExpire,disabled:e.$store.state.wxEnterpriseType},on:{change:e.saveGroupSet},model:{value:e.overTimeSeeFlag,callback:function(t){e.overTimeSeeFlag=t},expression:"overTimeSeeFlag"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后,GIC中设置的好办端会员分组失效后,即使在GIC开启好办展示,好办移动端也不再展示该条分组",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB","margin-left":"-4px"}},[e._v("会员分组失效后不展示")])])],1):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.syncGroup)?a("el-button",{attrs:{"limit-code":e.$buttonCode.syncGroup,type:"primary",loading:e.loadingBtn,disabled:e.$store.state.wxEnterpriseType},on:{click:e.toSync}},[e._v("立即同步")]):e._e(),e._v(" "),e.syncDate?a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("最近一次同步时间:"+e._s(e._f("formatTimeStamp")(e.syncDate)))]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.groupListData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.groupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberTagGroupClassifyName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否固化","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.curingFlag?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+" ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])})],1),e._v(" "),0!=e.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var d=a("VU/8")(i,l,!1,function(e){a("AYL1")},"data-v-9b6be24e",null);t.default=d.exports}});
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([23,114],{"BW/r":function(t,e){},cRNv:function(t,e){},phd8:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Xxa5"),n=a.n(i),s=a("exGp"),r=a.n(s),l=a("PeHS"),c=a("DvcT"),o=a("/p6h"),d=a("RSOD"),u=a("PI0u"),m={name:"TargetGroup",props:{dataList:{type:Array,default:function(){return[]}}}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"target-group"},t._l(t.dataList,function(e,i){return a("div",{key:i,staticClass:"target",style:{width:100/t.dataList.length+"%"}},[a("div",{staticClass:"target-label"},[t._v("\n "+t._s(e.label)+"\n "),e.tips?a("el-tooltip",{attrs:{placement:"top","popper-class":"target-tooltip"}},[a("div",{staticStyle:{"max-width":"450px"},attrs:{slot:"content"},domProps:{innerHTML:t._s(e.tips)},slot:"content"}),t._v(" "),a("i",{staticClass:"iconfont icon-QuestionCircleOutlined target-label-icon"})]):t._e()],1),t._v(" "),a("div",{staticClass:"target-value"},[t._v("\n "+t._s(e.value)),e.unit?a("span",{staticClass:"target-value-unit"},[t._v(t._s(e.unit))]):t._e()])])}),0)},staticRenderFns:[]};var v=a("VU/8")(m,p,!1,function(t){a("cRNv")},"data-v-d9e8cd40",null).exports,h=a("X2mQ"),f=a("tqu3"),k=a("Q0Ca"),g=a("ckKa"),_={name:"actCodeDetail",components:{actCodeDetailInfo:c.default,previewPage:d.a,VueQr:h.a,targetGroup:v,newAddChart:f.default,dataDetail:o.default},props:{hmId:{type:String,default:""}},mixins:[g.a],data:function(){return{fixedHeight:280,filters:k.a,statisticsClerk:l.u,loading:!1,activeName:this.$route.query.type?this.$route.query.type:"first",link:{},page:{},originTargetList:[[{label:"添加好友人数",value:"",key:"addNumT",type:"number"},{label:"今日新增人数",value:"",key:"addNum",type:"number"}],[{label:"点击总人次",value:"",key:"clickTimesT",type:"number"},{label:"今日点击人次",value:"",key:"clickTimes",type:"number"}],[{label:"点击总人数",value:"",key:"clickNumT",type:"number"},{label:"今日点击人数",value:"",key:"clickNum",type:"number"}]],charData:[],welcome:{},targetData:{},scrollTop:0,linkId:this.$route.params.id}},computed:{targetList:function(){var t=this;return this.originTargetList.map(function(e){return e.filter(function(e){var a=t.targetData[e.key]||0;return e.value=a.toLocaleString(),!0})}).filter(function(t){return t.length>0})}},methods:{getChartList:function(){var t=this,e={linkId:this.linkId,startTime:this.dateDefault[0]+" 00:00:00",endTime:this.dateDefault[1]+" 23:59:59"};Object(l.t)(e).then(function(e){var a=e.data.result;t.charData=a||[]})},statisticsTotal:function(){var t=this;Object(l.v)({linkId:this.linkId}).then(function(e){var a=e.data.result;a&&(t.targetData=a)})},downloadQR:function(){var t=document.getElementById("qrImg");console.log(t);var e=t.getElementsByTagName("img")[0],a=document.createElement("a"),i=e.getAttribute("src");a.setAttribute("href",i),a.setAttribute("download",this.link.linkCode+"_"+this.link.name+".png"),a.click()},goEdit:function(){this.$router.push("/attractFlowLinkEdit/"+this.link.linkId)},getDetail:function(){var t=this;return r()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.loading=!0,Object(l.n)({linkId:t.linkId}).then(function(e){var a=e.data.result;if(a){var i=a.link,n=a.page,s=a.welcome;t.link=i,t.page=n,t.welcome=s}}).catch(function(t){this.$message.error({duration:1e3,message:t.message})}).finally(function(e){t.loading=!1});case 2:case"end":return e.stop()}},e,t)}))()},onDateChange:function(){this.dateKey=-1,this.getChartList()},scrollMethod:Object(u.b)(function(){this.scrollTop=document.getElementById("hb-layout-pager-one").scrollTop},100),handleClick:function(t){"first"==t.name?this.getDetail():this.getChartList()}},mounted:function(){this.getDetail(),this.statisticsTotal(),this.btnChange(0),document.getElementById("hb-layout-pager-one").addEventListener("scroll",this.scrollMethod)},destroyed:function(){document.getElementById("hb-layout-pager-one").removeEventListener("scroll",this.scrollMethod)}},b={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"info p-20"},[a("div",{staticClass:"flex p-b-40"},[2==t.link.linkType?a("vue-qr",{staticClass:"m-r-30",attrs:{id:"qrImg",text:t.link.linkUrl,size:200,margin:5}}):t._e(),t._v(" "),a("div",{staticClass:"title-right"},[a("el-descriptions",{attrs:{title:t.link.name}},[a("el-descriptions-item",{attrs:{label:"ID"}},[t._v(t._s(t.link.linkCode))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"code"}},[t._v(t._s(t.link.shortCode))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"链接类型"}},[a("el-tag",{class:2==t.link.linkType?"":"el-tag--cyan",attrs:{size:"mini"}},[t._v(t._s(1==t.link.linkType?"专用链接":"通用链接"))])],1),t._v(" "),a("el-descriptions-item",{attrs:{label:"创建人"}},[t._v(t._s(t.link.creatorName))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"创建时间"}},[t._v(t._s(t.filters.formatTimeStamp(t.link.createTime)))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"链接标签"}},[a("el-tooltip",{attrs:{disabled:0!=t.link.memberLabelStatus,content:"已删除",placement:"top"}},[a("el-tag",{attrs:{size:"mini",type:0==t.link.memberLabelStatus?"warning":"info"}},[t._v(t._s(t.link.memberLabelName))])],1)],1),t._v(" "),a("el-descriptions-item",{attrs:{label:"链接描述"}},[t._v(t._s(t.link.remark))])],1),t._v(" "),a("div",{staticClass:"m-t-10"},[2==t.link.linkType?a("el-button",{staticStyle:{width:"120px"},attrs:{icon:"iconfont-hb3 iconxiazai",type:"primary"},on:{click:t.downloadQR}},[t._v("下载二维码")]):t._e(),t._v(" "),2==t.link.linkType?a("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:text",value:t.link.linkUrl,expression:"link.linkUrl",arg:"text"}],staticStyle:{width:"98px"},attrs:{type:"primary",plain:""}},[t._v("复制链接")]):t._e(),t._v(" "),a("el-button",{staticStyle:{width:"98px"},attrs:{plain:"",type:1==t.link.linkType?"primary":""},on:{click:t.goEdit}},[t._v("修改")])],1)],1)],1),t._v(" "),t.scrollTop>=t.fixedHeight?a("div",{staticClass:"fixed-tab"},[a("el-tabs",{attrs:{type:"card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"详情信息",name:"first"}},[a("div")]),t._v(" "),a("el-tab-pane",{attrs:{label:"数据统计",name:"second"}},[a("div")])],1)],1):t._e(),t._v(" "),a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.$getButtonLimit(this.$buttonCode.infoLink)?a("el-tab-pane",{attrs:{label:"详情信息",name:"first","limit-code":t.$buttonCode.infoLink}},[a("act-code-detail-info",{attrs:{type:"actLink","enterprise-id":t.link.enterpriseId,"welcome-id":t.link.welcomeId}}),t._v(" "),a("dm-sub-title",[t._v("落地页配置")]),t._v(" "),a("div",{staticClass:"m-t-15"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"welcome-left-view"},[a("el-descriptions",{attrs:{column:1}},[a("el-descriptions-item",{attrs:{label:"页面标题"}},[t._v(t._s(t.page.pageTitle))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"商户名称"}},[t._v(t._s(t.page.merchantName))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"商户电话"}},[t._v(t._s(t.page.merchantPhoneNumber))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"商户LOGO"}},[t.page.merchantLogo?a("img",{staticClass:"merchantLogo",attrs:{src:t.page.merchantLogo}}):t._e()]),t._v(" "),a("el-descriptions-item",{attrs:{label:"引导语"}},[t._v(t._s(t.page.guideComment))])],1)],1),t._v(" "),a("div",{staticClass:"preview"},[a("p",{staticClass:"previewTitle"},[t._v("落地页预览")]),t._v(" "),a("previewPage",{attrs:{data:t.page}}),t._v(" "),a("p",{staticClass:"previewBottom"},[t._v("此二维码只是样式预览效果,请勿直接使用")])],1)])])],1):t._e(),t._v(" "),t.$getButtonLimit(this.$buttonCode.dataLink)?a("el-tab-pane",{attrs:{label:"数据统计",name:"second","limit-code":t.$buttonCode.dataLink}},[a("div",{staticClass:"statistics"},[a("dm-sub-title",[a("div",{staticClass:"title"},[a("span",[t._v("概览")]),t._v(" "),a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:linkGl",arg:"linkGl"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("el-row",{attrs:{gutter:20}},t._l(t.targetList,function(t,e){return a("el-col",{key:e,attrs:{span:8}},[a("target-group",{attrs:{"data-list":t}})],1)}),1),t._v(" "),a("div",{staticClass:"flex justify-end"},[a("div",{staticClass:"rightBox"},[t._l(t.dateLis,function(e,i){return a("ul",{key:e.key,staticClass:"datebox"},[a("li",{staticClass:"dateLisBox",class:t.dateKey==i?"activeClass":"noActive",on:{click:function(e){return t.btnChange(i)}}},[t._v(t._s(e.value))])])}),t._v(" "),a("el-date-picker",{staticClass:"w256",attrs:{type:"daterange","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期","default-time":["00:00:00","23:59:59"],"picker-options":t.pickerOptions(),format:[2,3,4].includes(t.dateKey)?"yyyy-MM":"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},on:{change:t.onDateChange},model:{value:t.dateDefault,callback:function(e){t.dateDefault=e},expression:"dateDefault"}})],2)]),t._v(" "),a("new-add-chart",{staticStyle:{"margin-top":"26px"},attrs:{charData:t.charData,id:"new-add-chart"}}),t._v(" "),a("dm-sub-title",[a("div",{staticClass:"title"},[a("span",[t._v("查看明细")]),t._v(" "),a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:linkCkmx",arg:"linkCkmx"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("data-detail",{staticClass:"m-t-15",attrs:{id:t.linkId,typeT:"link",api:t.statisticsClerk}})],1)]):t._e()],1)],1)},staticRenderFns:[]};var y=a("VU/8")(_,b,!1,function(t){a("pk3p")},"data-v-cdabd972",null);e.default=y.exports},pk3p:function(t,e){},tqu3:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Xxa5"),n=a.n(i),s=a("exGp"),r=a.n(s),l=a("5i7M"),c={data:function(){return{chart:null,maxNum:0,maxTimes:0}},props:{charData:{type:Array,default:function(){return[]}},id:String},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){var t=this;return r()(n.a.mark(function e(){var a;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.chart&&t.chart.destroy(),t.charData.length){e.next=3;break}return e.abrupt("return");case 3:a=t.handleData(t.charData),t.chart=new l.a({container:t.id,autoFit:!0,forceFit:!0,height:359,width:1400,padding:[70,60,40,70]}),t.chart.source(a,{value:{type:"linear",tickInterval:50}}),t.chart.tooltip({showMarkers:!1,shared:!0}),t.chart.scale({date:{dataKey:"date",type:"cat"},num:{min:0,tickCount:t.maxNum>2?5:t.maxNum+1,tickMethod:"wilkinson-extended",nice:!0},times:{min:0,tickCount:t.maxTimes>2?5:t.maxTimes+1,tickMethod:"wilkinson-extended",nice:!0}}),t.chart.legend({position:"top-left"}),t.chart.axis("times",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return Math.floor(t)+"人次"}}}),t.chart.axis("num",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return Math.floor(t)+"人"}}}),t.chart.tooltip({showMarkers:!1,shared:!0,showCrosshairs:!0}),t.chart.line().position("date*num").color("type",["rgba(75,116,232,1)","rgba(20, 201, 201, 1)","rgba(214, 179, 140, 1)"]),t.chart.line().position("date*times").color("type",["rgba(214, 179, 140, 1)"]),t.chart.render();case 15:case"end":return e.stop()}},e,t)}))()},handleData:function(t){var e=[],a=0,i=0;return t.forEach(function(t){t.clickNum>a&&(a=t.clickNum),t.clickTimes>i&&(i=t.clickTimes),e.push({date:t.bizDate,type:"新增人数",num:t.addNum}),e.push({date:t.bizDate,type:"点击人数",num:t.clickNum}),e.push({date:t.bizDate,type:"点击人次",times:t.clickTimes})}),this.maxNum=a,this.maxTimes=i,console.log(a,i),e}}},o={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"chart--nodata",attrs:{id:this.id}}),this._v(" "),this.charData.length?this._e():e("div",{staticClass:"chart--nodata"},[this._m(0)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("img",{staticClass:"image-120",attrs:{src:a("es7N")}}),this._v(" "),e("p",{staticClass:"font-14 color-606266 no-data-text"},[this._v("暂无数据")])])}]};var d=a("VU/8")(c,o,!1,function(t){a("BW/r")},"data-v-193fe4c4",null);e.default=d.exports}}); webpackJsonp([23,115],{"BW/r":function(t,e){},cRNv:function(t,e){},phd8:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Xxa5"),n=a.n(i),s=a("exGp"),r=a.n(s),l=a("PeHS"),c=a("DvcT"),o=a("/p6h"),d=a("RSOD"),u=a("PI0u"),m={name:"TargetGroup",props:{dataList:{type:Array,default:function(){return[]}}}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"target-group"},t._l(t.dataList,function(e,i){return a("div",{key:i,staticClass:"target",style:{width:100/t.dataList.length+"%"}},[a("div",{staticClass:"target-label"},[t._v("\n "+t._s(e.label)+"\n "),e.tips?a("el-tooltip",{attrs:{placement:"top","popper-class":"target-tooltip"}},[a("div",{staticStyle:{"max-width":"450px"},attrs:{slot:"content"},domProps:{innerHTML:t._s(e.tips)},slot:"content"}),t._v(" "),a("i",{staticClass:"iconfont icon-QuestionCircleOutlined target-label-icon"})]):t._e()],1),t._v(" "),a("div",{staticClass:"target-value"},[t._v("\n "+t._s(e.value)),e.unit?a("span",{staticClass:"target-value-unit"},[t._v(t._s(e.unit))]):t._e()])])}),0)},staticRenderFns:[]};var v=a("VU/8")(m,p,!1,function(t){a("cRNv")},"data-v-d9e8cd40",null).exports,h=a("X2mQ"),f=a("tqu3"),k=a("Q0Ca"),g=a("ckKa"),_={name:"actCodeDetail",components:{actCodeDetailInfo:c.default,previewPage:d.a,VueQr:h.a,targetGroup:v,newAddChart:f.default,dataDetail:o.default},props:{hmId:{type:String,default:""}},mixins:[g.a],data:function(){return{fixedHeight:280,filters:k.a,statisticsClerk:l.u,loading:!1,activeName:this.$route.query.type?this.$route.query.type:"first",link:{},page:{},originTargetList:[[{label:"添加好友人数",value:"",key:"addNumT",type:"number"},{label:"今日新增人数",value:"",key:"addNum",type:"number"}],[{label:"点击总人次",value:"",key:"clickTimesT",type:"number"},{label:"今日点击人次",value:"",key:"clickTimes",type:"number"}],[{label:"点击总人数",value:"",key:"clickNumT",type:"number"},{label:"今日点击人数",value:"",key:"clickNum",type:"number"}]],charData:[],welcome:{},targetData:{},scrollTop:0,linkId:this.$route.params.id}},computed:{targetList:function(){var t=this;return this.originTargetList.map(function(e){return e.filter(function(e){var a=t.targetData[e.key]||0;return e.value=a.toLocaleString(),!0})}).filter(function(t){return t.length>0})}},methods:{getChartList:function(){var t=this,e={linkId:this.linkId,startTime:this.dateDefault[0]+" 00:00:00",endTime:this.dateDefault[1]+" 23:59:59"};Object(l.t)(e).then(function(e){var a=e.data.result;t.charData=a||[]})},statisticsTotal:function(){var t=this;Object(l.v)({linkId:this.linkId}).then(function(e){var a=e.data.result;a&&(t.targetData=a)})},downloadQR:function(){var t=document.getElementById("qrImg");console.log(t);var e=t.getElementsByTagName("img")[0],a=document.createElement("a"),i=e.getAttribute("src");a.setAttribute("href",i),a.setAttribute("download",this.link.linkCode+"_"+this.link.name+".png"),a.click()},goEdit:function(){this.$router.push("/attractFlowLinkEdit/"+this.link.linkId)},getDetail:function(){var t=this;return r()(n.a.mark(function e(){return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:t.loading=!0,Object(l.n)({linkId:t.linkId}).then(function(e){var a=e.data.result;if(a){var i=a.link,n=a.page,s=a.welcome;t.link=i,t.page=n,t.welcome=s}}).catch(function(t){this.$message.error({duration:1e3,message:t.message})}).finally(function(e){t.loading=!1});case 2:case"end":return e.stop()}},e,t)}))()},onDateChange:function(){this.dateKey=-1,this.getChartList()},scrollMethod:Object(u.b)(function(){this.scrollTop=document.getElementById("hb-layout-pager-one").scrollTop},100),handleClick:function(t){"first"==t.name?this.getDetail():this.getChartList()}},mounted:function(){this.getDetail(),this.statisticsTotal(),this.btnChange(0),document.getElementById("hb-layout-pager-one").addEventListener("scroll",this.scrollMethod)},destroyed:function(){document.getElementById("hb-layout-pager-one").removeEventListener("scroll",this.scrollMethod)}},b={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"info p-20"},[a("div",{staticClass:"flex p-b-40"},[2==t.link.linkType?a("vue-qr",{staticClass:"m-r-30",attrs:{id:"qrImg",text:t.link.linkUrl,size:200,margin:5}}):t._e(),t._v(" "),a("div",{staticClass:"title-right"},[a("el-descriptions",{attrs:{title:t.link.name}},[a("el-descriptions-item",{attrs:{label:"ID"}},[t._v(t._s(t.link.linkCode))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"code"}},[t._v(t._s(t.link.shortCode))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"链接类型"}},[a("el-tag",{class:2==t.link.linkType?"":"el-tag--cyan",attrs:{size:"mini"}},[t._v(t._s(1==t.link.linkType?"专用链接":"通用链接"))])],1),t._v(" "),a("el-descriptions-item",{attrs:{label:"创建人"}},[t._v(t._s(t.link.creatorName))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"创建时间"}},[t._v(t._s(t.filters.formatTimeStamp(t.link.createTime)))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"链接标签"}},[a("el-tooltip",{attrs:{disabled:0!=t.link.memberLabelStatus,content:"已删除",placement:"top"}},[a("el-tag",{attrs:{size:"mini",type:0==t.link.memberLabelStatus?"warning":"info"}},[t._v(t._s(t.link.memberLabelName))])],1)],1),t._v(" "),a("el-descriptions-item",{attrs:{label:"链接描述"}},[t._v(t._s(t.link.remark))])],1),t._v(" "),a("div",{staticClass:"m-t-10"},[2==t.link.linkType?a("el-button",{staticStyle:{width:"120px"},attrs:{icon:"iconfont-hb3 iconxiazai",type:"primary"},on:{click:t.downloadQR}},[t._v("下载二维码")]):t._e(),t._v(" "),2==t.link.linkType?a("el-button",{directives:[{name:"clipboard",rawName:"v-clipboard:text",value:t.link.linkUrl,expression:"link.linkUrl",arg:"text"}],staticStyle:{width:"98px"},attrs:{type:"primary",plain:""}},[t._v("复制链接")]):t._e(),t._v(" "),a("el-button",{staticStyle:{width:"98px"},attrs:{plain:"",type:1==t.link.linkType?"primary":""},on:{click:t.goEdit}},[t._v("修改")])],1)],1)],1),t._v(" "),t.scrollTop>=t.fixedHeight?a("div",{staticClass:"fixed-tab"},[a("el-tabs",{attrs:{type:"card"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"详情信息",name:"first"}},[a("div")]),t._v(" "),a("el-tab-pane",{attrs:{label:"数据统计",name:"second"}},[a("div")])],1)],1):t._e(),t._v(" "),a("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.$getButtonLimit(this.$buttonCode.infoLink)?a("el-tab-pane",{attrs:{label:"详情信息",name:"first","limit-code":t.$buttonCode.infoLink}},[a("act-code-detail-info",{attrs:{type:"actLink","enterprise-id":t.link.enterpriseId,"welcome-id":t.link.welcomeId}}),t._v(" "),a("dm-sub-title",[t._v("落地页配置")]),t._v(" "),a("div",{staticClass:"m-t-15"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"welcome-left-view"},[a("el-descriptions",{attrs:{column:1}},[a("el-descriptions-item",{attrs:{label:"页面标题"}},[t._v(t._s(t.page.pageTitle))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"商户名称"}},[t._v(t._s(t.page.merchantName))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"商户电话"}},[t._v(t._s(t.page.merchantPhoneNumber))]),t._v(" "),a("el-descriptions-item",{attrs:{label:"商户LOGO"}},[t.page.merchantLogo?a("img",{staticClass:"merchantLogo",attrs:{src:t.page.merchantLogo}}):t._e()]),t._v(" "),a("el-descriptions-item",{attrs:{label:"引导语"}},[t._v(t._s(t.page.guideComment))])],1)],1),t._v(" "),a("div",{staticClass:"preview"},[a("p",{staticClass:"previewTitle"},[t._v("落地页预览")]),t._v(" "),a("previewPage",{attrs:{data:t.page}}),t._v(" "),a("p",{staticClass:"previewBottom"},[t._v("此二维码只是样式预览效果,请勿直接使用")])],1)])])],1):t._e(),t._v(" "),t.$getButtonLimit(this.$buttonCode.dataLink)?a("el-tab-pane",{attrs:{label:"数据统计",name:"second","limit-code":t.$buttonCode.dataLink}},[a("div",{staticClass:"statistics"},[a("dm-sub-title",[a("div",{staticClass:"title"},[a("span",[t._v("概览")]),t._v(" "),a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:linkGl",arg:"linkGl"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("el-row",{attrs:{gutter:20}},t._l(t.targetList,function(t,e){return a("el-col",{key:e,attrs:{span:8}},[a("target-group",{attrs:{"data-list":t}})],1)}),1),t._v(" "),a("div",{staticClass:"flex justify-end"},[a("div",{staticClass:"rightBox"},[t._l(t.dateLis,function(e,i){return a("ul",{key:e.key,staticClass:"datebox"},[a("li",{staticClass:"dateLisBox",class:t.dateKey==i?"activeClass":"noActive",on:{click:function(e){return t.btnChange(i)}}},[t._v(t._s(e.value))])])}),t._v(" "),a("el-date-picker",{staticClass:"w256",attrs:{type:"daterange","range-separator":"~","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期","default-time":["00:00:00","23:59:59"],"picker-options":t.pickerOptions(),format:[2,3,4].includes(t.dateKey)?"yyyy-MM":"yyyy-MM-dd","value-format":"yyyy-MM-dd",clearable:!1},on:{change:t.onDateChange},model:{value:t.dateDefault,callback:function(e){t.dateDefault=e},expression:"dateDefault"}})],2)]),t._v(" "),a("new-add-chart",{staticStyle:{"margin-top":"26px"},attrs:{charData:t.charData,id:"new-add-chart"}}),t._v(" "),a("dm-sub-title",[a("div",{staticClass:"title"},[a("span",[t._v("查看明细")]),t._v(" "),a("el-button",{directives:[{name:"jumpLink",rawName:"v-jumpLink:linkCkmx",arg:"linkCkmx"}],attrs:{type:"text"}},[a("i",{staticClass:"iconfont-hb3 iconzhibiaoshuoming m-r-6"}),t._v("指标说明")])],1)]),t._v(" "),a("data-detail",{staticClass:"m-t-15",attrs:{id:t.linkId,typeT:"link",api:t.statisticsClerk}})],1)]):t._e()],1)],1)},staticRenderFns:[]};var y=a("VU/8")(_,b,!1,function(t){a("pk3p")},"data-v-cdabd972",null);e.default=y.exports},pk3p:function(t,e){},tqu3:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Xxa5"),n=a.n(i),s=a("exGp"),r=a.n(s),l=a("5i7M"),c={data:function(){return{chart:null,maxNum:0,maxTimes:0}},props:{charData:{type:Array,default:function(){return[]}},id:String},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){var t=this;return r()(n.a.mark(function e(){var a;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.chart&&t.chart.destroy(),t.charData.length){e.next=3;break}return e.abrupt("return");case 3:a=t.handleData(t.charData),t.chart=new l.a({container:t.id,autoFit:!0,forceFit:!0,height:359,width:1400,padding:[70,60,40,70]}),t.chart.source(a,{value:{type:"linear",tickInterval:50}}),t.chart.tooltip({showMarkers:!1,shared:!0}),t.chart.scale({date:{dataKey:"date",type:"cat"},num:{min:0,tickCount:t.maxNum>2?5:t.maxNum+1,tickMethod:"wilkinson-extended",nice:!0},times:{min:0,tickCount:t.maxTimes>2?5:t.maxTimes+1,tickMethod:"wilkinson-extended",nice:!0}}),t.chart.legend({position:"top-left"}),t.chart.axis("times",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return Math.floor(t)+"人次"}}}),t.chart.axis("num",{grid:{line:{type:"line",style:{stroke:"#E4E7ED",lineDash:[3,3]}}},label:{formatter:function(t){return Math.floor(t)+"人"}}}),t.chart.tooltip({showMarkers:!1,shared:!0,showCrosshairs:!0}),t.chart.line().position("date*num").color("type",["rgba(75,116,232,1)","rgba(20, 201, 201, 1)","rgba(214, 179, 140, 1)"]),t.chart.line().position("date*times").color("type",["rgba(214, 179, 140, 1)"]),t.chart.render();case 15:case"end":return e.stop()}},e,t)}))()},handleData:function(t){var e=[],a=0,i=0;return t.forEach(function(t){t.clickNum>a&&(a=t.clickNum),t.clickTimes>i&&(i=t.clickTimes),e.push({date:t.bizDate,type:"新增人数",num:t.addNum}),e.push({date:t.bizDate,type:"点击人数",num:t.clickNum}),e.push({date:t.bizDate,type:"点击人次",times:t.clickTimes})}),this.maxNum=a,this.maxTimes=i,console.log(a,i),e}}},o={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"chart--nodata",attrs:{id:this.id}}),this._v(" "),this.charData.length?this._e():e("div",{staticClass:"chart--nodata"},[this._m(0)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("img",{staticClass:"image-120",attrs:{src:a("es7N")}}),this._v(" "),e("p",{staticClass:"font-14 color-606266 no-data-text"},[this._v("暂无数据")])])}]};var d=a("VU/8")(c,o,!1,function(t){a("BW/r")},"data-v-193fe4c4",null);e.default=d.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([24,72,116],{"7koN":function(t,e){},ZEf4:function(t,e){},i0rV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("woOf"),n=a.n(i),l=a("P9l9"),s=a("Ch4/"),r={name:"GuideAuthSetting",data:function(){return{loading:!1,settingData:{editClerkFlag:0,addClerkFlag:0,delClerkFlag:0}}},created:function(){this.getSetting()},methods:{getSetting:function(){var t=this;Object(l.b)("/haoban-manage3-web/application-open-close-list",{}).then(function(e){var a=e.data||{},i=a.errorCode,l=a.result;if(1!=i)return s.a.errorMsg(e.data);var r=(l||{}).clerkEditInfo;n()(t.settingData,r)})},onSave:function(){var t=this;this.loading=!0;var e=this.settingData,a={editClerkFlag:e.editClerkFlag,addClerkFlag:e.addClerkFlag,delClerkFlag:e.delClerkFlag};Object(l.g)("/haoban-manage3-web/save-clerk-edit-flag",a).then(function(e){if(1!=(e.data||{}).errorCode)return s.a.errorMsg(e.data);t.$message.success("保存成功")}).finally(function(){setTimeout(function(){return t.loading=!1},100)})}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"guide-setting"},[a("div",{staticClass:"guide-auth-list"},[a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许编辑导购信息")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.editClerkFlag,callback:function(e){t.$set(t.settingData,"editClerkFlag",e)},expression:"settingData.editClerkFlag"}})],1),t._v(" "),a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许店长添加导购")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.addClerkFlag,callback:function(e){t.$set(t.settingData,"addClerkFlag",e)},expression:"settingData.addClerkFlag"}})],1),t._v(" "),a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许店长删除导购")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.delClerkFlag,callback:function(e){t.$set(t.settingData,"delClerkFlag",e)},expression:"settingData.delClerkFlag"}})],1)]),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveGuideSetting)?a("el-button",{staticClass:"save-btn",attrs:{"limit-code":t.$buttonCode.saveGuideSetting,loading:t.loading,type:"primary"},on:{click:t.onSave}},[t._v("保存")]):t._e()],1)},staticRenderFns:[]};var o=a("VU/8")(r,c,!1,function(t){a("7koN")},"data-v-18cf3981",null);e.default=o.exports},tPY2:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("i0rV"),n=a("w5vQ"),l={name:"GuideSetting",components:{GuideAuthSetting:i.default,AppVisibleSetting:n.default},data:function(){return{activeName:"first"}}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"导购操作权限设置",name:"first"}},[a("guide-auth-setting")],1),t._v(" "),a("el-tab-pane",{attrs:{label:"应用可见权限设置",name:"second"}},[a("app-visible-setting")],1)],1)],1)},staticRenderFns:[]},r=a("VU/8")(l,s,!1,null,null,null);e.default=r.exports},w5vQ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("mvHQ"),n=a.n(i),l=a("P9l9"),s=a("Ch4/"),r={name:"AppVisibleSetting",data:function(){return{loading:!1,settingData:{checked:[]},allApps:[]}},created:function(){this.getSetting()},methods:{getSetting:function(){var t=this;Object(l.b)("/haoban-manage3-web/application-open-close-list",{}).then(function(e){var a=e.data||{},i=a.errorCode,n=a.result;if(1!=i)return s.a.errorMsg(e.data);var l=(n||{}).allList;l=Array.isArray(l)?l:[],t.allApps=l,t.settingData.checked=l.filter(function(t){return 1==t.openFlag}).map(function(t){return t.applicationId})})},onSave:function(){var t=this;this.loading=!0;var e=this.settingData.checked,a=this.allApps.map(function(t){return{applicationId:t.applicationId,openFlag:e.includes(t.applicationId)?1:0}}),i={dataJson:n()(a)};Object(l.g)("/haoban-manage3-web/open-or-close",i).then(function(e){if(1!=(e.data||{}).errorCode)return s.a.errorMsg(e.data);t.$message.success("保存成功")}).finally(function(){setTimeout(function(){return t.loading=!1},100)})}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"guide-setting"},[a("p",{staticClass:"app-auth-tip"},[t._v("设置导购可见应用")]),t._v(" "),a("el-checkbox-group",{model:{value:t.settingData.checked,callback:function(e){t.$set(t.settingData,"checked",e)},expression:"settingData.checked"}},t._l(t.allApps,function(e){return a("el-checkbox",{key:e.applicationId,staticStyle:{"margin-left":"0"},attrs:{label:e.applicationId}},[t._v(t._s(e.applicationName))])}),1),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveAppsVisible)?a("el-button",{staticClass:"save-btn",attrs:{"limit-code":t.$buttonCode.saveAppsVisible,loading:t.loading,type:"primary"},on:{click:t.onSave}},[t._v("保存")]):t._e()],1)},staticRenderFns:[]};var o=a("VU/8")(r,c,!1,function(t){a("ZEf4")},"data-v-7a74d96c",null);e.default=o.exports}}); webpackJsonp([24,73,117],{"7koN":function(t,e){},ZEf4:function(t,e){},i0rV:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("woOf"),n=a.n(i),l=a("P9l9"),s=a("Ch4/"),r={name:"GuideAuthSetting",data:function(){return{loading:!1,settingData:{editClerkFlag:0,addClerkFlag:0,delClerkFlag:0}}},created:function(){this.getSetting()},methods:{getSetting:function(){var t=this;Object(l.b)("/haoban-manage3-web/application-open-close-list",{}).then(function(e){var a=e.data||{},i=a.errorCode,l=a.result;if(1!=i)return s.a.errorMsg(e.data);var r=(l||{}).clerkEditInfo;n()(t.settingData,r)})},onSave:function(){var t=this;this.loading=!0;var e=this.settingData,a={editClerkFlag:e.editClerkFlag,addClerkFlag:e.addClerkFlag,delClerkFlag:e.delClerkFlag};Object(l.g)("/haoban-manage3-web/save-clerk-edit-flag",a).then(function(e){if(1!=(e.data||{}).errorCode)return s.a.errorMsg(e.data);t.$message.success("保存成功")}).finally(function(){setTimeout(function(){return t.loading=!1},100)})}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"guide-setting"},[a("div",{staticClass:"guide-auth-list"},[a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许编辑导购信息")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.editClerkFlag,callback:function(e){t.$set(t.settingData,"editClerkFlag",e)},expression:"settingData.editClerkFlag"}})],1),t._v(" "),a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许店长添加导购")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.addClerkFlag,callback:function(e){t.$set(t.settingData,"addClerkFlag",e)},expression:"settingData.addClerkFlag"}})],1),t._v(" "),a("div",{staticClass:"guide-auth-item"},[a("span",{staticClass:"auth-item-label"},[t._v("允许店长删除导购")]),t._v(" "),a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:t.settingData.delClerkFlag,callback:function(e){t.$set(t.settingData,"delClerkFlag",e)},expression:"settingData.delClerkFlag"}})],1)]),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveGuideSetting)?a("el-button",{staticClass:"save-btn",attrs:{"limit-code":t.$buttonCode.saveGuideSetting,loading:t.loading,type:"primary"},on:{click:t.onSave}},[t._v("保存")]):t._e()],1)},staticRenderFns:[]};var o=a("VU/8")(r,c,!1,function(t){a("7koN")},"data-v-18cf3981",null);e.default=o.exports},tPY2:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("i0rV"),n=a("w5vQ"),l={name:"GuideSetting",components:{GuideAuthSetting:i.default,AppVisibleSetting:n.default},data:function(){return{activeName:"first"}}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"导购操作权限设置",name:"first"}},[a("guide-auth-setting")],1),t._v(" "),a("el-tab-pane",{attrs:{label:"应用可见权限设置",name:"second"}},[a("app-visible-setting")],1)],1)],1)},staticRenderFns:[]},r=a("VU/8")(l,s,!1,null,null,null);e.default=r.exports},w5vQ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("mvHQ"),n=a.n(i),l=a("P9l9"),s=a("Ch4/"),r={name:"AppVisibleSetting",data:function(){return{loading:!1,settingData:{checked:[]},allApps:[]}},created:function(){this.getSetting()},methods:{getSetting:function(){var t=this;Object(l.b)("/haoban-manage3-web/application-open-close-list",{}).then(function(e){var a=e.data||{},i=a.errorCode,n=a.result;if(1!=i)return s.a.errorMsg(e.data);var l=(n||{}).allList;l=Array.isArray(l)?l:[],t.allApps=l,t.settingData.checked=l.filter(function(t){return 1==t.openFlag}).map(function(t){return t.applicationId})})},onSave:function(){var t=this;this.loading=!0;var e=this.settingData.checked,a=this.allApps.map(function(t){return{applicationId:t.applicationId,openFlag:e.includes(t.applicationId)?1:0}}),i={dataJson:n()(a)};Object(l.g)("/haoban-manage3-web/open-or-close",i).then(function(e){if(1!=(e.data||{}).errorCode)return s.a.errorMsg(e.data);t.$message.success("保存成功")}).finally(function(){setTimeout(function(){return t.loading=!1},100)})}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"guide-setting"},[a("p",{staticClass:"app-auth-tip"},[t._v("设置导购可见应用")]),t._v(" "),a("el-checkbox-group",{model:{value:t.settingData.checked,callback:function(e){t.$set(t.settingData,"checked",e)},expression:"settingData.checked"}},t._l(t.allApps,function(e){return a("el-checkbox",{key:e.applicationId,staticStyle:{"margin-left":"0"},attrs:{label:e.applicationId}},[t._v(t._s(e.applicationName))])}),1),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveAppsVisible)?a("el-button",{staticClass:"save-btn",attrs:{"limit-code":t.$buttonCode.saveAppsVisible,loading:t.loading,type:"primary"},on:{click:t.onSave}},[t._v("保存")]):t._e()],1)},staticRenderFns:[]};var o=a("VU/8")(r,c,!1,function(t){a("ZEf4")},"data-v-7a74d96c",null);e.default=o.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([26],{"TLd+":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("5i7M"),n={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:null}},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){this.chart&&this.chart.destroy(),this.chart=new o.a({container:this.id,width:this.width,autoFit:!0,height:420}),this.chart.data(this.charData),this.chart.scale({loginRate:{min:0,nice:!0,alias:"登录率"},date:{}}),this.chart.tooltip({crosshairs:{type:"line"},itemTpl:'<li style="padding-bottom:10px;">登录率: {value} %</li>'}),this.chart.axis("loginRate",{label:{formatter:function(t){return t+"%"}}}),this.chart.line().position("date*loginRate"),this.chart.render()}}},s={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var r=a("VU/8")(n,s,!1,function(t){a("t4C2")},"data-v-7a731818",null).exports,i=a("ApSX"),l=a("P9l9"),c=a("Ch4/"),u=a("Q0Ca"),g={name:"activeDetail",data:function(){return{selectStartDay:"",selectEndDay:"",selectTableDay:"",pickerOptions:{disabledDate:function(t){var e=Date.now()-6912e5;return t.getTime()>=Date.now()-864e5||t.getTime()<e}},groupIds:[],currentPage:1,pageSize:20,total:0,tableData:[],multipleSelection:[],addShow:!1,loadingBtn:!1,selectRadio:0,charData:[]}},computed:{},methods:{changeTableDate:function(){this.getTableList()},checkGroupIds:function(t){this.groupIds=t,this.getTableList()},toRedirect:function(t){this.$router.push("/loginDetail?storeId="+t.xValue+"&brandId="+this.$route.query.brandId+"&selectTableDay="+this.selectTableDay)},handleCommand:function(t){this.selectRadio=t},handleSelectionChange:function(t){this.multipleSelection=t},exportExcel:function(){this.loadingBtn=!0,this.postExcelData()},postExcelData:function(){var t=this,e={enterpriseId:t.$route.query.brandId,startDate:t.selectTableDay,endDate:t.selectTableDay,groupIdList:t.groupIds.map(function(t){return t.storeGroupId}).join(","),selectType:t.selectRadio};Object(l.c)("/haoban-manage3-web/web/export-area-ranking-list",e).then(function(e){if(t.loadingBtn=!1,!e.data)return c.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),o=document.createElement("a");o.download="区域登录明细报表.csv",o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTendData:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,startDate:e.selectStartDay,endDate:e.selectEndDay};Object(l.b)("/haoban-manage3-web/web/area-ranking-date",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.result&&a.result.result.forEach(function(t){t.date=t.bizDates+"("+t.weeks+")",t.loginRate=1e3*t.loginRate/10}),e.charData=a.result.result||[],!1;c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,startDate:e.selectTableDay,endDate:e.selectTableDay,groupIdList:e.groupIds.map(function(t){return t.storeGroupId}).join(","),pageSize:e.pageSize,currentPage:e.currentPage};Object(l.g)("/haoban-manage3-web/web/area-ranking-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.result.list&&a.result.result.list.length&&a.result.result.list.forEach(function(t){t.loginRate=1e3*t.loginRate/10+"%"}),e.tableData=a.result.result.list||[],e.total=a.result.result.total||0,!1;c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){var t=this;t.selectStartDay=u.a.timeStampToYmd((new Date).getTime()-6048e5),t.selectEndDay=u.a.timeStampToYmd((new Date).getTime()-864e5),t.selectTableDay=u.a.timeStampToYmd((new Date).getTime()-864e5),t.$nextTick(function(){t.getTableList(),t.getTendData()})},components:{areaChart:r,gicSelectGroupMult:i.a}},h={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"my-customer-wrap common-set-wrap"},[o("div",{staticClass:"right-content"},[o("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[o("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[o("div",{staticClass:"apps-content-right"},[t._m(0),t._v(" "),o("div",{staticClass:"chart-body m-t-20"},[t.charData.length?o("area-chart",{attrs:{charData:t.charData,id:"area-chart"}}):t._e(),t._v(" "),t.charData.length?t._e():o("div",{staticClass:"no-data-char"},[o("img",{attrs:{src:a("cxaT"),alt:""}}),t._v(" "),o("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])])],1),t._v(" "),o("div",{staticClass:"table-search m-t-20"},[o("div",{staticClass:"flex flex-space-between"},[o("div",[o("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:t.changeTableDate},model:{value:t.selectTableDay,callback:function(e){t.selectTableDay=e},expression:"selectTableDay"}}),o("gic-select-group-mult",{staticClass:"m-l-10",attrs:{selectData:t.groupIds},on:{checkGroupIds:t.checkGroupIds}}),o("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("当日筛选区域下门店总计为 "+t._s(t.total)+" 家:")])],1),t._v(" "),t.$getButtonLimit(t.$buttonCode.exportAreaLoginUser)?o("el-button",{attrs:{"limit-code":t.$buttonCode.exportAreaLoginUser,type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")]):t._e()],1)]),t._v(" "),o("div",{staticClass:"m-t-20"},[o("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[o("el-table-column",{attrs:{prop:"",label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.xName||"--")+"\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"",label:"门店code","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeCode||"--"))]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"",label:"门店区域","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeGroupName||"--"))]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"",label:"登录率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.loginRate||"0%"))]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"",label:"登录人数","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.loginClerkCnt||"0"))]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[o("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toRedirect(e.row)}}},[t._v("查看人员名单")])]}}])})],1),t._v(" "),0!=t.tableData.length?o("div",{staticClass:"block common-wrap__page text-right m-t-24"},[o("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex flex-space-between"},[e("div",{staticClass:"font-16 color-303133 font-w-600"},[this._v("近七天所有区域平均登录率趋势")]),this._v(" "),e("div",{staticClass:"el-alert el-alert-tip el-alert--info flex flex-align-start w-426",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("数据更新截至于昨日。今日数据需要隔天上午8点后进行查看。")])])])])}]};var d=a("VU/8")(g,h,!1,function(t){a("X6cT")},"data-v-7d044ac3",null);e.default=d.exports},X6cT:function(t,e){},cxaT:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQUAAACMCAYAAAB1Xrw1AAAAAXNSR0IArs4c6QAAEmJJREFUeAHtnQuMVNUdxv9ndpfHIuwMyD5t0ZiqmFZrKkpbLSKIishDUWoViI0xVWs1Tfo0bWLaxERta0xbTYqJgKKNyqIiImrAEhW1tiW2xpJarLoPXjuzy7LC7s6cfmd27uyyDsvO7j0z98z9Npm973P+53fO+e55X2lqS2nzE/6RAAmQAAhESIEESIAEBhKgKAykwX0SIAGWFJgGSIAEjibAksLRPHhEAqEnQFEIfRIgABI4mgBF4WgePCKB0BOgKIQ+CRAACRxNgKJwNA8ehYxAq9YTQhbk4waXonBcRLyhVAm0xPXKVEISTXH9SkubvvVAlz6pVMOa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J9IF0SIAF3CVAU3I07Wk4CVghQFKxgpaMk4C4BioK7cUfLScAKAYqCFax0lATcJUBRcDfuaDkJWCFAUbCClY6SgLsEKAruxh0tJwErBCgKVrDSURJwlwBFwd24o+UkYIUARcEKVjpKAu4SoCi4G3e0nASsEKAoWMFKR0nAXQIUBXfjjpaTgBUCFAUrWOkoCbhLgKLgbtzRchKwQoCiYAUrHSUBdwlQFNyNO1pOAlYIUBSsYKWjJOAuAYqCu3FHy0nACgGKghWsdJQE3CVAUXA37mg5CVghQFGwgpWOkoC7BCgK7sYdLScBKwQoClaw0lEScJcARcHduKPlJGCFAEXBClY6SgLuEqAouBt3tJwErBCgKFjBSkdJwF0CFAV3446Wk4AVAhQFK1jpKAm4S4Ci4G7c0XISsEKAomAFKx0lAXcJUBTcjTtaTgJWCFAUrGCloyTgLgGKgrtxR8tJwAoBioIVrHSUBNwlQFFwN+5oOQlYIUBRsIKVjpKAuwQoCu7GHS0nASsEVFNbSltxmY6SAAk4SUAZqykMTsYdjSYBKwT+D+Hgm8rKD5qfAAAAAElFTkSuQmCC"},t4C2:function(t,e){}}); webpackJsonp([26],{"TLd+":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("5i7M"),n={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:null}},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){this.chart&&this.chart.destroy(),this.chart=new o.a({container:this.id,width:this.width,autoFit:!0,height:420}),this.chart.data(this.charData),this.chart.scale({loginRate:{min:0,nice:!0,alias:"登录率"},date:{}}),this.chart.tooltip({crosshairs:{type:"line"},itemTpl:'<li style="padding-bottom:10px;">登录率: {value} %</li>'}),this.chart.axis("loginRate",{label:{formatter:function(t){return t+"%"}}}),this.chart.line().position("date*loginRate"),this.chart.render()}}},s={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var r=a("VU/8")(n,s,!1,function(t){a("lOPz")},"data-v-b2632f6a",null).exports,i=a("ApSX"),l=a("P9l9"),c=a("Ch4/"),u=a("Q0Ca"),g={name:"activeDetail",data:function(){return{selectStartDay:"",selectEndDay:"",selectTableDay:"",pickerOptions:{disabledDate:function(t){var e=Date.now()-6912e5;return t.getTime()>=Date.now()-864e5||t.getTime()<e}},groupIds:[],currentPage:1,pageSize:20,total:0,tableData:[],multipleSelection:[],addShow:!1,loadingBtn:!1,selectRadio:0,charData:[]}},computed:{},methods:{changeTableDate:function(){this.getTableList()},checkGroupIds:function(t){this.groupIds=t,this.getTableList()},toRedirect:function(t){this.$router.push("/loginDetail?storeId="+t.xValue+"&brandId="+this.$route.query.brandId+"&selectTableDay="+this.selectTableDay)},handleCommand:function(t){this.selectRadio=t},handleSelectionChange:function(t){this.multipleSelection=t},exportExcel:function(){this.loadingBtn=!0,this.postExcelData()},postExcelData:function(){var t=this,e={enterpriseId:t.$route.query.brandId,startDate:t.selectTableDay,endDate:t.selectTableDay,groupIdList:t.groupIds.map(function(t){return t.storeGroupId}).join(","),selectType:t.selectRadio};Object(l.c)("/haoban-manage3-web/web/export-area-ranking-list",e).then(function(e){if(t.loadingBtn=!1,!e.data)return c.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),o=document.createElement("a");o.download="区域登录明细报表.csv",o.style.display="none",o.href=URL.createObjectURL(a),document.body.appendChild(o),o.click(),URL.revokeObjectURL(o.href),document.body.removeChild(o)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTendData:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,startDate:e.selectStartDay,endDate:e.selectEndDay};Object(l.b)("/haoban-manage3-web/web/area-ranking-date",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.result&&a.result.result.forEach(function(t){t.date=t.bizDates+"("+t.weeks+")",t.loginRate=1e3*t.loginRate/10}),e.charData=a.result.result||[],!1;c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,startDate:e.selectTableDay,endDate:e.selectTableDay,groupIdList:e.groupIds.map(function(t){return t.storeGroupId}).join(","),pageSize:e.pageSize,currentPage:e.currentPage};Object(l.g)("/haoban-manage3-web/web/area-ranking-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.result.list&&a.result.result.list.length&&a.result.result.list.forEach(function(t){t.loginRate=1e3*t.loginRate/10+"%"}),e.tableData=a.result.result.list||[],e.total=a.result.result.total||0,!1;c.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){var t=this;t.selectStartDay=u.a.timeStampToYmd((new Date).getTime()-6048e5),t.selectEndDay=u.a.timeStampToYmd((new Date).getTime()-864e5),t.selectTableDay=u.a.timeStampToYmd((new Date).getTime()-864e5),t.$nextTick(function(){t.getTableList(),t.getTendData()})},components:{areaChart:r,gicSelectGroupMult:i.a}},h={render:function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"my-customer-wrap common-set-wrap"},[o("div",{staticClass:"right-content"},[o("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[o("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[o("div",{staticClass:"apps-content-right"},[t._m(0),t._v(" "),o("div",{staticClass:"chart-body m-t-20"},[t.charData.length?o("area-chart",{attrs:{charData:t.charData,id:"area-chart"}}):t._e(),t._v(" "),t.charData.length?t._e():o("div",{staticClass:"no-data-char"},[o("img",{attrs:{src:a("cxaT"),alt:""}}),t._v(" "),o("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])])],1),t._v(" "),o("div",{staticClass:"table-search m-t-20"},[o("div",{staticClass:"flex flex-space-between"},[o("div",[o("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:t.changeTableDate},model:{value:t.selectTableDay,callback:function(e){t.selectTableDay=e},expression:"selectTableDay"}}),o("gic-select-group-mult",{staticClass:"m-l-10",attrs:{selectData:t.groupIds},on:{checkGroupIds:t.checkGroupIds}}),o("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("当日筛选区域下门店总计为 "+t._s(t.total)+" 家:")])],1),t._v(" "),t.$getButtonLimit(t.$buttonCode.exportAreaLoginUser)?o("el-button",{attrs:{"limit-code":t.$buttonCode.exportAreaLoginUser,type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")]):t._e()],1)]),t._v(" "),o("div",{staticClass:"m-t-20"},[o("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[o("el-table-column",{attrs:{prop:"",label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.xName||"--")+"\n ")]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"",label:"门店code","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeCode||"--"))]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"",label:"门店区域","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeGroupName||"--"))]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"",label:"登录率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.loginRate||"0%"))]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"",label:"登录人数","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.loginClerkCnt||"0"))]}}])}),t._v(" "),o("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[o("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toRedirect(e.row)}}},[t._v("查看人员名单")])]}}])})],1),t._v(" "),0!=t.tableData.length?o("div",{staticClass:"block common-wrap__page text-right m-t-24"},[o("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex flex-space-between"},[e("div",{staticClass:"font-16 color-303133 font-w-600"},[this._v("近七天所有区域平均登录率趋势")]),this._v(" "),e("div",{staticClass:"el-alert el-alert-tip el-alert--info flex flex-align-start w-426",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("数据更新截至于昨日。今日数据需要隔天上午8点后进行查看。")])])])])}]};var d=a("VU/8")(g,h,!1,function(t){a("X6cT")},"data-v-7d044ac3",null);e.default=d.exports},X6cT:function(t,e){},cxaT:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQUAAACMCAYAAAB1Xrw1AAAAAXNSR0IArs4c6QAAEmJJREFUeAHtnQuMVNUdxv9ndpfHIuwMyD5t0ZiqmFZrKkpbLSKIishDUWoViI0xVWs1Tfo0bWLaxERta0xbTYqJgKKNyqIiImrAEhW1tiW2xpJarLoPXjuzy7LC7s6cfmd27uyyDsvO7j0z98z9Npm973P+53fO+e55X2lqS2nzE/6RAAmQAAhESIEESIAEBhKgKAykwX0SIAGWFJgGSIAEjibAksLRPHhEAqEnQF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B+Xl8mc6onqP2EGzbCTgCsErEyI6kzJ1UYQUGUwQnBhdRUFwZUEQTtJQGyNU8Csx9v3dupaIiYBEnCMgC1RcAwDzSUBEsgQsFJ9IF0SIAF3CVAU3I07Wk4CVghQFKxgpaMk4C4BioK7cUfLScAKAYqCFax0lATcJUBRcDfuaDkJWCFAUbCClY6SgLsEKAruxh0tJwErBCgKVrDSURJwlwBFwd24o+UkYIUARcEKVjpKAu4SoCi4G3e0nASsEKAoWMFKR0nAXQIUBXfjjpaTgBUCFAUrWOkoCbhLgKLgbtzRchKwQoCiYAUrHSUBdwlQFNyNO1pOAlYIUBSsYKWjJOAuAYqCu3FHy0nACgGKghWsdJQE3CVAUXA37mg5CVghQFGwgpWOkoC7BCgK7sYdLScBKwQoClaw0lEScJcARcHduKPlJGCFAEXBClY6SgLuEqAouBt3tJwErBCgKFjBSkdJwF0CFAV3446Wk4AVAhQFK1jpKAm4S4Ci4G7c0XISsEKAomAFKx0lAXcJUBTcjTtaTgJWCFAUrGCloyTgLgGKgrtxR8tJwAoBioIVrHSUBNwlQFFwN+5oOQlYIUBRsIKVjpKAuwQoCu7GHS0nASsEVFNbSltxmY6SAAk4SUAZqykMTsYdjSYBKwT+D+Hgm8rKD5qfAAAAAElFTkSuQmCC"},lOPz:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([27,73],{IfXV:function(t,e){},nExe:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={name:"salutatoryIndex",components:{salutatory:a("xWf4").default},data:function(){return{activeName:1}},mounted:function(){sessionStorage.getItem("activeName")&&(this.activeName=Number(sessionStorage.getItem("activeName")))},activated:function(){sessionStorage.getItem("activeName")&&(this.activeName=Number(sessionStorage.getItem("activeName")))},destroyed:function(){sessionStorage.setItem("activeName",1)},watch:{activeName:function(t){sessionStorage.setItem("activeName",t)}}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"salutatory"},[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"普通欢迎语",name:1}},[1==t.activeName?a("salutatory",{attrs:{type:t.activeName}}):t._e()],1),t._v(" "),a("el-tab-pane",{attrs:{label:"特殊欢迎语",name:2}},[2==t.activeName?a("salutatory",{attrs:{type:t.activeName}}):t._e()],1)],1)],1)},staticRenderFns:[]};var o=a("VU/8")(i,n,!1,function(t){a("t7eF")},"data-v-d39aab2a",null);e.default=o.exports},t7eF:function(t,e){},xWf4:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Dd8w"),n=a.n(i),o=a("P9l9"),l=a("PI0u"),s=a("+hGG"),r={data:function(){return{form:{title:"",pageSize:20,pageNum:1},dialogVisible:!1,welcomeId:"",total:0,wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",friendSettingId:"",btnLoading:!1,iconType:{1:"iconwenjianleixingtupian",2:"iconwenjianleixingshipin",3:"iconwenjianleixing-wenjian",4:"iconwenjianleixing-lianjie",5:"iconwenjianleixing-xiaochengxu",6:"iconwenjianleixing-xiaochengxu",7:"icongongzhonghao1"},tableData:[],loading:!1}},mounted:function(){this.getData()},activated:function(){this.getData()},props:{type:{type:[Number,String],default:1}},components:{relationDialog:s.default},watch:{type:function(t){this.form={title:"",pageSize:20,pageNum:1},this.getData()}},methods:{toInput:Object(l.a)(function(t,e){this.getData()},500),clearSearch:function(){this.getData()},changeRoute:function(t){this.$router.push({path:"/editSalutatorySet",query:{id:t.welcomeId,isDefalut:t.defaultWelcomeFlag,type:t.type}})},addSalutatory:function(){this.$router.push({path:"/salutatorySet",query:{type:this.type}})},remove:function(t){2==t.type?this.delType2(t):this.delType1(t)},delType1:function(t){var e=this,a="模板删除后将无法恢复";1==t.defaultWelcomeFlag&&(a="此条欢迎语为全员欢迎语,删除后可能影响欢迎语发送"),this.$confirm(a,"确认要删除该欢迎语吗?",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.b)("/haoban-manage3-web/welcome/remove",{welcomeId:t.welcomeId}).then(function(t){console.log(t),0==t.data.code&&(e.$message.success("删除成功"),e.getData())})})},delType2:function(t){var e=this;Object(o.b)("/haoban-manage3-web/welcome/statistics",{welcomeId:t.welcomeId}).then(function(a){var i=a.data.result,n="";i?(i.qrCodeReferNum&&i.linkReferNum?n="当前欢迎语已关联状态为正常的活码("+i.qrCodeReferNum+")、链接("+i.linkReferNum+"),请确认相关活码是否不再使用该欢迎语以及链接已投放结束,解除关联后才可删除该模板":i.qrCodeReferNum?n="当前欢迎语已关联状态为正常的活码("+i.qrCodeReferNum+"),请确认相关活码是否不再使用该欢迎语,解除关联后才可删除该模板":i.linkReferNum&&(n="当前欢迎语已关联链接("+i.linkReferNum+"),请确认相关链接已投放结束,解除关联后才可删除该模板"),e.$confirm(n,"无法删除该欢迎语",{confirmButtonText:"关联详情",cancelButtonText:"取消",type:"warning"}).then(function(){e.showRelateDetail(t)})):(n="欢迎语删除后将无法恢复",e.$confirm(n,"确认要删除该欢迎语吗?",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.b)("/haoban-manage3-web/welcome/remove",{welcomeId:t.welcomeId}).then(function(t){console.log(t),0==t.data.code&&(e.$message.success("删除成功"),e.getData())})}))})},showRelateDetail:function(t){this.dialogVisible=!0,this.welcomeId=t.welcomeId},goLinkDetail:function(t){2==t.type?window.open("/haoban-3/#/actCodeDetail?hmId="+t.referId):window.open("/haoban-3/#/attractFlowLinkInfo/"+t.referId)},getData:function(){var t=this;this.loading=!0,Object(o.f)("/haoban-manage3-web/welcome/list",n()({},this.form,{wxEnterpriseId:this.wxEnterpriseId,type:this.type})).then(function(e){var a=e.data;0==a.code&&a.result&&(t.tableData=a.result.result,t.tableData.forEach(function(t){t.suitDepartmentName=[],t.suitDepartmentList&&t.suitDepartmentList.length&&t.suitDepartmentList.forEach(function(e){t.suitDepartmentName.push(e.departmentName)})}),t.total=a.result.totalCount,t.$nextTick(function(){var e=document.createElement("span");e.style.position="fixed",e.style.opacity=0,e.style.visibility="hidden";var a=t.$refs.title&&t.$refs.title.offsetWidth-85;t.tableData.map(function(t){return e.innerHTML=t.title,document.body.appendChild(e),t.isOverflow=e.offsetWidth>a,t}),document.body.removeChild(e)}))}).catch(function(e){t.$message.error({duration:1e3,message:e.message})}).finally(function(){t.loading=!1})},handleSizeChange:function(t){this.form.pageNum=1,this.form.pageSize=t,this.getData()},handleCurrentChange:function(t){this.form.pageNum=t,this.getData()}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"daily-set-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"admin-tip-body"},[1==t.type?a("div",{staticClass:"el-alert el-alert--info",staticStyle:{width:"860px"},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),t._v(" "),t._m(0)]):a("div",{staticClass:"el-alert el-alert--info",staticStyle:{width:"860px"},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),t._v(" "),t._m(1)])]),t._v(" "),a("div",{staticClass:"flex flex-space-between m-b-20 m-t-20"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入标题",maxlength:"50",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addSalutatory)?a("el-button",{attrs:{"limit-code":t.$buttonCode.addSalutatory,type:"primary"},on:{click:t.addSalutatory}},[t._v("新建欢迎语")]):t._e()],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"title",label:"标题",width:"200",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return a("div",{ref:"title"},[i.isOverflow?a("el-tooltip",{attrs:{placement:"top",content:i.title}},[a("span",{staticClass:"title-text"},[t._v(t._s(i.title))])]):a("span",[t._v(t._s(i.title))]),t._v(" "),1==i.defaultWelcomeFlag?a("el-tag",{attrs:{size:"mini"}},[t._v("默认欢迎语")]):t._e()],1)}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"welcomeContent",label:"内容","show-overflow-tooltip":"","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(t._s(a.welcomeContent))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"附件",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.welcomeMediaList&&i.welcomeMediaList.length?a("el-popover",{attrs:{placement:"top-start",trigger:"hover"}},[t._l(i.welcomeMediaList,function(e){return a("div",{key:e.welcomeMediaId,staticClass:"flexBox"},[a("svg-icon",{staticStyle:{"margin-right":"13px"},attrs:{iconname:t.iconType[e.mediaType],size:"16"}}),t._v(" "),a("span",{staticClass:"popverText"},[t._v(t._s(e.mediaTitle))])],1)}),t._v(" "),i.welcomeMediaList&&i.welcomeMediaList.length?a("div",{staticClass:"flexBox",attrs:{slot:"reference"},slot:"reference"},[a("svg-icon",{staticStyle:{"margin-right":"10px"},attrs:{iconname:t.iconType[i.welcomeMediaList[0].mediaType],size:"40"}}),t._v(" "),a("span",{staticClass:"wrapText"},[t._v(" "+t._s(i.welcomeMediaList[0].mediaTitle))])],1):t._e()],2):a("div",[t._v("--")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"updateTime",label:"更新时间",width:"180","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(t._s(t._f("formatTimeStamp")(a.updateTime)))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"creatorName",label:"创建人",width:"120","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"modifierName",label:"操作人",width:"120","show-overflow-tooltip":""}}),t._v(" "),1==t.type?a("el-table-column",{attrs:{prop:"suitDepartmentName",label:"适用范围",width:"300"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.defaultWelcomeFlag?a("div",[a("div",[t._v("全体成员")])]):a("div",[i.suitDepartmentName.join(",").length>40?a("div",{staticClass:"wrapText"},[t._v("\n "+t._s(i.suitDepartmentName.join(",").slice(0,40)+"...")+"\n ")]):a("div",{staticClass:"wrapText"},[t._v("\n "+t._s(i.suitDepartmentName.join(","))+"\n ")])])]}}])}):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.editSalutatory)||t.$getButtonLimit(t.$buttonCode.delSalutatory)?a("el-table-column",{attrs:{label:"操作",width:2==t.type?220:180,fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{directives:[{name:"show",rawName:"v-show",value:2==i.type,expression:"row.type == 2"}],attrs:{type:"text"},on:{click:function(e){return t.showRelateDetail(i)}}},[t._v("关联详情")]),t._v(" "),t.$getButtonLimit(t.$buttonCode.editSalutatory)?a("el-button",{attrs:{"limit-code":t.$buttonCode.editSalutatory,type:"text"},on:{click:function(e){return t.changeRoute(i)}}},[t._v("编辑")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.delSalutatory)?a("el-button",{attrs:{"limit-code":t.$buttonCode.delSalutatory,type:"text"},on:{click:function(e){return t.remove(i)}}},[t._v("删除")]):t._e()]}}])}):t._e()],1),t._v(" "),a("relation-dialog",{attrs:{dialogVisible:t.dialogVisible,id:t.welcomeId},on:{"update:dialogVisible":function(e){t.dialogVisible=e},"update:dialog-visible":function(e){t.dialogVisible=e},goLinkDetail:t.goLinkDetail}}),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.form.pageNum,"page-sizes":[20,40,60,80],"page-size":t.form.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert__content"},[e("p",{staticClass:"el-alert__title"},[this._v("\n 1、若使用此处的好办欢迎语,请关闭企微欢迎语或其他自建应用/第三方应用的欢迎语配置,否则会产生冲突,好办欢迎语不生效。"),e("br"),this._v("\n 2、在使用此处好办欢迎语的情况下,只有关联了好办导购账号的企微员工在添加好友后才能触发欢迎语。 "),e("br"),this._v("\n 3、可按照企微不同的组织架构来分别配置不同的欢迎语。(若某企微员工在多个企微部门,或者某企微部门配置了多条欢迎语,则仅发送“更新时间”最新的那条欢迎语) "),e("br"),this._v("\n 4、创建欢迎语时,可在欢迎语内容中配置“带参会员小程序/带参公众号二维码”,以便于在“不同开平”的情况下,保证“客户”身份与“好友”身份的对应,"),e("a",{staticStyle:{color:"#2f54eb"},attrs:{href:"https://www.yuque.com/exnmlu/oo64hg/bsabp2",target:"_blank"}},[this._v("详见>>>")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert__content"},[e("p",{staticClass:"el-alert__title"},[this._v("\n 作为一个“欢迎语库”,下方所创建的欢迎语将可被不同模块进行引用,如【活码管理】中的活码欢迎语、链接欢迎语。\n ")])])}]};var u=a("VU/8")(r,c,!1,function(t){a("IfXV")},"data-v-78356120",null);e.default=u.exports}}); webpackJsonp([27,74],{IfXV:function(t,e){},nExe:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={name:"salutatoryIndex",components:{salutatory:a("xWf4").default},data:function(){return{activeName:1}},mounted:function(){sessionStorage.getItem("activeName")&&(this.activeName=Number(sessionStorage.getItem("activeName")))},activated:function(){sessionStorage.getItem("activeName")&&(this.activeName=Number(sessionStorage.getItem("activeName")))},destroyed:function(){sessionStorage.setItem("activeName",1)},watch:{activeName:function(t){sessionStorage.setItem("activeName",t)}}},n={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"salutatory"},[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"普通欢迎语",name:1}},[1==t.activeName?a("salutatory",{attrs:{type:t.activeName}}):t._e()],1),t._v(" "),a("el-tab-pane",{attrs:{label:"特殊欢迎语",name:2}},[2==t.activeName?a("salutatory",{attrs:{type:t.activeName}}):t._e()],1)],1)],1)},staticRenderFns:[]};var o=a("VU/8")(i,n,!1,function(t){a("t7eF")},"data-v-d39aab2a",null);e.default=o.exports},t7eF:function(t,e){},xWf4:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Dd8w"),n=a.n(i),o=a("P9l9"),l=a("PI0u"),s=a("+hGG"),r={data:function(){return{form:{title:"",pageSize:20,pageNum:1},dialogVisible:!1,welcomeId:"",total:0,wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",friendSettingId:"",btnLoading:!1,iconType:{1:"iconwenjianleixingtupian",2:"iconwenjianleixingshipin",3:"iconwenjianleixing-wenjian",4:"iconwenjianleixing-lianjie",5:"iconwenjianleixing-xiaochengxu",6:"iconwenjianleixing-xiaochengxu",7:"icongongzhonghao1"},tableData:[],loading:!1}},mounted:function(){this.getData()},activated:function(){this.getData()},props:{type:{type:[Number,String],default:1}},components:{relationDialog:s.default},watch:{type:function(t){this.form={title:"",pageSize:20,pageNum:1},this.getData()}},methods:{toInput:Object(l.a)(function(t,e){this.getData()},500),clearSearch:function(){this.getData()},changeRoute:function(t){this.$router.push({path:"/editSalutatorySet",query:{id:t.welcomeId,isDefalut:t.defaultWelcomeFlag,type:t.type}})},addSalutatory:function(){this.$router.push({path:"/salutatorySet",query:{type:this.type}})},remove:function(t){2==t.type?this.delType2(t):this.delType1(t)},delType1:function(t){var e=this,a="模板删除后将无法恢复";1==t.defaultWelcomeFlag&&(a="此条欢迎语为全员欢迎语,删除后可能影响欢迎语发送"),this.$confirm(a,"确认要删除该欢迎语吗?",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.b)("/haoban-manage3-web/welcome/remove",{welcomeId:t.welcomeId}).then(function(t){console.log(t),0==t.data.code&&(e.$message.success("删除成功"),e.getData())})})},delType2:function(t){var e=this;Object(o.b)("/haoban-manage3-web/welcome/statistics",{welcomeId:t.welcomeId}).then(function(a){var i=a.data.result,n="";i?(i.qrCodeReferNum&&i.linkReferNum?n="当前欢迎语已关联状态为正常的活码("+i.qrCodeReferNum+")、链接("+i.linkReferNum+"),请确认相关活码是否不再使用该欢迎语以及链接已投放结束,解除关联后才可删除该模板":i.qrCodeReferNum?n="当前欢迎语已关联状态为正常的活码("+i.qrCodeReferNum+"),请确认相关活码是否不再使用该欢迎语,解除关联后才可删除该模板":i.linkReferNum&&(n="当前欢迎语已关联链接("+i.linkReferNum+"),请确认相关链接已投放结束,解除关联后才可删除该模板"),e.$confirm(n,"无法删除该欢迎语",{confirmButtonText:"关联详情",cancelButtonText:"取消",type:"warning"}).then(function(){e.showRelateDetail(t)})):(n="欢迎语删除后将无法恢复",e.$confirm(n,"确认要删除该欢迎语吗?",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.b)("/haoban-manage3-web/welcome/remove",{welcomeId:t.welcomeId}).then(function(t){console.log(t),0==t.data.code&&(e.$message.success("删除成功"),e.getData())})}))})},showRelateDetail:function(t){this.dialogVisible=!0,this.welcomeId=t.welcomeId},goLinkDetail:function(t){2==t.type?window.open("/haoban-3/#/actCodeDetail?hmId="+t.referId):window.open("/haoban-3/#/attractFlowLinkInfo/"+t.referId)},getData:function(){var t=this;this.loading=!0,Object(o.f)("/haoban-manage3-web/welcome/list",n()({},this.form,{wxEnterpriseId:this.wxEnterpriseId,type:this.type})).then(function(e){var a=e.data;0==a.code&&a.result&&(t.tableData=a.result.result,t.tableData.forEach(function(t){t.suitDepartmentName=[],t.suitDepartmentList&&t.suitDepartmentList.length&&t.suitDepartmentList.forEach(function(e){t.suitDepartmentName.push(e.departmentName)})}),t.total=a.result.totalCount,t.$nextTick(function(){var e=document.createElement("span");e.style.position="fixed",e.style.opacity=0,e.style.visibility="hidden";var a=t.$refs.title&&t.$refs.title.offsetWidth-85;t.tableData.map(function(t){return e.innerHTML=t.title,document.body.appendChild(e),t.isOverflow=e.offsetWidth>a,t}),document.body.removeChild(e)}))}).catch(function(e){t.$message.error({duration:1e3,message:e.message})}).finally(function(){t.loading=!1})},handleSizeChange:function(t){this.form.pageNum=1,this.form.pageSize=t,this.getData()},handleCurrentChange:function(t){this.form.pageNum=t,this.getData()}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"daily-set-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"admin-tip-body"},[1==t.type?a("div",{staticClass:"el-alert el-alert--info",staticStyle:{width:"860px"},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),t._v(" "),t._m(0)]):a("div",{staticClass:"el-alert el-alert--info",staticStyle:{width:"860px"},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),t._v(" "),t._m(1)])]),t._v(" "),a("div",{staticClass:"flex flex-space-between m-b-20 m-t-20"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入标题",maxlength:"50",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addSalutatory)?a("el-button",{attrs:{"limit-code":t.$buttonCode.addSalutatory,type:"primary"},on:{click:t.addSalutatory}},[t._v("新建欢迎语")]):t._e()],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"title",label:"标题",width:"200",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return a("div",{ref:"title"},[i.isOverflow?a("el-tooltip",{attrs:{placement:"top",content:i.title}},[a("span",{staticClass:"title-text"},[t._v(t._s(i.title))])]):a("span",[t._v(t._s(i.title))]),t._v(" "),1==i.defaultWelcomeFlag?a("el-tag",{attrs:{size:"mini"}},[t._v("默认欢迎语")]):t._e()],1)}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"welcomeContent",label:"内容","show-overflow-tooltip":"","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(t._s(a.welcomeContent))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"附件",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.welcomeMediaList&&i.welcomeMediaList.length?a("el-popover",{attrs:{placement:"top-start",trigger:"hover"}},[t._l(i.welcomeMediaList,function(e){return a("div",{key:e.welcomeMediaId,staticClass:"flexBox"},[a("svg-icon",{staticStyle:{"margin-right":"13px"},attrs:{iconname:t.iconType[e.mediaType],size:"16"}}),t._v(" "),a("span",{staticClass:"popverText"},[t._v(t._s(e.mediaTitle))])],1)}),t._v(" "),i.welcomeMediaList&&i.welcomeMediaList.length?a("div",{staticClass:"flexBox",attrs:{slot:"reference"},slot:"reference"},[a("svg-icon",{staticStyle:{"margin-right":"10px"},attrs:{iconname:t.iconType[i.welcomeMediaList[0].mediaType],size:"40"}}),t._v(" "),a("span",{staticClass:"wrapText"},[t._v(" "+t._s(i.welcomeMediaList[0].mediaTitle))])],1):t._e()],2):a("div",[t._v("--")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"updateTime",label:"更新时间",width:"180","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(t._s(t._f("formatTimeStamp")(a.updateTime)))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"creatorName",label:"创建人",width:"120","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"modifierName",label:"操作人",width:"120","show-overflow-tooltip":""}}),t._v(" "),1==t.type?a("el-table-column",{attrs:{prop:"suitDepartmentName",label:"适用范围",width:"300"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.defaultWelcomeFlag?a("div",[a("div",[t._v("全体成员")])]):a("div",[i.suitDepartmentName.join(",").length>40?a("div",{staticClass:"wrapText"},[t._v("\n "+t._s(i.suitDepartmentName.join(",").slice(0,40)+"...")+"\n ")]):a("div",{staticClass:"wrapText"},[t._v("\n "+t._s(i.suitDepartmentName.join(","))+"\n ")])])]}}])}):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.editSalutatory)||t.$getButtonLimit(t.$buttonCode.delSalutatory)?a("el-table-column",{attrs:{label:"操作",width:2==t.type?220:180,fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{directives:[{name:"show",rawName:"v-show",value:2==i.type,expression:"row.type == 2"}],attrs:{type:"text"},on:{click:function(e){return t.showRelateDetail(i)}}},[t._v("关联详情")]),t._v(" "),t.$getButtonLimit(t.$buttonCode.editSalutatory)?a("el-button",{attrs:{"limit-code":t.$buttonCode.editSalutatory,type:"text"},on:{click:function(e){return t.changeRoute(i)}}},[t._v("编辑")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.delSalutatory)?a("el-button",{attrs:{"limit-code":t.$buttonCode.delSalutatory,type:"text"},on:{click:function(e){return t.remove(i)}}},[t._v("删除")]):t._e()]}}])}):t._e()],1),t._v(" "),a("relation-dialog",{attrs:{dialogVisible:t.dialogVisible,id:t.welcomeId},on:{"update:dialogVisible":function(e){t.dialogVisible=e},"update:dialog-visible":function(e){t.dialogVisible=e},goLinkDetail:t.goLinkDetail}}),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.form.pageNum,"page-sizes":[20,40,60,80],"page-size":t.form.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert__content"},[e("p",{staticClass:"el-alert__title"},[this._v("\n 1、若使用此处的好办欢迎语,请关闭企微欢迎语或其他自建应用/第三方应用的欢迎语配置,否则会产生冲突,好办欢迎语不生效。"),e("br"),this._v("\n 2、在使用此处好办欢迎语的情况下,只有关联了好办导购账号的企微员工在添加好友后才能触发欢迎语。 "),e("br"),this._v("\n 3、可按照企微不同的组织架构来分别配置不同的欢迎语。(若某企微员工在多个企微部门,或者某企微部门配置了多条欢迎语,则仅发送“更新时间”最新的那条欢迎语) "),e("br"),this._v("\n 4、创建欢迎语时,可在欢迎语内容中配置“带参会员小程序/带参公众号二维码”,以便于在“不同开平”的情况下,保证“客户”身份与“好友”身份的对应,"),e("a",{staticStyle:{color:"#2f54eb"},attrs:{href:"https://www.yuque.com/exnmlu/oo64hg/bsabp2",target:"_blank"}},[this._v("详见>>>")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert__content"},[e("p",{staticClass:"el-alert__title"},[this._v("\n 作为一个“欢迎语库”,下方所创建的欢迎语将可被不同模块进行引用,如【活码管理】中的活码欢迎语、链接欢迎语。\n ")])])}]};var u=a("VU/8")(r,c,!1,function(t){a("IfXV")},"data-v-78356120",null);e.default=u.exports}});
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([32],{PkeY:function(t,e){},cxaT:function(t,e){t.exports="data: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ApSX"),l=a("5i7M"),c={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:800}},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){this.chart&&this.chart.destroy(),this.chart=new l.a({container:this.id,width:this.width,autoFit:!0,height:420,padding:[50,30,60,60]}),this.chart.data(this.charData),this.chart.scale({value:{min:0,nice:!0},date:{}}),this.chart.tooltip({showCrosshairs:!0,shared:!0}),this.chart.line().position("date*value").color("active"),this.chart.legend(!1),this.chart.render()}}},u={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"lengend-line"},[e("span",{staticClass:"line-pot bg-597ef7"}),e("span",{staticClass:"font-12 color-8c8c8c p-l-5"},[this._v("非活跃人数")]),this._v(" "),e("span",{staticClass:"line-pot bg-5ad8a6 m-l-40"}),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"截至目前近三天内有过登录算作活跃",placement:"top-start"}},[e("span",{staticClass:"font-12 color-8c8c8c cell-title-span p-l-5",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[this._v("活跃人数")])])],1),this._v(" "),e("div",{attrs:{id:this.id}})])},staticRenderFns:[]};var g=a("VU/8")(c,u,!1,function(t){a("mOLX")},"data-v-bbf76934",null).exports,h=a("P9l9"),d=a("Ch4/"),p=a("Q0Ca"),C={name:"activeDetail",data:function(){return{selectStartDay:"",selectEndDay:"",charData:[],groupIds:[],currentPage:1,pageSize:20,total:0,tableData:[],multipleSelection:[],addShow:!1,loadingBtn:!1,selectRadio:0}},computed:{},methods:{checkGroupIds:function(t){this.groupIds=t,this.getTableList()},handleCommand:function(t){this.selectRadio=t},handleSelectionChange:function(t){this.multipleSelection=t},exportExcel:function(){this.loadingBtn=!0,this.postExcelData()},postExcelData:function(){var t=this,e={enterpriseId:t.$route.query.brandId,groupIdList:t.groupIds.map(function(t){return t.storeGroupId}).join(","),startDate:t.selectEndDay,endDate:t.selectEndDay,selectType:t.selectRadio};Object(h.c)("/haoban-manage3-web/web/export-activite-list",e).then(function(e){if(t.loadingBtn=!1,!e.data)return d.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),s=document.createElement("a");s.download="活跃明细报表.csv",s.style.display="none",s.href=URL.createObjectURL(a),document.body.appendChild(s),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getLoginData:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,startDate:e.selectStartDay,endDate:e.selectEndDay};Object(h.b)("/haoban-manage3-web/web/activite-date",a).then(function(t){var a=t.data;if(1==a.errorCode){if(a.result.result){a.result.result.forEach(function(t){t.date=t.bizDates+"("+t.weeks+")",t.active="非活跃人数",t.value=t.notActiveClerkCnt});var s=JSON.parse(n()(a.result.result));s.forEach(function(t){t.date=t.bizDates+"("+t.weeks+")",t.active="活跃人数",t.value=t.activeClerkCnt}),e.charData=[].concat(i()(a.result.result),i()(s))||[]}return!1}d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,groupIdList:e.groupIds.map(function(t){return t.storeGroupId}).join(","),startDate:e.selectEndDay,endDate:e.selectEndDay,pageSize:e.pageSize,currentPage:e.currentPage};Object(h.g)("/haoban-manage3-web/web/activite-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.selectStartDay=p.a.timeStampToYmd((new Date).getTime()-6048e5),this.selectEndDay=p.a.timeStampToYmd((new Date).getTime()-864e5),this.getLoginData(),this.getTableList()},components:{gicSelectGroupMult:r.a,activeChart:g}},A={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"my-customer-wrap common-set-wrap"},[s("div",{staticClass:"right-content"},[s("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[s("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[s("div",{staticClass:"apps-content-right"},[t._m(0),t._v(" "),s("div",{staticClass:"chart-body m-t-20"},[t.charData.length?s("active-chart",{attrs:{charData:t.charData,id:"active-chart"}}):t._e(),t._v(" "),t.charData.length?t._e():s("div",{staticClass:"no-data-char"},[s("img",{attrs:{src:a("cxaT"),alt:""}}),t._v(" "),s("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])])],1),t._v(" "),s("div",{staticClass:"table-search m-t-20"},[s("div",{staticClass:"flex flex-space-between"},[s("div",[s("gic-select-group-mult",{attrs:{selectData:t.groupIds},on:{checkGroupIds:t.checkGroupIds}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("筛选条件下,昨日人员名单如下:")])],1),t._v(" "),t.$getButtonLimit(t.$buttonCode.exportActiveUser)?s("el-button",{attrs:{"limit-code":t.$buttonCode.exportActiveUser,type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")]):t._e()],1)]),t._v(" "),s("div",{staticClass:"m-t-20"},[s("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[s("el-table-column",{attrs:{prop:"",label:"员工信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"ul-li-cell "},[s("div",{staticClass:"cell-info"},[s("div",{staticClass:"cell-info-name font-14 color-303133 flex flex-column"},[s("span",{staticClass:"gic-name"},[s("span",[t._v(t._s(e.row.clerkName||"--"))]),1==e.row.clerkType?s("el-tag",{staticClass:"m-l-10",attrs:{size:"small",type:"warning"}},[t._v("店长")]):t._e()],1),s("span",{staticClass:"gic-version"},[t._v(t._s(e.row.clerkCode||"--"))])])])])]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"",label:"归属门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName||"--"))]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"",label:"最后登录时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.lastLoginTime))+t._s(e.row.lastLoginTime?"":"--"))]),t._v(" "),s("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.lastLoginTime))+t._s(e.row.lastLoginTime?"":"--"))])]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"",label:"活跃状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.activationStatus?s("span",{staticClass:"active-status font-14 color-fff"},[t._v("活跃")]):s("span",{staticClass:"no-active-status font-14 color-fff"},[t._v("非活跃")])]}}])})],1),t._v(" "),0!=t.tableData.length?s("div",{staticClass:"block common-wrap__page text-right m-t-24"},[s("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex flex-space-between"},[e("div",{staticClass:"font-16 color-303133 font-w-600"},[this._v("近七天活跃趋势")]),this._v(" "),e("div",{staticClass:"el-alert el-alert-tip el-alert--info flex flex-align-start w-426",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("数据更新截至于昨日。今日数据需要隔天上午8点后进行查看。")])])])])}]};var m=a("VU/8")(C,A,!1,function(t){a("PkeY")},"data-v-0a28b1a1",null);e.default=m.exports},mOLX:function(t,e){}});
\ No newline at end of file
webpackJsonp([32],{Jhy0:function(t,e){},PkeY:function(t,e){},cxaT:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQUAAACMCAYAAAB1Xrw1AAAAAXNSR0IArs4c6QAAEmJJREFUeAHtnQuMVNUdxv9ndpfHIuwMyD5t0ZiqmFZrKkpbLSKIishDUWoViI0xVWs1Tfo0bWLaxERta0xbTYqJgKKNyqIiImrAEhW1tiW2xpJarLoPXjuzy7LC7s6cfmd27uyyDsvO7j0z98z9Npm973P+53fO+e55X2lqS2nzE/6RAAmQAAhESIEESIAEBhKgKAykwX0SIAGWFJgGSIAEjibAksLRPHhEAqEnQFEIfRIgABI4mgBF4WgePCKB0BOgKIQ+CRAACRxNgKJwNA8ehYxAq9YTQhbk4waXonBcRLyhVAm0xPXKVEISTXH9SkubvvVAlz6pVMOaT7iUN5qxYXJE5fMg7yUBlwlAEGZjGO9LWusKLxxKKTOy9x3RskHKpbF+kvrAuxamLUUhTLHNsKYJNB/U03WvvCFaRyEED+Dk3/BbAjGYp6W/OqEEohCR9bjWWFcl72ZEI+1GKf+jKJRy7DJsnyOwp1PXJHtkB0oIJyOTP1MXlWu8zI5z45sTMg9F5iUoMiyAaEzpd0B9irL0BqWksaZK/oJnevuvldYeRaG04pOhGYJAs9aVkpBtyPwzRNSO+phcjMz9Wa5HcE/ZnnaZpbUswXTBRSL6C9n7lGqDcDwP4Wisj8qWY7mRvd+xHYqCYxFGc0dGAJk80pKQ9dguQib+ryqXmXUT1b7hutbSrmdAIBZLypQi9HTvOVQxukTJZlQ9Gisj8kI0quLeNVe3FAVXY45250WgOa4fgCDcIXjLjymTb0ydpP6dlwMDbt7XoU/v6UUbhMJPBGKh0430pk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IVrHSUBNwlQFFwN+5oOQlYIUBRsIKVjpKAuwQoCu7GHS0nASsEVFNbSltxmY6SAAk4SUAZqykMTsYdjSYBKwT+D+Hgm8rKD5qfAAAAAElFTkSuQmCC"},h9Ca:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Gu7T"),i=a.n(s),o=a("mvHQ"),n=a.n(o),r=a("ApSX"),l=a("5i7M"),c={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:800}},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){this.chart&&this.chart.destroy(),this.chart=new l.a({container:this.id,width:this.width,autoFit:!0,height:420,padding:[50,30,60,60]}),this.chart.data(this.charData),this.chart.scale({value:{min:0,nice:!0},date:{}}),this.chart.tooltip({showCrosshairs:!0,shared:!0}),this.chart.line().position("date*value").color("active"),this.chart.legend(!1),this.chart.render()}}},u={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("div",{staticClass:"lengend-line"},[e("span",{staticClass:"line-pot bg-597ef7"}),e("span",{staticClass:"font-12 color-8c8c8c p-l-5"},[this._v("非活跃人数")]),this._v(" "),e("span",{staticClass:"line-pot bg-5ad8a6 m-l-40"}),e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"截至目前近三天内有过登录算作活跃",placement:"top-start"}},[e("span",{staticClass:"font-12 color-8c8c8c cell-title-span p-l-5",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[this._v("活跃人数")])])],1),this._v(" "),e("div",{attrs:{id:this.id}})])},staticRenderFns:[]};var g=a("VU/8")(c,u,!1,function(t){a("Jhy0")},"data-v-6e1efaba",null).exports,h=a("P9l9"),d=a("Ch4/"),p=a("Q0Ca"),C={name:"activeDetail",data:function(){return{selectStartDay:"",selectEndDay:"",charData:[],groupIds:[],currentPage:1,pageSize:20,total:0,tableData:[],multipleSelection:[],addShow:!1,loadingBtn:!1,selectRadio:0}},computed:{},methods:{checkGroupIds:function(t){this.groupIds=t,this.getTableList()},handleCommand:function(t){this.selectRadio=t},handleSelectionChange:function(t){this.multipleSelection=t},exportExcel:function(){this.loadingBtn=!0,this.postExcelData()},postExcelData:function(){var t=this,e={enterpriseId:t.$route.query.brandId,groupIdList:t.groupIds.map(function(t){return t.storeGroupId}).join(","),startDate:t.selectEndDay,endDate:t.selectEndDay,selectType:t.selectRadio};Object(h.c)("/haoban-manage3-web/web/export-activite-list",e).then(function(e){if(t.loadingBtn=!1,!e.data)return d.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),s=document.createElement("a");s.download="活跃明细报表.csv",s.style.display="none",s.href=URL.createObjectURL(a),document.body.appendChild(s),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getLoginData:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,startDate:e.selectStartDay,endDate:e.selectEndDay};Object(h.b)("/haoban-manage3-web/web/activite-date",a).then(function(t){var a=t.data;if(1==a.errorCode){if(a.result.result){a.result.result.forEach(function(t){t.date=t.bizDates+"("+t.weeks+")",t.active="非活跃人数",t.value=t.notActiveClerkCnt});var s=JSON.parse(n()(a.result.result));s.forEach(function(t){t.date=t.bizDates+"("+t.weeks+")",t.active="活跃人数",t.value=t.activeClerkCnt}),e.charData=[].concat(i()(a.result.result),i()(s))||[]}return!1}d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getTableList:function(t){var e=this,a={enterpriseId:e.$route.query.brandId,groupIdList:e.groupIds.map(function(t){return t.storeGroupId}).join(","),startDate:e.selectEndDay,endDate:e.selectEndDay,pageSize:e.pageSize,currentPage:e.currentPage};Object(h.g)("/haoban-manage3-web/web/activite-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.selectStartDay=p.a.timeStampToYmd((new Date).getTime()-6048e5),this.selectEndDay=p.a.timeStampToYmd((new Date).getTime()-864e5),this.getLoginData(),this.getTableList()},components:{gicSelectGroupMult:r.a,activeChart:g}},A={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"my-customer-wrap common-set-wrap"},[s("div",{staticClass:"right-content"},[s("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[s("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[s("div",{staticClass:"apps-content-right"},[t._m(0),t._v(" "),s("div",{staticClass:"chart-body m-t-20"},[t.charData.length?s("active-chart",{attrs:{charData:t.charData,id:"active-chart"}}):t._e(),t._v(" "),t.charData.length?t._e():s("div",{staticClass:"no-data-char"},[s("img",{attrs:{src:a("cxaT"),alt:""}}),t._v(" "),s("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])])],1),t._v(" "),s("div",{staticClass:"table-search m-t-20"},[s("div",{staticClass:"flex flex-space-between"},[s("div",[s("gic-select-group-mult",{attrs:{selectData:t.groupIds},on:{checkGroupIds:t.checkGroupIds}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("筛选条件下,昨日人员名单如下:")])],1),t._v(" "),t.$getButtonLimit(t.$buttonCode.exportActiveUser)?s("el-button",{attrs:{"limit-code":t.$buttonCode.exportActiveUser,type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")]):t._e()],1)]),t._v(" "),s("div",{staticClass:"m-t-20"},[s("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[s("el-table-column",{attrs:{prop:"",label:"员工信息","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"ul-li-cell "},[s("div",{staticClass:"cell-info"},[s("div",{staticClass:"cell-info-name font-14 color-303133 flex flex-column"},[s("span",{staticClass:"gic-name"},[s("span",[t._v(t._s(e.row.clerkName||"--"))]),1==e.row.clerkType?s("el-tag",{staticClass:"m-l-10",attrs:{size:"small",type:"warning"}},[t._v("店长")]):t._e()],1),s("span",{staticClass:"gic-version"},[t._v(t._s(e.row.clerkCode||"--"))])])])])]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"",label:"归属门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName||"--"))]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"",label:"最后登录时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.lastLoginTime))+t._s(e.row.lastLoginTime?"":"--"))]),t._v(" "),s("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.lastLoginTime))+t._s(e.row.lastLoginTime?"":"--"))])]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"",label:"活跃状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.activationStatus?s("span",{staticClass:"active-status font-14 color-fff"},[t._v("活跃")]):s("span",{staticClass:"no-active-status font-14 color-fff"},[t._v("非活跃")])]}}])})],1),t._v(" "),0!=t.tableData.length?s("div",{staticClass:"block common-wrap__page text-right m-t-24"},[s("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"flex flex-space-between"},[e("div",{staticClass:"font-16 color-303133 font-w-600"},[this._v("近七天活跃趋势")]),this._v(" "),e("div",{staticClass:"el-alert el-alert-tip el-alert--info flex flex-align-start w-426",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("数据更新截至于昨日。今日数据需要隔天上午8点后进行查看。")])])])])}]};var v=a("VU/8")(C,A,!1,function(t){a("PkeY")},"data-v-0a28b1a1",null);e.default=v.exports}});
\ No newline at end of file
webpackJsonp([35],{"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.svg"},FskK:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=i("2X9c"),e=i.n(a),n={name:"page500",data:function(){return{img_500:e.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},c={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_500,alt:"500"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var r=i("VU/8")(n,c,!1,function(t){i("u9CB")},"data-v-a27616c0",null);s.default=r.exports},u9CB:function(t,s){}}); webpackJsonp([34],{"2X9c":function(t,s,i){t.exports=i.p+"static/img/error_500.ed0cba4.svg"},FskK:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var a=i("2X9c"),e=i.n(a),n={name:"page500",data:function(){return{img_500:e.a}},computed:{message:function(){return"抱歉,服务器出错了"}}},c={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_500,alt:"500"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var r=i("VU/8")(n,c,!1,function(t){i("uxTj")},"data-v-f95a208c",null);s.default=r.exports},uxTj:function(t,s){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([35],{"4rhq":function(M,L){},"6XGN":function(M,L,j){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var N=j("CkW6"),u=j.n(N),w={name:"page403",data:function(){return{img_403:u.a}},computed:{message:function(){return"抱歉,你无权访问该页面"}}},D={render:function(){var M=this.$createElement,L=this._self._c||M;return L("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[L("div",{staticClass:"wscn-http404"},[L("div",{staticClass:"pic-404"},[L("img",{staticClass:"pic-404__parent",attrs:{src:this.img_403,alt:"403"}})]),this._v(" "),L("div",{staticClass:"bullshit"},[L("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),L("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var C=j("VU/8")(w,D,!1,function(M){j("4rhq")},"data-v-d9b4d362",null);L.default=C.exports},CkW6:function(M,L){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMS4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4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w8JsdHrsGZnnlKaPio3cZ/spcjkFNrt0YvD63Hj7N/Hzte/ltPggYNnlfCxhbjqsbPXeBLxuPwCK7pOGbAyN2EzTnH6mRhWsF0nYRYXo0eqkO9GzbZ3UC0liThhmye5icxO7/fgX9Yngyj56TRHs/AOx7sGZxN/XB5gayB4z501D1NIq4AcdEt3whdZw3DmH+zh0jG0sDlYpBcOQB3OJm4kBg7nqMO+mw/T2yVZ0pf6sQ60U9i+r3qf3OTXvsTYtsLSllMQKEb2hCyS2u6Y9SGGAbWsLP9G5aTJMRj/LWotPesomuJkouWsyjC+16GGtK/cT2wdD3HTUgpWr54mFOMqgJ2tLrD9OjnlDPZvbP8+UMc0mnUwH8T27OvFFlm4b6UeBtoAHpVrA5hNRLWCaqB02/WbZvHVqmXO9qKfgyIvZOHloMogvtOg1iQM7TBzowU1YpJz6sH2jCzGWzCZrp4LkS6YQANQB3/5/AgwALSeqB4Ipk3UAAAAASUVORK5CYII="},GsIL:function(e,t){},"T+/8":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("mvHQ"),s=r.n(n),o=r("PI0u"),a=r("MJLE"),i=r.n(a),c=r("Ch4/"),l=r("P9l9"),d={name:"login",data:function(){return{qrcodeCase:"",qrcodeNum:"",enterpriseId:"",expiredFlag:!1,canSelectFlag:!1,userId:"",ajaxTime:null,chooseTab:"qrcode",enterpriseList:[],numberCode:""}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},chooseLogin:function(e,t){this.chooseTab=t,document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear(),clearInterval(this.ajaxTime),"pass"!=t?this.expiredFlag=!1:this.qrcodeNum="",document.getElementById("line-active").style.width=e.target.offsetWidth+"px",document.getElementById("line-active").style.left=e.target.offsetLeft+"px"},collapseTag:function(e){this.collapseFlag=e},qrcode:function(e){var t={type:"web-login",data:e||"123456789"};this.qrcodeCase=new i.a("qrcode",{width:190,height:190,text:s()(t)}),document.getElementById("qrcode").title=""},refreshCode:Object(o.a)(function(){this.qrcodeCase&&(document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear()),this.getQrcode(),this.expiredFlag=!1},500),toIndex:Object(o.a)(function(){this.toLogin()},500),toLogin:Object(o.a)(function(){var e=this,t={qrcode:e.qrcodeNum||"debug",enterpriseId:e.enterpriseId,userId:e.userId};Object(l.g)("/haoban-manage3-web/login_local",t).then(function(t){var r=t.data;if(1==r.errorCode)return localStorage.removeItem("userInfo"),void localStorage.setItem("userInfos",s()(r.result));30004==r.errorCode&&(e.canSelectFlag=!1,"qrcode"==e.chooseTab&&(e.getQrcode(),e.expiredFlag=!1)),c.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},500),checkLogin:function(){var e=this,t={qrcode:e.qrcodeNum};Object(l.g)("/haoban-manage3-web/login-check",t).then(function(t){var r=t.data;if(1!=r.errorCode)30002==r.errorCode&&(e.expiredFlag=!0),c.a.errorMsg(r),clearInterval(e.ajaxTime);else if(r.result&&r.result.enterpriseList&&r.result.enterpriseList.length){if(e.enterpriseList=r.result.enterpriseList,e.enterpriseId=e.enterpriseList[0].enterpriseId,e.userId=r.result.userId,document.getElementById("qrcode").innerHTML="",e.qrcodeCase.clear(),clearInterval(e.ajaxTime),1==r.result.enterpriseList.length)return e.toLogin(),!1;e.canSelectFlag=!0}}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},checkScan:function(){var e=this;clearInterval(e.ajaxTime),e.ajaxTime=null,e.ajaxTime=setInterval(function(){e.checkLogin()},3e3)},getQrcode:function(){var e=this;Object(l.g)("/haoban-manage3-web/get-login-qrcode",{}).then(function(t){var r=t.data;if(1==r.errorCode)return e.qrcodeNum=r.result,void(window.location.href=""+r.result);c.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeCode:function(e){this.numberCode=e}},mounted:function(){this.getQrcode(),sessionStorage.getItem("userInfos")&&sessionStorage.removeItem("userInfos")},components:{}},A={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"login-wrap"},[r("section",[r("div",{staticClass:"login-body-top"},[e._m(0),e._v(" "),r("div",{staticClass:"login-body-qrcode"},[r("div",{staticClass:"login-qrcode-inner border-box"},[r("div",{staticClass:"qrcode-title font-18 color-303133 m-b-20"},[e._v("企业微信扫码登录")]),e._v(" "),r("div",{attrs:{id:"qrcode",title:""}}),e._v(" "),r("div",{staticClass:"qrcode-refresh m-t-20"},[r("el-button",{staticClass:"font-12",attrs:{type:"text"},on:{click:e.refreshCode}},[e._v("刷新 "),r("span",{staticClass:"color-2f54eb iconfont-hb3 iconshuaxin"})])],1)])]),e._v(" "),r("div",{staticClass:"bg-dot"}),e._v(" "),r("div",{staticClass:"bg-dot-center"})]),e._v(" "),r("div",{staticClass:"login-body-bottom"})]),e._v(" "),r("footer",{staticClass:"p-t-35"},[r("vue-gic-footer")],1)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"login-body-head"},[t("div",{staticClass:"login-body-head_inner border-box flex"},[t("img",{staticClass:"login-body-logo",attrs:{src:r("7Otq"),alt:"logo"}}),this._v(" "),t("span",{staticClass:"login-body-title p-l-7"},[this._v("好办管理后台")])])])}]};var g=r("VU/8")(d,A,!1,function(e){r("GsIL")},"data-v-b8382664",null);t.default=g.exports}}); webpackJsonp([36],{"7Otq":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAKQ2lDQ1BJQ0MgcHJvZmlsZQAAeNqdU3dYk/cWPt/3ZQ9WQtjwsZdsgQAiI6wIyBBZohCSAGGEEBJAxYWIClYUFRGcSFXEgtUKSJ2I4qAouGdBiohai1VcOO4f3Ke1fXrv7e371/u855zn/M55zw+AERImkeaiagA5UoU8Otgfj09IxMm9gAIVSOAEIBDmy8JnBcUAAPADeXh+dLA//AGvbwACAHDVLiQSx+H/g7pQJlcAIJEA4CIS5wsBkFIAyC5UyBQAyBgAsFOzZAoAlAAA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FOMqgJ2tLrD9OjnlDPZvbP8+UMc0mnUwH8T27OvFFlm4b6UeBtoAHpVrA5hNRLWCaqB02/WbZvHVqmXO9qKfgyIvZOHloMogvtOg1iQM7TBzowU1YpJz6sH2jCzGWzCZrp4LkS6YQANQB3/5/AgwALSeqB4Ipk3UAAAAASUVORK5CYII="},GsIL:function(e,t){},"T+/8":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("mvHQ"),s=r.n(n),o=r("PI0u"),a=r("MJLE"),i=r.n(a),c=r("Ch4/"),l=r("P9l9"),d={name:"login",data:function(){return{qrcodeCase:"",qrcodeNum:"",enterpriseId:"",expiredFlag:!1,canSelectFlag:!1,userId:"",ajaxTime:null,chooseTab:"qrcode",enterpriseList:[],numberCode:""}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},chooseLogin:function(e,t){this.chooseTab=t,document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear(),clearInterval(this.ajaxTime),"pass"!=t?this.expiredFlag=!1:this.qrcodeNum="",document.getElementById("line-active").style.width=e.target.offsetWidth+"px",document.getElementById("line-active").style.left=e.target.offsetLeft+"px"},collapseTag:function(e){this.collapseFlag=e},qrcode:function(e){var t={type:"web-login",data:e||"123456789"};this.qrcodeCase=new i.a("qrcode",{width:190,height:190,text:s()(t)}),document.getElementById("qrcode").title=""},refreshCode:Object(o.a)(function(){this.qrcodeCase&&(document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear()),this.getQrcode(),this.expiredFlag=!1},500),toIndex:Object(o.a)(function(){this.toLogin()},500),toLogin:Object(o.a)(function(){var e=this,t={qrcode:e.qrcodeNum||"debug",enterpriseId:e.enterpriseId,userId:e.userId};Object(l.g)("/haoban-manage3-web/login_local",t).then(function(t){var r=t.data;if(1==r.errorCode)return localStorage.removeItem("userInfo"),void localStorage.setItem("userInfos",s()(r.result));30004==r.errorCode&&(e.canSelectFlag=!1,"qrcode"==e.chooseTab&&(e.getQrcode(),e.expiredFlag=!1)),c.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},500),checkLogin:function(){var e=this,t={qrcode:e.qrcodeNum};Object(l.g)("/haoban-manage3-web/login-check",t).then(function(t){var r=t.data;if(1!=r.errorCode)30002==r.errorCode&&(e.expiredFlag=!0),c.a.errorMsg(r),clearInterval(e.ajaxTime);else if(r.result&&r.result.enterpriseList&&r.result.enterpriseList.length){if(e.enterpriseList=r.result.enterpriseList,e.enterpriseId=e.enterpriseList[0].enterpriseId,e.userId=r.result.userId,document.getElementById("qrcode").innerHTML="",e.qrcodeCase.clear(),clearInterval(e.ajaxTime),1==r.result.enterpriseList.length)return e.toLogin(),!1;e.canSelectFlag=!0}}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},checkScan:function(){var e=this;clearInterval(e.ajaxTime),e.ajaxTime=null,e.ajaxTime=setInterval(function(){e.checkLogin()},3e3)},getQrcode:function(){var e=this;Object(l.g)("/haoban-manage3-web/get-login-qrcode",{}).then(function(t){var r=t.data;if(1==r.errorCode)return e.qrcodeNum=r.result,void(window.location.href=""+r.result);c.a.errorMsg(r)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeCode:function(e){this.numberCode=e}},mounted:function(){this.getQrcode(),sessionStorage.getItem("userInfos")&&sessionStorage.removeItem("userInfos")},components:{}},A={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"login-wrap"},[r("section",[r("div",{staticClass:"login-body-top"},[e._m(0),e._v(" "),r("div",{staticClass:"login-body-qrcode"},[r("div",{staticClass:"login-qrcode-inner border-box"},[r("div",{staticClass:"qrcode-title font-18 color-303133 m-b-20"},[e._v("企业微信扫码登录")]),e._v(" "),r("div",{attrs:{id:"qrcode",title:""}}),e._v(" "),r("div",{staticClass:"qrcode-refresh m-t-20"},[r("el-button",{staticClass:"font-12",attrs:{type:"text"},on:{click:e.refreshCode}},[e._v("刷新 "),r("span",{staticClass:"color-2f54eb iconfont-hb3 iconshuaxin"})])],1)])]),e._v(" "),r("div",{staticClass:"bg-dot"}),e._v(" "),r("div",{staticClass:"bg-dot-center"})]),e._v(" "),r("div",{staticClass:"login-body-bottom"})]),e._v(" "),r("footer",{staticClass:"p-t-35"},[r("vue-gic-footer")],1)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"login-body-head"},[t("div",{staticClass:"login-body-head_inner border-box flex"},[t("img",{staticClass:"login-body-logo",attrs:{src:r("7Otq"),alt:"logo"}}),this._v(" "),t("span",{staticClass:"login-body-title p-l-7"},[this._v("好办管理后台")])])])}]};var g=r("VU/8")(d,A,!1,function(e){r("GsIL")},"data-v-b8382664",null);t.default=g.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([36],{EENi:function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjU3NjA0NTcxNzQ1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjQ2MjEiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNDgiIGhlaWdodD0iNDgiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+QGZvbnQtZmFjZSB7IGZvbnQtZmFtaWx5OiBmZWVkYmFjay1pY29uZm9udDsgc3JjOiB1cmwoIi8vYXQuYWxpY2RuLmNvbS90L2ZvbnRfMTAzMTE1OF91Njl3OHloeGR1LndvZmYyP3Q9MTYzMDAzMzc1OTk0NCIpIGZv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M=i.n(a),o=i("exGp"),s=i.n(o),l=i("Ch4/"),r=i("P9l9"),n={name:"actCodeRecord",components:{},data:function(){return{loading:!1,tableData:[],currentPage:1,pageSize:20,total:0,sortType:"desc"}},methods:{sortChange:function(e,t,i){this.currentPage=1,this.sortType="ascending"==e.order?"asc":"desc",this.getTableList()},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(){var e=this;return s()(M.a.mark(function t(){var i,a,o,s,n,c,N,u;return M.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(i=e).loading=!0,a=e.$route.query,o=a.startTime,s=a.endTime,n=a.clerkId,c=a.linkId,N=a.hmId,u={pageNum:i.currentPage,pageSize:i.pageSize,linkId:c,hmId:N,clerkId:n,startTime:o,endTime:s,addChannel:c?1:N?e.$route.query.addChannel:0,createTimeOrder:i.sortType||""},Object(r.f)("/haoban-manage3-web/hm/qrcode/wxUserAddLog/list",u).then(function(e){var t=e.data;if(i.loading=!1,0==t.code)return i.tableData=t.result.result||[],void(i.total=t.result.totalCount||0);l.a.errorMsg(t)}).catch(function(e){i.loading=!1,i.$message.error({duration:1e3,message:e.message})});case 5:case"end":return t.stop()}},t,e)}))()}},mounted:function(){this.getTableList(),console.log(this.$route.query)}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"recordTableRef",staticClass:"act-code-table",attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"sort-change":e.sortChange}},[a("el-table-column",{attrs:{prop:"",label:"基本信息","show-overflow-tooltip":"","min-width":"210px",fixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[t.row.memberImage?a("img",{staticClass:"image-40",attrs:{src:t.row.memberImage}}):e._e(),e._v(" "),t.row.memberImage?e._e():a("img",{staticClass:"image-40",attrs:{src:i("EENi")}}),e._v(" "),t.row.memberName||t.row.memberNick||t.row.memberPhone?e._e():a("div",{staticClass:"p-l-10",staticStyle:{width:"calc(100% - 50px)","line-height":"40px"}},[e._v("--")]),e._v(" "),(t.row.memberName||t.row.memberNick)&&t.row.memberPhone?a("div",{staticClass:"p-l-10 line-20",staticStyle:{width:"calc(100% - 50px)"}},[a("div",{staticClass:"flex text-ellipsis"},[a("span",{staticClass:"text-ellipsis"},[e._v(e._s(t.row.memberName))]),e._v(" "),t.row.memberNick?a("span",{class:t.row.memberName?"color-909399 text-ellipsis":"text-ellipsis"},[e._v(" "+e._s(t.row.memberName?"("+t.row.memberNick+")":t.row.memberNick))]):e._e()]),e._v(" "),a("p",{staticClass:"font-12"},[e._v(e._s(t.row.memberPhone))])]):a("div",[t.row.memberName&&t.row.memberNick&&!t.row.memberPhone?a("div",{staticClass:"p-l-10",staticStyle:{"line-height":"40px"}},[a("div",{staticClass:"flex text-ellipsis"},[a("span",{staticClass:"text-ellipsis"},[e._v(e._s(t.row.memberName))]),e._v(" "),a("span",{staticClass:"color-909399 text-ellipsis"},[e._v(" ("+e._s(t.row.memberNick)+")")])])]):a("div",{staticClass:"p-l-10",staticStyle:{width:"calc(100% - 50px)","line-height":"40px"}},[e._v(e._s(t.row.memberName||t.row.memberNick||t.row.memberPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员卡号","show-overflow-tooltip":"","min-width":"126px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberCardNo||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员等级","show-overflow-tooltip":"","min-width":"86px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberGradeName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"导购信息","show-overflow-tooltip":"","min-width":"128px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",{staticClass:"line-20 text-ellipsis"},[e._v(e._s(t.row.clerkName||"--"))]),e._v(" "),a("p",{staticClass:"color-606266 line-18 text-ellipsis font-12"},[e._v("code:"+e._s(t.row.clerkCode||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"导购所属门店","show-overflow-tooltip":"","min-width":"185px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",{staticClass:"line-20 text-ellipsis"},[e._v(e._s(t.row.storeName||"--"))]),e._v(" "),a("p",{staticClass:"color-606266 line-18 text-ellipsis font-12"},[e._v("code:"+e._s(t.row.storeCode||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"企微号","show-overflow-tooltip":"","min-width":"107px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.staffName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"添加时间","show-overflow-tooltip":"","min-width":"106px",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-20"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-20"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"标签","show-overflow-tooltip":"","min-width":"144px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberLabelName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"关联类型","show-overflow-tooltip":"","min-width":"103px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.addChannel?"引流链接":"员工活码")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"关联信息","show-overflow-tooltip":"","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.addChannel?t.row.linkName||"--":t.row.hmName||"--")+"\n ")]}}])})],1)],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()])},staticRenderFns:[]};var N=i("VU/8")(n,c,!1,function(e){i("QAOQ")},"data-v-90f23584",null);t.default=N.exports}}); webpackJsonp([37],{EENi:function(e,t){e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjU3NjA0NTcxNzQ1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjQ2MjEiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNDgiIGhlaWdodD0iNDgiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+QGZvbnQtZmFjZSB7IGZvbnQtZmFtaWx5OiBmZWVkYmFjay1pY29uZm9udDsgc3JjOiB1cmwoIi8vYXQuYWxpY2RuLmNvbS90L2ZvbnRfMTAzMTE1OF91Njl3OHloeGR1LndvZmYyP3Q9MTYzMDAzMzc1OTk0NCIpIGZvcm1hdCgid29mZjIiKSwgdXJsKCIvL2F0LmFsaWNkbi5jb20vdC9mb250XzEwMzExNThfdTY5dzh5aHhkdS53b2ZmP3Q9MTYzMDAzMzc1OTk0NCIpIGZvcm1hdCgid29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i0xMy4zMTJ6TTU2OC44MzIgNDc0LjExMmg0NC4wMzJjOC43MDQgMCAxMy4zMTIgNC42MDggMTMuMzEyIDEzLjMxMiAwIDguNzA0LTQuNjA4IDEzLjMxMi0xMy4zMTIgMTMuMzEyaC00NC4wMzJjLTguNzA0IDAtMTMuMzEyLTQuNjA4LTEzLjMxMi0xMy4zMTIgMC41MTItOS4yMTYgNC42MDgtMTMuMzEyIDEzLjMxMi0xMy4zMTJ6IiBmaWxsPSIjRjlCQ0JDIiBvcGFjaXR5PSIuOCIgcC1pZD0iNDYyOCI+PC9wYXRoPjxwYXRoIGQ9Ik01MTMuNTM2IDQ0Mi4zNjhjMCA3LjY4LTUuNjMyIDEzLjgyNC0xMy4zMTIgMTMuODI0cy0xMy4zMTItNi42NTYtMTMuMzEyLTEzLjgyNGMwLTEuMDI0IDAtMi41NiAwLjUxMi0zLjU4NCAxLjUzNiA2LjE0NCA2LjY1NiAxMC4yNCAxMi44IDEwLjc1MiA2LjE0NCAwIDExLjc3Ni00LjYwOCAxMy4zMTItMTAuNzUyIDEuNTM2IDYuMTQ0IDYuNjU2IDEwLjI0IDEzLjMxMiAxMC43NTIgNi4xNDQgMCAxMS4yNjQtNC42MDggMTIuOC0xMC43NTIgMC41MTIgMS4wMjQgMC41MTIgMi41NiAwLjUxMiAzLjU4NCAwIDcuNjgtNS42MzIgMTMuODI0LTEzLjMxMiAxMy44MjRzLTEzLjMxMi02LjE0NC0xMy4zMTItMTMuODI0eiIgZmlsbD0iIzRBNEQ1MyIgb3BhY2l0eT0iLjk0IiBwLWlkPSI0NjI5Ij48L3BhdGg+PC9zdmc+"},QAOQ:function(e,t){},jx8Q:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("Xxa5"),M=i.n(a),o=i("exGp"),s=i.n(o),l=i("Ch4/"),r=i("P9l9"),n={name:"actCodeRecord",components:{},data:function(){return{loading:!1,tableData:[],currentPage:1,pageSize:20,total:0,sortType:"desc"}},methods:{sortChange:function(e,t,i){this.currentPage=1,this.sortType="ascending"==e.order?"asc":"desc",this.getTableList()},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(){var e=this;return s()(M.a.mark(function t(){var i,a,o,s,n,c,N,u;return M.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:(i=e).loading=!0,a=e.$route.query,o=a.startTime,s=a.endTime,n=a.clerkId,c=a.linkId,N=a.hmId,u={pageNum:i.currentPage,pageSize:i.pageSize,linkId:c,hmId:N,clerkId:n,startTime:o,endTime:s,addChannel:c?1:N?e.$route.query.addChannel:0,createTimeOrder:i.sortType||""},Object(r.f)("/haoban-manage3-web/hm/qrcode/wxUserAddLog/list",u).then(function(e){var t=e.data;if(i.loading=!1,0==t.code)return i.tableData=t.result.result||[],void(i.total=t.result.totalCount||0);l.a.errorMsg(t)}).catch(function(e){i.loading=!1,i.$message.error({duration:1e3,message:e.message})});case 5:case"end":return t.stop()}},t,e)}))()}},mounted:function(){this.getTableList(),console.log(this.$route.query)}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"recordTableRef",staticClass:"act-code-table",attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"sort-change":e.sortChange}},[a("el-table-column",{attrs:{prop:"",label:"基本信息","show-overflow-tooltip":"","min-width":"210px",fixed:""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[t.row.memberImage?a("img",{staticClass:"image-40",attrs:{src:t.row.memberImage}}):e._e(),e._v(" "),t.row.memberImage?e._e():a("img",{staticClass:"image-40",attrs:{src:i("EENi")}}),e._v(" "),t.row.memberName||t.row.memberNick||t.row.memberPhone?e._e():a("div",{staticClass:"p-l-10",staticStyle:{width:"calc(100% - 50px)","line-height":"40px"}},[e._v("--")]),e._v(" "),(t.row.memberName||t.row.memberNick)&&t.row.memberPhone?a("div",{staticClass:"p-l-10 line-20",staticStyle:{width:"calc(100% - 50px)"}},[a("div",{staticClass:"flex text-ellipsis"},[a("span",{staticClass:"text-ellipsis"},[e._v(e._s(t.row.memberName))]),e._v(" "),t.row.memberNick?a("span",{class:t.row.memberName?"color-909399 text-ellipsis":"text-ellipsis"},[e._v(" "+e._s(t.row.memberName?"("+t.row.memberNick+")":t.row.memberNick))]):e._e()]),e._v(" "),a("p",{staticClass:"font-12"},[e._v(e._s(t.row.memberPhone))])]):a("div",[t.row.memberName&&t.row.memberNick&&!t.row.memberPhone?a("div",{staticClass:"p-l-10",staticStyle:{"line-height":"40px"}},[a("div",{staticClass:"flex text-ellipsis"},[a("span",{staticClass:"text-ellipsis"},[e._v(e._s(t.row.memberName))]),e._v(" "),a("span",{staticClass:"color-909399 text-ellipsis"},[e._v(" ("+e._s(t.row.memberNick)+")")])])]):a("div",{staticClass:"p-l-10",staticStyle:{width:"calc(100% - 50px)","line-height":"40px"}},[e._v(e._s(t.row.memberName||t.row.memberNick||t.row.memberPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员卡号","show-overflow-tooltip":"","min-width":"126px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberCardNo||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"会员等级","show-overflow-tooltip":"","min-width":"86px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberGradeName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"导购信息","show-overflow-tooltip":"","min-width":"128px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",{staticClass:"line-20 text-ellipsis"},[e._v(e._s(t.row.clerkName||"--"))]),e._v(" "),a("p",{staticClass:"color-606266 line-18 text-ellipsis font-12"},[e._v("code:"+e._s(t.row.clerkCode||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"导购所属门店","show-overflow-tooltip":"","min-width":"185px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("p",{staticClass:"line-20 text-ellipsis"},[e._v(e._s(t.row.storeName||"--"))]),e._v(" "),a("p",{staticClass:"color-606266 line-18 text-ellipsis font-12"},[e._v("code:"+e._s(t.row.storeCode||"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"企微号","show-overflow-tooltip":"","min-width":"107px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.staffName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"添加时间","show-overflow-tooltip":"","min-width":"106px",sortable:""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-20"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-20"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"标签","show-overflow-tooltip":"","min-width":"144px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberLabelName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"关联类型","show-overflow-tooltip":"","min-width":"103px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.addChannel?"引流链接":"员工活码")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"关联信息","show-overflow-tooltip":"","min-width":"150px"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(1==t.row.addChannel?t.row.linkName||"--":t.row.hmName||"--")+"\n ")]}}])})],1)],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()])},staticRenderFns:[]};var N=i("VU/8")(n,c,!1,function(e){i("QAOQ")},"data-v-90f23584",null);t.default=N.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([37],{"/Abf":function(t,e){},JXTs:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),o=a.n(n),s=a("exGp"),i=a.n(s),r=a("mvHQ"),c=a.n(r),l=a("c9no"),p=a("NKg7"),d=a("P9l9"),u=a("Ch4/"),h=a("3E4D"),f={name:"index",data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",wxEnterpriseId:"",purchaseApp:[],weeks:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],noPurchaseApp:[],versionData:{id:1,smallVersion:"",corpName:"",date:(new Date).getTime(),storeNum:100,storeTotal:""},helpList:[]}},methods:{goUdesk:function(){window.open("https://notes.dingtalk.com/p/dy0mVP0g7lQPjz89/docs/dy0mV1QLjwErWX89")},getLunarDay:function(){var t="一二三四五六七八九十",e=(new Date).toLocaleString("zh-Hans-u-ca-chinese"),a=e.match(/年(.*)月/)[1];a="十一"==a?"冬":a;var n=e.match(/月(\d*)\s/)[1];return a+"月"+(n=Number(n)<=10?"初"+t.charAt(n-1):0==(n=n.split(""))[1]?t.charAt(n[0]-1)+"十":""+"十廿".charAt(n[0]-1)+t.charAt(n[1]-1))},toRedirect:function(t){if(!t.helpUrl)return!1;window.open(t.helpUrl)},changeRoute:function(t){this.$router.push(t)},toOverStore:function(){this.changeRoute("/overStoreList")},toAppView:function(t){if(!t.applicationPath)return h.a.showmsg("无更多设置项,不可进入!","warning"),!1;this.changeRoute(""+t.applicationPath)},goShopping:function(t){this.changeRoute("/")},toRouterView:function(t){this.$router.push({path:t.path})},changeSwitch:function(t){var e=this,a=1==t.openFlag?"关闭":"开启";e.$confirm("确认"+a+"【"+t.applicationName+"】应用吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.postSwitch(t)}).catch(function(){t.openFlag})},postSwitch:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId,applicationId:t.applicationId,openFlag:1==t.openFlag?0:1};Object(d.b)("/haoban-manage3-web/open-or-close",a).then(function(t){var a=t.data;if(1==a.errorCode)return h.a.showmsg("操作成功","success"),void e.getAppData(1);u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeAppSwitch:function(t,e){var a=this;a.$confirm("确定要"+(1==t?"启用":"停用")+"【"+e.applicationName+"】?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postAppSwitch(e)}).catch(function(){e.openFlag=!1})},postAppSwitch:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId,applicationId:t.applicationId,openFlag:t.openFlag?1:0};Object(d.b)("/haoban-manage3-web/open-or-close",a).then(function(t){var a=t.data;if(1==a.errorCode)return h.a.showmsg("启用成功","success"),void e.getAppData(1);u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},collapseTag:function(t){this.collapseFlag=t},toAlert:function(){this.$confirm("您所在企业尚未订购好办 ,请前往升级版本后继续使用。","提示",{confirmButtonText:"立即前往订购",cancelButtonText:"取消",type:"warning"}).then(function(){window.open("")})},toTip:function(){this.$confirm("您没有该功能的使用权限,请联系管理员授权后继续使用。","提示",{confirmButtonText:"知道了",type:"warning"}).then(function(){window.open("")})},getHelpData:function(){var t=this;Object(d.b)("/haoban-manage3-web/get-help-list",{}).then(function(e){var a=e.data;1!=a.errorCode?t.$message.error({duration:1e3,message:a.message}):t.helpList=a.result||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAppData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId,type:t};Object(d.b)("/haoban-manage3-web/application-open-close-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.open.forEach(function(t){t.openFlag=1}),e.purchaseApp=JSON.parse(c()(a.result.open))||[],a.result.close.forEach(function(t){t.openFlag=!1}),void(e.noPurchaseApp=JSON.parse(c()(a.result.close))||[]);u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getBindData:function(){var t=this;Object(d.b)("/haoban-manage3-web/has-bind-contract",{}).then(function(e){var a=e.data;1!=a.errorCode?u.a.errorMsg(a):a.result||t.getBindUrl()}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getBindUrl:function(){var t=this;Object(d.b)("/haoban-manage3-web/get-auth-url",{}).then(function(t){var e=t.data;1!=e.errorCode?u.a.errorMsg(e):window.location.href=""+e.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTipData:function(){var t=this;Object(d.b)("/haoban-manage3-web/is-wx-enterprise-secret-set",{}).then(function(e){var a=e.data;1!=a.errorCode?u.a.errorMsg(a):t.checkShow=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getCompanyData:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId};Object(d.b)("/haoban-manage3-web/wxEnterprise-detail",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.versionData=a.result,!1;u.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){var t=this;return i()(o.a.mark(function e(){var a;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(a=t).wxEnterpriseId=JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId,a.getBindData(),a.getAppData(1),a.getHelpData(),a.getCompanyData(),a.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-92+"px";case 7:case"end":return e.stop()}},e,t)}))()},components:{vueOfficeHeader:p.a,setTip:l.a}},g={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"index"}},[a("vue-office-header",{ref:"headerMenu",attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body border-box",staticStyle:{"min-height":"calc(100vh - 46px)"}},[a("div",{staticClass:"index-body flex flex-row"},[a("div",{staticClass:"index-body-left"},[a("div",{staticClass:"index-body-left_top border-box"},[a("div",{staticClass:"app-title font-16 color-303133 flex flex-space-between"},[a("span",{staticClass:"font-16 color-303133 font-w-600 line-h-32"},[t._v("已使用")]),t._v(" "),t.checkShow?t._e():a("set-tip",{attrs:{tipText:t.tipText}})],1),t._v(" "),a("ul",t._l(t.purchaseApp,function(e,n){return a("li",{key:n+"app",staticClass:"border-box",on:{click:function(a){return t.toAppView(e)}}},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right flex flex-column flex-align-center flex-pack-center"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),e.applicationPath?t._e():a("div",{staticClass:"app-info"},[a("span",{staticClass:"font-14 color-909399"},[t._v("里面为空~")])])]),t._v(" "),a("div",{staticClass:"app-cell-arrow"},[a("el-dropdown",{staticClass:"app-cell-dropdown",attrs:{trigger:"hover"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-more el-icon--right",staticStyle:{cursor:"pointer"}})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){return a.stopPropagation(),t.changeSwitch(e)}}},[t._v(t._s(1==e.openFlag?"停用":"启用"))])])],1)],1)],1)])])}),0)]),t._v(" "),t.noPurchaseApp.length?a("div",{staticClass:"bg-space"}):t._e(),t._v(" "),a("div",{class:["index-body-left_bottom border-box",t.noPurchaseApp.length?"bottom-0":"bottom-9999"]},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("已停用")]),t._v(" "),a("ul",t._l(t.noPurchaseApp,function(e,n){return a("li",{key:n+"appno",staticClass:"border-box"},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name stop-app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),a("div",{staticClass:"app-info stop-app-info"},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){return t.changeAppSwitch(a,e)}},model:{value:e.openFlag,callback:function(a){t.$set(e,"openFlag",a)},expression:"item.openFlag"}})],1)])])])}),0)])]),t._v(" "),a("div",{staticClass:"index-body-right"},[a("div",{staticClass:"index-body-right_top border-box"},[a("div",{staticClass:"serve-info"},[a("div",{staticClass:"serve-date-info"},[a("div",{staticClass:"font-14 color-909399 p-t-10 m-b-13",staticStyle:{"font-weight":"300"}},[t._v(t._s(t._f("timeStampToYm")((new Date).getTime())))]),t._v(" "),a("div",{staticClass:"font-12 color-909399"},[t._v("农历"+t._s(t.getLunarDay()))]),t._v(" "),a("div",{staticClass:"serve-date-day"},[a("div",{staticClass:"serve-date-day_inner "},[a("div",{staticClass:"color-fff font-26 p-t-10",staticStyle:{"letter-spacing":"2px"}},[t._v(t._s((new Date).getDate()))]),t._v(" "),a("div",{staticClass:"color-fff font-12"},[t._v(t._s(t.weeks[(new Date).getDay()]))])])])]),t._v(" "),a("div",{staticClass:"serve-version flex"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("企业")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.corpName))])]),t._v(" "),a("div",{staticClass:"serve-date flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("版本")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.smallVersion))])]),t._v(" "),t._e()])]),t._v(" "),a("div",{staticClass:"bg-margin-10"}),t._v(" "),a("div",{staticClass:"index-body-right_bottom border-box"},[a("div",{staticClass:"help-title font-16 color-303133 font-w-600"},[t._v("帮助中心")]),t._v(" "),a("ul",{staticClass:"help-list m-t-15"},[t._l(t.helpList,function(e,n){return a("li",{key:n+"help",staticClass:"cursor-pointer font-14 color-606266",on:{click:function(a){return t.toRedirect(e)}}},[t._v("\n "+t._s(e.helpTitle)+"\n ")])}),t._v(" "),a("li",{staticClass:"text-center li-more cursor-pointer",on:{click:t.goUdesk}},[t._v("查看更多")])],2)])])])])])],1)},staticRenderFns:[]};var v=a("VU/8")(f,g,!1,function(t){a("MA+P"),a("/Abf")},"data-v-8892505c",null);e.default=v.exports},"MA+P":function(t,e){}}); webpackJsonp([38],{"/Abf":function(t,e){},JXTs:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),o=a.n(n),s=a("exGp"),i=a.n(s),r=a("mvHQ"),c=a.n(r),l=a("c9no"),p=a("NKg7"),d=a("P9l9"),u=a("Ch4/"),h=a("3E4D"),f={name:"index",data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",projectName:"haoban-manage-web",contentHeight:"0px",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",wxEnterpriseId:"",purchaseApp:[],weeks:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],noPurchaseApp:[],versionData:{id:1,smallVersion:"",corpName:"",date:(new Date).getTime(),storeNum:100,storeTotal:""},helpList:[]}},methods:{goUdesk:function(){window.open("https://notes.dingtalk.com/p/dy0mVP0g7lQPjz89/docs/dy0mV1QLjwErWX89")},getLunarDay:function(){var t="一二三四五六七八九十",e=(new Date).toLocaleString("zh-Hans-u-ca-chinese"),a=e.match(/年(.*)月/)[1];a="十一"==a?"冬":a;var n=e.match(/月(\d*)\s/)[1];return a+"月"+(n=Number(n)<=10?"初"+t.charAt(n-1):0==(n=n.split(""))[1]?t.charAt(n[0]-1)+"十":""+"十廿".charAt(n[0]-1)+t.charAt(n[1]-1))},toRedirect:function(t){if(!t.helpUrl)return!1;window.open(t.helpUrl)},changeRoute:function(t){this.$router.push(t)},toOverStore:function(){this.changeRoute("/overStoreList")},toAppView:function(t){if(!t.applicationPath)return h.a.showmsg("无更多设置项,不可进入!","warning"),!1;this.changeRoute(""+t.applicationPath)},goShopping:function(t){this.changeRoute("/")},toRouterView:function(t){this.$router.push({path:t.path})},changeSwitch:function(t){var e=this,a=1==t.openFlag?"关闭":"开启";e.$confirm("确认"+a+"【"+t.applicationName+"】应用吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.postSwitch(t)}).catch(function(){t.openFlag})},postSwitch:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId,applicationId:t.applicationId,openFlag:1==t.openFlag?0:1};Object(d.b)("/haoban-manage3-web/open-or-close",a).then(function(t){var a=t.data;if(1==a.errorCode)return h.a.showmsg("操作成功","success"),void e.getAppData(1);u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},changeAppSwitch:function(t,e){var a=this;a.$confirm("确定要"+(1==t?"启用":"停用")+"【"+e.applicationName+"】?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postAppSwitch(e)}).catch(function(){e.openFlag=!1})},postAppSwitch:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId,applicationId:t.applicationId,openFlag:t.openFlag?1:0};Object(d.b)("/haoban-manage3-web/open-or-close",a).then(function(t){var a=t.data;if(1==a.errorCode)return h.a.showmsg("启用成功","success"),void e.getAppData(1);u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},collapseTag:function(t){this.collapseFlag=t},toAlert:function(){this.$confirm("您所在企业尚未订购好办 ,请前往升级版本后继续使用。","提示",{confirmButtonText:"立即前往订购",cancelButtonText:"取消",type:"warning"}).then(function(){window.open("")})},toTip:function(){this.$confirm("您没有该功能的使用权限,请联系管理员授权后继续使用。","提示",{confirmButtonText:"知道了",type:"warning"}).then(function(){window.open("")})},getHelpData:function(){var t=this;Object(d.b)("/haoban-manage3-web/get-help-list",{}).then(function(e){var a=e.data;1!=a.errorCode?t.$message.error({duration:1e3,message:a.message}):t.helpList=a.result||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAppData:function(t){var e=this,a={wxEnterpriseId:e.wxEnterpriseId,type:t};Object(d.b)("/haoban-manage3-web/application-open-close-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.open.forEach(function(t){t.openFlag=1}),e.purchaseApp=JSON.parse(c()(a.result.open))||[],a.result.close.forEach(function(t){t.openFlag=!1}),void(e.noPurchaseApp=JSON.parse(c()(a.result.close))||[]);u.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getBindData:function(){var t=this;Object(d.b)("/haoban-manage3-web/has-bind-contract",{}).then(function(e){var a=e.data;1!=a.errorCode?u.a.errorMsg(a):a.result||t.getBindUrl()}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getBindUrl:function(){var t=this;Object(d.b)("/haoban-manage3-web/get-auth-url",{}).then(function(t){var e=t.data;1!=e.errorCode?u.a.errorMsg(e):window.location.href=""+e.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTipData:function(){var t=this;Object(d.b)("/haoban-manage3-web/is-wx-enterprise-secret-set",{}).then(function(e){var a=e.data;1!=a.errorCode?u.a.errorMsg(a):t.checkShow=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getCompanyData:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId};Object(d.b)("/haoban-manage3-web/wxEnterprise-detail",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.versionData=a.result,!1;u.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){var t=this;return i()(o.a.mark(function e(){var a;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(a=t).wxEnterpriseId=JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId,a.getBindData(),a.getAppData(1),a.getHelpData(),a.getCompanyData(),a.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-92+"px";case 7:case"end":return e.stop()}},e,t)}))()},components:{vueOfficeHeader:p.a,setTip:l.a}},g={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"index"}},[a("vue-office-header",{ref:"headerMenu",attrs:{projectName:t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),t._v(" "),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body border-box",staticStyle:{"min-height":"calc(100vh - 46px)"}},[a("div",{staticClass:"index-body flex flex-row"},[a("div",{staticClass:"index-body-left"},[a("div",{staticClass:"index-body-left_top border-box"},[a("div",{staticClass:"app-title font-16 color-303133 flex flex-space-between"},[a("span",{staticClass:"font-16 color-303133 font-w-600 line-h-32"},[t._v("已使用")]),t._v(" "),t.checkShow?t._e():a("set-tip",{attrs:{tipText:t.tipText}})],1),t._v(" "),a("ul",t._l(t.purchaseApp,function(e,n){return a("li",{key:n+"app",staticClass:"border-box",on:{click:function(a){return t.toAppView(e)}}},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right flex flex-column flex-align-center flex-pack-center"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),e.applicationPath?t._e():a("div",{staticClass:"app-info"},[a("span",{staticClass:"font-14 color-909399"},[t._v("里面为空~")])])]),t._v(" "),a("div",{staticClass:"app-cell-arrow"},[a("el-dropdown",{staticClass:"app-cell-dropdown",attrs:{trigger:"hover"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-more el-icon--right",staticStyle:{cursor:"pointer"}})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){return a.stopPropagation(),t.changeSwitch(e)}}},[t._v(t._s(1==e.openFlag?"停用":"启用"))])])],1)],1)],1)])])}),0)]),t._v(" "),t.noPurchaseApp.length?a("div",{staticClass:"bg-space"}):t._e(),t._v(" "),a("div",{class:["index-body-left_bottom border-box",t.noPurchaseApp.length?"bottom-0":"bottom-9999"]},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("已停用")]),t._v(" "),a("ul",t._l(t.noPurchaseApp,function(e,n){return a("li",{key:n+"appno",staticClass:"border-box"},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),t._v(" "),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name stop-app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),t._v(" "),a("div",{staticClass:"app-info stop-app-info"},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){return t.changeAppSwitch(a,e)}},model:{value:e.openFlag,callback:function(a){t.$set(e,"openFlag",a)},expression:"item.openFlag"}})],1)])])])}),0)])]),t._v(" "),a("div",{staticClass:"index-body-right"},[a("div",{staticClass:"index-body-right_top border-box"},[a("div",{staticClass:"serve-info"},[a("div",{staticClass:"serve-date-info"},[a("div",{staticClass:"font-14 color-909399 p-t-10 m-b-13",staticStyle:{"font-weight":"300"}},[t._v(t._s(t._f("timeStampToYm")((new Date).getTime())))]),t._v(" "),a("div",{staticClass:"font-12 color-909399"},[t._v("农历"+t._s(t.getLunarDay()))]),t._v(" "),a("div",{staticClass:"serve-date-day"},[a("div",{staticClass:"serve-date-day_inner "},[a("div",{staticClass:"color-fff font-26 p-t-10",staticStyle:{"letter-spacing":"2px"}},[t._v(t._s((new Date).getDate()))]),t._v(" "),a("div",{staticClass:"color-fff font-12"},[t._v(t._s(t.weeks[(new Date).getDay()]))])])])]),t._v(" "),a("div",{staticClass:"serve-version flex"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("企业")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.corpName))])]),t._v(" "),a("div",{staticClass:"serve-date flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("版本")]),t._v(" "),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.smallVersion))])]),t._v(" "),t._e()])]),t._v(" "),a("div",{staticClass:"bg-margin-10"}),t._v(" "),a("div",{staticClass:"index-body-right_bottom border-box"},[a("div",{staticClass:"help-title font-16 color-303133 font-w-600"},[t._v("帮助中心")]),t._v(" "),a("ul",{staticClass:"help-list m-t-15"},[t._l(t.helpList,function(e,n){return a("li",{key:n+"help",staticClass:"cursor-pointer font-14 color-606266",on:{click:function(a){return t.toRedirect(e)}}},[t._v("\n "+t._s(e.helpTitle)+"\n ")])}),t._v(" "),a("li",{staticClass:"text-center li-more cursor-pointer",on:{click:t.goUdesk}},[t._v("查看更多")])],2)])])])])])],1)},staticRenderFns:[]};var v=a("VU/8")(f,g,!1,function(t){a("MA+P"),a("/Abf")},"data-v-8892505c",null);e.default=v.exports},"MA+P":function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([40],{AG22:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("2eFk"),i=e("Ch4/"),r=e("P9l9"),c={name:"common-app-top",props:{appName:{type:String,default:function(){return""}},appIcon:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeBrand:"",brandListData:[]}},methods:{returnBack:function(){this.$router.push("appcenter")},changeSelect:function(t){var a="";this.brandListData.forEach(function(e){e.brandId==t&&(a=e.groupId)}),this.$emit("selectBrandId",t,a)},getBrandData:function(){var t=this;Object(r.g)("/haoban-manage-web/application-brand-list",{}).then(function(a){var e=a.data;if(1!=e.errorCode)i.a.errorMsg(e);else if(e.result&&e.result.length){if(t.brandListData=e.result,t.$route.query.brandId)return t.activeBrand=t.$route.query.brandId,t.$emit("selectBrandId",t.$route.query.brandId),!1;t.activeBrand=t.brandListData[0].brandId,t.$emit("selectBrandId",t.brandListData[0].brandId,t.brandListData[0].groupId)}}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})}},watch:{brandId:function(t,a){this.getBrandData()}},mounted:function(){this.getBrandData()}},o={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-top-wrap app-detail-wrap"},[e("div",{staticClass:"my-customer-top"},[e("div",{staticClass:"my-customer-name"},[e("span",{staticClass:"app-icon "},[e("img",{attrs:{src:t.appIcon}})]),e("span",{staticClass:"p-l-8"},[t._v(t._s(t.appName))])]),t._v(" "),e("el-button",{staticClass:"border-radius-18 my-customer-return",on:{click:t.returnBack}},[t._v("返回")]),t._v(" "),"/workSet"!=t.$route.path&&"/workGroupSet"!=t.$route.path&&"/dayStatistics"!=t.$route.path&&"/workGroupSet"!=t.$route.path&&"/dayStatistics"!=t.$route.path&&"/workTimeManage"!=t.$route.path?e("div",{staticClass:"my-customer-brand"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"不同品牌的工作台可分别进行管理。点击后切换,可以管理不同品牌下的应用",placement:"top-start"}},[e("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer"}},[t._v("品牌名称"),e("span",{staticClass:"el-icon-info font-12 color-909399 p-l-6"})])]),t._v(" "),e("el-select",{staticClass:"p-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.activeBrand,callback:function(a){t.activeBrand=a},expression:"activeBrand"}},t._l(t.brandListData,function(t){return e("el-option",{key:t.brandId,attrs:{label:t.name,value:t.brandId}})}),1)],1):t._e()],1)])},staticRenderFns:[]};var s=e("VU/8")(c,o,!1,function(t){e("P1JT")},"data-v-687bd17e",null).exports,d=e("Qie6"),u={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"不良评价",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"不良评价回访记录",icon:"icon-badreviewstatistics",onlyIconActive:!1}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("badEvaluateRecord");break;case"2":this.changeRoute("badEvaluateSet")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:s,commonDetailLeft:d.a}},l={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("div",{staticClass:"right-content"},[e("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[e("div",{staticClass:"apps-content flex",style:{height:t.bgHeight}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1)])},staticRenderFns:[]};var p=e("VU/8")(u,l,!1,function(t){e("dLTz")},"data-v-81187592",null);a.default=p.exports},P1JT:function(t,a){},dLTz:function(t,a){}}); webpackJsonp([39],{AG22:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("2eFk"),i=e("Ch4/"),r=e("P9l9"),c={name:"common-app-top",props:{appName:{type:String,default:function(){return""}},appIcon:{type:String,default:function(){return""}}},data:function(){return{projectName:"",activeBrand:"",brandListData:[]}},methods:{returnBack:function(){this.$router.push("appcenter")},changeSelect:function(t){var a="";this.brandListData.forEach(function(e){e.brandId==t&&(a=e.groupId)}),this.$emit("selectBrandId",t,a)},getBrandData:function(){var t=this;Object(r.g)("/haoban-manage-web/application-brand-list",{}).then(function(a){var e=a.data;if(1!=e.errorCode)i.a.errorMsg(e);else if(e.result&&e.result.length){if(t.brandListData=e.result,t.$route.query.brandId)return t.activeBrand=t.$route.query.brandId,t.$emit("selectBrandId",t.$route.query.brandId),!1;t.activeBrand=t.brandListData[0].brandId,t.$emit("selectBrandId",t.brandListData[0].brandId,t.brandListData[0].groupId)}}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})}},watch:{brandId:function(t,a){this.getBrandData()}},mounted:function(){this.getBrandData()}},o={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-top-wrap app-detail-wrap"},[e("div",{staticClass:"my-customer-top"},[e("div",{staticClass:"my-customer-name"},[e("span",{staticClass:"app-icon "},[e("img",{attrs:{src:t.appIcon}})]),e("span",{staticClass:"p-l-8"},[t._v(t._s(t.appName))])]),t._v(" "),e("el-button",{staticClass:"border-radius-18 my-customer-return",on:{click:t.returnBack}},[t._v("返回")]),t._v(" "),"/workSet"!=t.$route.path&&"/workGroupSet"!=t.$route.path&&"/dayStatistics"!=t.$route.path&&"/workGroupSet"!=t.$route.path&&"/dayStatistics"!=t.$route.path&&"/workTimeManage"!=t.$route.path?e("div",{staticClass:"my-customer-brand"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"不同品牌的工作台可分别进行管理。点击后切换,可以管理不同品牌下的应用",placement:"top-start"}},[e("span",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer"}},[t._v("品牌名称"),e("span",{staticClass:"el-icon-info font-12 color-909399 p-l-6"})])]),t._v(" "),e("el-select",{staticClass:"p-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.activeBrand,callback:function(a){t.activeBrand=a},expression:"activeBrand"}},t._l(t.brandListData,function(t){return e("el-option",{key:t.brandId,attrs:{label:t.name,value:t.brandId}})}),1)],1):t._e()],1)])},staticRenderFns:[]};var s=e("VU/8")(c,o,!1,function(t){e("Cbms")},"data-v-f284b5e2",null).exports,d=e("Qie6"),u={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"不良评价",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"不良评价回访记录",icon:"icon-badreviewstatistics",onlyIconActive:!1}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("badEvaluateRecord");break;case"2":this.changeRoute("badEvaluateSet")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){var t=this.$route.query.appIcon;t&&(this.appIcon=window.unescape(t)),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:s,commonDetailLeft:d.a}},l={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("div",{staticClass:"right-content"},[e("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[e("div",{staticClass:"apps-content flex",style:{height:t.bgHeight}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1)])},staticRenderFns:[]};var p=e("VU/8")(u,l,!1,function(t){e("dLTz")},"data-v-81187592",null);a.default=p.exports},Cbms:function(t,a){},dLTz:function(t,a){}});
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([38],{DW0a:function(e,t){},H3Dc:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("mvHQ"),r=a.n(s),l=a("P9l9"),i=a("Ch4/"),o=a("PI0u"),n={name:"daily-export",props:{brandId:{type:String,default:function(){return""}}},data:function(){var e=this;return{projectName:"",activeBrand:this.brandId,dailyRuleForm:{dateRange:[],storeType:"",stores:[]},templates:[],checkAll:!1,isIndeterminate:!1,searchSelect:"",storeVisible:!1,stores:[],storesCopy:[],choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,s=t.minDate;e.choiceDateCopy=[s.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-7776e6,s=e.choiceDateCopy[0]+7776e6;return t.getTime()<a||t.getTime()>s||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},rules:{dateRange:[{required:!0,message:"请选择日期",trigger:"change"}],storeType:[{required:!0,message:"请选择自定义模板",trigger:"change"}],stores:[{type:"array",required:!0,message:"请选择门店",trigger:"change"}]},pageNum:1,pageSize:200,loadingBtn:!1}},methods:{handleCheckAllChange:function(e){this.dailyRuleForm.stores=e?this.stores.map(function(e){return e.storeId}):[],this.isIndeterminate=!1},handleStoresChange:function(e){var t=e.length;this.checkAll=t===this.stores.length,this.isIndeterminate=t>0&&t<this.stores.length},changeDate:function(e){e||(this.choiceDateCopy=[],this.dailyRuleForm.dateRange=[])},changeTemplate:function(){var e=this;e.pageNum=1,e.dailyRuleForm.stores=[],e.stores=[],e.storesCopy=[],e.searchSelect="",e.checkAll=!1,e.isIndeterminate=!1,e.$nextTick(function(){e.getStoreData()})},exportForm:Object(o.a)(function(e){var t=this;t.loadingBtn=!0,t.$refs[e].validate(function(e){if(!e)return t.loadingBtn=!1,!1;t.$alert("数据查询量较大,导出时间较长,请耐心等待!","",{confirmButtonText:"确定",callback:function(e){}});var a="";t.templates.forEach(function(e){e.storeType==t.dailyRuleForm.storeType&&(a=e.dailyReportTemplateId)}),t.postDailyExcel(a)})},500),postDailyExcel:function(e){var t=this,a={storeIds:t.dailyRuleForm.stores.join(",")||"",templateId:e,startDate:t.dailyRuleForm.dateRange[0]||"",endDate:t.dailyRuleForm.dateRange[1]||"",enterpriseId:t.activeBrand};Object(l.c)("/haoban-app-daily-three-web/daily/batch-export",a).then(function(e){if(t.loadingBtn=!1,!e.data)return i.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),s=t.dailyRuleForm.dateRange[0]+"-"+t.dailyRuleForm.dateRange[1]+"日报.xls",r=document.createElement("a");r.download=s,r.style.display="none",r.href=URL.createObjectURL(a),document.body.appendChild(r),r.click(),URL.revokeObjectURL(r.href),document.body.removeChild(r)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},toInput:Object(o.a)(function(e,t){if(!this.storesCopy.length)return!1;""==t&&(this.stores=JSON.parse(r()(this.storesCopy)));var a=JSON.parse(r()(this.storesCopy)).filter(function(e){return e.storeName.includes(t)});this.stores=a},500),changeVisible:function(){},checkStore:function(e){var t=this;if(e.select){e.select=!1;var a=t.dailyRuleForm.stores.indexOf(e.storeId);t.dailyRuleForm.stores.splice(a,1)}else e.select=!0,t.dailyRuleForm.stores.push(e.storeId);t.storesCopy.forEach(function(e){t.dailyRuleForm.stores.includes(e.storeId)&&(e.select=!0)})},clearSearch:function(){this.stores=JSON.parse(r()(this.storesCopy))},getTemplateData:function(){var e=this,t={enterpriseId:e.brandId};Object(l.b)("/haoban-app-daily-three-web/daily/list-define-template",t).then(function(t){var a=t.data;1!=a.errorCode?i.a.errorMsg(a):a.result&&a.result.length&&(e.templates=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getStoreData:function(){var e=this,t={enterpriseId:e.activeBrand,showChild:1,showType:1,status:1,storeType:e.dailyRuleForm.storeType,pageNum:e.pageNum,pageSize:e.pageSize};Object(l.b)("/haoban-manage3-web/store/find-simple-page",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.list&&a.result.list.forEach(function(e){e.select=!1}),1==e.pageNum?(e.stores=JSON.parse(r()(a.result.list))||[],e.storesCopy=JSON.parse(r()(a.result.list))||[]):a.result.list.forEach(function(t){e.stores.push(t),e.storesCopy.push(t)}),void(e.pageNum*e.pageSize<a.result.total&&(e.pageNum++,e.getStoreData()));i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.dailyRuleForm.storeType="",this.dailyRuleForm.stores=[],this.stores=[],this.storesCopy=[],this.searchSelect="",this.checkAll=!1,this.activeBrand=e,this.getTemplateData())}},mounted:function(){this.brandId&&(this.activeBrand=this.brandId,this.getTemplateData())}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-export-content"},[a("el-form",{ref:"dailyRuleForm",staticClass:"demo-dailyRuleForm",attrs:{model:e.dailyRuleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"dateRange"}},[a("p",{staticClass:"inline-block daily-form-label"},[e._v("选择时间:")]),e._v(" "),a("el-date-picker",{staticClass:"search-date",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",editable:!1,"picker-options":e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.dailyRuleForm.dateRange,callback:function(t){e.$set(e.dailyRuleForm,"dateRange",t)},expression:"dailyRuleForm.dateRange"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"storeType"}},[a("p",{staticClass:"inline-block daily-form-label"},[e._v("选择自定义模板:")]),e._v(" "),a("el-select",{staticClass:"w-350",attrs:{placeholder:"请选择自定义模板"},on:{change:e.changeTemplate},model:{value:e.dailyRuleForm.storeType,callback:function(t){e.$set(e.dailyRuleForm,"storeType",t)},expression:"dailyRuleForm.storeType"}},e._l(e.templates,function(e){return a("el-option",{key:e.value,attrs:{label:e.title,value:e.storeType}})}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"stores"}},[a("p",{staticClass:"inline-block daily-form-label"},[e._v("选择门店:")]),e._v(" "),a("el-popover",{attrs:{placement:"bottom",title:"",width:"350",trigger:"click"},model:{value:e.storeVisible,callback:function(t){e.storeVisible=t},expression:"storeVisible"}},[a("div",{staticClass:"daily-store-select"},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchSelect);var a}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"checkbox border-box",staticStyle:{padding:"15px 20px"}},[a("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1),e._v(" "),a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{"margin-bottom":"-5px","margin-right":"-5px"}},[a("el-checkbox-group",{on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,function(t){return a("li",{key:t.storeId,class:["el-select-dropdown__item",t.select?"selected hover":""]},[a("el-checkbox",{attrs:{label:t.storeId}},[e._v(e._s(t.storeName))])],1)}),e._v(" "),e.stores.length?e._e():a("li",{staticClass:"text-center"},[a("span",[e._v("暂无数据")])])],2)])],1),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-horizontal"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateX(0%)"}})]),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-vertical"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateY(0%)"}})])])]),e._v(" "),a("div",{staticClass:"show-select-num w-350",attrs:{slot:"reference"},on:{click:e.changeVisible},slot:"reference"},[e._v("\n 已经选择"+e._s(e.dailyRuleForm.stores.length)+"家门店\n "),a("span",{staticClass:"el-input__suffix"},[a("span",{staticClass:"el-input__suffix-inner"},[a("i",{class:["el-select__caret el-input__icon el-icon-arrow-up",e.storeVisible?"is-reverse":""]})])])])])],1),e._v(" "),a("el-form-item",[a("p",{staticClass:"inline-block daily-form-label m-t-50"}),e._v(" "),e.$getButtonLimit(e.$buttonCode.multipleExportReport)?a("el-button",{attrs:{"limit-code":e.$buttonCode.multipleExportReport,type:"primary",loading:e.loadingBtn},on:{click:function(t){return e.exportForm("dailyRuleForm")}}},[e._v("导出日报")]):e._e()],1)],1)],1)},staticRenderFns:[]};var d=a("VU/8")(n,c,!1,function(e){a("Q1We")},"data-v-ed5c6a0c",null).exports,u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeId:"1",showDialog:!1}},computed:{},methods:{},watch:{brandId:function(e,t){e&&(this.activeBrand=e)}},mounted:function(){this.activeBrand=this.brandId},components:{dailyExport:d}},p={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"daily-set-wrap "},[t("div",{staticClass:"daily-set-content border-box"},[t("daily-export",{attrs:{brandId:this.brandId}})],1)])},staticRenderFns:[]};var h=a("VU/8")(u,p,!1,function(e){a("DW0a")},"data-v-7bc0727a",null);t.default=h.exports},Q1We:function(e,t){}}); webpackJsonp([40],{DW0a:function(e,t){},H3Dc:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("mvHQ"),r=a.n(s),l=a("P9l9"),i=a("Ch4/"),o=a("PI0u"),n={name:"daily-export",props:{brandId:{type:String,default:function(){return""}}},data:function(){var e=this;return{projectName:"",activeBrand:this.brandId,dailyRuleForm:{dateRange:[],storeType:"",stores:[]},templates:[],checkAll:!1,isIndeterminate:!1,searchSelect:"",storeVisible:!1,stores:[],storesCopy:[],choiceDateCopy:[],pickerOptions:{onPick:function(t){var a=t.maxDate,s=t.minDate;e.choiceDateCopy=[s.getTime()],a&&(e.choiceDateCopy=[])},disabledDate:function(t){if(e.choiceDateCopy.length){var a=e.choiceDateCopy[0]-7776e6,s=e.choiceDateCopy[0]+7776e6;return t.getTime()<a||t.getTime()>s||t.getTime()>Date.now()-864e4}return t.getTime()>Date.now()-864e4}},rules:{dateRange:[{required:!0,message:"请选择日期",trigger:"change"}],storeType:[{required:!0,message:"请选择自定义模板",trigger:"change"}],stores:[{type:"array",required:!0,message:"请选择门店",trigger:"change"}]},pageNum:1,pageSize:200,loadingBtn:!1}},methods:{handleCheckAllChange:function(e){this.dailyRuleForm.stores=e?this.stores.map(function(e){return e.storeId}):[],this.isIndeterminate=!1},handleStoresChange:function(e){var t=e.length;this.checkAll=t===this.stores.length,this.isIndeterminate=t>0&&t<this.stores.length},changeDate:function(e){e||(this.choiceDateCopy=[],this.dailyRuleForm.dateRange=[])},changeTemplate:function(){var e=this;e.pageNum=1,e.dailyRuleForm.stores=[],e.stores=[],e.storesCopy=[],e.searchSelect="",e.checkAll=!1,e.isIndeterminate=!1,e.$nextTick(function(){e.getStoreData()})},exportForm:Object(o.a)(function(e){var t=this;t.loadingBtn=!0,t.$refs[e].validate(function(e){if(!e)return t.loadingBtn=!1,!1;t.$alert("数据查询量较大,导出时间较长,请耐心等待!","",{confirmButtonText:"确定",callback:function(e){}});var a="";t.templates.forEach(function(e){e.storeType==t.dailyRuleForm.storeType&&(a=e.dailyReportTemplateId)}),t.postDailyExcel(a)})},500),postDailyExcel:function(e){var t=this,a={storeIds:t.dailyRuleForm.stores.join(",")||"",templateId:e,startDate:t.dailyRuleForm.dateRange[0]||"",endDate:t.dailyRuleForm.dateRange[1]||"",enterpriseId:t.activeBrand};Object(l.c)("/haoban-app-daily-three-web/daily/batch-export",a).then(function(e){if(t.loadingBtn=!1,!e.data)return i.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),s=t.dailyRuleForm.dateRange[0]+"-"+t.dailyRuleForm.dateRange[1]+"日报.xls",r=document.createElement("a");r.download=s,r.style.display="none",r.href=URL.createObjectURL(a),document.body.appendChild(r),r.click(),URL.revokeObjectURL(r.href),document.body.removeChild(r)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},toInput:Object(o.a)(function(e,t){if(!this.storesCopy.length)return!1;""==t&&(this.stores=JSON.parse(r()(this.storesCopy)));var a=JSON.parse(r()(this.storesCopy)).filter(function(e){return e.storeName.includes(t)});this.stores=a},500),changeVisible:function(){},checkStore:function(e){var t=this;if(e.select){e.select=!1;var a=t.dailyRuleForm.stores.indexOf(e.storeId);t.dailyRuleForm.stores.splice(a,1)}else e.select=!0,t.dailyRuleForm.stores.push(e.storeId);t.storesCopy.forEach(function(e){t.dailyRuleForm.stores.includes(e.storeId)&&(e.select=!0)})},clearSearch:function(){this.stores=JSON.parse(r()(this.storesCopy))},getTemplateData:function(){var e=this,t={enterpriseId:e.brandId};Object(l.b)("/haoban-app-daily-three-web/daily/list-define-template",t).then(function(t){var a=t.data;1!=a.errorCode?i.a.errorMsg(a):a.result&&a.result.length&&(e.templates=a.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getStoreData:function(){var e=this,t={enterpriseId:e.activeBrand,showChild:1,showType:1,status:1,storeType:e.dailyRuleForm.storeType,pageNum:e.pageNum,pageSize:e.pageSize};Object(l.b)("/haoban-manage3-web/store/find-simple-page",t).then(function(t){var a=t.data;if(1==a.errorCode)return a.result.list&&a.result.list.forEach(function(e){e.select=!1}),1==e.pageNum?(e.stores=JSON.parse(r()(a.result.list))||[],e.storesCopy=JSON.parse(r()(a.result.list))||[]):a.result.list.forEach(function(t){e.stores.push(t),e.storesCopy.push(t)}),void(e.pageNum*e.pageSize<a.result.total&&(e.pageNum++,e.getStoreData()));i.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){e&&(this.dailyRuleForm.storeType="",this.dailyRuleForm.stores=[],this.stores=[],this.storesCopy=[],this.searchSelect="",this.checkAll=!1,this.activeBrand=e,this.getTemplateData())}},mounted:function(){this.brandId&&(this.activeBrand=this.brandId,this.getTemplateData())}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-export-content"},[a("el-form",{ref:"dailyRuleForm",staticClass:"demo-dailyRuleForm",attrs:{model:e.dailyRuleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"dateRange"}},[a("p",{staticClass:"inline-block daily-form-label"},[e._v("选择时间:")]),e._v(" "),a("el-date-picker",{staticClass:"search-date",attrs:{format:"yyyy-MM-dd","value-format":"yyyy-MM-dd",editable:!1,"picker-options":e.pickerOptions,type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:e.changeDate},model:{value:e.dailyRuleForm.dateRange,callback:function(t){e.$set(e.dailyRuleForm,"dateRange",t)},expression:"dailyRuleForm.dateRange"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"storeType"}},[a("p",{staticClass:"inline-block daily-form-label"},[e._v("选择自定义模板:")]),e._v(" "),a("el-select",{staticClass:"w-350",attrs:{placeholder:"请选择自定义模板"},on:{change:e.changeTemplate},model:{value:e.dailyRuleForm.storeType,callback:function(t){e.$set(e.dailyRuleForm,"storeType",t)},expression:"dailyRuleForm.storeType"}},e._l(e.templates,function(e){return a("el-option",{key:e.value,attrs:{label:e.title,value:e.storeType}})}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"",prop:"stores"}},[a("p",{staticClass:"inline-block daily-form-label"},[e._v("选择门店:")]),e._v(" "),a("el-popover",{attrs:{placement:"bottom",title:"",width:"350",trigger:"click"},model:{value:e.storeVisible,callback:function(t){e.storeVisible=t},expression:"storeVisible"}},[a("div",{staticClass:"daily-store-select"},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchSelect);var a}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("div",{staticClass:"checkbox border-box",staticStyle:{padding:"15px 20px"}},[a("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1),e._v(" "),a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{"margin-bottom":"-5px","margin-right":"-5px"}},[a("el-checkbox-group",{on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,function(t){return a("li",{key:t.storeId,class:["el-select-dropdown__item",t.select?"selected hover":""]},[a("el-checkbox",{attrs:{label:t.storeId}},[e._v(e._s(t.storeName))])],1)}),e._v(" "),e.stores.length?e._e():a("li",{staticClass:"text-center"},[a("span",[e._v("暂无数据")])])],2)])],1),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-horizontal"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateX(0%)"}})]),e._v(" "),a("div",{staticClass:"el-scrollbar__bar is-vertical"},[a("div",{staticClass:"el-scrollbar__thumb",staticStyle:{transform:"translateY(0%)"}})])])]),e._v(" "),a("div",{staticClass:"show-select-num w-350",attrs:{slot:"reference"},on:{click:e.changeVisible},slot:"reference"},[e._v("\n 已经选择"+e._s(e.dailyRuleForm.stores.length)+"家门店\n "),a("span",{staticClass:"el-input__suffix"},[a("span",{staticClass:"el-input__suffix-inner"},[a("i",{class:["el-select__caret el-input__icon el-icon-arrow-up",e.storeVisible?"is-reverse":""]})])])])])],1),e._v(" "),a("el-form-item",[a("p",{staticClass:"inline-block daily-form-label m-t-50"}),e._v(" "),e.$getButtonLimit(e.$buttonCode.multipleExportReport)?a("el-button",{attrs:{"limit-code":e.$buttonCode.multipleExportReport,type:"primary",loading:e.loadingBtn},on:{click:function(t){return e.exportForm("dailyRuleForm")}}},[e._v("导出日报")]):e._e()],1)],1)],1)},staticRenderFns:[]};var d=a("VU/8")(n,c,!1,function(e){a("Q1We")},"data-v-ed5c6a0c",null).exports,u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeId:"1",showDialog:!1}},computed:{},methods:{},watch:{brandId:function(e,t){e&&(this.activeBrand=e)}},mounted:function(){this.activeBrand=this.brandId},components:{dailyExport:d}},p={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"daily-set-wrap "},[t("div",{staticClass:"daily-set-content border-box"},[t("daily-export",{attrs:{brandId:this.brandId}})],1)])},staticRenderFns:[]};var h=a("VU/8")(u,p,!1,function(e){a("DW0a")},"data-v-7bc0727a",null);t.default=h.exports},Q1We:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([39],{MtoL:function(e,t){},Uryh:function(e,t){},XZyq:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("Dd8w"),s=a.n(o),r=a("Xxa5"),i=a.n(r),l=a("exGp"),n=a.n(l),c=a("PeHS"),d=a("jssv"),u=a("P9l9"),p={name:"actCodeTable",components:{links:d.a},directives:{loadmore:{inserted:function(e,t){e.querySelector(".el-select-dropdown .el-select-dropdown__wrap").addEventListener("scroll",function(){this.clientHeight+this.scrollTop+20>=this.scrollHeight&&t.value()})}}},props:{currentGroupId:{type:[Number,String],default:-1}},data:function(){var e=this;return{tableMaxHeight:document.body.clientHeight-312+"px",inFields:{hmSelect:"",statusFlagInt:"",storeSelect:"",clerkSelect:"",hmTypeInt:"",startTime:"",endTime:"",orderByField:"createTime desc",hmGroupId:"-1"},storeSelect:1,dateTime:[],tableData:[],total:1,totalCount:100,selectPage:{type:0,dataReady:!1},actCodeList:[],loadingStatus:!1,pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()>t.getTime()}},operateBtnArr:[{text:"数据",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.dataActCode))return!0},props:{limitCode:this.$buttonCode.dataActCode},handler:function(t){e.$router.push("/actCodeDetail?hmId="+t.hmId+"&activeName=second")}},{text:"详情",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.infoActCode))return!0},props:{limitCode:this.$buttonCode.infoActCode},handler:function(t){e.$router.push("/actCodeDetails?hmId="+t.hmId)}},{text:"编辑",visible:function(t){return!(!e.$getButtonLimit(e.$buttonCode.editActCode)||2==t.statusFlag)},props:{limitCode:this.$buttonCode.editActCode},handler:function(t){e.$router.push("/actCodeEdit?hmId="+t.hmId)}},{text:"下载活码",visible:function(t){return!(!e.$getButtonLimit(e.$buttonCode.downActCode)||1==t.hmType||1!=t.statusFlag)},props:{limitCode:this.$buttonCode.downActCode},handler:function(e){var t,a,o,s;t=e.hmCode+"_"+e.hmName,a=e.wxQrcode,o=a,(s=new XMLHttpRequest).open("GET",o,!0),s.responseType="blob",s.onload=function(e){var a=new Blob([s.response]),o=window.URL.createObjectURL(a),r=document.createElement("a");r.href=o,r.download=t+".png",r.click()},s.send()}},{text:"作废",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.delActCode)&&2!=t.statusFlag)return!0},props:{limitCode:this.$buttonCode.delActCode},handler:function(t){e.$confirm("此操作将永久废弃该活码,请确保不影响其他投放使用!","确认要作废该活码?",{confirmButtonText:"作废",cancelButtonText:"取消",type:"warning"}).then(function(){e.loadingStatus=!0,Object(u.a)("/haoban-manage3-web/hm/qrcode/del",{hmId:t.hmId}).then(function(t){0==t.data.code&&setTimeout(function(){e.getTableList(),e.loadingStatus=!1},1e3)})})}}],selectLoading:!1,memberList:[],shopList:[],pageParam:{pageSize:20,pageNo:1},sortColumn:"",sortType:"",multipleSelection:[],selectHmIds:[],dialogGroupFormVisible:!1,formGroup:{groupId:[]},groupList:[],pageParamGroup:{groupName:"",pageNum:1,pageSize:20,total:1},name:"",storeParam:{searchParam:"",pageSize:20,currentPage:1,scenes:"integral",creatorId:"",total:1},wxQrcode:"",show:!1}},created:function(){this.searchGroup(),this.getTableList()},activated:function(){this.searchGroup(),this.getTableList()},methods:{storeMemberSe:function(e){1==e?(this.inFields.clerkSelect="",this.memberList=[]):2==e&&(this.inFields.storeSelect="",this.shopList=[])},onLoadmoreStore:function(){this.storeParam.currentPage>=this.storeParam.total||(this.storeParam.currentPage++,this.getStore())},getStore:function(){var e=this;return n()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.g)("/api-plug/query-store-by-code-name-new?requestProject=haoban-manage-web",e.storeParam).then(function(t){0==t.data.errorCode&&(e.storeParam.total=t.data.totalCount,Array.isArray(t.data.result.result)&&(e.shopList=e.shopList.concat(t.data.result.result)))});case 2:case"end":return t.stop()}},t,e)}))()},remoteMethods:function(e){""!==e?(this.storeParam.searchParam=e,this.storeParam.currentPage=1,this.shopList=[],this.getStore()):this.shopList=[]},remoteMethodShop:function(e){""!==e?(this.name=e,this.memberList=[],this.getStraff()):this.memberList=[]},getStraff:function(){var e=this;return n()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.g)("/api-plug/search-clerk?type=2",{name:e.name}).then(function(t){0==t.data.errorCode&&(e.memberList=t.data.result||[])});case 2:case"end":return t.stop()}},t,e)}))()},onLoadmore:function(){this.pageParamGroup.pageNum>=this.pageParamGroup.total||(this.pageParamGroup.pageNum++,this.searchGroup())},searchGroup:function(){var e=this;return n()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return 1==e.pageParamGroup.pageNum&&(e.groupList=[]),t.next=3,Object(u.b)("/haoban-manage3-web/hm/group/list",e.pageParamGroup).then(function(t){if(0==t.data.code){var a=t.data.result||{},o=a.result,s=a.pages;e.pageParamGroup.total=s,Array.isArray(o)&&(e.groupList=e.groupList.concat(o))}});case 3:case"end":return t.stop()}},t,e)}))()},remoteMethod:function(e){this.pageParamGroup.groupName=e,this.pageParamGroup.pageNum=1,this.groupList=[],this.searchGroup()},visibleChange:function(e){e||this.remoteMethod()},handleSelectionChange:function(e){this.multipleSelection=e,this.selectHmIds=e.map(function(e){return e.hmId})},batchGoupEvent:function(){if(0==this.selectHmIds.length)return this.$message({message:"请先选择活码",type:"warning"});this.dialogGroupFormVisible=!0,this.searchGroup()},batchOK:function(){var e=this;return n()(i.a.mark(function t(){var a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a={hmIds:e.selectHmIds,groupId:e.formGroup.groupId},t.next=3,Object(u.f)("/haoban-manage3-web/hm/qrcode/update/qrcode/group",a).then(function(t){0==t.data.code&&(e.dialogGroupFormVisible=!1,e.$router.go(0))});case 3:case"end":return t.stop()}},t,e)}))()},handleCurrentChange:function(e){this.pageParam.pageNo=e,this.getTableList()},handleSizeChange:function(e){this.pageParam.pageNo=1,this.pageParam.pageSize=e,this.getTableList()},sortChange:function(e){this.sortColumn=e.prop,this.sortType="ascending"==e.order?"asc":"desc",this.inFields.orderByField=this.sortColumn+" "+this.sortType,this.getTableList()},searchListShop:function(){this.shopList=[]},searchList:function(e){this.pageParam.pageNo=1,this.getTableList()},getTableList:function(){var e=this;this.loadingStatus=!0,this.dateTime&&this.dateTime.length?(this.inFields.startTime=this.dateTime?this.dateTime[0]+" 00:00:00":"",this.inFields.endTime=this.dateTime?this.dateTime[1]+" 23:59:59":"",this.inFields.startTime=Date.parse(new Date(this.inFields.startTime).toString()),this.inFields.endTime=Date.parse(new Date(this.inFields.endTime).toString())):(this.inFields.startTime="",this.inFields.endTime=""),this.currentGroupId&&(this.inFields.hmGroupId=this.currentGroupId),""==this.inFields.hmSelect&&delete this.inFields.hmSelect,""==this.inFields.storeSelect&&delete this.inFields.storeSelect,""==this.inFields.clerkSelect&&delete this.inFields.clerkSelect,""==this.inFields.startTime&&delete this.inFields.startTime,""==this.inFields.endTime&&delete this.inFields.endTime;var t=s()({inFields:this.inFields},this.pageParam);this.selectPage.dataReady=!1,Object(c.a)(t).then(function(t){0==t.data.code&&(e.tableData=t.data.result.data||[],e.totalCount=t.data.result.page.totalCount),e.selectPage.dataReady=!0}).finally(function(t){e.loadingStatus=!1})}},watch:{currentGroupId:{handler:function(e){e&&(this.currentGroupId=e,this.pageParam.pageNo=1,this.getTableList())},immediate:!0}}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"}},[a("el-form",{attrs:{inline:""}},[a("el-form-item",[a("el-input",{staticStyle:{width:"260px"},attrs:{placeholder:"请输入活码ID/名称、创建人",clearable:""},on:{change:e.searchList},model:{value:e.inFields.hmSelect,callback:function(t){e.$set(e.inFields,"hmSelect",t)},expression:"inFields.hmSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("el-form-item",[a("el-select",{staticStyle:{width:"128px"},attrs:{placeholder:"请选择"},on:{change:e.storeMemberSe},model:{value:e.storeSelect,callback:function(t){e.storeSelect=t},expression:"storeSelect"}},[a("el-option",{attrs:{label:"成员所属门店",value:1}}),e._v(" "),a("el-option",{attrs:{label:"关联导购",value:2}})],1),e._v(" "),1==e.storeSelect?a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmoreStore,expression:"onLoadmoreStore"}],staticStyle:{"margin-left":"-4px",width:"196px"},attrs:{filterable:"",remote:"",placeholder:"请输入门店名称/code","remote-method":e.remoteMethods,loading:e.selectLoading,clearable:"","popper-class":"s-select"},on:{change:e.searchList,clear:e.searchListShop},model:{value:e.inFields.storeSelect,callback:function(t){e.$set(e.inFields,"storeSelect",t)},expression:"inFields.storeSelect"}},e._l(e.shopList,function(t){return a("el-option",{key:t.storeId,attrs:{label:t.storeName,value:t.storeId}},[a("p",{staticClass:"sname"},[e._v(e._s(t.storeName))]),e._v(" "),a("p",{staticClass:"scode"},[e._v("code:"+e._s(t.storeCode))])])}),1):e._e(),e._v(" "),2==e.storeSelect?a("el-select",{staticStyle:{"margin-left":"-4px",width:"196px"},attrs:{filterable:"",remote:"",placeholder:"请输入成员名称/code","remote-method":e.remoteMethodShop,loading:e.selectLoading,clearable:"","popper-class":"s-select"},on:{change:e.searchList},model:{value:e.inFields.clerkSelect,callback:function(t){e.$set(e.inFields,"clerkSelect",t)},expression:"inFields.clerkSelect"}},e._l(e.memberList,function(t){return a("el-option",{key:t.clerkId,attrs:{label:t.clerkName,value:t.clerkId}},[a("p",{staticClass:"sname"},[e._v(e._s(t.clerkName))]),e._v(" "),a("p",{staticClass:"scode"},[e._v("code:"+e._s(t.clerkCode))])])}),1):e._e()],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"w160",attrs:{placeholder:"全部状态",clearable:""},on:{change:e.searchList},model:{value:e.inFields.statusFlagInt,callback:function(t){e.$set(e.inFields,"statusFlagInt",t)},expression:"inFields.statusFlagInt"}},[a("el-option",{key:1,attrs:{label:"正常",value:1}}),e._v(" "),a("el-option",{key:2,attrs:{label:"作废",value:2}}),e._v(" "),a("el-option",{key:3,attrs:{label:"待生效",value:3}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"w160",attrs:{placeholder:"全部类型",clearable:""},on:{change:e.searchList},model:{value:e.inFields.hmTypeInt,callback:function(t){e.$set(e.inFields,"hmTypeInt",t)},expression:"inFields.hmTypeInt"}},[a("el-option",{key:1,attrs:{label:"单人活码",value:1}}),e._v(" "),a("el-option",{key:2,attrs:{label:"多人活码",value:2}})],1)],1),e._v(" "),a("el-form-item",[a("el-date-picker",{attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期"},on:{change:e.searchList},model:{value:e.dateTime,callback:function(t){e.dateTime=t},expression:"dateTime"}})],1),e._v(" "),a("el-form-item",{staticClass:"frmbt20"},[e.$getButtonLimit(e.$buttonCode.batchGroup)?a("el-button",{attrs:{"limit-code":e.$buttonCode.batchGroup},on:{click:e.batchGoupEvent}},[e._v("批量分组")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.batchActCode)?a("el-button",{staticClass:"ghost-btn ",attrs:{type:"primary","limit-code":e.$buttonCode.batchActCode},on:{click:function(t){return e.$router.push("/actCodeBatch")}}},[e._v("批量创建活码")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.addActCode)?a("el-button",{attrs:{type:"primary","limit-code":e.$buttonCode.addActCode},on:{click:function(t){return e.$router.push("/actCodeAdd")}}},[e._v("新增活码")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingStatus,expression:"loadingStatus"}],ref:"actCodeTableRef",staticClass:"act-code-table",attrs:{data:e.tableData,"max-height":e.tableMaxHeight},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection","min-width":"60",fixed:""}}),e._v(" "),a("el-table-column",{attrs:{label:"活码ID",fixed:"","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[e._v(e._s(o.hmCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活码信息","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis",attrs:{title:o.hmName}},[e._v(e._s(o.hmName?o.hmName:"--"))]),e._v(" "),a("p",[1==o.hmType?a("span",{staticClass:"oneActCode"},[e._v("单人活码")]):a("span",{staticClass:"moreActCOde"},[e._v("多人活码")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活码状态","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[1==o.statusFlag?a("span",{staticClass:"dot normal"},[e._v("正常")]):e._e(),2==o.statusFlag?a("span",{staticClass:"dot voided"},[e._v("作废")]):e._e(),3==o.statusFlag?a("span",{staticClass:"dot needSure"},[e._v("待生效")]):e._e()]),e._v(" "),1==o.overFlag?a("p",{staticClass:"toTopTip"},[e._v("(今日已达上限)")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"添加好友人数",prop:"addNumT",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[e._v(e._s(o.addNumT?o.addNumT:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"今日新增人数",prop:"addNum",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[e._v(e._s(o.addNum?o.addNum:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"关联导购","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(o.clerkList[0]?o.clerkList[0].clerkName:"--"))]),e._v(" "),a("p",{staticClass:"ft-12 phone overflow-ellipsis"},[e._v(e._s(o.clerkList[0]?"code:"+o.clerkList[0].clerkCode:"--"))]),e._v(" "),o.clerkList&&o.clerkList.length>1?a("p",[a("el-popover",{attrs:{width:"200",trigger:"click"}},[a("ul",{staticClass:"userMember-ul"},e._l(o.clerkList,function(t){return a("li",{key:t.clerkId,staticClass:"userMemberLi"},[a("p",{staticClass:"ulName"},[e._v(e._s(t.clerkName))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v("code:"+e._s(t.clerkCode))])])}),0),e._v(" "),a("el-button",{staticClass:"ft-12",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("查看更多")])],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"成员所属门店","min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(o.storeList[0]?o.storeList[0].storeName:"--"))]),e._v(" "),a("p",{staticClass:"ft-12 phone overflow-ellipsis"},[e._v(e._s(o.storeList[0]?"code:"+o.storeList[0].storeCode:"--"))]),e._v(" "),o.storeList&&o.storeList.length>1?a("p",[a("el-popover",{attrs:{width:"200",trigger:"click"}},[a("ul",{staticClass:"userMember-ul"},e._l(o.storeList,function(t){return a("li",{key:t.storeId,staticClass:"userMemberLi"},[a("p",{staticClass:"ulName"},[e._v(e._s(t.storeName))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v("code:"+e._s(t.storeCode))])])}),0),e._v(" "),a("el-button",{staticClass:"ft-12",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("查看更多")])],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"所属分组","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(o.hmGroupName?o.hmGroupName:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建人","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(o.creatorName?o.creatorName:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime",sortable:"custom","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return o.createTime?[a("div",[e._v(e._s(e._f("timeStampToYmd")(o.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("timeStampToHms")(o.createTime)))])]:void 0}}],!0)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"160",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("dm-dropdown",{attrs:{"scope-data":o,max:3,configs:e.operateBtnArr}})]}}])})],1),e._v(" "),e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","page-size":e.pageParam.pageSize,"current-page":e.pageParam.pageNo,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[20,40,60,80],total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.pageParam,"pageSize",t)},"update:page-size":function(t){return e.$set(e.pageParam,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.pageParam,"pageNo",t)},"update:current-page":function(t){return e.$set(e.pageParam,"pageNo",t)}}})],1):e._e(),e._v(" "),a("el-dialog",{attrs:{title:"选择分组",visible:e.dialogGroupFormVisible,width:"500px"},on:{"update:visible":function(t){e.dialogGroupFormVisible=t}}},[a("el-form",{attrs:{model:e.formGroup}},[a("el-form-item",{attrs:{label:"活码分组",rules:[{required:!0,message:"请选择分组",trigger:"blur"}]}},[a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmore,expression:"onLoadmore"}],staticClass:"chooseGroup",attrs:{placeholder:"选择分组",filterable:"","filter-method":e.remoteMethod,clearable:""},on:{"visible-change":e.visibleChange},model:{value:e.formGroup.groupId,callback:function(t){e.$set(e.formGroup,"groupId",t)},expression:"formGroup.groupId"}},e._l(e.groupList,function(e){return a("el-option",{key:e.groupId,attrs:{label:e.groupName,value:e.groupId}})}),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogGroupFormVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.batchOK}},[e._v("确 定")])],1)],1),e._v(" "),a("links",{attrs:{src:e.wxQrcode,show:e.show,imageName:e.imageName,sourceType:!1},on:{"update:show":function(t){e.show=t}}})],1)},staticRenderFns:[]};var h=a("VU/8")(p,m,!1,function(e){a("MtoL"),a("Uryh")},"data-v-76c52662",null);t.default=h.exports}}); webpackJsonp([41],{MtoL:function(e,t){},Uryh:function(e,t){},XZyq:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("Dd8w"),s=a.n(o),r=a("Xxa5"),i=a.n(r),l=a("exGp"),n=a.n(l),c=a("PeHS"),d=a("jssv"),u=a("P9l9"),p={name:"actCodeTable",components:{links:d.a},directives:{loadmore:{inserted:function(e,t){e.querySelector(".el-select-dropdown .el-select-dropdown__wrap").addEventListener("scroll",function(){this.clientHeight+this.scrollTop+20>=this.scrollHeight&&t.value()})}}},props:{currentGroupId:{type:[Number,String],default:-1}},data:function(){var e=this;return{tableMaxHeight:document.body.clientHeight-312+"px",inFields:{hmSelect:"",statusFlagInt:"",storeSelect:"",clerkSelect:"",hmTypeInt:"",startTime:"",endTime:"",orderByField:"createTime desc",hmGroupId:"-1"},storeSelect:1,dateTime:[],tableData:[],total:1,totalCount:100,selectPage:{type:0,dataReady:!1},actCodeList:[],loadingStatus:!1,pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()>t.getTime()}},operateBtnArr:[{text:"数据",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.dataActCode))return!0},props:{limitCode:this.$buttonCode.dataActCode},handler:function(t){e.$router.push("/actCodeDetail?hmId="+t.hmId+"&activeName=second")}},{text:"详情",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.infoActCode))return!0},props:{limitCode:this.$buttonCode.infoActCode},handler:function(t){e.$router.push("/actCodeDetails?hmId="+t.hmId)}},{text:"编辑",visible:function(t){return!(!e.$getButtonLimit(e.$buttonCode.editActCode)||2==t.statusFlag)},props:{limitCode:this.$buttonCode.editActCode},handler:function(t){e.$router.push("/actCodeEdit?hmId="+t.hmId)}},{text:"下载活码",visible:function(t){return!(!e.$getButtonLimit(e.$buttonCode.downActCode)||1==t.hmType||1!=t.statusFlag)},props:{limitCode:this.$buttonCode.downActCode},handler:function(e){var t,a,o,s;t=e.hmCode+"_"+e.hmName,a=e.wxQrcode,o=a,(s=new XMLHttpRequest).open("GET",o,!0),s.responseType="blob",s.onload=function(e){var a=new Blob([s.response]),o=window.URL.createObjectURL(a),r=document.createElement("a");r.href=o,r.download=t+".png",r.click()},s.send()}},{text:"作废",visible:function(t){if(e.$getButtonLimit(e.$buttonCode.delActCode)&&2!=t.statusFlag)return!0},props:{limitCode:this.$buttonCode.delActCode},handler:function(t){e.$confirm("此操作将永久废弃该活码,请确保不影响其他投放使用!","确认要作废该活码?",{confirmButtonText:"作废",cancelButtonText:"取消",type:"warning"}).then(function(){e.loadingStatus=!0,Object(u.a)("/haoban-manage3-web/hm/qrcode/del",{hmId:t.hmId}).then(function(t){0==t.data.code&&setTimeout(function(){e.getTableList(),e.loadingStatus=!1},1e3)})})}}],selectLoading:!1,memberList:[],shopList:[],pageParam:{pageSize:20,pageNo:1},sortColumn:"",sortType:"",multipleSelection:[],selectHmIds:[],dialogGroupFormVisible:!1,formGroup:{groupId:[]},groupList:[],pageParamGroup:{groupName:"",pageNum:1,pageSize:20,total:1},name:"",storeParam:{searchParam:"",pageSize:20,currentPage:1,scenes:"integral",creatorId:"",total:1},wxQrcode:"",show:!1}},created:function(){this.searchGroup(),this.getTableList()},activated:function(){this.searchGroup(),this.getTableList()},methods:{storeMemberSe:function(e){1==e?(this.inFields.clerkSelect="",this.memberList=[]):2==e&&(this.inFields.storeSelect="",this.shopList=[])},onLoadmoreStore:function(){this.storeParam.currentPage>=this.storeParam.total||(this.storeParam.currentPage++,this.getStore())},getStore:function(){var e=this;return n()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.g)("/api-plug/query-store-by-code-name-new?requestProject=haoban-manage-web",e.storeParam).then(function(t){0==t.data.errorCode&&(e.storeParam.total=t.data.totalCount,Array.isArray(t.data.result.result)&&(e.shopList=e.shopList.concat(t.data.result.result)))});case 2:case"end":return t.stop()}},t,e)}))()},remoteMethods:function(e){""!==e?(this.storeParam.searchParam=e,this.storeParam.currentPage=1,this.shopList=[],this.getStore()):this.shopList=[]},remoteMethodShop:function(e){""!==e?(this.name=e,this.memberList=[],this.getStraff()):this.memberList=[]},getStraff:function(){var e=this;return n()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(u.g)("/api-plug/search-clerk?type=2",{name:e.name}).then(function(t){0==t.data.errorCode&&(e.memberList=t.data.result||[])});case 2:case"end":return t.stop()}},t,e)}))()},onLoadmore:function(){this.pageParamGroup.pageNum>=this.pageParamGroup.total||(this.pageParamGroup.pageNum++,this.searchGroup())},searchGroup:function(){var e=this;return n()(i.a.mark(function t(){return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return 1==e.pageParamGroup.pageNum&&(e.groupList=[]),t.next=3,Object(u.b)("/haoban-manage3-web/hm/group/list",e.pageParamGroup).then(function(t){if(0==t.data.code){var a=t.data.result||{},o=a.result,s=a.pages;e.pageParamGroup.total=s,Array.isArray(o)&&(e.groupList=e.groupList.concat(o))}});case 3:case"end":return t.stop()}},t,e)}))()},remoteMethod:function(e){this.pageParamGroup.groupName=e,this.pageParamGroup.pageNum=1,this.groupList=[],this.searchGroup()},visibleChange:function(e){e||this.remoteMethod()},handleSelectionChange:function(e){this.multipleSelection=e,this.selectHmIds=e.map(function(e){return e.hmId})},batchGoupEvent:function(){if(0==this.selectHmIds.length)return this.$message({message:"请先选择活码",type:"warning"});this.dialogGroupFormVisible=!0,this.searchGroup()},batchOK:function(){var e=this;return n()(i.a.mark(function t(){var a;return i.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return a={hmIds:e.selectHmIds,groupId:e.formGroup.groupId},t.next=3,Object(u.f)("/haoban-manage3-web/hm/qrcode/update/qrcode/group",a).then(function(t){0==t.data.code&&(e.dialogGroupFormVisible=!1,e.$router.go(0))});case 3:case"end":return t.stop()}},t,e)}))()},handleCurrentChange:function(e){this.pageParam.pageNo=e,this.getTableList()},handleSizeChange:function(e){this.pageParam.pageNo=1,this.pageParam.pageSize=e,this.getTableList()},sortChange:function(e){this.sortColumn=e.prop,this.sortType="ascending"==e.order?"asc":"desc",this.inFields.orderByField=this.sortColumn+" "+this.sortType,this.getTableList()},searchListShop:function(){this.shopList=[]},searchList:function(e){this.pageParam.pageNo=1,this.getTableList()},getTableList:function(){var e=this;this.loadingStatus=!0,this.dateTime&&this.dateTime.length?(this.inFields.startTime=this.dateTime?this.dateTime[0]+" 00:00:00":"",this.inFields.endTime=this.dateTime?this.dateTime[1]+" 23:59:59":"",this.inFields.startTime=Date.parse(new Date(this.inFields.startTime).toString()),this.inFields.endTime=Date.parse(new Date(this.inFields.endTime).toString())):(this.inFields.startTime="",this.inFields.endTime=""),this.currentGroupId&&(this.inFields.hmGroupId=this.currentGroupId),""==this.inFields.hmSelect&&delete this.inFields.hmSelect,""==this.inFields.storeSelect&&delete this.inFields.storeSelect,""==this.inFields.clerkSelect&&delete this.inFields.clerkSelect,""==this.inFields.startTime&&delete this.inFields.startTime,""==this.inFields.endTime&&delete this.inFields.endTime;var t=s()({inFields:this.inFields},this.pageParam);this.selectPage.dataReady=!1,Object(c.a)(t).then(function(t){0==t.data.code&&(e.tableData=t.data.result.data||[],e.totalCount=t.data.result.page.totalCount),e.selectPage.dataReady=!0}).finally(function(t){e.loadingStatus=!1})}},watch:{currentGroupId:{handler:function(e){e&&(this.currentGroupId=e,this.pageParam.pageNo=1,this.getTableList())},immediate:!0}}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%"}},[a("el-form",{attrs:{inline:""}},[a("el-form-item",[a("el-input",{staticStyle:{width:"260px"},attrs:{placeholder:"请输入活码ID/名称、创建人",clearable:""},on:{change:e.searchList},model:{value:e.inFields.hmSelect,callback:function(t){e.$set(e.inFields,"hmSelect",t)},expression:"inFields.hmSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),e._v(" "),a("el-form-item",[a("el-select",{staticStyle:{width:"128px"},attrs:{placeholder:"请选择"},on:{change:e.storeMemberSe},model:{value:e.storeSelect,callback:function(t){e.storeSelect=t},expression:"storeSelect"}},[a("el-option",{attrs:{label:"成员所属门店",value:1}}),e._v(" "),a("el-option",{attrs:{label:"关联导购",value:2}})],1),e._v(" "),1==e.storeSelect?a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmoreStore,expression:"onLoadmoreStore"}],staticStyle:{"margin-left":"-4px",width:"196px"},attrs:{filterable:"",remote:"",placeholder:"请输入门店名称/code","remote-method":e.remoteMethods,loading:e.selectLoading,clearable:"","popper-class":"s-select"},on:{change:e.searchList,clear:e.searchListShop},model:{value:e.inFields.storeSelect,callback:function(t){e.$set(e.inFields,"storeSelect",t)},expression:"inFields.storeSelect"}},e._l(e.shopList,function(t){return a("el-option",{key:t.storeId,attrs:{label:t.storeName,value:t.storeId}},[a("p",{staticClass:"sname"},[e._v(e._s(t.storeName))]),e._v(" "),a("p",{staticClass:"scode"},[e._v("code:"+e._s(t.storeCode))])])}),1):e._e(),e._v(" "),2==e.storeSelect?a("el-select",{staticStyle:{"margin-left":"-4px",width:"196px"},attrs:{filterable:"",remote:"",placeholder:"请输入成员名称/code","remote-method":e.remoteMethodShop,loading:e.selectLoading,clearable:"","popper-class":"s-select"},on:{change:e.searchList},model:{value:e.inFields.clerkSelect,callback:function(t){e.$set(e.inFields,"clerkSelect",t)},expression:"inFields.clerkSelect"}},e._l(e.memberList,function(t){return a("el-option",{key:t.clerkId,attrs:{label:t.clerkName,value:t.clerkId}},[a("p",{staticClass:"sname"},[e._v(e._s(t.clerkName))]),e._v(" "),a("p",{staticClass:"scode"},[e._v("code:"+e._s(t.clerkCode))])])}),1):e._e()],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"w160",attrs:{placeholder:"全部状态",clearable:""},on:{change:e.searchList},model:{value:e.inFields.statusFlagInt,callback:function(t){e.$set(e.inFields,"statusFlagInt",t)},expression:"inFields.statusFlagInt"}},[a("el-option",{key:1,attrs:{label:"正常",value:1}}),e._v(" "),a("el-option",{key:2,attrs:{label:"作废",value:2}}),e._v(" "),a("el-option",{key:3,attrs:{label:"待生效",value:3}})],1)],1),e._v(" "),a("el-form-item",[a("el-select",{staticClass:"w160",attrs:{placeholder:"全部类型",clearable:""},on:{change:e.searchList},model:{value:e.inFields.hmTypeInt,callback:function(t){e.$set(e.inFields,"hmTypeInt",t)},expression:"inFields.hmTypeInt"}},[a("el-option",{key:1,attrs:{label:"单人活码",value:1}}),e._v(" "),a("el-option",{key:2,attrs:{label:"多人活码",value:2}})],1)],1),e._v(" "),a("el-form-item",[a("el-date-picker",{attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","picker-options":e.pickerOptions,"range-separator":"至","start-placeholder":"创建开始日期","end-placeholder":"创建结束日期"},on:{change:e.searchList},model:{value:e.dateTime,callback:function(t){e.dateTime=t},expression:"dateTime"}})],1),e._v(" "),a("el-form-item",{staticClass:"frmbt20"},[e.$getButtonLimit(e.$buttonCode.batchGroup)?a("el-button",{attrs:{"limit-code":e.$buttonCode.batchGroup},on:{click:e.batchGoupEvent}},[e._v("批量分组")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.batchActCode)?a("el-button",{staticClass:"ghost-btn ",attrs:{type:"primary","limit-code":e.$buttonCode.batchActCode},on:{click:function(t){return e.$router.push("/actCodeBatch")}}},[e._v("批量创建活码")]):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.addActCode)?a("el-button",{attrs:{type:"primary","limit-code":e.$buttonCode.addActCode},on:{click:function(t){return e.$router.push("/actCodeAdd")}}},[e._v("新增活码")]):e._e()],1)],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingStatus,expression:"loadingStatus"}],ref:"actCodeTableRef",staticClass:"act-code-table",attrs:{data:e.tableData,"max-height":e.tableMaxHeight},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection","min-width":"60",fixed:""}}),e._v(" "),a("el-table-column",{attrs:{label:"活码ID",fixed:"","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[e._v(e._s(o.hmCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活码信息","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis",attrs:{title:o.hmName}},[e._v(e._s(o.hmName?o.hmName:"--"))]),e._v(" "),a("p",[1==o.hmType?a("span",{staticClass:"oneActCode"},[e._v("单人活码")]):a("span",{staticClass:"moreActCOde"},[e._v("多人活码")])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"活码状态","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[1==o.statusFlag?a("span",{staticClass:"dot normal"},[e._v("正常")]):e._e(),2==o.statusFlag?a("span",{staticClass:"dot voided"},[e._v("作废")]):e._e(),3==o.statusFlag?a("span",{staticClass:"dot needSure"},[e._v("待生效")]):e._e()]),e._v(" "),1==o.overFlag?a("p",{staticClass:"toTopTip"},[e._v("(今日已达上限)")]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"添加好友人数",prop:"addNumT",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[e._v(e._s(o.addNumT?o.addNumT:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"今日新增人数",prop:"addNum",sortable:"custom","min-width":"120"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",[e._v(e._s(o.addNum?o.addNum:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"关联导购","min-width":"130","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(o.clerkList[0]?o.clerkList[0].clerkName:"--"))]),e._v(" "),a("p",{staticClass:"ft-12 phone overflow-ellipsis"},[e._v(e._s(o.clerkList[0]?"code:"+o.clerkList[0].clerkCode:"--"))]),e._v(" "),o.clerkList&&o.clerkList.length>1?a("p",[a("el-popover",{attrs:{width:"200",trigger:"click"}},[a("ul",{staticClass:"userMember-ul"},e._l(o.clerkList,function(t){return a("li",{key:t.clerkId,staticClass:"userMemberLi"},[a("p",{staticClass:"ulName"},[e._v(e._s(t.clerkName))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v("code:"+e._s(t.clerkCode))])])}),0),e._v(" "),a("el-button",{staticClass:"ft-12",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("查看更多")])],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"成员所属门店","min-width":"150","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(o.storeList[0]?o.storeList[0].storeName:"--"))]),e._v(" "),a("p",{staticClass:"ft-12 phone overflow-ellipsis"},[e._v(e._s(o.storeList[0]?"code:"+o.storeList[0].storeCode:"--"))]),e._v(" "),o.storeList&&o.storeList.length>1?a("p",[a("el-popover",{attrs:{width:"200",trigger:"click"}},[a("ul",{staticClass:"userMember-ul"},e._l(o.storeList,function(t){return a("li",{key:t.storeId,staticClass:"userMemberLi"},[a("p",{staticClass:"ulName"},[e._v(e._s(t.storeName))]),e._v(" "),a("p",{staticClass:"ft-12 phone"},[e._v("code:"+e._s(t.storeCode))])])}),0),e._v(" "),a("el-button",{staticClass:"ft-12",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("查看更多")])],1)],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"所属分组","min-width":"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(o.hmGroupName?o.hmGroupName:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建人","min-width":"100","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("p",{staticClass:"overflow-ellipsis"},[e._v(e._s(o.creatorName?o.creatorName:"--"))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"创建时间",prop:"createTime",sortable:"custom","min-width":"110"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return o.createTime?[a("div",[e._v(e._s(e._f("timeStampToYmd")(o.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("timeStampToHms")(o.createTime)))])]:void 0}}],!0)}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"160",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[a("dm-dropdown",{attrs:{"scope-data":o,max:3,configs:e.operateBtnArr}})]}}])})],1),e._v(" "),e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","page-size":e.pageParam.pageSize,"current-page":e.pageParam.pageNo,layout:"total, sizes, prev, pager, next, jumper","page-sizes":[20,40,60,80],total:e.totalCount},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange,"update:pageSize":function(t){return e.$set(e.pageParam,"pageSize",t)},"update:page-size":function(t){return e.$set(e.pageParam,"pageSize",t)},"update:currentPage":function(t){return e.$set(e.pageParam,"pageNo",t)},"update:current-page":function(t){return e.$set(e.pageParam,"pageNo",t)}}})],1):e._e(),e._v(" "),a("el-dialog",{attrs:{title:"选择分组",visible:e.dialogGroupFormVisible,width:"500px"},on:{"update:visible":function(t){e.dialogGroupFormVisible=t}}},[a("el-form",{attrs:{model:e.formGroup}},[a("el-form-item",{attrs:{label:"活码分组",rules:[{required:!0,message:"请选择分组",trigger:"blur"}]}},[a("el-select",{directives:[{name:"loadmore",rawName:"v-loadmore",value:e.onLoadmore,expression:"onLoadmore"}],staticClass:"chooseGroup",attrs:{placeholder:"选择分组",filterable:"","filter-method":e.remoteMethod,clearable:""},on:{"visible-change":e.visibleChange},model:{value:e.formGroup.groupId,callback:function(t){e.$set(e.formGroup,"groupId",t)},expression:"formGroup.groupId"}},e._l(e.groupList,function(e){return a("el-option",{key:e.groupId,attrs:{label:e.groupName,value:e.groupId}})}),1)],1)],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.dialogGroupFormVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.batchOK}},[e._v("确 定")])],1)],1),e._v(" "),a("links",{attrs:{src:e.wxQrcode,show:e.show,imageName:e.imageName,sourceType:!1},on:{"update:show":function(t){e.show=t}}})],1)},staticRenderFns:[]};var h=a("VU/8")(p,m,!1,function(e){a("MtoL"),a("Uryh")},"data-v-76c52662",null);t.default=h.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([41],{"27Qw":function(e,t){},uKe9:function(e,t){},vIlm:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("l46T"),r=a("PI0u"),n=a("P9l9"),l=a("Ch4/"),s={props:{brandId:{type:Object,default:function(){return""}}},components:{limitInput:o.a},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",loading:!1,dialogVisible:!0,tableData:[],searchInput:"",multipleSelection:[],currentPage:1,pageSize:20,total:0}},methods:{handleSelectionChange:function(e){this.multipleSelection=e},toInput:Object(r.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},toCancel:function(){this.$emit("closeGroup"),this.$refs.multipleTable.clearSelection()},handleClose:function(e){this.$emit("closeGroup"),this.$refs.multipleTable.clearSelection()},submitForm:Object(r.a)(function(e){this.$emit("submitGroup",this.multipleSelection)},300),handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(){var e=this;e.loading=!0;var t={memberGroupName:e.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,enterpriseId:e.brandId};Object(n.g)("/haoban-app-customer-web/memberGroup/member-tag-group-list",t).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo?a.result.pageInfo.total:0,!1;l.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.getTableList()}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{staticClass:"select-table-dialog",attrs:{title:"选择分组",visible:e.dialogVisible,width:"833px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("div",{staticClass:"search-top m-b-20"},[a("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入分组名称搜索",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.tableData,height:"33vh","tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"分组名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.groupName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberTagGroupClassifyName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+" ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"覆盖人数","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberCount||0)+"人")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("dm-pagination",{staticStyle:{"margin-bottom":"0"},attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var u=a("VU/8")(s,i,!1,function(e){a("27Qw")},"data-v-d3557ea0",null).exports,p=a("3E4D"),c={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}}},data:function(){return{projectName:"",wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",editPerson:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).staffName:"",formData:{templateId:"",templateName:"",groupIds:[]},rules:{templateName:[{required:!0,message:"请输入模板名称",trigger:"blur"}],groupIds:[{type:"array",required:!0,message:"请选择门店分组",trigger:"change"}]},tableData:[],activeId:"1",loading:!1,multipleSelection:[],currentPage:1,pageSize:20,total:0,groupShow:!1,loadingBtn:!1}},methods:{submitForm:Object(r.a)(function(e){var t=this;t.loadingBtn=!0,t.tableData.length&&(t.formData.groupIds=t.tableData.map(function(e){return e.memberTagGroupId})),t.$refs[e].validate(function(e){e?t.postSave():t.loadingBtn=!1})},300),postSave:function(){var e=this,t={templateId:e.formData.templateId,templateName:e.formData.templateName,groupIds:e.tableData.map(function(e){return e.memberTagGroupId}).join(","),editPerson:e.editPerson,enterpriseId:e.brandId};Object(n.g)("/haoban-app-customer-web/save-group-template",t).then(function(t){var a=t.data;e.loadingBtn=!1,1==a.errorCode&&(p.a.showmsg("操作成功","success"),e.$router.push("/memberGroupSet?tabName=second")),l.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},delRow:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.tableData.splice(e,1),a.tableData.length&&(a.formData.groupIds=a.tableData.map(function(e){return e.memberTagGroupId}))}).catch(function(){})},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;var e=this.multipleSelection.map(function(e){return e.memberTagGroupId}),t=[];this.tableData.forEach(function(a){-1==e.indexOf(a.memberTagGroupId)&&t.push(a)}),this.tableData=t,this.tableData.length&&(this.formData.groupIds=this.tableData.map(function(e){return e.memberTagGroupId}))},handleSelectionChange:function(e){this.multipleSelection=e},showGroup:function(){this.groupShow=!0},closeGroup:function(){this.groupShow=!1},submitGroup:function(e){var t=this;t.groupShow=!1;var a=t.tableData.map(function(e){return e.memberTagGroupId});e.forEach(function(e){-1==a.indexOf(e.memberTagGroupId)&&t.tableData.push(e)}),t.formData.groupIds=t.tableData.map(function(e){return e.memberTagGroupId}),t.$refs.ruleForm.validate(function(e){})},getTemplateSet:function(e){var t=this,a={templateId:t.$route.query.templateId,enterpriseId:t.brandId};Object(n.g)("/haoban-app-customer-web/get-template-detail",a).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):a.result&&(a.result.template.groupIds=a.result.groupList.map(function(e){return e.memberTagGroupId})||[],t.formData=a.result.template,t.tableData=a.result.groupList||[],a.result.template.enterpriseId!=t.brandId&&(t.formData={templateId:"",templateName:"",groupIds:[]},t.tableData=[]))}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&this.$route.query.templateId&&this.getTemplateSet(this.brandId)}},mounted:function(){this.$emit("showTab","12"),this.brandId&&this.$route.query.templateId&&this.getTemplateSet(this.brandId)},components:{selectGroup:u,limitInput:o.a}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"模板名称",prop:"templateName"}},[a("limitInput",{attrs:{inputWidth:340,inputValue:e.formData.templateName,getByType:"word",holder:"请输入模板名称",maxLength:20},on:{"update:inputValue":function(t){return e.$set(e.formData,"templateName",t)},"update:input-value":function(t){return e.$set(e.formData,"templateName",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"选择分组",prop:"groupIds"}},[a("div",{staticClass:"flex flex-space-between"},[a("el-button",{attrs:{type:"primary"},on:{click:e.showGroup}},[e._v("选择分组")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量移除")])],1),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{"max-height":"400",data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"分组名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.groupName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberTagGroupClassifyName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+" ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"覆盖人数","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberCount||0)+"人")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.delRow(t.$index,t.row)}}},[e._v("移除")])]}}])})],1)],1)]),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1),e._v(" "),e.groupShow?a("select-group",{attrs:{brandId:e.brandId},on:{closeGroup:e.closeGroup,submitGroup:e.submitGroup}}):e._e()],1)},staticRenderFns:[]};var m=a("VU/8")(c,d,!1,function(e){a("uKe9")},"data-v-60464777",null);t.default=m.exports}}); webpackJsonp([42],{"27Qw":function(e,t){},uKe9:function(e,t){},vIlm:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("l46T"),r=a("PI0u"),n=a("P9l9"),l=a("Ch4/"),s={props:{brandId:{type:Object,default:function(){return""}}},components:{limitInput:o.a},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",loading:!1,dialogVisible:!0,tableData:[],searchInput:"",multipleSelection:[],currentPage:1,pageSize:20,total:0}},methods:{handleSelectionChange:function(e){this.multipleSelection=e},toInput:Object(r.a)(function(e,t){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},toCancel:function(){this.$emit("closeGroup"),this.$refs.multipleTable.clearSelection()},handleClose:function(e){this.$emit("closeGroup"),this.$refs.multipleTable.clearSelection()},submitForm:Object(r.a)(function(e){this.$emit("submitGroup",this.multipleSelection)},300),handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},getTableList:function(){var e=this;e.loading=!0;var t={memberGroupName:e.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,enterpriseId:e.brandId};Object(n.g)("/haoban-app-customer-web/memberGroup/member-tag-group-list",t).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo?a.result.pageInfo.total:0,!1;l.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{},mounted:function(){this.getTableList()}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{staticClass:"select-table-dialog",attrs:{title:"选择分组",visible:e.dialogVisible,width:"833px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{},[a("div",{staticClass:"search-top m-b-20"},[a("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入分组名称搜索",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.searchInput);var a}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.tableData,height:"33vh","tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"分组名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.groupName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberTagGroupClassifyName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+" ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"覆盖人数","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberCount||0)+"人")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("dm-pagination",{staticStyle:{"margin-bottom":"0"},attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var u=a("VU/8")(s,i,!1,function(e){a("27Qw")},"data-v-d3557ea0",null).exports,p=a("3E4D"),c={name:"app-detail",props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}}},data:function(){return{projectName:"",wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",editPerson:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).staffName:"",formData:{templateId:"",templateName:"",groupIds:[]},rules:{templateName:[{required:!0,message:"请输入模板名称",trigger:"blur"}],groupIds:[{type:"array",required:!0,message:"请选择门店分组",trigger:"change"}]},tableData:[],activeId:"1",loading:!1,multipleSelection:[],currentPage:1,pageSize:20,total:0,groupShow:!1,loadingBtn:!1}},methods:{submitForm:Object(r.a)(function(e){var t=this;t.loadingBtn=!0,t.tableData.length&&(t.formData.groupIds=t.tableData.map(function(e){return e.memberTagGroupId})),t.$refs[e].validate(function(e){e?t.postSave():t.loadingBtn=!1})},300),postSave:function(){var e=this,t={templateId:e.formData.templateId,templateName:e.formData.templateName,groupIds:e.tableData.map(function(e){return e.memberTagGroupId}).join(","),editPerson:e.editPerson,enterpriseId:e.brandId};Object(n.g)("/haoban-app-customer-web/save-group-template",t).then(function(t){var a=t.data;e.loadingBtn=!1,1==a.errorCode&&(p.a.showmsg("操作成功","success"),e.$router.push("/memberGroupSet?tabName=second")),l.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},delRow:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.tableData.splice(e,1),a.tableData.length&&(a.formData.groupIds=a.tableData.map(function(e){return e.memberTagGroupId}))}).catch(function(){})},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;var e=this.multipleSelection.map(function(e){return e.memberTagGroupId}),t=[];this.tableData.forEach(function(a){-1==e.indexOf(a.memberTagGroupId)&&t.push(a)}),this.tableData=t,this.tableData.length&&(this.formData.groupIds=this.tableData.map(function(e){return e.memberTagGroupId}))},handleSelectionChange:function(e){this.multipleSelection=e},showGroup:function(){this.groupShow=!0},closeGroup:function(){this.groupShow=!1},submitGroup:function(e){var t=this;t.groupShow=!1;var a=t.tableData.map(function(e){return e.memberTagGroupId});e.forEach(function(e){-1==a.indexOf(e.memberTagGroupId)&&t.tableData.push(e)}),t.formData.groupIds=t.tableData.map(function(e){return e.memberTagGroupId}),t.$refs.ruleForm.validate(function(e){})},getTemplateSet:function(e){var t=this,a={templateId:t.$route.query.templateId,enterpriseId:t.brandId};Object(n.g)("/haoban-app-customer-web/get-template-detail",a).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):a.result&&(a.result.template.groupIds=a.result.groupList.map(function(e){return e.memberTagGroupId})||[],t.formData=a.result.template,t.tableData=a.result.groupList||[],a.result.template.enterpriseId!=t.brandId&&(t.formData={templateId:"",templateName:"",groupIds:[]},t.tableData=[]))}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&this.$route.query.templateId&&this.getTemplateSet(this.brandId)}},mounted:function(){this.$emit("showTab","12"),this.brandId&&this.$route.query.templateId&&this.getTemplateSet(this.brandId)},components:{selectGroup:u,limitInput:o.a}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"app-detail-pane border-box p-20"},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"模板名称",prop:"templateName"}},[a("limitInput",{attrs:{inputWidth:340,inputValue:e.formData.templateName,getByType:"word",holder:"请输入模板名称",maxLength:20},on:{"update:inputValue":function(t){return e.$set(e.formData,"templateName",t)},"update:input-value":function(t){return e.$set(e.formData,"templateName",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"选择分组",prop:"groupIds"}},[a("div",{staticClass:"flex flex-space-between"},[a("el-button",{attrs:{type:"primary"},on:{click:e.showGroup}},[e._v("选择分组")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量移除")])],1),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{"max-height":"400",data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"分组名称"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.groupName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.memberTagGroupClassifyName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+" ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"覆盖人数","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberCount||0)+"人")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.delRow(t.$index,t.row)}}},[e._v("移除")])]}}])})],1)],1)]),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1),e._v(" "),e.groupShow?a("select-group",{attrs:{brandId:e.brandId},on:{closeGroup:e.closeGroup,submitGroup:e.submitGroup}}):e._e()],1)},staticRenderFns:[]};var m=a("VU/8")(c,d,!1,function(e){a("uKe9")},"data-v-60464777",null);t.default=m.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([43],{"6XGN":function(M,L,j){"use strict";Object.defineProperty(L,"__esModule",{value:!0});var N=j("CkW6"),u=j.n(N),w={name:"page403",data:function(){return{img_403:u.a}},computed:{message:function(){return"抱歉,你无权访问该页面"}}},D={render:function(){var M=this.$createElement,L=this._self._c||M;return L("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[L("div",{staticClass:"wscn-http404"},[L("div",{staticClass:"pic-404"},[L("img",{staticClass:"pic-404__parent",attrs:{src:this.img_403,alt:"403"}})]),this._v(" "),L("div",{staticClass:"bullshit"},[L("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),L("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var C=j("VU/8")(w,D,!1,function(M){j("oSPV")},"data-v-4c72b26f",null);L.default=C.exports},CkW6:function(M,L){M.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMS4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0i5Zu+5bGCXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL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LTAuNywwLjQtMUM5My4xLDI4Mi4zLDkzLjUsMjgyLjIsOTMuOCwyODIuMiIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTE5Ny4xLDI3Mi43aDguMWMwLjcsMCwxLjMsMC42LDEuMywxLjNjMCwwLjctMC42LDEuMy0xLjMsMS4zaC04LjFjLTAuNywwLjEtMS40LTAuNS0xLjQtMS4zDQoJYy0wLjEtMC43LDAuNS0xLjQsMS4zLTEuNEMxOTcsMjcyLjcsMTk3LjEsMjcyLjcsMTk3LjEsMjcyLjciLz4NCjxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0yODQuNCwyNjQuNmg4LjFjMC43LDAsMS4zLDAuNiwxLjMsMS4zbDAsMGMwLDAuNy0wLjYsMS4zLTEuMywxLjNoLTguMWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zDQoJQzI4MywyNjUuMywyODMuNiwyNjQuNiwyODQuNCwyNjQuNiIvPg0KPHBhdGggY2xhc3M9InN0MSIgZD0iTTk5LjIsMjY0LjZoMTcxLjdjMC40LDAsMC43LDAuMSwwLjksMC40YzAuNCwwLjQsMC41LDEsMC4zLDEuNWMtMC4yLDAuNS0wLjcsMC44LTEuMiwwLjhIOTkuMQ0KCWMtMC43LDAtMS4zLTAuNi0xLjMtMS4zQzk3LjgsMjY1LjMsOTguNCwyNjQuNiw5OS4yLDI2NC42Ii8+DQo8cGF0aCBjbGFzcz0ic3QzIiBkPSJNMjM1LDk1Ljh2OC4xYzAsMC43LTAuNiwxLjMtMS4zLDEuM3MtMS4zLTAuNi0xLjMtMS4zdi04LjFjMC0wLjcsMC42LTEuMywxLjMtMS40QzIzNC40LDk0LjQsMjM1LDk1LDIzNSw5NS44Ig0KCS8+DQo8L3N2Zz4NCg=="},oSPV:function(M,L){}});
\ No newline at end of file
webpackJsonp([42],{AejC:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=i("VU/8")(n,r,!1,function(t){i("EnIG")},"data-v-5b2e6f2a",null);s.default=c.exports},EnIG:function(t,s){},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"}}); webpackJsonp([43],{AejC:function(t,s,i){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var e=i("Minx"),a=i.n(e),n={name:"page404",data:function(){return{img_404:a.a}},computed:{message:function(){return"抱歉,你访问的页面不存在"}},mounted:function(){}},r={render:function(){var t=this.$createElement,s=this._self._c||t;return s("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100%"}},[s("div",{staticClass:"wscn-http404"},[s("div",{staticClass:"pic-404"},[s("img",{staticClass:"pic-404__parent",attrs:{src:this.img_404,alt:"404"}})]),this._v(" "),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__headline"},[this._v(this._s(this.message))]),this._v(" "),s("a",{staticClass:"bullshit__return-home",attrs:{href:"#/companyGroup"}},[this._v("返回首页")])])])])},staticRenderFns:[]};var c=i("VU/8")(n,r,!1,function(t){i("EnIG")},"data-v-5b2e6f2a",null);s.default=c.exports},EnIG:function(t,s){},Minx:function(t,s,i){t.exports=i.p+"static/img/error_404.bf58747.svg"}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([45],{"5H4L":function(t,e){},i54L:function(t,e){},rUvh:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("mvHQ"),r=n.n(o),i=n("P9l9"),a=n("Ch4/"),l=n("PI0u"),s={props:{brandId:{type:String,default:function(){return""}},policyId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},currentPage:1,pageSize:20,total:0}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{handleClose:function(t){this.$emit("closeSendRecord")},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,n={policyId:e.policyId,search:e.conditionObj.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(i.g)("/haoban-app-customer-web/inner/find-card-total-log-page",n).then(function(t){var n=t.data;if(1==n.errorCode)return e.tableData=n.result.result||[],e.total=n.result.totalCount,!1;a.a.errorMsg(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},policyId:function(t,e){t&&this.getTableList()}},mounted:function(){this.policyId&&this.getTableList()}},c={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:"记录",visible:t.dialogVisible,width:"802px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[n("div",{staticClass:"table-condition-left"},[n("el-input",{staticClass:"w-369",attrs:{placeholder:"请输入卡券名称",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return n=e,t.toInput(n,t.conditionObj.searchInput);var n}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}})],1)]),t._v(" "),n("div",[n("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark",height:"450"}},[n("el-table-column",{attrs:{label:"卡券名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName||"--")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"投放数量","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.issuingQuantity||"0")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"领取数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.getedQuantity||"0"))]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"领取率"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("percenteNum")(e.row.getedRate)))]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"使用数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.usageQuantity||"0"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"核销率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(t._f("percenteNum")(e.row.verificationRate)))])]}}])})],1),t._v(" "),0!=t.tableData.length?n("div",{staticClass:"block common-wrap__page text-right m-t-24"},[n("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[]};var u=n("VU/8")(s,c,!1,function(t){n("5H4L")},"data-v-b760a550",null).exports;
/**!
* Sortable 1.15.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/
function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach(function(e){f(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function p(t){"@babel/helpers - typeof";return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(){return(g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function v(t,e){if(null==t)return{};var n,o,r=function(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function m(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var b=m(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),w=m(/Edge/i),y=m(/firefox/i),_=m(/safari/i)&&!m(/chrome/i)&&!m(/android/i),S=m(/iP(ad|od|hone)/i),E=m(/chrome/i)&&m(/android/i),D={capture:!1,passive:!1};function C(t,e,n){t.addEventListener(e,n,!b&&D)}function T(t,e,n){t.removeEventListener(e,n,!b&&D)}function I(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function x(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function O(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&I(t,e):I(t,e))||o&&t===n)return t;if(t===n)break}while(t=x(t))}return null}var N,P=/\s+/g;function k(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(P," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(P," ")}}function M(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in o||-1!==e.indexOf("webkit")||(e="-webkit-"+e),o[e]=n+("string"==typeof n?"":"px")}}function A(t,e){var n="";if("string"==typeof t)n=t;else do{var o=M(t,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function R(t,e,n){if(t){var o=t.getElementsByTagName(e),r=0,i=o.length;if(n)for(;r<i;r++)n(o[r],r);return o}return[]}function L(){var t=document.scrollingElement;return t||document.documentElement}function X(t,e,n,o,r){if(t.getBoundingClientRect||t===window){var i,a,l,s,c,u,d;if(t!==window&&t.parentNode&&t!==L()?(a=(i=t.getBoundingClientRect()).top,l=i.left,s=i.bottom,c=i.right,u=i.height,d=i.width):(a=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(r=r||t.parentNode,!b))do{if(r&&r.getBoundingClientRect&&("none"!==M(r,"transform")||n&&"static"!==M(r,"position"))){var h=r.getBoundingClientRect();a-=h.top+parseInt(M(r,"border-top-width")),l-=h.left+parseInt(M(r,"border-left-width")),s=a+i.height,c=l+i.width;break}}while(r=r.parentNode);if(o&&t!==window){var p=A(r||t),f=p&&p.a,g=p&&p.d;p&&(s=(a/=g)+(u/=g),c=(l/=f)+(d/=f))}return{top:a,left:l,bottom:s,right:c,width:d,height:u}}}function Y(t,e,n){for(var o=H(t,!0),r=X(t)[e];o;){var i=X(o)[n];if(!("top"===n||"left"===n?r>=i:r<=i))return o;if(o===L())break;o=H(o,!1)}return!1}function j(t,e,n,o){for(var r=0,i=0,a=t.children;i<a.length;){if("none"!==a[i].style.display&&a[i]!==Gt.ghost&&(o||a[i]!==Gt.dragged)&&O(a[i],n.draggable,t,!1)){if(r===e)return a[i];r++}i++}return null}function F(t,e){for(var n=t.lastElementChild;n&&(n===Gt.ghost||"none"===M(n,"display")||e&&!I(n,e));)n=n.previousElementSibling;return n||null}function B(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Gt.clone||e&&!I(t,e)||n++;return n}function z(t){var e=0,n=0,o=L();if(t)do{var r=A(t),i=r.a,a=r.d;e+=t.scrollLeft*i,n+=t.scrollTop*a}while(t!==o&&(t=t.parentNode));return[e,n]}function H(t,e){if(!t||!t.getBoundingClientRect)return L();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=M(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return L();if(o||e)return n;o=!0}}}while(n=n.parentNode);return L()}function $(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function W(t,e){return function(){if(!N){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),N=setTimeout(function(){N=void 0},e)}}}function V(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function G(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var U="Sortable"+(new Date).getTime();function Q(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach(function(t){if("none"!==M(t,"display")&&t!==Gt.ghost){e.push({target:t,rect:X(t)});var n=h({},e[e.length-1].rect);if(t.thisAnimationDuration){var o=A(t,!0);o&&(n.top-=o.f,n.left-=o.e)}t.fromRect=n}})},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var r=!1,i=0;e.forEach(function(t){var e=0,n=t.target,a=n.fromRect,l=X(n),s=n.prevFromRect,c=n.prevToRect,u=t.rect,d=A(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&$(s,l)&&!$(a,l)&&(u.top-l.top)/(u.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(e=function(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}(u,s,c,o.options)),$(l,a)||(n.prevFromRect=a,n.prevToRect=l,e||(e=o.options.animation),o.animate(n,u,l,e)),e&&(r=!0,i=Math.max(i,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},e),n.thisAnimationDuration=e)}),clearTimeout(t),r?t=setTimeout(function(){"function"==typeof n&&n()},i):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,o){if(o){M(t,"transition",""),M(t,"transform","");var r=A(this.el),i=r&&r.a,a=r&&r.d,l=(e.left-n.left)/(i||1),s=(e.top-n.top)/(a||1);t.animatingX=!!l,t.animatingY=!!s,M(t,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),M(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),M(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout(function(){M(t,"transition",""),M(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},o)}}}}var q=[],J={initializeByDefault:!0},Z={mount:function(t){for(var e in J)!J.hasOwnProperty(e)||e in t||(t[e]=J[e]);q.forEach(function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),q.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=t+"Global";q.forEach(function(o){e[o.pluginName]&&(e[o.pluginName][r]&&e[o.pluginName][r](h({sortable:e},n)),e.options[o.pluginName]&&e[o.pluginName][t]&&e[o.pluginName][t](h({sortable:e},n)))})},initializePlugins:function(t,e,n,o){for(var r in q.forEach(function(o){var r=o.pluginName;if(t.options[r]||o.initializeByDefault){var i=new o(t,e,t.options);i.sortable=t,i.options=t.options,t[r]=i,g(n,i.defaults)}}),t.options)if(t.options.hasOwnProperty(r)){var i=this.modifyOption(t,r,t.options[r]);void 0!==i&&(t.options[r]=i)}},getEventProperties:function(t,e){var n={};return q.forEach(function(o){"function"==typeof o.eventProperties&&g(n,o.eventProperties.call(e[o.pluginName],t))}),n},modifyOption:function(t,e,n){var o;return q.forEach(function(r){t[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[e]&&(o=r.optionListeners[e].call(t[r.pluginName],n))}),o}};function K(t){var e=t.sortable,n=t.rootEl,o=t.name,r=t.targetEl,i=t.cloneEl,a=t.toEl,l=t.fromEl,s=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,d=t.newDraggableIndex,p=t.originalEvent,f=t.putSortable,g=t.extraEventProperties;if(e=e||n&&n[U]){var v,m=e.options,y="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||b||w?(v=document.createEvent("Event")).initEvent(o,!0,!0):v=new CustomEvent(o,{bubbles:!0,cancelable:!0}),v.to=a||n,v.from=l||n,v.item=r||n,v.clone=i,v.oldIndex=s,v.newIndex=c,v.oldDraggableIndex=u,v.newDraggableIndex=d,v.originalEvent=p,v.pullMode=f?f.lastPutMode:void 0;var _=h(h({},g),Z.getEventProperties(o,e));for(var S in _)v[S]=_[S];n&&n.dispatchEvent(v),m[y]&&m[y].call(e,v)}}var tt=["evt"],et=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,r=v(n,tt);Z.pluginEvent.bind(Gt)(t,e,h({dragEl:ot,parentEl:rt,ghostEl:it,rootEl:at,nextEl:lt,lastDownEl:st,cloneEl:ct,cloneHidden:ut,dragStarted:Et,putSortable:vt,activeSortable:Gt.active,originalEvent:o,oldIndex:dt,oldDraggableIndex:pt,newIndex:ht,newDraggableIndex:ft,hideGhostForTarget:Ht,unhideGhostForTarget:$t,cloneNowHidden:function(){ut=!0},cloneNowShown:function(){ut=!1},dispatchSortableEvent:function(t){nt({sortable:e,name:t,originalEvent:o})}},r))};function nt(t){K(h({putSortable:vt,cloneEl:ct,targetEl:ot,rootEl:at,oldIndex:dt,oldDraggableIndex:pt,newIndex:ht,newDraggableIndex:ft},t))}var ot,rt,it,at,lt,st,ct,ut,dt,ht,pt,ft,gt,vt,mt,bt,wt,yt,_t,St,Et,Dt,Ct,Tt,It,xt=!1,Ot=!1,Nt=[],Pt=!1,kt=!1,Mt=[],At=!1,Rt=[],Lt="undefined"!=typeof document,Xt=S,Yt=w||b?"cssFloat":"float",jt=Lt&&!E&&!S&&"draggable"in document.createElement("div"),Ft=function(){if(Lt){if(b)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Bt=function(t,e){var n=M(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=j(t,0,e),i=j(t,1,e),a=r&&M(r),l=i&&M(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+X(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+X(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=o&&"none"===n[Yt]||i&&"none"===n[Yt]&&s+c>o)?"vertical":"horizontal"},zt=function(t){function e(t,n){return function(o,r,i,a){var l=o.options.group.name&&r.options.group.name&&o.options.group.name===r.options.group.name;if(null==t&&(n||l))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(o,r,i,a),n)(o,r,i,a);var s=(n?o:r).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},o=t.group;o&&"object"==p(o)||(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},Ht=function(){!Ft&&it&&M(it,"display","none")},$t=function(){!Ft&&it&&M(it,"display","")};Lt&&!E&&document.addEventListener("click",function(t){if(Ot)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Ot=!1,!1},!0);var Wt=function(t){if(ot){t=t.touches?t.touches[0]:t;var e=(r=t.clientX,i=t.clientY,Nt.some(function(t){var e=t[U].options.emptyInsertThreshold;if(e&&!F(t)){var n=X(t),o=r>=n.left-e&&r<=n.right+e,l=i>=n.top-e&&i<=n.bottom+e;return o&&l?a=t:void 0}}),a);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[U]._onDragOver(n)}}var r,i,a},Vt=function(t){ot&&ot.parentNode[U]._isOutsideThisEl(t.target)};function Gt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=g({},e),t[U]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Bt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Gt.supportPointer&&"PointerEvent"in window&&!_,emptyInsertThreshold:5};for(var o in Z.initializePlugins(this,t,n),n)!(o in e)&&(e[o]=n[o]);for(var r in zt(e),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!e.forceFallback&&jt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?C(t,"pointerdown",this._onTapStart):(C(t,"mousedown",this._onTapStart),C(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(t,"dragover",this),C(t,"dragenter",this)),Nt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),g(this,Q())}function Ut(t,e,n,o,r,i,a,l){var s,c,u=t[U],d=u.options.onMove;return!window.CustomEvent||b||w?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=n,s.draggedRect=o,s.related=r||e,s.relatedRect=i||X(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),d&&(c=d.call(u,s,a)),c}function Qt(t){t.draggable=!1}function qt(){At=!1}function Jt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;n--;)o+=e.charCodeAt(n);return o.toString(36)}function Zt(t){return setTimeout(t,0)}function Kt(t){return clearTimeout(t)}Gt.prototype={constructor:Gt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Dt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,ot):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,r=o.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(a||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(function(t){Rt.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var o=e[n];o.checked&&Rt.push(o)}}(n),!ot&&!(/mousedown|pointerdown/.test(i)&&0!==t.button||o.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!_||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=O(l,o.draggable,n,!1))&&l.animated||st===l)){if(dt=B(l),pt=B(l,o.draggable),"function"==typeof c){if(c.call(this,t,l,this))return nt({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),et("filter",e,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some(function(o){if(o=O(s,o.trim(),n,!1))return nt({sortable:e,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),et("filter",e,{evt:t}),!0})))return void(r&&t.cancelable&&t.preventDefault());o.handle&&!O(s,o.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var o,r=this,i=r.el,a=r.options,l=i.ownerDocument;if(n&&!ot&&n.parentNode===i){var s=X(n);if(at=i,rt=(ot=n).parentNode,lt=ot.nextSibling,st=n,gt=a.group,Gt.dragged=ot,mt={target:ot,clientX:(e||t).clientX,clientY:(e||t).clientY},_t=mt.clientX-s.left,St=mt.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,ot.style["will-change"]="all",o=function(){et("delayEnded",r,{evt:t}),Gt.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!y&&r.nativeDraggable&&(ot.draggable=!0),r._triggerDragStart(t,e),nt({sortable:r,name:"choose",originalEvent:t}),k(ot,a.chosenClass,!0))},a.ignore.split(",").forEach(function(t){R(ot,t.trim(),Qt)}),C(l,"dragover",Wt),C(l,"mousemove",Wt),C(l,"touchmove",Wt),C(l,"mouseup",r._onDrop),C(l,"touchend",r._onDrop),C(l,"touchcancel",r._onDrop),y&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ot.draggable=!0),et("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(w||b))o();else{if(Gt.eventCanceled)return void this._onDrop();C(l,"mouseup",r._disableDelayedDrag),C(l,"touchend",r._disableDelayedDrag),C(l,"touchcancel",r._disableDelayedDrag),C(l,"mousemove",r._delayedDragTouchMoveHandler),C(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&C(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ot&&Qt(ot),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;T(t,"mouseup",this._disableDelayedDrag),T(t,"touchend",this._disableDelayedDrag),T(t,"touchcancel",this._disableDelayedDrag),T(t,"mousemove",this._delayedDragTouchMoveHandler),T(t,"touchmove",this._delayedDragTouchMoveHandler),T(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?C(document,"pointermove",this._onTouchMove):C(document,e?"touchmove":"mousemove",this._onTouchMove):(C(ot,"dragend",this),C(at,"dragstart",this._onDragStart));try{document.selection?Zt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(xt=!1,at&&ot){et("dragStarted",this,{evt:e}),this.nativeDraggable&&C(document,"dragover",Vt);var n=this.options;!t&&k(ot,n.dragClass,!1),k(ot,n.ghostClass,!0),Gt.active=this,t&&this._appendGhost(),nt({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(bt){this._lastX=bt.clientX,this._lastY=bt.clientY,Ht();for(var t=document.elementFromPoint(bt.clientX,bt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(bt.clientX,bt.clientY))!==e;)e=t;if(ot.parentNode[U]._isOutsideThisEl(t),e)do{if(e[U]){if(e[U]._onDragOver({clientX:bt.clientX,clientY:bt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);$t()}},_onTouchMove:function(t){if(mt){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,i=it&&A(it,!0),a=it&&i&&i.a,l=it&&i&&i.d,s=Xt&&It&&z(It),c=(r.clientX-mt.clientX+o.x)/(a||1)+(s?s[0]-Mt[0]:0)/(a||1),u=(r.clientY-mt.clientY+o.y)/(l||1)+(s?s[1]-Mt[1]:0)/(l||1);if(!Gt.active&&!xt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(it){i?(i.e+=c-(wt||0),i.f+=u-(yt||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");M(it,"webkitTransform",d),M(it,"mozTransform",d),M(it,"msTransform",d),M(it,"transform",d),wt=c,yt=u,bt=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!it){var t=this.options.fallbackOnBody?document.body:at,e=X(ot,!0,Xt,!0,t),n=this.options;if(Xt){for(It=t;"static"===M(It,"position")&&"none"===M(It,"transform")&&It!==document;)It=It.parentNode;It!==document.body&&It!==document.documentElement?(It===document&&(It=L()),e.top+=It.scrollTop,e.left+=It.scrollLeft):It=L(),Mt=z(It)}k(it=ot.cloneNode(!0),n.ghostClass,!1),k(it,n.fallbackClass,!0),k(it,n.dragClass,!0),M(it,"transition",""),M(it,"transform",""),M(it,"box-sizing","border-box"),M(it,"margin",0),M(it,"top",e.top),M(it,"left",e.left),M(it,"width",e.width),M(it,"height",e.height),M(it,"opacity","0.8"),M(it,"position",Xt?"absolute":"fixed"),M(it,"zIndex","100000"),M(it,"pointerEvents","none"),Gt.ghost=it,t.appendChild(it),M(it,"transform-origin",_t/parseInt(it.style.width)*100+"% "+St/parseInt(it.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,r=n.options;et("dragStart",this,{evt:t}),Gt.eventCanceled?this._onDrop():(et("setupClone",this),Gt.eventCanceled||((ct=G(ot)).removeAttribute("id"),ct.draggable=!1,ct.style["will-change"]="",this._hideClone(),k(ct,this.options.chosenClass,!1),Gt.clone=ct),n.cloneId=Zt(function(){et("clone",n),Gt.eventCanceled||(n.options.removeCloneOnHide||at.insertBefore(ct,ot),n._hideClone(),nt({sortable:n,name:"clone"}))}),!e&&k(ot,r.dragClass,!0),e?(Ot=!0,n._loopId=setInterval(n._emulateDragOver,50)):(T(document,"mouseup",n._onDrop),T(document,"touchend",n._onDrop),T(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,ot)),C(document,"drop",n),M(ot,"transform","translateZ(0)")),xt=!0,n._dragStartId=Zt(n._dragStarted.bind(n,e,t)),C(document,"selectstart",n),Et=!0,_&&M(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,o,r,i=this.el,a=t.target,l=this.options,s=l.group,c=Gt.active,u=gt===s,d=l.sort,p=vt||c,f=this,g=!1;if(!At){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=O(a,l.draggable,i,!0),P("dragOver"),Gt.eventCanceled)return g;if(ot.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||f._ignoreWhileAnimating===a)return R(!1);if(Ot=!1,c&&!l.disabled&&(u?d||(o=rt!==at):vt===this||(this.lastPutMode=gt.checkPull(this,c,ot,t))&&s.checkPut(this,c,ot,t))){if(r="vertical"===this._getDirection(t,a),e=X(ot),P("dragOverValid"),Gt.eventCanceled)return g;if(o)return rt=at,A(),this._hideClone(),P("revert"),Gt.eventCanceled||(lt?at.insertBefore(ot,lt):at.appendChild(ot)),R(!0);var v=F(i,l.draggable);if(!v||function(t,e,n){var o=X(F(n.el,n.options.draggable));return e?t.clientX>o.right+10||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+10}(t,r,this)&&!v.animated){if(v===ot)return R(!1);if(v&&i===t.target&&(a=v),a&&(n=X(a)),!1!==Ut(at,i,ot,e,a,n,t,!!a))return A(),v&&v.nextSibling?i.insertBefore(ot,v.nextSibling):i.appendChild(ot),rt=i,L(),R(!0)}else if(v&&function(t,e,n){var o=X(j(n.el,0,n.options,!0));return e?t.clientX<o.left-10||t.clientY<o.top&&t.clientX<o.right:t.clientY<o.top-10||t.clientY<o.bottom&&t.clientX<o.left}(t,r,this)){var m=j(i,0,l,!0);if(m===ot)return R(!1);if(n=X(a=m),!1!==Ut(at,i,ot,e,a,n,t,!1))return A(),i.insertBefore(ot,m),rt=i,L(),R(!0)}else if(a.parentNode===i){n=X(a);var b,w,y,_=ot.parentNode!==i,S=!function(t,e,n){var o=n?t.left:t.top,r=n?t.right:t.bottom,i=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,s=n?e.width:e.height;return o===a||r===l||o+i/2===a+s/2}(ot.animated&&ot.toRect||e,a.animated&&a.toRect||n,r),E=r?"top":"left",D=Y(a,"top","top")||Y(ot,"top","top"),C=D?D.scrollTop:void 0;if(Dt!==a&&(w=n[E],Pt=!1,kt=!S&&l.invertSwap||_),0!==(b=function(t,e,n,o,r,i,a,l){var s=o?t.clientY:t.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,h=!1;if(!a)if(l&&Tt<c*r){if(!Pt&&(1===Ct?s>u+c*i/2:s<d-c*i/2)&&(Pt=!0),Pt)h=!0;else if(1===Ct?s<u+Tt:s>d-Tt)return-Ct}else if(s>u+c*(1-r)/2&&s<d-c*(1-r)/2)return function(t){return B(ot)<B(t)?1:-1}(e);if((h=h||a)&&(s<u+c*i/2||s>d-c*i/2))return s>u+c/2?1:-1;return 0}(t,a,n,r,S?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,kt,Dt===a))){var T=B(ot);do{T-=b,y=rt.children[T]}while(y&&("none"===M(y,"display")||y===it))}if(0===b||y===a)return R(!1);Dt=a,Ct=b;var I=a.nextElementSibling,x=!1,N=Ut(at,i,ot,e,a,n,t,x=1===b);if(!1!==N)return 1!==N&&-1!==N||(x=1===N),At=!0,setTimeout(qt,30),A(),x&&!I?i.appendChild(ot):a.parentNode.insertBefore(ot,x?I:a),D&&V(D,0,C-D.scrollTop),rt=ot.parentNode,void 0===w||kt||(Tt=Math.abs(w-X(a)[E])),L(),R(!0)}if(i.contains(ot))return R(!1)}return!1}function P(l,s){et(l,f,h({evt:t,isOwner:u,axis:r?"vertical":"horizontal",revert:o,dragRect:e,targetRect:n,canSort:d,fromSortable:p,target:a,completed:R,onMove:function(n,o){return Ut(at,i,ot,e,n,X(n),t,o)},changed:L},s))}function A(){P("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function R(e){return P("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(f),f!==p&&(k(ot,vt?vt.options.ghostClass:c.options.ghostClass,!1),k(ot,l.ghostClass,!0)),vt!==f&&f!==Gt.active?vt=f:f===Gt.active&&vt&&(vt=null),p===f&&(f._ignoreWhileAnimating=a),f.animateAll(function(){P("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(a===ot&&!ot.animated||a===i&&!a.animated)&&(Dt=null),l.dragoverBubble||t.rootEl||a===document||(ot.parentNode[U]._isOutsideThisEl(t.target),!e&&Wt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),g=!0}function L(){ht=B(ot),ft=B(ot,l.draggable),nt({sortable:f,name:"change",toEl:i,newIndex:ht,newDraggableIndex:ft,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){T(document,"mousemove",this._onTouchMove),T(document,"touchmove",this._onTouchMove),T(document,"pointermove",this._onTouchMove),T(document,"dragover",Wt),T(document,"mousemove",Wt),T(document,"touchmove",Wt)},_offUpEvents:function(){var t=this.el.ownerDocument;T(t,"mouseup",this._onDrop),T(t,"touchend",this._onDrop),T(t,"pointerup",this._onDrop),T(t,"touchcancel",this._onDrop),T(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;ht=B(ot),ft=B(ot,n.draggable),et("drop",this,{evt:t}),rt=ot&&ot.parentNode,ht=B(ot),ft=B(ot,n.draggable),Gt.eventCanceled?this._nulling():(xt=!1,kt=!1,Pt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Kt(this.cloneId),Kt(this._dragStartId),this.nativeDraggable&&(T(document,"drop",this),T(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_&&M(document.body,"user-select",""),M(ot,"transform",""),t&&(Et&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),it&&it.parentNode&&it.parentNode.removeChild(it),(at===rt||vt&&"clone"!==vt.lastPutMode)&&ct&&ct.parentNode&&ct.parentNode.removeChild(ct),ot&&(this.nativeDraggable&&T(ot,"dragend",this),Qt(ot),ot.style["will-change"]="",Et&&!xt&&k(ot,vt?vt.options.ghostClass:this.options.ghostClass,!1),k(ot,this.options.chosenClass,!1),nt({sortable:this,name:"unchoose",toEl:rt,newIndex:null,newDraggableIndex:null,originalEvent:t}),at!==rt?(ht>=0&&(nt({rootEl:rt,name:"add",toEl:rt,fromEl:at,originalEvent:t}),nt({sortable:this,name:"remove",toEl:rt,originalEvent:t}),nt({rootEl:rt,name:"sort",toEl:rt,fromEl:at,originalEvent:t}),nt({sortable:this,name:"sort",toEl:rt,originalEvent:t})),vt&&vt.save()):ht!==dt&&ht>=0&&(nt({sortable:this,name:"update",toEl:rt,originalEvent:t}),nt({sortable:this,name:"sort",toEl:rt,originalEvent:t})),Gt.active&&(null!=ht&&-1!==ht||(ht=dt,ft=pt),nt({sortable:this,name:"end",toEl:rt,originalEvent:t}),this.save()))),this._nulling())},_nulling:function(){et("nulling",this),at=ot=rt=it=lt=ct=st=ut=mt=bt=Et=ht=ft=dt=pt=Dt=Ct=vt=gt=Gt.dragged=Gt.ghost=Gt.clone=Gt.active=null,Rt.forEach(function(t){t.checked=!0}),Rt.length=wt=yt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ot&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,r=n.length,i=this.options;o<r;o++)O(t=n[o],i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||Jt(t));return e},sort:function(t,e){var n={},o=this.el;this.toArray().forEach(function(t,e){var r=o.children[e];O(r,this.options.draggable,o,!1)&&(n[t]=r)},this),e&&this.captureAnimationState(),t.forEach(function(t){n[t]&&(o.removeChild(n[t]),o.appendChild(n[t]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return O(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=Z.modifyOption(this,t,e);n[t]=void 0!==o?o:e,"group"===t&&zt(n)},destroy:function(){et("destroy",this);var t=this.el;t[U]=null,T(t,"mousedown",this._onTapStart),T(t,"touchstart",this._onTapStart),T(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(T(t,"dragover",this),T(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Nt.splice(Nt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ut){if(et("hideClone",this),Gt.eventCanceled)return;M(ct,"display","none"),this.options.removeCloneOnHide&&ct.parentNode&&ct.parentNode.removeChild(ct),ut=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(ut){if(et("showClone",this),Gt.eventCanceled)return;ot.parentNode!=at||this.options.group.revertClone?lt?at.insertBefore(ct,lt):at.appendChild(ct):at.insertBefore(ct,ot),this.options.group.revertClone&&this.animate(ot,ct),M(ct,"display",""),ut=!1}}else this._hideClone()}},Lt&&C(document,"touchmove",function(t){(Gt.active||xt)&&t.cancelable&&t.preventDefault()}),Gt.utils={on:C,off:T,css:M,find:R,is:function(t,e){return!!O(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:W,closest:O,toggleClass:k,clone:G,index:B,nextTick:Zt,cancelNextTick:Kt,detectDirection:Bt,getChild:j},Gt.get=function(t){return t[U]},Gt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Gt.utils=h(h({},Gt.utils),t.utils)),Z.mount(t)})},Gt.create=function(t,e){return new Gt(t,e)},Gt.version="1.15.0";var te,ee,ne,oe,re,ie,ae=[],le=!1;function se(){ae.forEach(function(t){clearInterval(t.pid)}),ae=[]}function ce(){clearInterval(ie)}var ue=W(function(t,e,n,o){if(e.scroll){var r,i=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,c=L(),u=!1;ee!==n&&(ee=n,se(),te=e.scroll,r=e.scrollFn,!0===te&&(te=H(n,!0)));var d=0,h=te;do{var p=h,f=X(p),g=f.top,v=f.bottom,m=f.left,b=f.right,w=f.width,y=f.height,_=void 0,S=void 0,E=p.scrollWidth,D=p.scrollHeight,C=M(p),T=p.scrollLeft,I=p.scrollTop;p===c?(_=w<E&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),S=y<D&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(_=w<E&&("auto"===C.overflowX||"scroll"===C.overflowX),S=y<D&&("auto"===C.overflowY||"scroll"===C.overflowY));var x=_&&(Math.abs(b-i)<=l&&T+w<E)-(Math.abs(m-i)<=l&&!!T),O=S&&(Math.abs(v-a)<=l&&I+y<D)-(Math.abs(g-a)<=l&&!!I);if(!ae[d])for(var N=0;N<=d;N++)ae[N]||(ae[N]={});ae[d].vx==x&&ae[d].vy==O&&ae[d].el===p||(ae[d].el=p,ae[d].vx=x,ae[d].vy=O,clearInterval(ae[d].pid),0==x&&0==O||(u=!0,ae[d].pid=setInterval(function(){o&&0===this.layer&&Gt.active._onTouchMove(re);var e=ae[this.layer].vy?ae[this.layer].vy*s:0,n=ae[this.layer].vx?ae[this.layer].vx*s:0;"function"==typeof r&&"continue"!==r.call(Gt.dragged.parentNode[U],n,e,t,re,ae[this.layer].el)||V(ae[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&h!==c&&(h=H(h,!1)));le=u}},30),de=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,r=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var s=n||r;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function he(){}function pe(){}he.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=j(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:de},g(he,{pluginName:"revertOnSpill"}),pe.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:de},g(pe,{pluginName:"removeOnSpill"});Gt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):this.options.supportPointer?C(document,"pointermove",this._handleFallbackAutoScroll):e.touches?C(document,"touchmove",this._handleFallbackAutoScroll):C(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?T(document,"dragover",this._handleAutoScroll):(T(document,"pointermove",this._handleFallbackAutoScroll),T(document,"touchmove",this._handleFallbackAutoScroll),T(document,"mousemove",this._handleFallbackAutoScroll)),ce(),se(),clearTimeout(N),N=void 0},nulling:function(){re=ee=te=le=ie=ne=oe=null,ae.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,o=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,i=document.elementFromPoint(o,r);if(re=t,e||this.options.forceAutoScrollFallback||w||b||_){ue(t,this.options,i,e);var a=H(i,!0);!le||ie&&o===ne&&r===oe||(ie&&ce(),ie=setInterval(function(){var i=H(document.elementFromPoint(o,r),!0);i!==a&&(a=i,se()),ue(t,n.options,i,e)},10),ne=o,oe=r)}else{if(!this.options.bubbleScroll||H(i,!0)===L())return void se();ue(t,this.options,H(i,!1),!1)}}},g(t,{pluginName:"scroll",initializeByDefault:!0})}),Gt.mount(pe,he);var fe=Gt,ge=n("3E4D"),ve={components:{recordDetail:u},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",searchInput:"",loading:!1,tableData:[],currentPage:1,pageSize:20,total:0,recordShow:!1,coupCardId:""}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toRecord:function(t,e){this.policyId=e.policyId,this.recordShow=!0},closeSendRecord:function(){this.policyId="",this.recordShow=!1},rowDrop:function(){var t=document.querySelector(".el-table__body-wrapper tbody"),e=this;fe.create(t,{onEnd:function(t){var n=t.newIndex,o=t.oldIndex;if(n==o)return!1;var i=JSON.parse(r()(e.tableData)),a=i.splice(o,1)[0];i.splice(n,0,a),e.postSort(i)}})},postSort:function(t){var e=this,n={json:r()(t)};Object(i.g)("/haoban-app-customer-web/inner/change-sort",n).then(function(t){var n=t.data;e.getTableList(),1!=n.errorCode?a.a.errorMsg(n):ge.a.showmsg("操作成功","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toDel:function(t,e){var n=this;n.$confirm("是否要删除选中的卡券策略?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){n.delCardList(e.policyId)}).catch(function(){})},delCardList:function(t){var e=this,n={wxEnterpriseId:e.wxEnterpriseId,policyId:t};Object(i.g)("/haoban-app-customer-web/inner/delete-policy",n).then(function(t){var n=t.data;if(1==n.errorCode)return ge.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);a.a.errorMsg(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCardStrategy?policyId="+e.policyId)},toSwitch:function(t,e){var n=this,o={onlineFlag:1==e.onlineFlag?0:1,policyId:e.policyId};Object(i.g)("/haoban-app-customer-web/inner/on-off-line",o).then(function(t){var e=t.data;if(1==e.errorCode)return ge.a.showmsg("操作成功","success"),void n.getTableList();a.a.errorMsg(e)}).catch(function(t){n.$message.error({duration:1e3,message:t.message})})},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCardStrategy")},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;t.loading=!0;var e={wxEnterpriseId:t.wxEnterpriseId};Object(i.g)("/haoban-app-customer-web/inner/list-policy",e).then(function(e){var n=e.data;t.loading=!1,1!=n.errorCode?a.a.errorMsg(n):t.tableData=JSON.parse(r()(n.result))||[]}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){var t=this;t.$emit("showTab","2"),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()},t.getTableList(),t.$nextTick(function(){t.rowDrop()})}},me={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"common-right-wrap"},[n("div",{staticClass:"p-20"},[n("div",{staticClass:"flex flex-space-between m-b-20"},[t._m(0),t._v(" "),n("el-button",{attrs:{disabled:t.tableData.length>=5,type:"primary"},on:{click:t.toNewCard}},[t._v("新增策略")])],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleCateTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 0px)"},attrs:{"row-key":"policyId",data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{prop:"",label:"",width:"100","class-name":"move-row-cell"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("span",{staticClass:"font-22 iconfont-hb3 icontuozhuaiopen color-c4c6cf",staticStyle:{cursor:"move"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"卡券策略名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.policyName)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"卡券模板","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardTemplates)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"上线状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(0==e.row.onlineFlag?"已下线":"已上线"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"策略状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(0==e.row.policyStatus?"无效":"有效"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"操作",width:"228"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.toSwitch(e.$index,e.row)}}},[t._v(t._s(0==e.row.onlineFlag?"上线":"下线"))]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.toRecord(e.$index,e.row)}}},[t._v("记录")]),t._v(" "),0==e.row.onlineFlag?n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.toDel(e.$index,e.row)}}},[t._v("删除")]):t._e()]}}])})],1)],1),t._v(" "),t.recordShow?n("record-detail",{attrs:{policyId:t.policyId},on:{closeSendRecord:t.closeSendRecord}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{"line-height":"32px"}},[e("span",{staticClass:"font-13 color-909399 p-l-10 font-w-300"},[this._v("内购券针对企业内部员工发下的卡券,最多新建5个策略")])])}]};var be=n("VU/8")(ve,me,!1,function(t){n("i54L")},"data-v-42c4cfb1",null);e.default=be.exports}});
\ No newline at end of file
webpackJsonp([45],{i54L:function(t,e){},nfpZ:function(t,e){},rUvh:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n("mvHQ"),r=n.n(o),i=n("P9l9"),a=n("Ch4/"),l=n("PI0u"),s={props:{brandId:{type:String,default:function(){return""}},policyId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,tableData:[],conditionObj:{searchInput:"",searchType:"1",storeGroup:[],dateRange:[]},currentPage:1,pageSize:20,total:0}},filters:{percenteNum:function(t){return t>0?Number(100*t).toFixed(2)+"%":Number(t).toFixed(2)+"%"}},methods:{handleClose:function(t){this.$emit("closeSendRecord")},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.choiceDateCopy=[],this.conditionObj.dateRange=[]),this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,n={policyId:e.policyId,search:e.conditionObj.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(i.g)("/haoban-app-customer-web/inner/find-card-total-log-page",n).then(function(t){var n=t.data;if(1==n.errorCode)return e.tableData=n.result.result||[],e.total=n.result.totalCount,!1;a.a.errorMsg(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},policyId:function(t,e){t&&this.getTableList()}},mounted:function(){this.policyId&&this.getTableList()}},c={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:"记录",visible:t.dialogVisible,width:"802px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[n("div",{staticClass:"table-condition flex flex-space-between m-b-20"},[n("div",{staticClass:"table-condition-left"},[n("el-input",{staticClass:"w-369",attrs:{placeholder:"请输入卡券名称",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return n=e,t.toInput(n,t.conditionObj.searchInput);var n}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}})],1)]),t._v(" "),n("div",[n("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark",height:"450"}},[n("el-table-column",{attrs:{label:"卡券名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardName||"--")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"投放数量","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.issuingQuantity||"0")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"领取数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.getedQuantity||"0"))]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"领取率"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("percenteNum")(e.row.getedRate)))]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"使用数量"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.usageQuantity||"0"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"核销率"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(t._f("percenteNum")(e.row.verificationRate)))])]}}])})],1),t._v(" "),0!=t.tableData.length?n("div",{staticClass:"block common-wrap__page text-right m-t-24"},[n("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[]};var u=n("VU/8")(s,c,!1,function(t){n("nfpZ")},"data-v-48fb59e7",null).exports;
/**!
* Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/
function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,o)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach(function(e){f(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function p(t){"@babel/helpers - typeof";return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(){return(g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function v(t,e){if(null==t)return{};var n,o,r=function(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function m(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var b=m(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),w=m(/Edge/i),y=m(/firefox/i),_=m(/safari/i)&&!m(/chrome/i)&&!m(/android/i),S=m(/iP(ad|od|hone)/i),E=m(/chrome/i)&&m(/android/i),D={capture:!1,passive:!1};function C(t,e,n){t.addEventListener(e,n,!b&&D)}function T(t,e,n){t.removeEventListener(e,n,!b&&D)}function I(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function x(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function O(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&I(t,e):I(t,e))||o&&t===n)return t;if(t===n)break}while(t=x(t))}return null}var N,P=/\s+/g;function k(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(P," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(P," ")}}function M(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in o||-1!==e.indexOf("webkit")||(e="-webkit-"+e),o[e]=n+("string"==typeof n?"":"px")}}function A(t,e){var n="";if("string"==typeof t)n=t;else do{var o=M(t,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function R(t,e,n){if(t){var o=t.getElementsByTagName(e),r=0,i=o.length;if(n)for(;r<i;r++)n(o[r],r);return o}return[]}function L(){var t=document.scrollingElement;return t||document.documentElement}function X(t,e,n,o,r){if(t.getBoundingClientRect||t===window){var i,a,l,s,c,u,d;if(t!==window&&t.parentNode&&t!==L()?(a=(i=t.getBoundingClientRect()).top,l=i.left,s=i.bottom,c=i.right,u=i.height,d=i.width):(a=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(r=r||t.parentNode,!b))do{if(r&&r.getBoundingClientRect&&("none"!==M(r,"transform")||n&&"static"!==M(r,"position"))){var h=r.getBoundingClientRect();a-=h.top+parseInt(M(r,"border-top-width")),l-=h.left+parseInt(M(r,"border-left-width")),s=a+i.height,c=l+i.width;break}}while(r=r.parentNode);if(o&&t!==window){var p=A(r||t),f=p&&p.a,g=p&&p.d;p&&(s=(a/=g)+(u/=g),c=(l/=f)+(d/=f))}return{top:a,left:l,bottom:s,right:c,width:d,height:u}}}function Y(t,e,n){for(var o=H(t,!0),r=X(t)[e];o;){var i=X(o)[n];if(!("top"===n||"left"===n?r>=i:r<=i))return o;if(o===L())break;o=H(o,!1)}return!1}function j(t,e,n,o){for(var r=0,i=0,a=t.children;i<a.length;){if("none"!==a[i].style.display&&a[i]!==Gt.ghost&&(o||a[i]!==Gt.dragged)&&O(a[i],n.draggable,t,!1)){if(r===e)return a[i];r++}i++}return null}function F(t,e){for(var n=t.lastElementChild;n&&(n===Gt.ghost||"none"===M(n,"display")||e&&!I(n,e));)n=n.previousElementSibling;return n||null}function B(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Gt.clone||e&&!I(t,e)||n++;return n}function z(t){var e=0,n=0,o=L();if(t)do{var r=A(t),i=r.a,a=r.d;e+=t.scrollLeft*i,n+=t.scrollTop*a}while(t!==o&&(t=t.parentNode));return[e,n]}function H(t,e){if(!t||!t.getBoundingClientRect)return L();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=M(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return L();if(o||e)return n;o=!0}}}while(n=n.parentNode);return L()}function $(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function W(t,e){return function(){if(!N){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),N=setTimeout(function(){N=void 0},e)}}}function V(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function G(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var U="Sortable"+(new Date).getTime();function Q(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach(function(t){if("none"!==M(t,"display")&&t!==Gt.ghost){e.push({target:t,rect:X(t)});var n=h({},e[e.length-1].rect);if(t.thisAnimationDuration){var o=A(t,!0);o&&(n.top-=o.f,n.left-=o.e)}t.fromRect=n}})},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var r=!1,i=0;e.forEach(function(t){var e=0,n=t.target,a=n.fromRect,l=X(n),s=n.prevFromRect,c=n.prevToRect,u=t.rect,d=A(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&$(s,l)&&!$(a,l)&&(u.top-l.top)/(u.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(e=function(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}(u,s,c,o.options)),$(l,a)||(n.prevFromRect=a,n.prevToRect=l,e||(e=o.options.animation),o.animate(n,u,l,e)),e&&(r=!0,i=Math.max(i,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},e),n.thisAnimationDuration=e)}),clearTimeout(t),r?t=setTimeout(function(){"function"==typeof n&&n()},i):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,o){if(o){M(t,"transition",""),M(t,"transform","");var r=A(this.el),i=r&&r.a,a=r&&r.d,l=(e.left-n.left)/(i||1),s=(e.top-n.top)/(a||1);t.animatingX=!!l,t.animatingY=!!s,M(t,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),M(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),M(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout(function(){M(t,"transition",""),M(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},o)}}}}var q=[],J={initializeByDefault:!0},Z={mount:function(t){for(var e in J)!J.hasOwnProperty(e)||e in t||(t[e]=J[e]);q.forEach(function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),q.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=t+"Global";q.forEach(function(o){e[o.pluginName]&&(e[o.pluginName][r]&&e[o.pluginName][r](h({sortable:e},n)),e.options[o.pluginName]&&e[o.pluginName][t]&&e[o.pluginName][t](h({sortable:e},n)))})},initializePlugins:function(t,e,n,o){for(var r in q.forEach(function(o){var r=o.pluginName;if(t.options[r]||o.initializeByDefault){var i=new o(t,e,t.options);i.sortable=t,i.options=t.options,t[r]=i,g(n,i.defaults)}}),t.options)if(t.options.hasOwnProperty(r)){var i=this.modifyOption(t,r,t.options[r]);void 0!==i&&(t.options[r]=i)}},getEventProperties:function(t,e){var n={};return q.forEach(function(o){"function"==typeof o.eventProperties&&g(n,o.eventProperties.call(e[o.pluginName],t))}),n},modifyOption:function(t,e,n){var o;return q.forEach(function(r){t[r.pluginName]&&r.optionListeners&&"function"==typeof r.optionListeners[e]&&(o=r.optionListeners[e].call(t[r.pluginName],n))}),o}};function K(t){var e=t.sortable,n=t.rootEl,o=t.name,r=t.targetEl,i=t.cloneEl,a=t.toEl,l=t.fromEl,s=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,d=t.newDraggableIndex,p=t.originalEvent,f=t.putSortable,g=t.extraEventProperties;if(e=e||n&&n[U]){var v,m=e.options,y="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||b||w?(v=document.createEvent("Event")).initEvent(o,!0,!0):v=new CustomEvent(o,{bubbles:!0,cancelable:!0}),v.to=a||n,v.from=l||n,v.item=r||n,v.clone=i,v.oldIndex=s,v.newIndex=c,v.oldDraggableIndex=u,v.newDraggableIndex=d,v.originalEvent=p,v.pullMode=f?f.lastPutMode:void 0;var _=h(h({},g),Z.getEventProperties(o,e));for(var S in _)v[S]=_[S];n&&n.dispatchEvent(v),m[y]&&m[y].call(e,v)}}var tt=["evt"],et=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,r=v(n,tt);Z.pluginEvent.bind(Gt)(t,e,h({dragEl:ot,parentEl:rt,ghostEl:it,rootEl:at,nextEl:lt,lastDownEl:st,cloneEl:ct,cloneHidden:ut,dragStarted:Et,putSortable:vt,activeSortable:Gt.active,originalEvent:o,oldIndex:dt,oldDraggableIndex:pt,newIndex:ht,newDraggableIndex:ft,hideGhostForTarget:Ht,unhideGhostForTarget:$t,cloneNowHidden:function(){ut=!0},cloneNowShown:function(){ut=!1},dispatchSortableEvent:function(t){nt({sortable:e,name:t,originalEvent:o})}},r))};function nt(t){K(h({putSortable:vt,cloneEl:ct,targetEl:ot,rootEl:at,oldIndex:dt,oldDraggableIndex:pt,newIndex:ht,newDraggableIndex:ft},t))}var ot,rt,it,at,lt,st,ct,ut,dt,ht,pt,ft,gt,vt,mt,bt,wt,yt,_t,St,Et,Dt,Ct,Tt,It,xt=!1,Ot=!1,Nt=[],Pt=!1,kt=!1,Mt=[],At=!1,Rt=[],Lt="undefined"!=typeof document,Xt=S,Yt=w||b?"cssFloat":"float",jt=Lt&&!E&&!S&&"draggable"in document.createElement("div"),Ft=function(){if(Lt){if(b)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Bt=function(t,e){var n=M(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=j(t,0,e),i=j(t,1,e),a=r&&M(r),l=i&&M(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+X(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+X(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=o&&"none"===n[Yt]||i&&"none"===n[Yt]&&s+c>o)?"vertical":"horizontal"},zt=function(t){function e(t,n){return function(o,r,i,a){var l=o.options.group.name&&r.options.group.name&&o.options.group.name===r.options.group.name;if(null==t&&(n||l))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(o,r,i,a),n)(o,r,i,a);var s=(n?o:r).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},o=t.group;o&&"object"==p(o)||(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},Ht=function(){!Ft&&it&&M(it,"display","none")},$t=function(){!Ft&&it&&M(it,"display","")};Lt&&document.addEventListener("click",function(t){if(Ot)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Ot=!1,!1},!0);var Wt=function(t){if(ot){t=t.touches?t.touches[0]:t;var e=(r=t.clientX,i=t.clientY,Nt.some(function(t){var e=t[U].options.emptyInsertThreshold;if(e&&!F(t)){var n=X(t),o=r>=n.left-e&&r<=n.right+e,l=i>=n.top-e&&i<=n.bottom+e;return o&&l?a=t:void 0}}),a);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[U]._onDragOver(n)}}var r,i,a},Vt=function(t){ot&&ot.parentNode[U]._isOutsideThisEl(t.target)};function Gt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=g({},e),t[U]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Bt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Gt.supportPointer&&"PointerEvent"in window&&!_,emptyInsertThreshold:5};for(var o in Z.initializePlugins(this,t,n),n)!(o in e)&&(e[o]=n[o]);for(var r in zt(e),this)"_"===r.charAt(0)&&"function"==typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!e.forceFallback&&jt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?C(t,"pointerdown",this._onTapStart):(C(t,"mousedown",this._onTapStart),C(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(t,"dragover",this),C(t,"dragenter",this)),Nt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),g(this,Q())}function Ut(t,e,n,o,r,i,a,l){var s,c,u=t[U],d=u.options.onMove;return!window.CustomEvent||b||w?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=n,s.draggedRect=o,s.related=r||e,s.relatedRect=i||X(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),d&&(c=d.call(u,s,a)),c}function Qt(t){t.draggable=!1}function qt(){At=!1}function Jt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;n--;)o+=e.charCodeAt(n);return o.toString(36)}function Zt(t){return setTimeout(t,0)}function Kt(t){return clearTimeout(t)}Gt.prototype={constructor:Gt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Dt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,ot):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,r=o.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(a||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(function(t){Rt.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var o=e[n];o.checked&&Rt.push(o)}}(n),!ot&&!(/mousedown|pointerdown/.test(i)&&0!==t.button||o.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!_||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=O(l,o.draggable,n,!1))&&l.animated||st===l)){if(dt=B(l),pt=B(l,o.draggable),"function"==typeof c){if(c.call(this,t,l,this))return nt({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),et("filter",e,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some(function(o){if(o=O(s,o.trim(),n,!1))return nt({sortable:e,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),et("filter",e,{evt:t}),!0})))return void(r&&t.cancelable&&t.preventDefault());o.handle&&!O(s,o.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var o,r=this,i=r.el,a=r.options,l=i.ownerDocument;if(n&&!ot&&n.parentNode===i){var s=X(n);if(at=i,rt=(ot=n).parentNode,lt=ot.nextSibling,st=n,gt=a.group,Gt.dragged=ot,mt={target:ot,clientX:(e||t).clientX,clientY:(e||t).clientY},_t=mt.clientX-s.left,St=mt.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,ot.style["will-change"]="all",o=function(){et("delayEnded",r,{evt:t}),Gt.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!y&&r.nativeDraggable&&(ot.draggable=!0),r._triggerDragStart(t,e),nt({sortable:r,name:"choose",originalEvent:t}),k(ot,a.chosenClass,!0))},a.ignore.split(",").forEach(function(t){R(ot,t.trim(),Qt)}),C(l,"dragover",Wt),C(l,"mousemove",Wt),C(l,"touchmove",Wt),C(l,"mouseup",r._onDrop),C(l,"touchend",r._onDrop),C(l,"touchcancel",r._onDrop),y&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ot.draggable=!0),et("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(w||b))o();else{if(Gt.eventCanceled)return void this._onDrop();C(l,"mouseup",r._disableDelayedDrag),C(l,"touchend",r._disableDelayedDrag),C(l,"touchcancel",r._disableDelayedDrag),C(l,"mousemove",r._delayedDragTouchMoveHandler),C(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&C(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ot&&Qt(ot),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;T(t,"mouseup",this._disableDelayedDrag),T(t,"touchend",this._disableDelayedDrag),T(t,"touchcancel",this._disableDelayedDrag),T(t,"mousemove",this._delayedDragTouchMoveHandler),T(t,"touchmove",this._delayedDragTouchMoveHandler),T(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?C(document,"pointermove",this._onTouchMove):C(document,e?"touchmove":"mousemove",this._onTouchMove):(C(ot,"dragend",this),C(at,"dragstart",this._onDragStart));try{document.selection?Zt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(xt=!1,at&&ot){et("dragStarted",this,{evt:e}),this.nativeDraggable&&C(document,"dragover",Vt);var n=this.options;!t&&k(ot,n.dragClass,!1),k(ot,n.ghostClass,!0),Gt.active=this,t&&this._appendGhost(),nt({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(bt){this._lastX=bt.clientX,this._lastY=bt.clientY,Ht();for(var t=document.elementFromPoint(bt.clientX,bt.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(bt.clientX,bt.clientY))!==e;)e=t;if(ot.parentNode[U]._isOutsideThisEl(t),e)do{if(e[U]){if(e[U]._onDragOver({clientX:bt.clientX,clientY:bt.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);$t()}},_onTouchMove:function(t){if(mt){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,i=it&&A(it,!0),a=it&&i&&i.a,l=it&&i&&i.d,s=Xt&&It&&z(It),c=(r.clientX-mt.clientX+o.x)/(a||1)+(s?s[0]-Mt[0]:0)/(a||1),u=(r.clientY-mt.clientY+o.y)/(l||1)+(s?s[1]-Mt[1]:0)/(l||1);if(!Gt.active&&!xt){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(it){i?(i.e+=c-(wt||0),i.f+=u-(yt||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");M(it,"webkitTransform",d),M(it,"mozTransform",d),M(it,"msTransform",d),M(it,"transform",d),wt=c,yt=u,bt=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!it){var t=this.options.fallbackOnBody?document.body:at,e=X(ot,!0,Xt,!0,t),n=this.options;if(Xt){for(It=t;"static"===M(It,"position")&&"none"===M(It,"transform")&&It!==document;)It=It.parentNode;It!==document.body&&It!==document.documentElement?(It===document&&(It=L()),e.top+=It.scrollTop,e.left+=It.scrollLeft):It=L(),Mt=z(It)}k(it=ot.cloneNode(!0),n.ghostClass,!1),k(it,n.fallbackClass,!0),k(it,n.dragClass,!0),M(it,"transition",""),M(it,"transform",""),M(it,"box-sizing","border-box"),M(it,"margin",0),M(it,"top",e.top),M(it,"left",e.left),M(it,"width",e.width),M(it,"height",e.height),M(it,"opacity","0.8"),M(it,"position",Xt?"absolute":"fixed"),M(it,"zIndex","100000"),M(it,"pointerEvents","none"),Gt.ghost=it,t.appendChild(it),M(it,"transform-origin",_t/parseInt(it.style.width)*100+"% "+St/parseInt(it.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,r=n.options;et("dragStart",this,{evt:t}),Gt.eventCanceled?this._onDrop():(et("setupClone",this),Gt.eventCanceled||((ct=G(ot)).draggable=!1,ct.style["will-change"]="",this._hideClone(),k(ct,this.options.chosenClass,!1),Gt.clone=ct),n.cloneId=Zt(function(){et("clone",n),Gt.eventCanceled||(n.options.removeCloneOnHide||at.insertBefore(ct,ot),n._hideClone(),nt({sortable:n,name:"clone"}))}),!e&&k(ot,r.dragClass,!0),e?(Ot=!0,n._loopId=setInterval(n._emulateDragOver,50)):(T(document,"mouseup",n._onDrop),T(document,"touchend",n._onDrop),T(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,ot)),C(document,"drop",n),M(ot,"transform","translateZ(0)")),xt=!0,n._dragStartId=Zt(n._dragStarted.bind(n,e,t)),C(document,"selectstart",n),Et=!0,_&&M(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,o,r,i=this.el,a=t.target,l=this.options,s=l.group,c=Gt.active,u=gt===s,d=l.sort,p=vt||c,f=this,g=!1;if(!At){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=O(a,l.draggable,i,!0),P("dragOver"),Gt.eventCanceled)return g;if(ot.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||f._ignoreWhileAnimating===a)return R(!1);if(Ot=!1,c&&!l.disabled&&(u?d||(o=rt!==at):vt===this||(this.lastPutMode=gt.checkPull(this,c,ot,t))&&s.checkPut(this,c,ot,t))){if(r="vertical"===this._getDirection(t,a),e=X(ot),P("dragOverValid"),Gt.eventCanceled)return g;if(o)return rt=at,A(),this._hideClone(),P("revert"),Gt.eventCanceled||(lt?at.insertBefore(ot,lt):at.appendChild(ot)),R(!0);var v=F(i,l.draggable);if(!v||function(t,e,n){var o=X(F(n.el,n.options.draggable));return e?t.clientX>o.right+10||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+10}(t,r,this)&&!v.animated){if(v===ot)return R(!1);if(v&&i===t.target&&(a=v),a&&(n=X(a)),!1!==Ut(at,i,ot,e,a,n,t,!!a))return A(),i.appendChild(ot),rt=i,L(),R(!0)}else if(v&&function(t,e,n){var o=X(j(n.el,0,n.options,!0));return e?t.clientX<o.left-10||t.clientY<o.top&&t.clientX<o.right:t.clientY<o.top-10||t.clientY<o.bottom&&t.clientX<o.left}(t,r,this)){var m=j(i,0,l,!0);if(m===ot)return R(!1);if(n=X(a=m),!1!==Ut(at,i,ot,e,a,n,t,!1))return A(),i.insertBefore(ot,m),rt=i,L(),R(!0)}else if(a.parentNode===i){n=X(a);var b,w,y,_=ot.parentNode!==i,S=!function(t,e,n){var o=n?t.left:t.top,r=n?t.right:t.bottom,i=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,s=n?e.width:e.height;return o===a||r===l||o+i/2===a+s/2}(ot.animated&&ot.toRect||e,a.animated&&a.toRect||n,r),E=r?"top":"left",D=Y(a,"top","top")||Y(ot,"top","top"),C=D?D.scrollTop:void 0;if(Dt!==a&&(w=n[E],Pt=!1,kt=!S&&l.invertSwap||_),0!==(b=function(t,e,n,o,r,i,a,l){var s=o?t.clientY:t.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,h=!1;if(!a)if(l&&Tt<c*r){if(!Pt&&(1===Ct?s>u+c*i/2:s<d-c*i/2)&&(Pt=!0),Pt)h=!0;else if(1===Ct?s<u+Tt:s>d-Tt)return-Ct}else if(s>u+c*(1-r)/2&&s<d-c*(1-r)/2)return function(t){return B(ot)<B(t)?1:-1}(e);if((h=h||a)&&(s<u+c*i/2||s>d-c*i/2))return s>u+c/2?1:-1;return 0}(t,a,n,r,S?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,kt,Dt===a))){var T=B(ot);do{T-=b,y=rt.children[T]}while(y&&("none"===M(y,"display")||y===it))}if(0===b||y===a)return R(!1);Dt=a,Ct=b;var I=a.nextElementSibling,x=!1,N=Ut(at,i,ot,e,a,n,t,x=1===b);if(!1!==N)return 1!==N&&-1!==N||(x=1===N),At=!0,setTimeout(qt,30),A(),x&&!I?i.appendChild(ot):a.parentNode.insertBefore(ot,x?I:a),D&&V(D,0,C-D.scrollTop),rt=ot.parentNode,void 0===w||kt||(Tt=Math.abs(w-X(a)[E])),L(),R(!0)}if(i.contains(ot))return R(!1)}return!1}function P(l,s){et(l,f,h({evt:t,isOwner:u,axis:r?"vertical":"horizontal",revert:o,dragRect:e,targetRect:n,canSort:d,fromSortable:p,target:a,completed:R,onMove:function(n,o){return Ut(at,i,ot,e,n,X(n),t,o)},changed:L},s))}function A(){P("dragOverAnimationCapture"),f.captureAnimationState(),f!==p&&p.captureAnimationState()}function R(e){return P("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(f),f!==p&&(k(ot,vt?vt.options.ghostClass:c.options.ghostClass,!1),k(ot,l.ghostClass,!0)),vt!==f&&f!==Gt.active?vt=f:f===Gt.active&&vt&&(vt=null),p===f&&(f._ignoreWhileAnimating=a),f.animateAll(function(){P("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(a===ot&&!ot.animated||a===i&&!a.animated)&&(Dt=null),l.dragoverBubble||t.rootEl||a===document||(ot.parentNode[U]._isOutsideThisEl(t.target),!e&&Wt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),g=!0}function L(){ht=B(ot),ft=B(ot,l.draggable),nt({sortable:f,name:"change",toEl:i,newIndex:ht,newDraggableIndex:ft,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){T(document,"mousemove",this._onTouchMove),T(document,"touchmove",this._onTouchMove),T(document,"pointermove",this._onTouchMove),T(document,"dragover",Wt),T(document,"mousemove",Wt),T(document,"touchmove",Wt)},_offUpEvents:function(){var t=this.el.ownerDocument;T(t,"mouseup",this._onDrop),T(t,"touchend",this._onDrop),T(t,"pointerup",this._onDrop),T(t,"touchcancel",this._onDrop),T(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;ht=B(ot),ft=B(ot,n.draggable),et("drop",this,{evt:t}),rt=ot&&ot.parentNode,ht=B(ot),ft=B(ot,n.draggable),Gt.eventCanceled?this._nulling():(xt=!1,kt=!1,Pt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Kt(this.cloneId),Kt(this._dragStartId),this.nativeDraggable&&(T(document,"drop",this),T(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_&&M(document.body,"user-select",""),M(ot,"transform",""),t&&(Et&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),it&&it.parentNode&&it.parentNode.removeChild(it),(at===rt||vt&&"clone"!==vt.lastPutMode)&&ct&&ct.parentNode&&ct.parentNode.removeChild(ct),ot&&(this.nativeDraggable&&T(ot,"dragend",this),Qt(ot),ot.style["will-change"]="",Et&&!xt&&k(ot,vt?vt.options.ghostClass:this.options.ghostClass,!1),k(ot,this.options.chosenClass,!1),nt({sortable:this,name:"unchoose",toEl:rt,newIndex:null,newDraggableIndex:null,originalEvent:t}),at!==rt?(ht>=0&&(nt({rootEl:rt,name:"add",toEl:rt,fromEl:at,originalEvent:t}),nt({sortable:this,name:"remove",toEl:rt,originalEvent:t}),nt({rootEl:rt,name:"sort",toEl:rt,fromEl:at,originalEvent:t}),nt({sortable:this,name:"sort",toEl:rt,originalEvent:t})),vt&&vt.save()):ht!==dt&&ht>=0&&(nt({sortable:this,name:"update",toEl:rt,originalEvent:t}),nt({sortable:this,name:"sort",toEl:rt,originalEvent:t})),Gt.active&&(null!=ht&&-1!==ht||(ht=dt,ft=pt),nt({sortable:this,name:"end",toEl:rt,originalEvent:t}),this.save()))),this._nulling())},_nulling:function(){et("nulling",this),at=ot=rt=it=lt=ct=st=ut=mt=bt=Et=ht=ft=dt=pt=Dt=Ct=vt=gt=Gt.dragged=Gt.ghost=Gt.clone=Gt.active=null,Rt.forEach(function(t){t.checked=!0}),Rt.length=wt=yt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ot&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,r=n.length,i=this.options;o<r;o++)O(t=n[o],i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||Jt(t));return e},sort:function(t,e){var n={},o=this.el;this.toArray().forEach(function(t,e){var r=o.children[e];O(r,this.options.draggable,o,!1)&&(n[t]=r)},this),e&&this.captureAnimationState(),t.forEach(function(t){n[t]&&(o.removeChild(n[t]),o.appendChild(n[t]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return O(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=Z.modifyOption(this,t,e);n[t]=void 0!==o?o:e,"group"===t&&zt(n)},destroy:function(){et("destroy",this);var t=this.el;t[U]=null,T(t,"mousedown",this._onTapStart),T(t,"touchstart",this._onTapStart),T(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(T(t,"dragover",this),T(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Nt.splice(Nt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ut){if(et("hideClone",this),Gt.eventCanceled)return;M(ct,"display","none"),this.options.removeCloneOnHide&&ct.parentNode&&ct.parentNode.removeChild(ct),ut=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(ut){if(et("showClone",this),Gt.eventCanceled)return;ot.parentNode!=at||this.options.group.revertClone?lt?at.insertBefore(ct,lt):at.appendChild(ct):at.insertBefore(ct,ot),this.options.group.revertClone&&this.animate(ot,ct),M(ct,"display",""),ut=!1}}else this._hideClone()}},Lt&&C(document,"touchmove",function(t){(Gt.active||xt)&&t.cancelable&&t.preventDefault()}),Gt.utils={on:C,off:T,css:M,find:R,is:function(t,e){return!!O(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:W,closest:O,toggleClass:k,clone:G,index:B,nextTick:Zt,cancelNextTick:Kt,detectDirection:Bt,getChild:j},Gt.get=function(t){return t[U]},Gt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Gt.utils=h(h({},Gt.utils),t.utils)),Z.mount(t)})},Gt.create=function(t,e){return new Gt(t,e)},Gt.version="1.14.0";var te,ee,ne,oe,re,ie,ae=[],le=!1;function se(){ae.forEach(function(t){clearInterval(t.pid)}),ae=[]}function ce(){clearInterval(ie)}var ue=W(function(t,e,n,o){if(e.scroll){var r,i=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,c=L(),u=!1;ee!==n&&(ee=n,se(),te=e.scroll,r=e.scrollFn,!0===te&&(te=H(n,!0)));var d=0,h=te;do{var p=h,f=X(p),g=f.top,v=f.bottom,m=f.left,b=f.right,w=f.width,y=f.height,_=void 0,S=void 0,E=p.scrollWidth,D=p.scrollHeight,C=M(p),T=p.scrollLeft,I=p.scrollTop;p===c?(_=w<E&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),S=y<D&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(_=w<E&&("auto"===C.overflowX||"scroll"===C.overflowX),S=y<D&&("auto"===C.overflowY||"scroll"===C.overflowY));var x=_&&(Math.abs(b-i)<=l&&T+w<E)-(Math.abs(m-i)<=l&&!!T),O=S&&(Math.abs(v-a)<=l&&I+y<D)-(Math.abs(g-a)<=l&&!!I);if(!ae[d])for(var N=0;N<=d;N++)ae[N]||(ae[N]={});ae[d].vx==x&&ae[d].vy==O&&ae[d].el===p||(ae[d].el=p,ae[d].vx=x,ae[d].vy=O,clearInterval(ae[d].pid),0==x&&0==O||(u=!0,ae[d].pid=setInterval(function(){o&&0===this.layer&&Gt.active._onTouchMove(re);var e=ae[this.layer].vy?ae[this.layer].vy*s:0,n=ae[this.layer].vx?ae[this.layer].vx*s:0;"function"==typeof r&&"continue"!==r.call(Gt.dragged.parentNode[U],n,e,t,re,ae[this.layer].el)||V(ae[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&h!==c&&(h=H(h,!1)));le=u}},30),de=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,r=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var s=n||r;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function he(){}function pe(){}he.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=j(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:de},g(he,{pluginName:"revertOnSpill"}),pe.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:de},g(pe,{pluginName:"removeOnSpill"});Gt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):this.options.supportPointer?C(document,"pointermove",this._handleFallbackAutoScroll):e.touches?C(document,"touchmove",this._handleFallbackAutoScroll):C(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?T(document,"dragover",this._handleAutoScroll):(T(document,"pointermove",this._handleFallbackAutoScroll),T(document,"touchmove",this._handleFallbackAutoScroll),T(document,"mousemove",this._handleFallbackAutoScroll)),ce(),se(),clearTimeout(N),N=void 0},nulling:function(){re=ee=te=le=ie=ne=oe=null,ae.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,o=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,i=document.elementFromPoint(o,r);if(re=t,e||this.options.forceAutoScrollFallback||w||b||_){ue(t,this.options,i,e);var a=H(i,!0);!le||ie&&o===ne&&r===oe||(ie&&ce(),ie=setInterval(function(){var i=H(document.elementFromPoint(o,r),!0);i!==a&&(a=i,se()),ue(t,n.options,i,e)},10),ne=o,oe=r)}else{if(!this.options.bubbleScroll||H(i,!0)===L())return void se();ue(t,this.options,H(i,!1),!1)}}},g(t,{pluginName:"scroll",initializeByDefault:!0})}),Gt.mount(pe,he);var fe=Gt,ge=n("3E4D"),ve={components:{recordDetail:u},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",searchInput:"",loading:!1,tableData:[],currentPage:1,pageSize:20,total:0,recordShow:!1,coupCardId:""}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toRecord:function(t,e){this.policyId=e.policyId,this.recordShow=!0},closeSendRecord:function(){this.policyId="",this.recordShow=!1},rowDrop:function(){var t=document.querySelector(".el-table__body-wrapper tbody"),e=this;fe.create(t,{onEnd:function(t){var n=t.newIndex,o=t.oldIndex;if(n==o)return!1;var i=JSON.parse(r()(e.tableData)),a=i.splice(o,1)[0];i.splice(n,0,a),e.postSort(i)}})},postSort:function(t){var e=this,n={json:r()(t)};Object(i.g)("/haoban-app-customer-web/inner/change-sort",n).then(function(t){var n=t.data;e.getTableList(),1!=n.errorCode?a.a.errorMsg(n):ge.a.showmsg("操作成功","success")}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toDel:function(t,e){var n=this;n.$confirm("是否要删除选中的卡券策略?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){n.delCardList(e.policyId)}).catch(function(){})},delCardList:function(t){var e=this,n={wxEnterpriseId:e.wxEnterpriseId,policyId:t};Object(i.g)("/haoban-app-customer-web/inner/delete-policy",n).then(function(t){var n=t.data;if(1==n.errorCode)return ge.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);a.a.errorMsg(n)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCardStrategy?policyId="+e.policyId)},toSwitch:function(t,e){var n=this,o={onlineFlag:1==e.onlineFlag?0:1,policyId:e.policyId};Object(i.g)("/haoban-app-customer-web/inner/on-off-line",o).then(function(t){var e=t.data;if(1==e.errorCode)return ge.a.showmsg("操作成功","success"),void n.getTableList();a.a.errorMsg(e)}).catch(function(t){n.$message.error({duration:1e3,message:t.message})})},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCardStrategy")},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;t.loading=!0;var e={wxEnterpriseId:t.wxEnterpriseId};Object(i.g)("/haoban-app-customer-web/inner/list-policy",e).then(function(e){var n=e.data;t.loading=!1,1!=n.errorCode?a.a.errorMsg(n):t.tableData=JSON.parse(r()(n.result))||[]}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){var t=this;t.$emit("showTab","2"),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()},t.getTableList(),t.$nextTick(function(){t.rowDrop()})}},me={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"common-right-wrap"},[n("div",{staticClass:"p-20"},[n("div",{staticClass:"flex flex-space-between m-b-20"},[t._m(0),t._v(" "),n("el-button",{attrs:{disabled:t.tableData.length>=5,type:"primary"},on:{click:t.toNewCard}},[t._v("新增策略")])],1),t._v(" "),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleCateTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 0px)"},attrs:{"row-key":"policyId",data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{prop:"",label:"",width:"100","class-name":"move-row-cell"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("span",{staticClass:"font-22 iconfont-hb3 icontuozhuaiopen color-c4c6cf",staticStyle:{cursor:"move"}})]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"卡券策略名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.policyName)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"卡券模板","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardTemplates)+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"上线状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(0==e.row.onlineFlag?"已下线":"已上线"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"策略状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(0==e.row.policyStatus?"无效":"有效"))])]}}])}),t._v(" "),n("el-table-column",{attrs:{prop:"",label:"操作",width:"228"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.toSwitch(e.$index,e.row)}}},[t._v(t._s(0==e.row.onlineFlag?"上线":"下线"))]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.toEdit(e.$index,e.row)}}},[t._v("编辑")]),t._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.toRecord(e.$index,e.row)}}},[t._v("记录")]),t._v(" "),0==e.row.onlineFlag?n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.toDel(e.$index,e.row)}}},[t._v("删除")]):t._e()]}}])})],1)],1),t._v(" "),t.recordShow?n("record-detail",{attrs:{policyId:t.policyId},on:{closeSendRecord:t.closeSendRecord}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{"line-height":"32px"}},[e("span",{staticClass:"font-13 color-909399 p-l-10 font-w-300"},[this._v("内购券针对企业内部员工发下的卡券,最多新建5个策略")])])}]};var be=n("VU/8")(ve,me,!1,function(t){n("i54L")},"data-v-42c4cfb1",null);e.default=be.exports}});
\ No newline at end of file
webpackJsonp([46],{"1koK":function(t,e){},"20P3":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("3Xzz"),s=a("Qs+A"),l=a("P9l9"),n=a("Ch4/"),r={name:"fail-log",props:{taskId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,currentPage:1,pageSize:20,total:0,tableData:[]}},computed:{},methods:{handleClose:function(){this.tableData=[],this.$emit("closeLog")},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",taskId:e.taskId,pageNum:e.currentPage,pageSize:e.pageSize};Object(l.b)("/haoban-manage3-web/sync-task-detail",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{taskId:function(t,e){t&&this.getTableList()}},mounted:function(){this.taskId&&this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:o.a,setDepartment:s.a}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"查看失败日志",visible:t.dialogVisible,width:"995px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"overstore-tip"},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),t._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("失败可能:分组创建失败或门店及成员创建失败"),a("br"),t._v("\n 通讯录同步分为两步串联创建:"),a("br"),t._v("\n 第一步同步分组,若出现分组创建失败,则分组及下面的门店及成员均会创建失败"),a("br"),t._v("\n 第二步同步门店及成员,若分组创建成功,会同步门店及成员,若门店创建失败,则门店下成员也会创建失败")])])])]),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{height:"450",data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组/门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.dataName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"分组/门店code","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.dataCode)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"所属分组","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.chainName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"数据类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(0==e.row.dataType?"分组":1==e.row.dataType?"门店":"成员")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"同步状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",2==e.row.statusFlag?"bg-52c41a":"bg-f5222d"]}),a("span",{staticClass:"font-14 color-606266"},[t._v(t._s(3==e.row.statusFlag?"同步失败":1==e.row.statusFlag?"同步处理中":"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"失败原因","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.reason)))]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[]};var c=a("VU/8")(r,i,!1,function(t){a("4/8+")},"data-v-3c38ec0a",null).exports,u=a("PI0u"),p={name:"reviewed",data:function(){return{activeName:"first",searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[],tableBindData:[],logShow:!1,taskId:"",optType:""}},computed:{},methods:{clearInput:function(){this.currentPage=1,this.getBindist()},toInput:Object(u.a)(function(t){this.currentPage=1,this.getBindist()},200),handleClick:function(t,e){this.currentPage=1,this.pageSize=20,this.total=0,"first"==t.name?this.getTableList():this.getBindist()},toShowLog:function(t,e){this.taskId=e.taskId,this.logShow=!0},closeLog:function(){this.taskId="",this.logShow=!1},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,"first"==this.activeName?this.getTableList():this.getBindist()},handleCurrentChange:function(t){this.currentPage=t,"first"==this.activeName?this.getTableList():this.getBindist()},getBindist:function(){var t=this,e={search:t.searchInput||"",optType:t.optType,pageNum:t.currentPage,pageSize:t.pageSize};Object(l.b)("/haoban-manage3-web/staff-clerk-bind-log",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableBindData=a.result.result||[],t.total=a.result.totalCount,!1;n.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(l.b)("/haoban-manage3-web/sync-task",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getTableList()},components:{setDepartment:s.a,failLog:c}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"apps-content flex"},[a("div",{staticClass:"apps-content-right"},[a("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"通讯录日志",name:"first"}},[a("div",{staticClass:"overstore-tip",staticStyle:{width:"643px"}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),t._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("仅保存近一年失败日志")])])])]),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.userName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"同步时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime)))]),t._v(" "),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"同步内容","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.taskDesc)))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",4==e.row.statusFlag?"bg-52c41a":"bg-f5222d"]}),a("span",{staticClass:"font-14 color-606266"},[t._v(t._s(4==e.row.statusFlag?"成功":5==e.row.statusFlag?"完成有错误":6==e.row.statusFlag?"有错误关闭":""))])]}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.checkLog)?a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[5!=e.row.statusFlag&&6!=e.row.statusFlag||!t.$getButtonLimit(t.$buttonCode.checkLog)?t._e():a("el-button",{attrs:{"limit-code":t.$buttonCode.checkLog,type:"text"},on:{click:function(a){return t.toShowLog(e.$index,e.row)}}},[t._v("查看失败日志")])]}}])}):t._e()],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)]),t._v(" "),a("el-tab-pane",{attrs:{label:"关联解绑日志",name:"second"}},[a("div",{staticClass:"overstore-tip",staticStyle:{width:"643px"}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),t._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("仅保存近一年关联解绑日志")])])])]),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入导购手机号或code",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),t._v(" "),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.getBindist},model:{value:t.optType,callback:function(e){t.optType=e},expression:"optType"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),t._v(" "),a("el-option",{attrs:{label:"绑定",value:"0"}}),t._v(" "),a("el-option",{attrs:{label:"解绑",value:"1"}})],1)],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableBindData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"导购账号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.clerkName||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"code","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.clerkCode)))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"企微用户","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.staffName||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"账号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.wxUserId||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.clerkPhoneNumber||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))]),t._v(" "),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.optStaffName||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(0==e.row.optType?"绑定":"解绑"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"原因","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[1001==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("后台管理员绑定")]):t._e(),t._v(" "),1002==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("好办移动端绑定")]):t._e(),t._v(" "),1003==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("审核绑定")]):t._e(),t._v(" "),1004==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("GIC 同步绑定")]):t._e(),t._v(" "),2001==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("后台管理员解绑")]):t._e(),t._v(" "),2002==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("好办移动端解绑")]):t._e(),t._v(" "),2003==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("GIC 同步解绑")]):t._e(),t._v(" "),2004==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("企业同步解绑")]):t._e(),t._v(" "),2005==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("审核被解绑")]):t._e(),t._v(" "),2006==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("权限变更解绑")]):t._e(),t._v(" "),2007==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("门店变更解绑")]):t._e(),t._v(" "),2008==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("GIC导购删除解绑")]):t._e()]}}])})],1),t._v(" "),0!=t.tableBindData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])],1)],1)])])]),t._v(" "),t.logShow?a("fail-log",{attrs:{taskId:t.taskId},on:{closeLog:t.closeLog}}):t._e()],1)},staticRenderFns:[]};var f=a("VU/8")(p,d,!1,function(t){a("1koK")},"data-v-59213e0c",null);e.default=f.exports},"4/8+":function(t,e){}});
\ No newline at end of file
webpackJsonp([46],{"10sA":function(t,e){},"1koK":function(t,e){},"20P3":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("3Xzz"),s=a("Qs+A"),l=a("P9l9"),n=a("Ch4/"),r={name:"fail-log",props:{taskId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,currentPage:1,pageSize:20,total:0,tableData:[]}},computed:{},methods:{handleClose:function(){this.tableData=[],this.$emit("closeLog")},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",taskId:e.taskId,pageNum:e.currentPage,pageSize:e.pageSize};Object(l.b)("/haoban-manage3-web/sync-task-detail",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{taskId:function(t,e){t&&this.getTableList()}},mounted:function(){this.taskId&&this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:o.a,setDepartment:s.a}},i={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"查看失败日志",visible:t.dialogVisible,width:"995px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"overstore-tip"},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),t._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("失败可能:分组创建失败或门店及成员创建失败"),a("br"),t._v("\n 通讯录同步分为两步串联创建:"),a("br"),t._v("\n 第一步同步分组,若出现分组创建失败,则分组及下面的门店及成员均会创建失败"),a("br"),t._v("\n 第二步同步门店及成员,若分组创建成功,会同步门店及成员,若门店创建失败,则门店下成员也会创建失败")])])])]),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{height:"450",data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组/门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.dataName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"分组/门店code","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.dataCode)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"所属分组","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.chainName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"数据类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(0==e.row.dataType?"分组":1==e.row.dataType?"门店":"成员")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"同步状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",2==e.row.statusFlag?"bg-52c41a":"bg-f5222d"]}),a("span",{staticClass:"font-14 color-606266"},[t._v(t._s(3==e.row.statusFlag?"同步失败":1==e.row.statusFlag?"同步处理中":"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"失败原因","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.reason)))]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[]};var c=a("VU/8")(r,i,!1,function(t){a("10sA")},"data-v-33012bcb",null).exports,u=a("PI0u"),p={name:"reviewed",data:function(){return{activeName:"first",searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[],tableBindData:[],logShow:!1,taskId:"",optType:""}},computed:{},methods:{clearInput:function(){this.currentPage=1,this.getBindist()},toInput:Object(u.a)(function(t){this.currentPage=1,this.getBindist()},200),handleClick:function(t,e){this.currentPage=1,this.pageSize=20,this.total=0,"first"==t.name?this.getTableList():this.getBindist()},toShowLog:function(t,e){this.taskId=e.taskId,this.logShow=!0},closeLog:function(){this.taskId="",this.logShow=!1},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,"first"==this.activeName?this.getTableList():this.getBindist()},handleCurrentChange:function(t){this.currentPage=t,"first"==this.activeName?this.getTableList():this.getBindist()},getBindist:function(){var t=this,e={search:t.searchInput||"",optType:t.optType,pageNum:t.currentPage,pageSize:t.pageSize};Object(l.b)("/haoban-manage3-web/staff-clerk-bind-log",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableBindData=a.result.result||[],t.total=a.result.totalCount,!1;n.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};Object(l.b)("/haoban-manage3-web/sync-task",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;n.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getTableList()},components:{setDepartment:s.a,failLog:c}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"apps-content flex"},[a("div",{staticClass:"apps-content-right"},[a("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"通讯录日志",name:"first"}},[a("div",{staticClass:"overstore-tip",staticStyle:{width:"643px"}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),t._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("仅保存近一年失败日志")])])])]),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.userName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"同步时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),t._v(" "),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime)))]),t._v(" "),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"同步内容","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.taskDesc)))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",4==e.row.statusFlag?"bg-52c41a":"bg-f5222d"]}),a("span",{staticClass:"font-14 color-606266"},[t._v(t._s(4==e.row.statusFlag?"成功":5==e.row.statusFlag?"完成有错误":6==e.row.statusFlag?"有错误关闭":""))])]}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.checkLog)?a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[5!=e.row.statusFlag&&6!=e.row.statusFlag||!t.$getButtonLimit(t.$buttonCode.checkLog)?t._e():a("el-button",{attrs:{"limit-code":t.$buttonCode.checkLog,type:"text"},on:{click:function(a){return t.toShowLog(e.$index,e.row)}}},[t._v("查看失败日志")])]}}])}):t._e()],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)]),t._v(" "),a("el-tab-pane",{attrs:{label:"关联解绑日志",name:"second"}},[a("div",{staticClass:"overstore-tip",staticStyle:{width:"643px"}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),t._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("仅保存近一年关联解绑日志")])])])]),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入导购手机号或code",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),t._v(" "),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.getBindist},model:{value:t.optType,callback:function(e){t.optType=e},expression:"optType"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),t._v(" "),a("el-option",{attrs:{label:"绑定",value:"0"}}),t._v(" "),a("el-option",{attrs:{label:"解绑",value:"1"}})],1)],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableBindData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"导购账号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.clerkName||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"code","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.clerkCode)))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"企微用户","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.staffName||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"账号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.wxUserId||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.clerkPhoneNumber||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))]),t._v(" "),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.optStaffName||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(0==e.row.optType?"绑定":"解绑"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"原因","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[1001==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("后台管理员绑定")]):t._e(),t._v(" "),1002==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("好办移动端绑定")]):t._e(),t._v(" "),1003==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("审核绑定")]):t._e(),t._v(" "),1004==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("GIC 同步绑定")]):t._e(),t._v(" "),2001==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("后台管理员解绑")]):t._e(),t._v(" "),2002==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("好办移动端解绑")]):t._e(),t._v(" "),2003==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("GIC 同步解绑")]):t._e(),t._v(" "),2004==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("企业同步解绑")]):t._e(),t._v(" "),2005==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("审核被解绑")]):t._e(),t._v(" "),2006==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("权限变更解绑")]):t._e(),t._v(" "),2007==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("门店变更解绑")]):t._e(),t._v(" "),2008==e.row.channelCode?a("el-button",{staticClass:"cursor-unset",attrs:{type:"text"}},[t._v("GIC导购删除解绑")]):t._e()]}}])})],1),t._v(" "),0!=t.tableBindData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])],1)],1)])])]),t._v(" "),t.logShow?a("fail-log",{attrs:{taskId:t.taskId},on:{closeLog:t.closeLog}}):t._e()],1)},staticRenderFns:[]};var f=a("VU/8")(p,d,!1,function(t){a("1koK")},"data-v-59213e0c",null);e.default=f.exports}});
\ No newline at end of file
webpackJsonp([5],{CVxX:function(t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llrorff1IcUf1PNkU50GS80IxPBS2ch4WH+cIesAb6oiT48rL4jeRjmbuKnVmNgSUgOfEEscKIdO8/eXkAmYs2zcmAVVyliAC5isP0LBoDUnI83dQWT7kSjKuolqhilQe03DbvPYt11sb1T8sSLKvRapxIWcVViohiru7rqhrCMSiriCkhBqhSKiHFKlIAKcaJlBKu1YgANZRWA1Idis8JFgENKNJ/tYQFWsUClahBVvXOW/+xLMUjFLkcOZEBypeDjfpqGXwOfqD651bBS7BhAsomrrnVgKBr4BuwESllKbk5xBKpc9wquI1fQ3F8qogqQ/mCr38g3pM/DAp3bY6TmbG0WVZuqCcrbEQVxCqPY4z3/RaXwKSPealbfpYZFtaOOXqthUSSPjXfyfHrL+ORXw/Bunr4H9jU2tqG8uXlNb+5ueGIDNncFHCBLezUBvgaOFFTrONuFw3GiZT1xEUK3S6oj5yfdW5srHmr1ziR+fDVEf6cK/6HPw0wOUyozQE9OTH41E5u/oHi1uGwC7TPaXsYwTyD+YZ1JIFJL0Cf00ZZT1zUZd31FAdv/IMbXPpnSxGTnD5dBP5ZExfDp8KfOAWuY2PMo/BkjiR/2BzJMfyzk2RPx4o5+BU/vyIMX/Uj1jbNNjI5/AQ3M9oQ0piKSHlg+qHxYVTibrljPiTEg4im4qOYiDyRWsNE/EGsroaicuiGmpQpbGFOTBceZ+aKF6NsDvIBsdUnJvlA0IAyuFsDrv9X/o+uwP8AfC1d4fAvAlwAAAAASUVORK5CYII="},UMiQ:function(t,a){},ZJuO:function(t,a){},enQE:function(t,a){},hlTV:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARIAAACsCAYAAAC3gCOSAAAAAXNSR0IArs4c6QAABHpJREFUeAHt2z1ywjAQBlDgCGlz/6OlzRFIcMvQ2Ja8P3o0mTBY2n3r2e67316fn9/n3/bXhwABAnsFvr8e98feh/yeAAEC7wIWybuI/wkQ2C1gkewm8wABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQI5BS4b2VJ/+YcztVVbSnOq+90Xw8BWZsec9QFgVABiySU3+UEeghYJD3mqAsCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQuJVL/0qoemsJ5BOQtck3ExURKCdgkZQbmYIJ5BOwSPLNREUECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgcEigXPr3UJceIrCQQERCXtZmoRdMqwRmCVgks2SdS2AhAYtkoWFrlQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAr0FpH97z3dadxEJ02nNOPi0gKzNaUIHECBgkXgHCBA4LWCRnCZ0AAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAjkEJD+zTGHj1VI2H5k8WVCAVmbhENREoFqAhZJtYmpl0BCAYsk4VCURIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQJHBKR/j6h5poyABPU1o5K1ucbZLQRaC1gkrcerOQLXCFgk1zi7hQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgSmC0j/Tid2AYF4gdkpaFmb+BmrgEB5AYuk/Ag1QCBewCKJn4EKCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQGCIgPTvEEaH7BGYnUTdU4vfjhGQtRnj6BQCSwtYJEuPX/MExghYJGMcnUKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEC4QLSv+EjUEAHgdUTzbI2Hd5iPRAIFrBIggfgegIdBCySDlPUAwECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAi8BKR/vQYEkglUTBLL2iR7iZRDoKKARVJxamomkEzAIkk2EOUQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAwFEB6d+jcp5rK1AxfRs9DFmb6Am4n0ADAYukwRC1QCBawCKJnoD7CRAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQGCQgPTvIEjHEFhVYEtLy9qsOn19ExgoYJEMxHQUgVUFLJJVJ69vAgMF/gFH7TRcgy9eyQAAAABJRU5ErkJggg=="},i4c9:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i={name:"total-preview",props:{activeBrand:{type:String,default:function(){return""}},loginData:{type:Object,default:function(){return{totalClerkCnt:"0",activeClerkCnt:"0",loginClerkCnt:"0",avgLoginTimes:"0",avgVisitTime:"",toDayLoginClerkCnt:"0"}}}},data:function(){return{dataObj:{}}},methods:{changeRoute:function(t){this.$router.push(t)}},watch:{loginData:function(t,a){this.dataObj=t}},mounted:function(){this.dataObj=this.loginData}},s={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ul",{staticClass:"flex flex-space-between"},[e("li",{staticClass:"data-total-cell today flex-1"},[e("div",{staticClass:"flex p-20-15"},[t._m(0),t._v(" "),e("div",{staticClass:"m-l-20"},[e("div",{staticClass:"cell-title"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"今日截至当前时间的登录人数。导购同时归属多家门店的记多人。更新频率 15 分钟",placement:"top-start"}},[e("span",{staticClass:"font-13 color-909399 cell-title-span",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[t._v("今日登录人数")])])],1),t._v(" "),e("div",{staticClass:"font-28 color-303133 cell-value font-din m-t-15"},[t._v(t._s(t.loginData.toDayLoginClerkCnt||"0"))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell w-m-192 flex-1"},[e("div",{staticClass:"flex p-20-15"},[t._m(1),t._v(" "),e("div",{staticClass:"m-l-20"},[e("div",{staticClass:"cell-title"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"截至昨日23:59:59统计出的昨日登录人数。导购同时归属多家门店的记多人。",placement:"top-start"}},[e("span",{staticClass:"font-13 color-909399 cell-title-span",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[t._v("昨日登录人数")])])],1),t._v(" "),e("div",{staticClass:"font-28 color-303133 cell-value font-din m-t-15"},[t._v(t._s(t.loginData.loginClerkCnt||"0"))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell w-m-220 flex-1"},[e("div",{staticClass:"flex p-20-15"},[t._m(2),t._v(" "),e("div",{staticClass:"m-l-20"},[e("div",{staticClass:"cell-title"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业下人均每日的登录次数。",placement:"top-start"}},[e("span",{staticClass:"font-13 color-909399 cell-title-span ",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[t._v("昨日人均登录次数")])])],1),t._v(" "),e("div",{staticClass:"font-28 color-303133 cell-value font-din m-t-15"},[t._v(t._s(t.loginData.avgLoginTimes||"0"))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell w-m-220 flex-1"},[e("div",{staticClass:"flex p-20-15"},[t._m(3),t._v(" "),e("div",{staticClass:"m-l-20"},[e("div",{staticClass:"cell-title"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业下人均每日的访问总时长。",placement:"top-start"}},[e("span",{staticClass:"font-13 color-909399 cell-title-span",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[t._v("昨日人均访问总时长")])])],1),t._v(" "),e("div",{staticClass:"font-28 color-303133 cell-value font-din m-t-15"},[t._v(t._s(t._f("formatTime")(t.loginData.avgVisitTime)))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell flex-1"},[e("div",{staticClass:"flex p-20-15"},[t._m(4),t._v(" "),e("div",{staticClass:"m-l-20"},[e("div",{staticClass:"cell-title"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业下所有门店的好办在职员工总人数,不区分门店状态",placement:"top-start"}},[e("span",{staticClass:"font-13 color-909399 cell-title-span",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[t._v("员工总人数")])])],1),t._v(" "),e("div",{staticClass:"font-28 color-303133 cell-value font-din m-t-15"},[t._v(t._s(t.loginData.totalClerkCnt||"0"))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell w-m-230 flex-1"},[e("div",{staticClass:"flex p-20-15"},[t._m(5),t._v(" "),e("div",{staticClass:"m-l-20"},[e("div",{staticClass:"cell-title"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"截至昨日好办上线门店企业员工近三天登录总人数",placement:"top-start"}},[e("span",{staticClass:"font-13 color-909399 cell-title-span",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[t._v("近三日活跃总人数")])])],1),t._v(" "),e("div",{staticClass:"font-28 color-303133 cell-value font-din m-t-15"},[t._v(t._s(t.loginData.activeClerkCnt||"0"))])])]),t._v(" "),e("div",{staticClass:"to-link-icon"},[e("el-tooltip",{attrs:{content:"活跃人员明细",placement:"top"}},[e("div",{staticClass:"detail-icon cursor-pointer flex flex-align-center flex-pack-center",on:{click:function(a){return t.changeRoute("/activeDetail?brandId="+t.activeBrand)}}},[e("span",{staticClass:"font-13 iconfont-hb3 iconmingxibeifen color-c0c4cc"})])])],1)])])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"m-w-55",attrs:{src:e("GSwY"),alt:""}})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"m-w-55",attrs:{src:e("R7yx"),alt:""}})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"m-w-55",attrs:{src:e("R7yx"),alt:""}})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"m-w-46",attrs:{src:e("CVxX"),alt:""}})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"m-w-46",attrs:{src:e("N1jj"),alt:""}})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"m-w-46",attrs:{src:e("N1jj"),alt:""}})])}]};var n=e("VU/8")(i,s,!1,function(t){e("ZJuO")},"data-v-dc2a5324",null).exports,c=e("jNLg"),r={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:null}},watch:{},methods:{}},l={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"bar-chart-body"},[t._m(0),t._v(" "),e("ul",t._l(t.charData,function(a,i){return e("li",{key:i+"process",staticClass:"cursor-pointer"},[e("div",{staticClass:"group-name font-12 color-000-45 m-b-4"},[t._v(t._s(a.storeGroupName))]),t._v(" "),e("el-tooltip",{attrs:{placement:"top"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("div",[e("div",{staticClass:"flex flex-space-between"},[e("span",{staticClass:"font-12 color-fff"},[t._v(t._s(a.storeGroupName))]),e("span",{staticClass:"font-12 color-fff p-l-40"},[t._v("登录率:"+t._s(a.loginRateString))])]),t._v(" "),e("div",{staticClass:"m-t-10"},[e("span",{staticClass:"process-tip-dot bg-e6ecfa"}),t._v(" "),e("span",{staticClass:"font-12 color-fff"},[t._v("员工人数:")]),t._v(" "),e("span",{staticClass:"font-12 color-fff"},[t._v(t._s(a.totalClerkCnt))])]),t._v(" "),e("div",{staticClass:"m-t-10"},[e("span",{staticClass:"process-tip-dot bg-597ef7"}),t._v(" "),e("span",{staticClass:"font-12 color-fff"},[t._v("登录人数:")]),t._v(" "),e("span",{staticClass:"font-12 color-fff"},[t._v(t._s(a.loginClerkCnt))])])])]),t._v(" "),e("div",{staticClass:"people-total"},[e("div",{staticClass:"flex people-total-bg"},[e("div",{staticClass:"login-total",style:{width:a.loginRateString}}),t._v(" "),e("div",{staticClass:"login-rate",style:{left:a.loginRateString}},[t._v(t._s(a.loginRateString))])])])])],1)}),0)])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"bar-legend m-b-20"},[a("span",{staticClass:"square-pot bg-597ef7"}),a("span",{staticClass:"font-12 color-8c8c8c p-l-5"},[this._v("登录员工数")]),a("span",{staticClass:"square-pot bg-e6ecfa m-l-40"}),a("span",{staticClass:"font-12 color-8c8c8c p-l-5"},[this._v("员工总数")])])}]};var o=e("VU/8")(r,l,!1,function(t){e("enQE")},"data-v-c614e1bc",null).exports,A=e("rbYK"),g=e("P9l9"),d=e("Ch4/"),f=e("Q0Ca"),v={name:"activeDetail",data:function(){return{selectTendDay:"",selectStartDay:"",selectEndDay:"",pickerOptions:{disabledDate:function(t){var a=Date.now()-6912e5;return t.getTime()>=Date.now()-864e5||t.getTime()<a}},activeBrand:"",loginData:{totalClerkCnt:"0",activeClerkCnt:"0",loginClerkCnt:"0",avgLoginTimes:"0",avgVisitTime:"",toDayLoginClerkCnt:"0"},tabActive:"1",charData:[],processData:[]}},computed:{},methods:{changeDate:function(){this.getTendData()},changeTab:function(t){this.tabActive=t,this.getTendData()},changeRoute:function(t){this.$router.push(t)},getLoginData:function(t){var a=this,e={enterpriseId:a.activeBrand,startDate:a.selectEndDay,endDate:a.selectEndDay};Object(g.b)("/haoban-manage3-web/web/total-activation-data",e).then(function(t){var e=t.data;if(1==e.errorCode)return e.result.avgVisitTime=parseInt(e.result.avgVisitTime),a.loginData=e.result||{totalClerkCnt:"0",activeClerkCnt:"0",loginClerkCnt:"0",avgLoginTimes:"0",avgVisitTime:"",toDayLoginClerkCnt:"0"},!1;d.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getTendData:function(t){var a=this,e={enterpriseId:a.activeBrand,datesType:a.tabActive,startDate:1==a.tabActive?a.selectStartDay:a.selectTendDay,endDate:1==a.tabActive?a.selectEndDay:a.selectTendDay};Object(g.b)("/haoban-manage3-web/web/total-login-data",e).then(function(t){var e=t.data;if(1==e.errorCode)return e.result.result&&e.result.result.forEach(function(t){t.bizDates=1==a.tabActive?t.bizDates.split("-")[1]+"-"+t.bizDates.split("-")[2]:t.bizDates,t.avgLoginTimes=parseInt(t.avgLoginTimes),t.avgVisitTime=parseInt(t.avgVisitTime)}),a.charData=e.result.result||[],!1;d.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getAreaLoginData:function(t){var a=this,e={enterpriseId:a.activeBrand,startDate:a.selectEndDay,endDate:a.selectEndDay};Object(g.b)("/haoban-manage3-web/web/area-login-ranking",e).then(function(t){var e=t.data;if(1==e.errorCode)return e.result.result,a.processData=e.result.result||[],!1;d.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.selectStartDay=f.a.timeStampToYmd((new Date).getTime()-6048e5),this.selectEndDay=f.a.timeStampToYmd((new Date).getTime()-864e5),this.selectTendDay=f.a.timeStampToYmd((new Date).getTime()-864e5),this.activeBrand=JSON.parse(sessionStorage.getItem("userInfos")).enterpriseId,this.getLoginData(),this.getTendData(),this.getAreaLoginData()},components:{totalPreview:n,dayLoginChart:c.a,areaProgress:o,timeLoginChart:A.a}},C={render:function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"my-customer-wrap common-set-wrap"},[i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"apps-content flex"},[i("div",{staticClass:"apps-content-right"},[t._m(0),t._v(" "),i("div",{staticClass:"data-total-view m-t-20"},[i("total-preview",{attrs:{activeBrand:t.activeBrand,loginData:t.loginData}})],1),t._v(" "),i("div",{staticClass:"chart-body m-t-32"},[i("div",{staticClass:"chart-wrap flex flex-space-between"},[i("div",{staticClass:"chart-left flex-1 border-box"},[i("div",{staticClass:"chart-top flex flex-space-between"},[i("div",{staticClass:"flex"},[i("div",{class:["font-14 font-w-bold cursor-pointer",1==t.tabActive?"color-303133":"color-909399"],on:{click:function(a){return t.changeTab("1")}}},[t._v("日访问趋势")]),t._v(" "),i("div",{class:["font-14 font-w-bold day-tend cursor-pointer",2==t.tabActive?"color-303133":"color-909399"],on:{click:function(a){return t.changeTab("2")}}},[t._v("日时段访问趋势")])]),t._v(" "),i("div",{staticClass:"cursor-pointer hover-link",on:{click:function(a){return t.changeRoute("/loginDetail?brandId="+t.activeBrand)}}},[i("span",{staticClass:"font-14 color-909399"},[t._v("查看登录人员明细")]),i("i",{staticClass:"el-icon-arrow-right el-icon--right font-14 color-909399"})])]),t._v(" "),2==t.tabActive?i("div",{staticClass:"date-div m-t-20"},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:t.changeDate},model:{value:t.selectTendDay,callback:function(a){t.selectTendDay=a},expression:"selectTendDay"}})],1):t._e(),t._v(" "),i("div",{staticClass:"chart-content m-t-20"},[t.charData.length?i("day-login-chart",{attrs:{charData:t.charData,id:"day-login-chart"}}):t._e(),t._v(" "),t.charData.length?t._e():i("div",{staticClass:"no-data-char m-t-90"},[i("img",{attrs:{src:e("QJEo"),alt:""}}),t._v(" "),i("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])]),t._v(" "),t.charData.length?i("div",{staticClass:"m-t-20"},[i("time-login-chart",{attrs:{charData:t.charData,id:"time-login-chart"}})],1):t._e(),t._v(" "),t.charData.length?t._e():i("div",{staticClass:"no-data-char m-t-150"},[i("img",{attrs:{src:e("QJEo"),alt:""}}),t._v(" "),i("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])])],1)]),t._v(" "),i("div",{staticClass:"chart-right flex-1 m-l-10 border-box"},[i("div",{staticClass:"chart-top flex flex-space-between"},[i("div",{staticClass:"font-14 color-303133 font-w-bold "},[t._v("昨日区域登录统计")]),t._v(" "),i("div",{staticClass:"cursor-pointer hover-link",on:{click:function(a){return t.changeRoute("/areaLoginDetail?brandId="+t.activeBrand)}}},[i("span",{staticClass:"font-14 color-909399"},[t._v("区域登录明细")]),i("i",{staticClass:"el-icon-arrow-right el-icon--right font-14 color-909399"})])]),t._v(" "),t.processData.length?i("div",{staticClass:"chart-content"},[i("area-progress",{attrs:{charData:t.processData,id:"a-chart"}})],1):t._e(),t._v(" "),t.processData.length?t._e():i("div",{staticClass:"no-data-char m-t-180"},[i("img",{staticClass:"w-274",attrs:{src:e("hlTV"),alt:""}}),t._v(" "),i("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])])])])])])])])])])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"flex flex-space-between"},[a("div",{staticClass:"flex flex-start"},[a("div",{staticClass:"font-16 color-303133 w-140 line-h-32 font-w-bold "},[this._v("好办使用详情")]),this._v(" "),a("div",{staticClass:"el-alert el-alert-tip el-alert--info flex flex-align-start",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("数据更新截至于昨日。今日数据需要隔天上午8点后进行查看。")])])])])])}]};var h=e("VU/8")(v,C,!1,function(t){e("nGgz")},"data-v-395fbe28",null);a.default=h.exports},jNLg:function(t,a,e){"use strict";var i=e("5i7M"),s=e("Q0Ca"),n={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:800}},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){this.chart&&this.chart.destroy(),this.chart=new i.a({container:this.id,width:this.width,autoFit:!0,height:280,padding:[50,80,60,60]}),this.chart.data(this.charData);var t=this.charData.length>7?15:25;this.chart.scale({avgVisitTime:{min:0,nice:!0,alias:"人均访问时长"},loginClerkCnt:{nice:!0,alias:"总登录人数"},bizDates:{}}),this.chart.annotation().text({top:!0,position:["-4%","-10%"],content:"登录人数",offsetX:0,offsetY:0}),this.chart.annotation().text({top:!0,position:["100%","-10%"],content:"访问时长",offsetX:0,offsetY:0}),this.chart.axis("avgVisitTime",{grid:null,title:null,label:{formatter:function(t){return s.a.formatTime(t)}}}),this.chart.axis("loginClerkCnt",{title:null,label:{formatter:function(t){return~String(t).indexOf(".")?"":t}}}),this.chart.tooltip({showCrosshairs:!0,shared:!0,itemTpl:'<li style="padding-bottom: 10px;><span style="background-color:{color};width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:8px;"></span>{name}: {value}</li>'}),this.chart.interval().position("bizDates*loginClerkCnt").color("#597EF7").size(t),this.chart.line().position("bizDates*avgVisitTime").color("#5ad8a6").tooltip("bizDates*avgVisitTime",function(t,a){return{name:"人均访问时长",value:s.a.formatTime(a)}}),this.chart.legend({position:"top",itemGap:20,custom:!0,items:[{value:"loginClerkCnt",name:"总登录人数",marker:{symbol:"square",style:{fill:"#597ef7",r:4}}},{value:"avgVisitTime",name:"人均访问时长",marker:{symbol:"hyphen",style:{stroke:"#5ad8a6",r:5,lineWidth:3}}}]}),this.chart.render()}}},c={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var r=e("VU/8")(n,c,!1,function(t){e("UMiQ")},"data-v-4325b8e5",null);a.a=r.exports},nGgz:function(t,a){},rbYK:function(t,a,e){"use strict";var i=e("5i7M"),s=e("Q0Ca"),n={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:800}},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){this.chart&&this.chart.destroy(),this.chart=new i.a({container:this.id,width:this.width,autoFit:!0,height:280,padding:[50,80,60,60]}),this.chart.data(this.charData);var t=this.charData.length>7?15:25;this.chart.scale({avgVisitTime:{min:0,nice:!0,alias:"人均访问时长"},avgLoginTimes:{nice:!0,alias:"平均每人登录次数"},bizDates:{}}),this.chart.annotation().text({top:!0,position:["-4%","-10%"],content:"登录次数",offsetX:0,offsetY:0}),this.chart.annotation().text({top:!0,position:["100%","-10%"],content:"访问时长",offsetX:0,offsetY:0}),this.chart.axis("avgVisitTime",{grid:null,title:null,label:{formatter:function(t){return s.a.formatTime(t)}}}),this.chart.axis("avgLoginTimes",{title:null,label:{formatter:function(t){return~String(t).indexOf(".")?"":t}}}),this.chart.tooltip({showCrosshairs:!0,shared:!0,itemTpl:'<li style="padding-bottom: 10px;><span style="background-color:{color};width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:8px;"></span>{name}: {value}</li>'}),this.chart.interval().position("bizDates*avgLoginTimes").color("#597EF7").size(t),this.chart.line().position("bizDates*avgVisitTime").color("#5ad8a6").tooltip("bizDates*avgVisitTime",function(t,a){return{name:"人均访问时长",value:s.a.formatTime(a)}}),this.chart.legend({position:"top",itemGap:20,custom:!0,items:[{value:"avgLoginTimes",name:"平均每人登录次数",marker:{symbol:"square",style:{fill:"#597ef7",r:4}}},{value:"avgVisitTime",name:"人均访问时长",marker:{symbol:"hyphen",style:{stroke:"#5ad8a6",r:5,lineWidth:3}}}]}),this.chart.render()}}},c={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var r=e("VU/8")(n,c,!1,function(t){e("rdGf")},"data-v-61dad336",null);a.a=r.exports},rdGf:function(t,a){}});
\ No newline at end of file
webpackJsonp([5],{CVxX:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAYAAABXuSs3AAAAAXNSR0IArs4c6QAABmBJREFUaAXVWmtsFFUU/u5237t9QqMoghApppVXKRKgCEEjL0GjaQJCgtKKJhD5IQaQRAyJJkaIkQQ0AioRE0IQgwFFQiAgJRAexUepoLzkUaGULrvd92M8Z5bBYdntzLS7kZ5kOjN37j33mzPnfPfcsxW4LZIkiUAIdZKEWkmgAhLcyrP/9SzQLiQ0CoENTjvWC0F3JIL/+CWplxTCJgI9ge/vVyHwe4Uds11CNAu2tD+EPfc7aMWYDN5lxzPCH5ReS0j4XHnQHc4mgXmiPSAdJqcZ2R0AKxjJ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fpYZFtaOOXqthUSSPjXfyfHrL+ORXw/Bunr4H9jU2tqG8uXlNb+5ueGIDNncFHCBLezUBvgaOFFTrONuFw3GiZT1xEUK3S6oj5yfdW5srHmr1ziR+fDVEf6cK/6HPw0wOUyozQE9OTH41E5u/oHi1uGwC7TPaXsYwTyD+YZ1JIFJL0Cf00ZZT1zUZd31FAdv/IMbXPpnSxGTnD5dBP5ZExfDp8KfOAWuY2PMo/BkjiR/2BzJMfyzk2RPx4o5+BU/vyIMX/Uj1jbNNjI5/AQ3M9oQ0piKSHlg+qHxYVTibrljPiTEg4im4qOYiDyRWsNE/EGsroaicuiGmpQpbGFOTBceZ+aKF6NsDvIBsdUnJvlA0IAyuFsDrv9X/o+uwP8AfC1d4fAvAlwAAAAASUVORK5CYII="},Xevq:function(t,a){},ZJuO:function(t,a){},enQE:function(t,a){},hlTV:function(t,a){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARIAAACsCAYAAAC3gCOSAAAAAXNSR0IArs4c6QAABHpJREFUeAHt2z1ywjAQBlDgCGlz/6OlzRFIcMvQ2Ja8P3o0mTBY2n3r2e67316fn9/n3/bXhwABAnsFvr8e98feh/yeAAEC7wIWybuI/wkQ2C1gkewm8wABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQI5BS4b2VJ/+YcztVVbSnOq+90Xw8BWZsec9QFgVABiySU3+UEeghYJD3mqAsCBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQuJVL/0qoemsJ5BOQtck3ExURKCdgkZQbmYIJ5BOwSPLNREUECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgcEigXPr3UJceIrCQQERCXtZmoRdMqwRmCVgks2SdS2AhAYtkoWFrlQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAr0FpH97z3dadxEJ02nNOPi0gKzNaUIHECBgkXgHCBA4LWCRnCZ0AAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAjkEJD+zTGHj1VI2H5k8WVCAVmbhENREoFqAhZJtYmpl0BCAYsk4VCURIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQJHBKR/j6h5poyABPU1o5K1ucbZLQRaC1gkrcerOQLXCFgk1zi7hQABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgQIECBAgAABAgSmC0j/Tid2AYF4gdkpaFmb+BmrgEB5AYuk/Ag1QCBewCKJn4EKCBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQGCIgPTvEEaH7BGYnUTdU4vfjhGQtRnj6BQCSwtYJEuPX/MExghYJGMcnUKAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAEC4QLSv+EjUEAHgdUTzbI2Hd5iPRAIFrBIggfgegIdBCySDlPUAwECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAi8BKR/vQYEkglUTBLL2iR7iZRDoKKARVJxamomkEzAIkk2EOUQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAAAECBAgQIECAwFEB6d+jcp5rK1AxfRs9DFmb6Am4n0ADAYukwRC1QCBawCKJnoD7CRAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQIAAAQIECBAgQGCQgPTvIEjHEFhVYEtLy9qsOn19ExgoYJEMxHQUgVUFLJJVJ69vAgMF/gFH7TRcgy9eyQAAAABJRU5ErkJggg=="},i4c9:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var i={name:"total-preview",props:{activeBrand:{type:String,default:function(){return""}},loginData:{type:Object,default:function(){return{totalClerkCnt:"0",activeClerkCnt:"0",loginClerkCnt:"0",avgLoginTimes:"0",avgVisitTime:"",toDayLoginClerkCnt:"0"}}}},data:function(){return{dataObj:{}}},methods:{changeRoute:function(t){this.$router.push(t)}},watch:{loginData:function(t,a){this.dataObj=t}},mounted:function(){this.dataObj=this.loginData}},s={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ul",{staticClass:"flex flex-space-between"},[e("li",{staticClass:"data-total-cell today flex-1"},[e("div",{staticClass:"flex p-20-15"},[t._m(0),t._v(" "),e("div",{staticClass:"m-l-20"},[e("div",{staticClass:"cell-title"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"今日截至当前时间的登录人数。导购同时归属多家门店的记多人。更新频率 15 分钟",placement:"top-start"}},[e("span",{staticClass:"font-13 color-909399 cell-title-span",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[t._v("今日登录人数")])])],1),t._v(" "),e("div",{staticClass:"font-28 color-303133 cell-value font-din m-t-15"},[t._v(t._s(t.loginData.toDayLoginClerkCnt||"0"))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell w-m-192 flex-1"},[e("div",{staticClass:"flex p-20-15"},[t._m(1),t._v(" "),e("div",{staticClass:"m-l-20"},[e("div",{staticClass:"cell-title"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"截至昨日23:59:59统计出的昨日登录人数。导购同时归属多家门店的记多人。",placement:"top-start"}},[e("span",{staticClass:"font-13 color-909399 cell-title-span",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[t._v("昨日登录人数")])])],1),t._v(" "),e("div",{staticClass:"font-28 color-303133 cell-value font-din m-t-15"},[t._v(t._s(t.loginData.loginClerkCnt||"0"))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell w-m-220 flex-1"},[e("div",{staticClass:"flex p-20-15"},[t._m(2),t._v(" "),e("div",{staticClass:"m-l-20"},[e("div",{staticClass:"cell-title"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业下人均每日的登录次数。",placement:"top-start"}},[e("span",{staticClass:"font-13 color-909399 cell-title-span ",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[t._v("昨日人均登录次数")])])],1),t._v(" "),e("div",{staticClass:"font-28 color-303133 cell-value font-din m-t-15"},[t._v(t._s(t.loginData.avgLoginTimes||"0"))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell w-m-220 flex-1"},[e("div",{staticClass:"flex p-20-15"},[t._m(3),t._v(" "),e("div",{staticClass:"m-l-20"},[e("div",{staticClass:"cell-title"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业下人均每日的访问总时长。",placement:"top-start"}},[e("span",{staticClass:"font-13 color-909399 cell-title-span",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[t._v("昨日人均访问总时长")])])],1),t._v(" "),e("div",{staticClass:"font-28 color-303133 cell-value font-din m-t-15"},[t._v(t._s(t._f("formatTime")(t.loginData.avgVisitTime)))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell flex-1"},[e("div",{staticClass:"flex p-20-15"},[t._m(4),t._v(" "),e("div",{staticClass:"m-l-20"},[e("div",{staticClass:"cell-title"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"企业下所有门店的好办在职员工总人数,不区分门店状态",placement:"top-start"}},[e("span",{staticClass:"font-13 color-909399 cell-title-span",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[t._v("员工总人数")])])],1),t._v(" "),e("div",{staticClass:"font-28 color-303133 cell-value font-din m-t-15"},[t._v(t._s(t.loginData.totalClerkCnt||"0"))])])])]),t._v(" "),e("li",{staticClass:"data-total-cell w-m-230 flex-1"},[e("div",{staticClass:"flex p-20-15"},[t._m(5),t._v(" "),e("div",{staticClass:"m-l-20"},[e("div",{staticClass:"cell-title"},[e("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"截至昨日好办上线门店企业员工近三天登录总人数",placement:"top-start"}},[e("span",{staticClass:"font-13 color-909399 cell-title-span",staticStyle:{cursor:"pointer","padding-bottom":"2px"}},[t._v("近三日活跃总人数")])])],1),t._v(" "),e("div",{staticClass:"font-28 color-303133 cell-value font-din m-t-15"},[t._v(t._s(t.loginData.activeClerkCnt||"0"))])])]),t._v(" "),e("div",{staticClass:"to-link-icon"},[e("el-tooltip",{attrs:{content:"活跃人员明细",placement:"top"}},[e("div",{staticClass:"detail-icon cursor-pointer flex flex-align-center flex-pack-center",on:{click:function(a){return t.changeRoute("/activeDetail?brandId="+t.activeBrand)}}},[e("span",{staticClass:"font-13 iconfont-hb3 iconmingxibeifen color-c0c4cc"})])])],1)])])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"m-w-55",attrs:{src:e("GSwY"),alt:""}})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"m-w-55",attrs:{src:e("R7yx"),alt:""}})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"m-w-55",attrs:{src:e("R7yx"),alt:""}})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"m-w-46",attrs:{src:e("CVxX"),alt:""}})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"m-w-46",attrs:{src:e("N1jj"),alt:""}})])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",[a("img",{staticClass:"m-w-46",attrs:{src:e("N1jj"),alt:""}})])}]};var n=e("VU/8")(i,s,!1,function(t){e("ZJuO")},"data-v-dc2a5324",null).exports,c=e("jNLg"),r={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:null}},watch:{},methods:{}},l={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"bar-chart-body"},[t._m(0),t._v(" "),e("ul",t._l(t.charData,function(a,i){return e("li",{key:i+"process",staticClass:"cursor-pointer"},[e("div",{staticClass:"group-name font-12 color-000-45 m-b-4"},[t._v(t._s(a.storeGroupName))]),t._v(" "),e("el-tooltip",{attrs:{placement:"top"}},[e("div",{attrs:{slot:"content"},slot:"content"},[e("div",[e("div",{staticClass:"flex flex-space-between"},[e("span",{staticClass:"font-12 color-fff"},[t._v(t._s(a.storeGroupName))]),e("span",{staticClass:"font-12 color-fff p-l-40"},[t._v("登录率:"+t._s(a.loginRateString))])]),t._v(" "),e("div",{staticClass:"m-t-10"},[e("span",{staticClass:"process-tip-dot bg-e6ecfa"}),t._v(" "),e("span",{staticClass:"font-12 color-fff"},[t._v("员工人数:")]),t._v(" "),e("span",{staticClass:"font-12 color-fff"},[t._v(t._s(a.totalClerkCnt))])]),t._v(" "),e("div",{staticClass:"m-t-10"},[e("span",{staticClass:"process-tip-dot bg-597ef7"}),t._v(" "),e("span",{staticClass:"font-12 color-fff"},[t._v("登录人数:")]),t._v(" "),e("span",{staticClass:"font-12 color-fff"},[t._v(t._s(a.loginClerkCnt))])])])]),t._v(" "),e("div",{staticClass:"people-total"},[e("div",{staticClass:"flex people-total-bg"},[e("div",{staticClass:"login-total",style:{width:a.loginRateString}}),t._v(" "),e("div",{staticClass:"login-rate",style:{left:a.loginRateString}},[t._v(t._s(a.loginRateString))])])])])],1)}),0)])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"bar-legend m-b-20"},[a("span",{staticClass:"square-pot bg-597ef7"}),a("span",{staticClass:"font-12 color-8c8c8c p-l-5"},[this._v("登录员工数")]),a("span",{staticClass:"square-pot bg-e6ecfa m-l-40"}),a("span",{staticClass:"font-12 color-8c8c8c p-l-5"},[this._v("员工总数")])])}]};var o=e("VU/8")(r,l,!1,function(t){e("enQE")},"data-v-c614e1bc",null).exports,A=e("rbYK"),g=e("P9l9"),d=e("Ch4/"),f=e("Q0Ca"),v={name:"activeDetail",data:function(){return{selectTendDay:"",selectStartDay:"",selectEndDay:"",pickerOptions:{disabledDate:function(t){var a=Date.now()-6912e5;return t.getTime()>=Date.now()-864e5||t.getTime()<a}},activeBrand:"",loginData:{totalClerkCnt:"0",activeClerkCnt:"0",loginClerkCnt:"0",avgLoginTimes:"0",avgVisitTime:"",toDayLoginClerkCnt:"0"},tabActive:"1",charData:[],processData:[]}},computed:{},methods:{changeDate:function(){this.getTendData()},changeTab:function(t){this.tabActive=t,this.getTendData()},changeRoute:function(t){this.$router.push(t)},getLoginData:function(t){var a=this,e={enterpriseId:a.activeBrand,startDate:a.selectEndDay,endDate:a.selectEndDay};Object(g.b)("/haoban-manage3-web/web/total-activation-data",e).then(function(t){var e=t.data;if(1==e.errorCode)return e.result.avgVisitTime=parseInt(e.result.avgVisitTime),a.loginData=e.result||{totalClerkCnt:"0",activeClerkCnt:"0",loginClerkCnt:"0",avgLoginTimes:"0",avgVisitTime:"",toDayLoginClerkCnt:"0"},!1;d.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getTendData:function(t){var a=this,e={enterpriseId:a.activeBrand,datesType:a.tabActive,startDate:1==a.tabActive?a.selectStartDay:a.selectTendDay,endDate:1==a.tabActive?a.selectEndDay:a.selectTendDay};Object(g.b)("/haoban-manage3-web/web/total-login-data",e).then(function(t){var e=t.data;if(1==e.errorCode)return e.result.result&&e.result.result.forEach(function(t){t.bizDates=1==a.tabActive?t.bizDates.split("-")[1]+"-"+t.bizDates.split("-")[2]:t.bizDates,t.avgLoginTimes=parseInt(t.avgLoginTimes),t.avgVisitTime=parseInt(t.avgVisitTime)}),a.charData=e.result.result||[],!1;d.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getAreaLoginData:function(t){var a=this,e={enterpriseId:a.activeBrand,startDate:a.selectEndDay,endDate:a.selectEndDay};Object(g.b)("/haoban-manage3-web/web/area-login-ranking",e).then(function(t){var e=t.data;if(1==e.errorCode)return e.result.result,a.processData=e.result.result||[],!1;d.a.errorMsg(e)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.selectStartDay=f.a.timeStampToYmd((new Date).getTime()-6048e5),this.selectEndDay=f.a.timeStampToYmd((new Date).getTime()-864e5),this.selectTendDay=f.a.timeStampToYmd((new Date).getTime()-864e5),this.activeBrand=JSON.parse(sessionStorage.getItem("userInfos")).enterpriseId,this.getLoginData(),this.getTendData(),this.getAreaLoginData()},components:{totalPreview:n,dayLoginChart:c.a,areaProgress:o,timeLoginChart:A.a}},C={render:function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"my-customer-wrap common-set-wrap"},[i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"apps-content flex"},[i("div",{staticClass:"apps-content-right"},[t._m(0),t._v(" "),i("div",{staticClass:"data-total-view m-t-20"},[i("total-preview",{attrs:{activeBrand:t.activeBrand,loginData:t.loginData}})],1),t._v(" "),i("div",{staticClass:"chart-body m-t-32"},[i("div",{staticClass:"chart-wrap flex flex-space-between"},[i("div",{staticClass:"chart-left flex-1 border-box"},[i("div",{staticClass:"chart-top flex flex-space-between"},[i("div",{staticClass:"flex"},[i("div",{class:["font-14 font-w-bold cursor-pointer",1==t.tabActive?"color-303133":"color-909399"],on:{click:function(a){return t.changeTab("1")}}},[t._v("日访问趋势")]),t._v(" "),i("div",{class:["font-14 font-w-bold day-tend cursor-pointer",2==t.tabActive?"color-303133":"color-909399"],on:{click:function(a){return t.changeTab("2")}}},[t._v("日时段访问趋势")])]),t._v(" "),i("div",{staticClass:"cursor-pointer hover-link",on:{click:function(a){return t.changeRoute("/loginDetail?brandId="+t.activeBrand)}}},[i("span",{staticClass:"font-14 color-909399"},[t._v("查看登录人员明细")]),i("i",{staticClass:"el-icon-arrow-right el-icon--right font-14 color-909399"})])]),t._v(" "),2==t.tabActive?i("div",{staticClass:"date-div m-t-20"},[i("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期",clearable:!1,"picker-options":t.pickerOptions},on:{change:t.changeDate},model:{value:t.selectTendDay,callback:function(a){t.selectTendDay=a},expression:"selectTendDay"}})],1):t._e(),t._v(" "),i("div",{staticClass:"chart-content m-t-20"},[t.charData.length?i("day-login-chart",{attrs:{charData:t.charData,id:"day-login-chart"}}):t._e(),t._v(" "),t.charData.length?t._e():i("div",{staticClass:"no-data-char m-t-90"},[i("img",{attrs:{src:e("QJEo"),alt:""}}),t._v(" "),i("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])]),t._v(" "),t.charData.length?i("div",{staticClass:"m-t-20"},[i("time-login-chart",{attrs:{charData:t.charData,id:"time-login-chart"}})],1):t._e(),t._v(" "),t.charData.length?t._e():i("div",{staticClass:"no-data-char m-t-150"},[i("img",{attrs:{src:e("QJEo"),alt:""}}),t._v(" "),i("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])])],1)]),t._v(" "),i("div",{staticClass:"chart-right flex-1 m-l-10 border-box"},[i("div",{staticClass:"chart-top flex flex-space-between"},[i("div",{staticClass:"font-14 color-303133 font-w-bold "},[t._v("昨日区域登录统计")]),t._v(" "),i("div",{staticClass:"cursor-pointer hover-link",on:{click:function(a){return t.changeRoute("/areaLoginDetail?brandId="+t.activeBrand)}}},[i("span",{staticClass:"font-14 color-909399"},[t._v("区域登录明细")]),i("i",{staticClass:"el-icon-arrow-right el-icon--right font-14 color-909399"})])]),t._v(" "),t.processData.length?i("div",{staticClass:"chart-content"},[i("area-progress",{attrs:{charData:t.processData,id:"a-chart"}})],1):t._e(),t._v(" "),t.processData.length?t._e():i("div",{staticClass:"no-data-char m-t-180"},[i("img",{staticClass:"w-274",attrs:{src:e("hlTV"),alt:""}}),t._v(" "),i("p",{staticClass:"font-12 color-c0c4cc m-t-20"},[t._v("- 暂无数据 -")])])])])])])])])])])},staticRenderFns:[function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"flex flex-space-between"},[a("div",{staticClass:"flex flex-start"},[a("div",{staticClass:"font-16 color-303133 w-140 line-h-32 font-w-bold "},[this._v("好办使用详情")]),this._v(" "),a("div",{staticClass:"el-alert el-alert-tip el-alert--info flex flex-align-start",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("数据更新截至于昨日。今日数据需要隔天上午8点后进行查看。")])])])])])}]};var h=e("VU/8")(v,C,!1,function(t){e("nGgz")},"data-v-395fbe28",null);a.default=h.exports},jNLg:function(t,a,e){"use strict";var i=e("5i7M"),s=e("Q0Ca"),n={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:800}},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){this.chart&&this.chart.destroy(),this.chart=new i.a({container:this.id,width:this.width,autoFit:!0,height:280,padding:[50,80,60,60]}),this.chart.data(this.charData);var t=this.charData.length>7?15:25;this.chart.scale({avgVisitTime:{min:0,nice:!0,alias:"人均访问时长"},loginClerkCnt:{nice:!0,alias:"总登录人数"},bizDates:{}}),this.chart.annotation().text({top:!0,position:["-4%","-10%"],content:"登录人数",offsetX:0,offsetY:0}),this.chart.annotation().text({top:!0,position:["100%","-10%"],content:"访问时长",offsetX:0,offsetY:0}),this.chart.axis("avgVisitTime",{grid:null,title:null,label:{formatter:function(t){return s.a.formatTime(t)}}}),this.chart.axis("loginClerkCnt",{title:null,label:{formatter:function(t){return~String(t).indexOf(".")?"":t}}}),this.chart.tooltip({showCrosshairs:!0,shared:!0,itemTpl:'<li style="padding-bottom: 10px;><span style="background-color:{color};width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:8px;"></span>{name}: {value}</li>'}),this.chart.interval().position("bizDates*loginClerkCnt").color("#597EF7").size(t),this.chart.line().position("bizDates*avgVisitTime").color("#5ad8a6").tooltip("bizDates*avgVisitTime",function(t,a){return{name:"人均访问时长",value:s.a.formatTime(a)}}),this.chart.legend({position:"top",itemGap:20,custom:!0,items:[{value:"loginClerkCnt",name:"总登录人数",marker:{symbol:"square",style:{fill:"#597ef7",r:4}}},{value:"avgVisitTime",name:"人均访问时长",marker:{symbol:"hyphen",style:{stroke:"#5ad8a6",r:5,lineWidth:3}}}]}),this.chart.render()}}},c={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var r=e("VU/8")(n,c,!1,function(t){e("Xevq")},"data-v-2e746f7c",null);a.a=r.exports},nGgz:function(t,a){},rbYK:function(t,a,e){"use strict";var i=e("5i7M"),s=e("Q0Ca"),n={data:function(){return{chart:null}},props:{charData:{type:Array,default:function(){return[]}},id:String,width:{type:Number,default:800}},mounted:function(){var t=this;setTimeout(function(){t.drawChart()},30)},beforeUpdate:function(){this.drawChart()},watch:{charData:function(){this.drawChart()}},methods:{drawChart:function(){this.chart&&this.chart.destroy(),this.chart=new i.a({container:this.id,width:this.width,autoFit:!0,height:280,padding:[50,80,60,60]}),this.chart.data(this.charData);var t=this.charData.length>7?15:25;this.chart.scale({avgVisitTime:{min:0,nice:!0,alias:"人均访问时长"},avgLoginTimes:{nice:!0,alias:"平均每人登录次数"},bizDates:{}}),this.chart.annotation().text({top:!0,position:["-4%","-10%"],content:"登录次数",offsetX:0,offsetY:0}),this.chart.annotation().text({top:!0,position:["100%","-10%"],content:"访问时长",offsetX:0,offsetY:0}),this.chart.axis("avgVisitTime",{grid:null,title:null,label:{formatter:function(t){return s.a.formatTime(t)}}}),this.chart.axis("avgLoginTimes",{title:null,label:{formatter:function(t){return~String(t).indexOf(".")?"":t}}}),this.chart.tooltip({showCrosshairs:!0,shared:!0,itemTpl:'<li style="padding-bottom: 10px;><span style="background-color:{color};width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:8px;"></span>{name}: {value}</li>'}),this.chart.interval().position("bizDates*avgLoginTimes").color("#597EF7").size(t),this.chart.line().position("bizDates*avgVisitTime").color("#5ad8a6").tooltip("bizDates*avgVisitTime",function(t,a){return{name:"人均访问时长",value:s.a.formatTime(a)}}),this.chart.legend({position:"top",itemGap:20,custom:!0,items:[{value:"avgLoginTimes",name:"平均每人登录次数",marker:{symbol:"square",style:{fill:"#597ef7",r:4}}},{value:"avgVisitTime",name:"人均访问时长",marker:{symbol:"hyphen",style:{stroke:"#5ad8a6",r:5,lineWidth:3}}}]}),this.chart.render()}}},c={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:this.id}})},staticRenderFns:[]};var r=e("VU/8")(n,c,!1,function(t){e("NebN")},"data-v-9eaa33dc",null);a.a=r.exports}});
\ No newline at end of file
webpackJsonp([108],{J8JM:function(e,t){},Uvr8:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Dd8w"),s=a.n(n),l=a("P9l9"),i=a("3E4D"),o=a("Ch4/"),r=a("PI0u"),c={name:"taskList",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{selectRadio:2,tableRefresh:!1,multipleSelection:[],dateStart:(new Date).getTime()-31536e6,dateEnd:new Date,loading:!1,pageParams:{pageNum:1,pageSize:20,taskType:2,ecmPlanName:"",date:this.$store.state.salesDate},total:0,tableData:[],pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()<t.getTime()-31536e6||e.getTime()>t.getTime()-864e5}},loadingBtn:!1}},computed:{},methods:{handleSelectionChange:function(e){this.multipleSelection=e,!e.length&&(this.selectRadio=2)},handleCommand:function(e){var t=this;this.selectRadio=e,this.tableRefresh=!this.tableRefresh,1==e||0==e?this.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):2==e&&this.$refs.multipleTable.clearSelection()},exportExcel:function(e){var t=this;if(!this.multipleSelection.length)return i.a.showmsg("请选择计划","warning"),!1;this.loadingBtn=!0;var a=s()({},this.pageParams,{enterpriseId:this.brandId,qywxEnterpriseId:JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId,selectType:this.selectRadio,selectIdList:1==this.selectRadio?"":this.multipleSelection.map(function(e){return e.ecmPlanId}).join(",")});Array.isArray(a.date)&&(a.startTime=a.date[0],a.endTime=a.date[1],delete a.date),Object(l.c)("/haoban-task-manage-web/market/clue/export/plan-view",a).then(function(e){if(t.loadingBtn=!1,!e.data)return o.a.errorMsg("暂无数据"),!1;var n=new Blob([e.data],{type:"application/vnd.ms-excel"}),s=t.pageParams.date.length?"群发任务-计划视图_"+a.startTime+"至"+a.endTime+".xls":"群发任务-计划视图.xls",l=document.createElement("a");l.download=s,l.style.display="none",l.href=URL.createObjectURL(n),document.body.appendChild(l),l.click(),URL.revokeObjectURL(l.href),document.body.removeChild(l)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})}).finally(function(){t.loadingBtn=!1})},changeRoute:function(e){this.$router.push(e)},reFetch:Object(r.a)(function(e,t){this.pageParams.pageNum=1,this.getTableList()},500),changeDate:function(e){e?this.$store.dispatch("changeSales",e):(this.pageParams.date=[],this.$store.dispatch("changeSales",[])),this.pageParams.pageNum=1,this.getTableList()},handleSizeChange:function(e){this.pageParams.pageNum=1,this.pageParams.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.pageParams.pageNum=e,this.getTableList()},getTableList:function(e){var t=this;t.loading=!0;var a=s()({},t.pageParams,{enterpriseId:this.brandId,qywxEnterpriseId:JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId});a.date&&(a.startTime=a.date[0],a.endTime=a.date[1],delete a.date),Object(l.b)("/haoban-task-manage-web/market/clue/web/plan-list",a).then(function(e){t.loading=!1;var a=e.data;1==a.errorCode&&a.result?(t.tableData=a.result.list||[],t.total=a.result.pageInfo?a.result.pageInfo.total:0):(t.tableData=[],o.a.errorMsg(a))}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},showDetail:function(e){this.$router.push("grStoreList?ecmPlanId="+e.ecmPlanId+"&ecmPlanName="+e.ecmPlanName)}},watch:{brandId:function(e){this.getTableList()}},mounted:function(){this.getTableList()}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"apps-content flex"},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"overstore-body"},[a("div",{staticClass:"overstore-tip"},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start ",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-warning font-12 color-2f54eb"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-303133 font-13"},[e._v("仅展示近一年数据,数据截取时间:"+e._s(e._f("timeStampToYmd2")(e.dateStart))+" 至 "+e._s(e._f("timeStampToYmd2")(e.dateEnd)))])])]),e._v(" "),a("el-popover",{attrs:{placement:"bottom-start",width:"550",trigger:"click","popper-class":"salesleads-popover"}},[a("div",{staticClass:"tips-content"},[e._v("只统计通过GIC创建的群发,不包含在企业微信创建的群发及门店创建的群发")]),e._v(" "),a("div",{staticClass:"tips flex flex-align-center",attrs:{slot:"reference",role:"tips"},slot:"reference"},[a("i",{staticClass:"el-icon-warning-outline font-14 color-2f54eb"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[e._v("查看指标说明")])])])],1),e._v(" "),a("div",{staticClass:"table-condition-search flex flex-space-between m-t-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入计划名称","prefix-icon":"el-icon-search",clearable:""},on:{change:e.reFetch,clear:e.clearInput},model:{value:e.pageParams.ecmPlanName,callback:function(t){e.$set(e.pageParams,"ecmPlanName",t)},expression:"pageParams.ecmPlanName"}}),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.pageParams.date,callback:function(t){e.$set(e.pageParams,"date",t)},expression:"pageParams.date"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[e.$getButtonLimit(e.$buttonCode.exportGrTaskList)?a("el-button",{attrs:{"limit-code":e.$buttonCode.exportGrTaskList,loading:e.loadingBtn,type:"primary"},on:{click:e.exportExcel}},[e._v("导出")]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:e.tableRefresh,ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45","class-name":1==e.selectRadio?"cell-disabled":"font-size-zero"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont-hb3 icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":0,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择当页")])],1),e._v(" "),a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择全部")])],1)],1)],1)]},proxy:!0},{key:"default",fn:function(t){return[e._v(e._s(" "))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计划名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ecmPlanName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCnt||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.cplTaskCnt||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s((100*t.row.completionRate).toFixed(2)+"%"||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.waitFinishCount||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中/逾期失效"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ovincplTaskCnt||"--")+"/"+e._s(t.row.invalidCount||"--"))]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.checkGrTaskList)?a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.checkGrTaskList)?a("el-button",{attrs:{"limit-code":e.$buttonCode.checkGrTaskList,type:"text"},on:{click:function(a){return e.showDetail(t.row)}}},[e._v("查看详情")]):e._e()]}}])}):e._e()],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.pageParams.pageNum,"page-sizes":[20,40,60,80],"page-size":e.pageParams.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])])])])])},staticRenderFns:[]};var p=a("VU/8")(c,d,!1,function(e){a("J8JM")},"data-v-23af4844",null);t.default=p.exports}}); webpackJsonp([65],{ASFO:function(e,t){},Uvr8:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("Dd8w"),s=a.n(n),l=a("P9l9"),i=a("3E4D"),o=a("Ch4/"),r=a("PI0u"),c={name:"taskList",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{selectRadio:2,tableRefresh:!1,multipleSelection:[],dateStart:(new Date).getTime()-31536e6,dateEnd:new Date,loading:!1,pageParams:{pageNum:1,pageSize:20,taskType:2,ecmPlanName:"",date:this.$store.state.salesDate},total:0,tableData:[],pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()<t.getTime()-31536e6||e.getTime()>t.getTime()-864e5}},loadingBtn:!1}},computed:{},methods:{handleSelectionChange:function(e){this.multipleSelection=e,!e.length&&(this.selectRadio=2)},handleCommand:function(e){var t=this;this.selectRadio=e,this.tableRefresh=!this.tableRefresh,1==e||0==e?this.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):2==e&&this.$refs.multipleTable.clearSelection()},exportExcel:function(e){var t=this;if(!this.multipleSelection.length)return i.a.showmsg("请选择计划","warning"),!1;this.loadingBtn=!0;var a=s()({},this.pageParams,{enterpriseId:this.brandId,qywxEnterpriseId:JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId,selectType:this.selectRadio,selectIdList:1==this.selectRadio?"":this.multipleSelection.map(function(e){return e.ecmPlanId}).join(",")});Array.isArray(a.date)&&(a.startTime=a.date[0],a.endTime=a.date[1],delete a.date),Object(l.c)("/haoban-task-manage-web/market/clue/export/plan-view",a).then(function(e){if(t.loadingBtn=!1,!e.data)return o.a.errorMsg("暂无数据"),!1;var n=new Blob([e.data],{type:"application/vnd.ms-excel"}),s=t.pageParams.date.length?"群发任务-计划视图_"+a.startTime+"至"+a.endTime+".xls":"群发任务-计划视图.xls",l=document.createElement("a");l.download=s,l.style.display="none",l.href=URL.createObjectURL(n),document.body.appendChild(l),l.click(),URL.revokeObjectURL(l.href),document.body.removeChild(l)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})}).finally(function(){t.loadingBtn=!1})},changeRoute:function(e){this.$router.push(e)},reFetch:Object(r.a)(function(e,t){this.pageParams.pageNum=1,this.getTableList()},500),changeDate:function(e){e?this.$store.dispatch("changeSales",e):(this.pageParams.date=[],this.$store.dispatch("changeSales",[])),this.pageParams.pageNum=1,this.getTableList()},handleSizeChange:function(e){this.pageParams.pageNum=1,this.pageParams.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.pageParams.pageNum=e,this.getTableList()},getTableList:function(e){var t=this;t.loading=!0;var a=s()({},t.pageParams,{enterpriseId:this.brandId,qywxEnterpriseId:JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId});a.date&&(a.startTime=a.date[0],a.endTime=a.date[1],delete a.date),Object(l.b)("/haoban-task-manage-web/market/clue/web/plan-list",a).then(function(e){t.loading=!1;var a=e.data;1==a.errorCode&&a.result?(t.tableData=a.result.list||[],t.total=a.result.pageInfo?a.result.pageInfo.total:0):(t.tableData=[],o.a.errorMsg(a))}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},showDetail:function(e){this.$router.push("/grStoreList?ecmPlanId="+e.ecmPlanId+"&ecmPlanName="+e.ecmPlanName)}},watch:{brandId:function(e){this.getTableList()}},mounted:function(){this.getTableList()}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"apps-content flex"},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"overstore-body"},[a("div",{staticClass:"overstore-tip"},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start ",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-warning font-12 color-2f54eb"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-303133 font-13"},[e._v("仅展示近一年数据,数据截取时间:"+e._s(e._f("timeStampToYmd2")(e.dateStart))+" 至 "+e._s(e._f("timeStampToYmd2")(e.dateEnd)))])])]),e._v(" "),a("el-popover",{attrs:{placement:"bottom-start",width:"550",trigger:"click","popper-class":"salesleads-popover"}},[a("div",{staticClass:"tips-content"},[e._v("只统计通过GIC创建的群发,不包含在企业微信创建的群发及门店创建的群发")]),e._v(" "),a("div",{staticClass:"tips flex flex-align-center",attrs:{slot:"reference",role:"tips"},slot:"reference"},[a("i",{staticClass:"el-icon-warning-outline font-14 color-2f54eb"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[e._v("查看指标说明")])])])],1),e._v(" "),a("div",{staticClass:"table-condition-search flex flex-space-between m-t-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入计划名称","prefix-icon":"el-icon-search",clearable:""},on:{change:e.reFetch,clear:e.clearInput},model:{value:e.pageParams.ecmPlanName,callback:function(t){e.$set(e.pageParams,"ecmPlanName",t)},expression:"pageParams.ecmPlanName"}}),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.pageParams.date,callback:function(t){e.$set(e.pageParams,"date",t)},expression:"pageParams.date"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[e.$getButtonLimit(e.$buttonCode.exportGrTaskList)?a("el-button",{attrs:{"limit-code":e.$buttonCode.exportGrTaskList,loading:e.loadingBtn,type:"primary"},on:{click:e.exportExcel}},[e._v("导出")]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:e.tableRefresh,ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45","class-name":1==e.selectRadio?"cell-disabled":"font-size-zero"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont-hb3 icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":0,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择当页")])],1),e._v(" "),a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择全部")])],1)],1)],1)]},proxy:!0},{key:"default",fn:function(t){return[e._v(e._s(" "))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"计划名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ecmPlanName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCnt||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.cplTaskCnt||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s((100*t.row.completionRate).toFixed(2)+"%"||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.waitFinishCount||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中/逾期失效"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ovincplTaskCnt||"--")+"/"+e._s(t.row.invalidCount||"--"))]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.checkGrTaskList)?a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.checkGrTaskList)?a("el-button",{attrs:{"limit-code":e.$buttonCode.checkGrTaskList,type:"text"},on:{click:function(a){return e.showDetail(t.row)}}},[e._v("查看详情")]):e._e()]}}])}):e._e()],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.pageParams.pageNum,"page-sizes":[20,40,60,80],"page-size":e.pageParams.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])])])])])},staticRenderFns:[]};var p=a("VU/8")(c,d,!1,function(e){a("ASFO")},"data-v-a2c5a692",null);t.default=p.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([65],{IuWw:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("Ggl+"),r=a("LRn8"),s=a("P9l9"),l=a("PI0u"),c=a("3E4D"),d=a("Ch4/"),u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},loading:!1,selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,defaultStoreList:[],loadingBtn:!1}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroup=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.defaultStoreList=this.conditionObj.storeGroup,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!o()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",enterpriseId:e.activeBrand,delOptFlag:t.delOptFlag,reason:t.reason,chooseAllFlag:e.selectRadio};Object(s.g)("/haoban-app-daily-three-web/daily/batch-delete-brand-task",n).then(function(t){var a=t.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void e.getTableList();d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:Object(l.a)(function(){var t=this;t.loadingBtn=!0;var e=[];t.conditionObj.storeGroup.forEach(function(t){e.push(t.storeGroupId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var a={search:t.conditionObj.searchInput||"",storeGroupIds:e.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand};Object(s.c)("/haoban-app-daily-three-web/daily/batch-export-brand-task",a).then(function(e){if(t.loadingBtn=!1,!e.data)return d.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),n=document.createElement("a");n.download="云日报记录.csv",n.style.display="none",n.href=URL.createObjectURL(a),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},300),handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDetail:function(t,e){this.$router.push("dailyDetail?storeId="+e.storeId)},getTableList:function(t){var e=this;e.loading=!0;var a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",currentPage:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Array(this.conditionObj.dateRange)&&this.conditionObj.dateRange.length>0&&(n.startDate=this.conditionObj.dateRange[0]+" 00:00:00",n.endDate=this.conditionObj.dateRange[1]+" 23:59:59"),Object(s.b)("/haoban-app-daily-three-web/daily/page-brand-task",n).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;d.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())}},mounted:function(){var t=new Date;t=new Date(t.setMonth(t.getMonth()-1));var e=new Date,a=[],n=[];a.push(t.getFullYear()),a.push((t.getMonth()+1).toString().padStart(2,"0")),a.push(t.getDate().toString().padStart(2,"0")),n.push(e.getFullYear()),n.push((e.getMonth()+1).toString().padStart(2,"0")),n.push(e.getDate().toString().padStart(2,"0")),this.conditionObj.dateRange=[a.join("-"),n.join("-")];this.activeBrand=this.brandId,this.brandId&&this.getTableList()},components:{multipleDel:r.a,gicSelectGroup:i.a}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"daily-set-content border-box"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 ",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroup},on:{checkGroupIds:t.checkGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[t.$getButtonLimit(t.$buttonCode.multipleDelReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.multipleDelReport,type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.exportReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.exportReport,type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")]):t._e()],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.reportDetail)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.reportDetail)?a("el-button",{attrs:{"limit-code":t.$buttonCode.reportDetail,type:"text"},on:{click:function(a){return t.toDetail(e.$index,e.row)}}},[t._v("查看详情")]):t._e()]}}])}):t._e()],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"m-b-20"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("仅统计近两年数据")])])])])}]};var h=a("VU/8")(u,p,!1,function(t){a("JmzW")},"data-v-a0f8eb3e",null);e.default=h.exports},JmzW:function(t,e){}}); webpackJsonp([66],{IuWw:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("fZjL"),o=a.n(n),i=a("Ggl+"),r=a("LRn8"),s=a("P9l9"),l=a("PI0u"),c=a("3E4D"),d=a("Ch4/"),u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},loading:!1,selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,defaultStoreList:[],loadingBtn:!1}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroup=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.defaultStoreList=this.conditionObj.storeGroup,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!o()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",enterpriseId:e.activeBrand,delOptFlag:t.delOptFlag,reason:t.reason,chooseAllFlag:e.selectRadio};Object(s.g)("/haoban-app-daily-three-web/daily/batch-delete-brand-task",n).then(function(t){var a=t.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void e.getTableList();d.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:Object(l.a)(function(){var t=this;t.loadingBtn=!0;var e=[];t.conditionObj.storeGroup.forEach(function(t){e.push(t.storeGroupId)}),t.conditionObj.dateRange||(t.conditionObj.dateRange=[]);var a={search:t.conditionObj.searchInput||"",storeGroupIds:e.join(",")||"",storeType:t.conditionObj.storeType||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand};Object(s.c)("/haoban-app-daily-three-web/daily/batch-export-brand-task",a).then(function(e){if(t.loadingBtn=!1,!e.data)return d.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),n=document.createElement("a");n.download="云日报记录.csv",n.style.display="none",n.href=URL.createObjectURL(a),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},300),handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDetail:function(t,e){this.$router.push("dailyDetail?storeId="+e.storeId)},getTableList:function(t){var e=this;e.loading=!0;var a=[];e.conditionObj.storeGroup.forEach(function(t){a.push(t.storeGroupId)}),e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var n={search:e.conditionObj.searchInput||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",currentPage:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Array(this.conditionObj.dateRange)&&this.conditionObj.dateRange.length>0&&(n.startDate=this.conditionObj.dateRange[0]+" 00:00:00",n.endDate=this.conditionObj.dateRange[1]+" 23:59:59"),Object(s.b)("/haoban-app-daily-three-web/daily/page-brand-task",n).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;d.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())}},mounted:function(){var t=new Date;t=new Date(t.setMonth(t.getMonth()-1));var e=new Date,a=[],n=[];a.push(t.getFullYear()),a.push((t.getMonth()+1).toString().padStart(2,"0")),a.push(t.getDate().toString().padStart(2,"0")),n.push(e.getFullYear()),n.push((e.getMonth()+1).toString().padStart(2,"0")),n.push(e.getDate().toString().padStart(2,"0")),this.conditionObj.dateRange=[a.join("-"),n.join("-")];this.activeBrand=this.brandId,this.brandId&&this.getTableList()},components:{multipleDel:r.a,gicSelectGroup:i.a}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"daily-set-content border-box"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 ",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroup},on:{checkGroupIds:t.checkGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[t.$getButtonLimit(t.$buttonCode.multipleDelReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.multipleDelReport,type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.exportReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.exportReport,type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")]):t._e()],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率(含放弃)","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.reportDetail)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.reportDetail)?a("el-button",{attrs:{"limit-code":t.$buttonCode.reportDetail,type:"text"},on:{click:function(a){return t.toDetail(e.$index,e.row)}}},[t._v("查看详情")]):t._e()]}}])}):t._e()],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"m-b-20"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("仅统计近两年数据")])])])])}]};var h=a("VU/8")(u,p,!1,function(t){a("JmzW")},"data-v-a0f8eb3e",null);e.default=h.exports},JmzW:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([66],{NXVa:function(t,e){},NpHY:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Ggl+"),o=a("P9l9"),i=a("PI0u"),r=a("Ch4/"),s={name:"monthTask",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,showDialog:!1,conditionObj:{searchInput:"",storeGroupIds:[],storeStatus:"",dateRange:[]},storeStatusOptions:[{value:"",label:"所有门店状态"},{value:"0",label:"待审核"},{value:"1",label:"正常"},{value:"2",label:"审核失败"},{value:"3",label:"停业整顿"},{value:"4",label:"回收站"},{value:"5",label:"删除"}],loading:!1,selectRadio:0,tableData:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},loadingBtn:!1}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroupIds=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},toInput:Object(i.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreStatus:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},exportExcel:function(){var t=this;t.loadingBtn=!0;var e={keyword:t.conditionObj.searchInput,storeGroupIds:t.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",storeStatus:t.conditionObj.storeStatus,startDate:t.conditionObj.dateRange?t.conditionObj.dateRange[0]:"",endDate:t.conditionObj.dateRange?t.conditionObj.dateRange[1]:"",enterpriseId:t.activeBrand};Object(o.c)("/haoban-app-performance-three-web/performance/export-store-month-performance-task",e).then(function(e){if(t.loadingBtn=!1,!e.data)return r.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),n=document.createElement("a");n.download="store-month-performance-task.xls",n.style.display="none",n.href=URL.createObjectURL(a),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDetail:function(t,e){var a="",n="";this.conditionObj.dateRange.length>0&&(a=this.conditionObj.dateRange[0],n=this.conditionObj.dateRange[1]),this.$router.push("monthTaskDetail?storeId="+e.storeId+"&startDate="+a+"&endDate="+n)},getTableList:function(t){var e=this;e.loading=!0,e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={keyword:e.conditionObj.searchInput||"",storeGroupIds:e.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",storeStatus:e.conditionObj.storeStatus||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(o.b)("/haoban-app-performance-three-web/performance/query-store-month-performance-task",a).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo?a.result.pageInfo.total:0,!1;r.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())}},activated:function(){this.activeBrand=this.brandId,this.brandId&&this.getTableList()},mounted:function(){this.activeBrand=this.brandId,this.brandId&&this.getTableList()},components:{gicSelectGroup:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap common-right-wrap"},[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称/code",maxlength:"50"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroupIds},on:{checkGroupIds:t.checkGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",staticStyle:{width:"310px","vertical-align":"middle"},attrs:{editable:!1,"value-format":"yyyy-MM",type:"monthrange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[t.$getButtonLimit(t.$buttonCode.exportMonthTask)?a("el-button",{attrs:{"limit-code":t.$buttonCode.exportMonthTask,type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")]):t._e()],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"storeName",label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("p",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"taskCount",label:"任务总数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedCount",label:"已完成(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedRate",label:"完成率(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"noCompletedCount",label:"待完成","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"overdueCount",label:"逾期中","show-overflow-tooltip":""}}),t._v(" "),t.$getButtonLimit(t.$buttonCode.checkMonthTask)?a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.checkMonthTask)?a("el-button",{attrs:{"limit-code":t.$buttonCode.checkMonthTask,type:"text"},on:{click:function(a){return t.toDetail(e.$index,e.row)}}},[t._v("查看详情")]):t._e()]}}])}):t._e()],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[]};var c=a("VU/8")(s,l,!1,function(t){a("NXVa")},"data-v-9d5021fc",null);e.default=c.exports}}); webpackJsonp([67],{NXVa:function(t,e){},NpHY:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Ggl+"),o=a("P9l9"),i=a("PI0u"),r=a("Ch4/"),s={name:"monthTask",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,showDialog:!1,conditionObj:{searchInput:"",storeGroupIds:[],storeStatus:"",dateRange:[]},storeStatusOptions:[{value:"",label:"所有门店状态"},{value:"0",label:"待审核"},{value:"1",label:"正常"},{value:"2",label:"审核失败"},{value:"3",label:"停业整顿"},{value:"4",label:"回收站"},{value:"5",label:"删除"}],loading:!1,selectRadio:0,tableData:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},loadingBtn:!1}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroupIds=t,this.currentPage=1,this.getTableList()},handleCommand:function(t){this.selectRadio=t},toInput:Object(i.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreStatus:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},exportExcel:function(){var t=this;t.loadingBtn=!0;var e={keyword:t.conditionObj.searchInput,storeGroupIds:t.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",storeStatus:t.conditionObj.storeStatus,startDate:t.conditionObj.dateRange?t.conditionObj.dateRange[0]:"",endDate:t.conditionObj.dateRange?t.conditionObj.dateRange[1]:"",enterpriseId:t.activeBrand};Object(o.c)("/haoban-app-performance-three-web/performance/export-store-month-performance-task",e).then(function(e){if(t.loadingBtn=!1,!e.data)return r.a.errorMsg("暂无数据"),!1;var a=new Blob([e.data],{type:"application/vnd.ms-excel"}),n=document.createElement("a");n.download="store-month-performance-task.xls",n.style.display="none",n.href=URL.createObjectURL(a),document.body.appendChild(n),n.click(),URL.revokeObjectURL(n.href),document.body.removeChild(n)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toDetail:function(t,e){var a="",n="";this.conditionObj.dateRange.length>0&&(a=this.conditionObj.dateRange[0],n=this.conditionObj.dateRange[1]),this.$router.push("monthTaskDetail?storeId="+e.storeId+"&startDate="+a+"&endDate="+n)},getTableList:function(t){var e=this;e.loading=!0,e.conditionObj.dateRange||(e.conditionObj.dateRange=[]);var a={keyword:e.conditionObj.searchInput||"",storeGroupIds:e.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",storeStatus:e.conditionObj.storeStatus||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(o.b)("/haoban-app-performance-three-web/performance/query-store-month-performance-task",a).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo?a.result.pageInfo.total:0,!1;r.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())}},activated:function(){this.activeBrand=this.brandId,this.brandId&&this.getTableList()},mounted:function(){this.activeBrand=this.brandId,this.brandId&&this.getTableList()},components:{gicSelectGroup:n.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap common-right-wrap"},[a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称/code",maxlength:"50"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroupIds},on:{checkGroupIds:t.checkGroupIds}}),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",staticStyle:{width:"310px","vertical-align":"middle"},attrs:{editable:!1,"value-format":"yyyy-MM",type:"monthrange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[t.$getButtonLimit(t.$buttonCode.exportMonthTask)?a("el-button",{attrs:{"limit-code":t.$buttonCode.exportMonthTask,type:"primary",loading:t.loadingBtn},on:{click:t.exportExcel}},[t._v("导出")]):t._e()],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"storeName",label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("p",{staticStyle:{width:"100%",overflow:"hidden","text-overflow":"ellipsis"}},[t._v(t._s(e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"taskCount",label:"任务总数"}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedCount",label:"已完成(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"completedRate",label:"完成率(含放弃)","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"noCompletedCount",label:"待完成","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"overdueCount",label:"逾期中","show-overflow-tooltip":""}}),t._v(" "),t.$getButtonLimit(t.$buttonCode.checkMonthTask)?a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.checkMonthTask)?a("el-button",{attrs:{"limit-code":t.$buttonCode.checkMonthTask,type:"text"},on:{click:function(a){return t.toDetail(e.$index,e.row)}}},[t._v("查看详情")]):t._e()]}}])}):t._e()],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[]};var c=a("VU/8")(s,l,!1,function(t){a("NXVa")},"data-v-9d5021fc",null);e.default=c.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([67],{"FG/P":function(t,a){},nV1L:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("Gu7T"),i=e.n(n),c=e("bzW+"),r=e("Qie6"),o=e("Z8ln"),s=e("Ch4/"),d=e("P9l9"),v={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"卡券赠送",activeSelTab:"1",activeTab:"1",defaultNavpath:[{name:"首页",path:"/index"},{name:"卡券赠送",path:"/cardList"}],navpath:[{name:"首页",path:"/index"},{name:"卡券赠送",path:"/cardList"}],navName:{1:"卡券列表",11:"编辑卡券",12:"新增卡券",2:"卡券记录"},navFrontPath:{1:"/cardList",11:"/cardList",12:"/cardList",2:"/cardList"},tabListData:[{tabId:"1",tabName:"卡券列表",icon:"iconqiaquan"},{tabId:"2",tabName:"卡券记录",icon:"iconwodeqiaquan-"}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(d.b)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?s.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("cardList");break;case"2":this.changeRoute("cardRecord")}},showTab:function(t){var a=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=t,this.activeSelTab=t,this.navpath=[].concat(i()(this.defaultNavpath)),e.length&&e.map(function(t){a.navpath[a.navpath.length-1].path=a.navFrontPath[t],a.navpath.push({name:a.navName[t],path:""})})}},watch:{$route:{handler:function(t,a){},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:r.a,expiredDialog:o.a}},h={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[t.activeBrand?e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}}):t._e()],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var u=e("VU/8")(v,h,!1,function(t){e("FG/P")},"data-v-9bc8e98c",null);a.default=u.exports}}); webpackJsonp([68],{"FG/P":function(t,a){},nV1L:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("Gu7T"),i=e.n(n),c=e("bzW+"),r=e("Qie6"),o=e("Z8ln"),s=e("Ch4/"),d=e("P9l9"),v={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"卡券赠送",activeSelTab:"1",activeTab:"1",defaultNavpath:[{name:"首页",path:"/index"},{name:"卡券赠送",path:"/cardList"}],navpath:[{name:"首页",path:"/index"},{name:"卡券赠送",path:"/cardList"}],navName:{1:"卡券列表",11:"编辑卡券",12:"新增卡券",2:"卡券记录"},navFrontPath:{1:"/cardList",11:"/cardList",12:"/cardList",2:"/cardList"},tabListData:[{tabId:"1",tabName:"卡券列表",icon:"iconqiaquan"},{tabId:"2",tabName:"卡券记录",icon:"iconwodeqiaquan-"}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(d.b)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?s.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("cardList");break;case"2":this.changeRoute("cardRecord")}},showTab:function(t){var a=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=t,this.activeSelTab=t,this.navpath=[].concat(i()(this.defaultNavpath)),e.length&&e.map(function(t){a.navpath[a.navpath.length-1].path=a.navFrontPath[t],a.navpath.push({name:a.navName[t],path:""})})}},watch:{$route:{handler:function(t,a){},deep:!0},activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:r.a,expiredDialog:o.a}},h={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[t.activeBrand?e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}}):t._e()],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var u=e("VU/8")(v,h,!1,function(t){e("FG/P")},"data-v-9bc8e98c",null);a.default=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([68],{AYL1:function(e,t){},scn4:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3E4D"),o=a("Ch4/"),n=a("PI0u"),s=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",overTimeSeeFlag:!1,conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,loading:!1,syncDate:"",loadingBtn:!1}},methods:{getSyncDate:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-group_last_syn_time",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.syncDate=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toSync:Object(n.a)(function(){var e=this;e.loadingBtn=!0;var t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/syn-group",t).then(function(t){var a=t.data;if(e.loadingBtn=!1,1==a.errorCode)return r.a.showmsg("同步成功","success"),void e.getSyncDate();o.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},500),getGroupClassSet:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-member-group-setting",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.overTimeSeeFlag=0!=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},saveGroupSet:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,overTimeSeeFlag:1==e.overTimeSeeFlag?1:0};Object(s.g)("/haoban-app-customer-web/memberGroup/save-member-group-setting",t).then(function(e){var t=e.data;if(1==t.errorCode)return r.a.showmsg("设置成功","success"),!1;o.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(n.a)(function(e,t){this.currentPage=1,this.getGroupList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getGroupList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getGroupList(this.brandId)},getGroupClassify:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-member-class-list",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.classifyList=a.result.list||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getGroupList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getGroupList(this.brandId)},getGroupList:function(e){var t=this;t.loading=!0;var a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId,memberGroupName:t.conditionObj.searchInput,classifyName:t.conditionObj.classifyName,effectiveStatus:t.conditionObj.effectiveStatus,pageNum:t.currentPage,pageSize:t.pageSize};Object(s.g)("/haoban-app-customer-web/memberGroup/member-tag-group-list",a).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.isSendTemplate=1==e.isSendTemplate}),t.groupListData=a.result.list||[],void(t.total=a.result.pageInfo?a.result.pageInfo.total:0);o.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.brandId&&(this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId))}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-pane border-box p-lbr-20"},[a("div",{staticClass:"condition-wrap flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"217px"},attrs:{placeholder:"请输入分组名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部分类"},on:{change:e.changeCondition},model:{value:e.conditionObj.classifyName,callback:function(t){e.$set(e.conditionObj,"classifyName",t)},expression:"conditionObj.classifyName"}},[a("el-option",{attrs:{label:"全部分类",value:""}}),e._v(" "),e._l(e.classifyList,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})],2),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部状态"},on:{change:e.changeCondition},model:{value:e.conditionObj.effectiveStatus,callback:function(t){e.$set(e.conditionObj,"effectiveStatus",t)},expression:"conditionObj.effectiveStatus"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"有效",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"失效",value:"0"}})],1)],1),e._v(" "),a("div",[e.$getButtonLimit(e.$buttonCode.groupExpire)?a("el-checkbox",{attrs:{"limit-code":e.$buttonCode.groupExpire,disabled:e.$store.state.wxEnterpriseType},on:{change:e.saveGroupSet},model:{value:e.overTimeSeeFlag,callback:function(t){e.overTimeSeeFlag=t},expression:"overTimeSeeFlag"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后,GIC中设置的好办端会员分组失效后,即使在GIC开启好办展示,好办移动端也不再展示该条分组",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB","margin-left":"-4px"}},[e._v("会员分组失效后不展示")])])],1):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.syncGroup)?a("el-button",{attrs:{"limit-code":e.$buttonCode.syncGroup,type:"primary",loading:e.loadingBtn,disabled:e.$store.state.wxEnterpriseType},on:{click:e.toSync}},[e._v("立即同步")]):e._e(),e._v(" "),e.syncDate?a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("最近一次同步时间:"+e._s(e._f("formatTimeStamp")(e.syncDate)))]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.groupListData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.groupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberTagGroupClassifyName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否固化","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.curingFlag?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+" ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])})],1),e._v(" "),0!=e.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var c=a("VU/8")(i,l,!1,function(e){a("AYL1")},"data-v-9b6be24e",null);t.default=c.exports}}); webpackJsonp([69],{AYL1:function(e,t){},scn4:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("3E4D"),o=a("Ch4/"),n=a("PI0u"),s=a("P9l9"),i={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",overTimeSeeFlag:!1,conditionObj:{searchInput:"",classifyName:"",effectiveStatus:""},groupListData:[],classifyList:[],currentPage:1,pageSize:20,total:0,loading:!1,syncDate:"",loadingBtn:!1}},methods:{getSyncDate:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-group_last_syn_time",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.syncDate=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},toSync:Object(n.a)(function(){var e=this;e.loadingBtn=!0;var t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/syn-group",t).then(function(t){var a=t.data;if(e.loadingBtn=!1,1==a.errorCode)return r.a.showmsg("同步成功","success"),void e.getSyncDate();o.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},500),getGroupClassSet:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-member-group-setting",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.overTimeSeeFlag=0!=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},saveGroupSet:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,overTimeSeeFlag:1==e.overTimeSeeFlag?1:0};Object(s.g)("/haoban-app-customer-web/memberGroup/save-member-group-setting",t).then(function(e){var t=e.data;if(1==t.errorCode)return r.a.showmsg("设置成功","success"),!1;o.a.errorMsg(t)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toInput:Object(n.a)(function(e,t){this.currentPage=1,this.getGroupList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getGroupList(this.brandId)},changeCondition:function(){this.currentPage=1,this.getGroupList(this.brandId)},getGroupClassify:function(e){var t=this,a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId};Object(s.g)("/haoban-app-customer-web/memberGroup/get-member-class-list",a).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.classifyList=a.result.list||[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getGroupList(this.brandId)},handleCurrentChange:function(e){this.currentPage=e,this.getGroupList(this.brandId)},getGroupList:function(e){var t=this;t.loading=!0;var a={enterpriseId:t.brandId,wxEnterpriseRelatedId:t.wxEnterpriseRelatedId,memberGroupName:t.conditionObj.searchInput,classifyName:t.conditionObj.classifyName,effectiveStatus:t.conditionObj.effectiveStatus,pageNum:t.currentPage,pageSize:t.pageSize};Object(s.g)("/haoban-app-customer-web/memberGroup/member-tag-group-list",a).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return a.result.list&&a.result.list.length&&a.result.list.forEach(function(e){e.isSendTemplate=1==e.isSendTemplate}),t.groupListData=a.result.list||[],void(t.total=a.result.pageInfo?a.result.pageInfo.total:0);o.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.brandId&&(this.getGroupClassify(this.brandId),this.getGroupList(this.brandId),this.getGroupClassSet(this.brandId),this.getSyncDate(this.brandId))}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-pane border-box p-lbr-20"},[a("div",{staticClass:"condition-wrap flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"217px"},attrs:{placeholder:"请输入分组名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return a=t,e.toInput(a,e.conditionObj.searchInput);var a}},model:{value:e.conditionObj.searchInput,callback:function(t){e.$set(e.conditionObj,"searchInput",t)},expression:"conditionObj.searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部分类"},on:{change:e.changeCondition},model:{value:e.conditionObj.classifyName,callback:function(t){e.$set(e.conditionObj,"classifyName",t)},expression:"conditionObj.classifyName"}},[a("el-option",{attrs:{label:"全部分类",value:""}}),e._v(" "),e._l(e.classifyList,function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})],2),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部状态"},on:{change:e.changeCondition},model:{value:e.conditionObj.effectiveStatus,callback:function(t){e.$set(e.conditionObj,"effectiveStatus",t)},expression:"conditionObj.effectiveStatus"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"有效",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"失效",value:"0"}})],1)],1),e._v(" "),a("div",[e.$getButtonLimit(e.$buttonCode.groupExpire)?a("el-checkbox",{attrs:{"limit-code":e.$buttonCode.groupExpire,disabled:e.$store.state.wxEnterpriseType},on:{change:e.saveGroupSet},model:{value:e.overTimeSeeFlag,callback:function(t){e.overTimeSeeFlag=t},expression:"overTimeSeeFlag"}},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"开启后,GIC中设置的好办端会员分组失效后,即使在GIC开启好办展示,好办移动端也不再展示该条分组",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20",staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB","margin-left":"-4px"}},[e._v("会员分组失效后不展示")])])],1):e._e(),e._v(" "),e.$getButtonLimit(e.$buttonCode.syncGroup)?a("el-button",{attrs:{"limit-code":e.$buttonCode.syncGroup,type:"primary",loading:e.loadingBtn,disabled:e.$store.state.wxEnterpriseType},on:{click:e.toSync}},[e._v("立即同步")]):e._e(),e._v(" "),e.syncDate?a("span",{staticClass:"font-14 color-606266 p-r-10"},[e._v("最近一次同步时间:"+e._s(e._f("formatTimeStamp")(e.syncDate)))]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.groupListData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组名称",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.groupName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"分类"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberTagGroupClassifyName))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否实时","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.isRealTime?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"是否固化","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.curingFlag?"是":"否"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"更新频率","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(1==t.row.updateType?"每日":2==t.row.updateType?"每周":3==t.row.updateType?"每月":"-")+" "+e._s(1==t.row.updateType?"一次":2==t.row.updateType?"周"+t.row.updateDay:3==t.row.updateType?t.row.updateDay+"号":"-")+" ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s("1"==t.row.effectiveStatus?"有效":"失效"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"到期时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.effectiveDate)))]),e._v(" "),a("div",{staticClass:"line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.effectiveDate)))])]}}])})],1),e._v(" "),0!=e.groupListData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])},staticRenderFns:[]};var c=a("VU/8")(i,l,!1,function(e){a("AYL1")},"data-v-9b6be24e",null);t.default=c.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([7,9,64],{"29DL":function(t,e){},AIQa:function(t,e){},"J/6z":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("//Fk"),i=a.n(s),n=a("mvHQ"),r=a.n(n),o=a("w/TU"),l=a.n(o),c=a("Isrn"),d=a("l46T"),p={name:"time-progress",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},v={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-contain"},[e("div",[e("p",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-item"},[e("div",{staticClass:"time-progress-title"},[e("p",{staticClass:"gic-pull-left"},[this._v("50.00%")]),this._v(" "),e("p",{staticClass:"gic-pull-right"},[e("span",[this._v("15")]),this._v("/"),e("span",[this._v("30")])])]),this._v(" "),e("div",{staticClass:"time-progress-bottom"},[e("div",{staticClass:"time-progress-top"})])])}]};var u=a("VU/8")(p,v,!1,function(t){a("aqQ7")},"data-v-94775b56",null).exports,m={name:"store-performance",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},f={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[t._v("指标")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("累计销售额")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("999,476,960")])]),t._v(" "),a("tr",[a("td",[t._v("达成率")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var _=a("VU/8")(m,f,!1,function(t){a("h7wL")},"data-v-66c2fe71",null).exports,h={name:"membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},g={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{attrs:{colspan:"1"}},[t._v("会员总数")]),t._v(" "),a("td",{attrs:{colspan:"2"}},[t._v("9,000,000")])]),t._v(" "),a("tr",[a("td",[t._v("新增会员")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var b=a("VU/8")(h,g,!1,function(t){a("zGvM")},"data-v-6f4f982c",null).exports,C={name:"error-mointor",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},y={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"anomal-monitor-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[t._v(t._s(t.fieldName))])]),t._v(" "),a("div",{staticClass:"progress-contain"},[a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress1"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"72.2668",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-left",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("75.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("无导购率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress2"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"216.8",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-mid",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("25.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("退单率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress3"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"14.4534",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-right",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("95.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("凭空退单率")])])])])},staticRenderFns:[]};var x=a("VU/8")(C,y,!1,function(t){a("cfOg")},"data-v-64e9da9d",null).exports,w={name:"old-customer-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},I={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var k=a("VU/8")(w,I,!1,function(t){a("pJmJ")},"data-v-b7ca6e44",null).exports,$={name:"birthday-membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},S={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var D=a("VU/8")($,S,!1,function(t){a("AIQa")},"data-v-b252e530",null).exports,R=a("fPyK"),M={props:{setting:{type:[Number,String],default:function(){return"0"}}},data:function(){return{setVisible:!0,selectId:"0"}},computed:{},watch:{setting:function(t){this.selectId=t}},methods:{handleClose:function(t){t(),this.$emit("closeSet","close"),this.selectId=""},cancel:function(){this.$emit("closeSet","close"),this.selectId=""},submitForm:function(){this.$emit("closeSet",this.selectId)}},components:{},mounted:function(){this.selectId=this.setting}},E={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"600px",title:"模板设置",visible:t.setVisible,"append-to-body":"","before-close":t.handleClose},on:{"update:visible":function(e){t.setVisible=e}}},[a("div",{staticClass:"m-t-20"},[a("el-radio",{attrs:{label:"0"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板上面")]),t._v(" "),a("el-radio",{staticClass:"m-l-40",attrs:{label:"1"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板下面")])],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("确定")])],1)])},staticRenderFns:[]};var N=a("VU/8")(M,E,!1,function(t){a("eUKg")},"data-v-ef3b9696",null).exports,T=a("3E4D"),L=a("Ch4/"),V=a("PI0u"),P=a("P9l9"),B={name:"staffRecordsTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},enterpriseId:this.brandId,setting:"0",selectKey:"",cardInfo:[],tradeInfo:[],birthdayMemberInfo:[],memberInfo:[],powerInfo:[],currentIndex:0,tempaletDataList:[],setParent:[],setVisible:!1,loadingBtn:!1}},created:function(){},methods:{templateSet:function(){this.setVisible=!0},closeSet:function(t){if(this.setVisible=!1,"close"==t)return!1;this.setting=t},clickItem:function(t){},onMove:function(t){var e=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(e.name)&&!e.fixed},itemMoveEnd:function(t){var e=this;e.isDragging=!1,e.selectKey="",e.selectKey=t.clone.dataset.name,e.tempaletDataList.forEach(function(t,a){var s;t.name==e.selectKey&&(s=t.parentCode,e[s].forEach(function(t,a){t.name==e.selectKey&&(t.fixed=!0)}))}),e.selectKey="",e.tempaletDataList=JSON.parse(r()(e.tempaletDataList)),e.$forceUpdate()},selectItem:function(t,e){this.currentIndex=e},deleteItem:function(t,e,a){this.tempaletDataList.splice(a,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[e].forEach(function(e,a){e.name==t&&(e.fixed=!1)})},changeRoute:function(t){this.$router.push(t)},isRepeat:function(t){var e={};for(var a in t){if(e[t[a]])return!0;e[t[a]]=!0}return!1},checkTag:function(t){var e={filedFlag:!0,filedRepeat:!1},a=[];return t.forEach(function(t,e){a.push(t.title)}),this.isRepeat(a)&&(e.filedRepeat=!0),e},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},saveAndBack:Object(V.a)(function(t){var e=JSON.parse(r()(this.tempaletDataList));return this.checkTag(e).filedRepeat?(this.$message.error({duration:1e3,message:"字段标题不能重复"}),!1):(e.forEach(function(t,e){t.sort=e}),e.length?(this.loadingBtn=!0,void("save"===t?this.saveAllData(e):this.postPreview(e))):(this.$message.error({duration:1e3,message:"请先配置字段"}),!1))},500),saveAllData:function(t){var e=this,a={enterpriseId:e.enterpriseId,templateContent:r()({setting:e.setting,data:t})};Object(P.g)("/haoban-app-daily-three-web/daily/save-system-template",a).then(function(t){var a=t.data;e.loadingBtn=!1,1!=a.errorCode?L.a.errorMsg(a):T.a.showmsg("保存成功","success")}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var e=this,a={templateType:0,enterpriseId:e.enterpriseId,templateContent:r()(t)};Object(P.g)("/haoban-app-daily-three-web/daily/preview-template",a).then(function(t){var a=t.data;if(e.loadingBtn=!1,1==a.errorCode){var s=window.location.origin+"/office-mobile/#/systemTemplate?enterpriseId="+e.enterpriseId+"&templateId="+a.result;return e.$refs.qrcodePreview.qrcode(s,"daily-preview"),void(e.dialogVisible=!0)}L.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var t=this;Object(P.b)("/haoban-app-daily-three-web/daily/get-template-items",{enterpriseId:t.enterpriseId,type:1}).then(function(e){var a=e.data;if(1==a.errorCode){var s=setTimeout(function(){t.handleAllFields(a.result),clearTimeout(s)},200);return!1}L.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(t){var e=this;t.forEach(function(t,a){e.setParent.includes(t.name)?t.fixed=!0:t.fixed=!1,1==t.classify&&(t.parentCode="cardInfo",e.cardInfo.push(t)),2==t.classify&&(t.parentCode="tradeInfo",e.tradeInfo.push(t)),3==t.classify&&(t.parentCode="birthdayMemberInfo",e.birthdayMemberInfo.push(t)),4==t.classify&&(t.parentCode="memberInfo",e.memberInfo.push(t)),5==t.classify&&(t.parentCode="powerInfo",e.powerInfo.push(t))})},getInfo:function(){var t=this;Object(P.b)("/haoban-app-daily-three-web/daily/get-system-template-data",{enterpriseId:t.enterpriseId}).then(function(e){var a=e.data;1!=a.errorCode?L.a.errorMsg(a):a.result&&(t.setting=String(a.result.setting),a.result.data&&a.result.data.length&&t.handleGetInfo(a.result.data))}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleGetInfo:function(t){var e=this,a=JSON.parse(r()(t));e.setParent=[],a.forEach(function(t,a){t.fixed=!0,e.setParent.push(t.name)}),e.tempaletDataList=a}},watch:{isDragging:function(t){var e=this;t?e.delayedDragging=!0:e.$nextTick(function(){e.delayedDragging=!1})},brandId:function(t,e){var a=this;t&&(a.enterpriseId=t,a.cardInfo=[],a.tradeInfo=[],a.birthdayMemberInfo=[],a.memberInfo=[],a.powerInfo=[],a.currentIndex=0,a.tempaletDataList=[],a.setParent=[],i.a.all([a.getInfo()]).then(function(t){console.log(),a.getAllFields()}).catch(function(t){console.log(t)}))}},components:{draggable:l.a,AddInput:c.a,limitInput:d.a,timeProgress:u,storePerformance:_,errorMointor:x,membershipData:b,oldCustomerData:k,birthdayMembershipData:D,qrcodeDialog:R.a,systemSet:N},mounted:function(){var t=this;t.$emit("showTab","31"),document.documentElement.style.backgroundColor="#f0f2f5",t.enterpriseId=t.brandId,i.a.all([t.getInfo()]).then(function(e){t.getAllFields()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},F={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"template-wrap"},[s("div",{staticClass:"template-contain"},[s("div",{staticClass:"template-cell-title font-14 color-303133"},[t._v("系统字段")]),t._v(" "),s("div",{staticClass:"template-head"},[t._m(0),t._v(" "),s("div",{staticClass:"template-btns flex-1 flex-r"},[t.$getButtonLimit(t.$buttonCode.settingSystemReport)?s("el-button",{attrs:{type:"primary",plain:"","limit-code":t.$buttonCode.settingSystemReport},on:{click:t.templateSet}},[t._v("模板设置")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveSystemReport)?s("el-button",{attrs:{type:"primary","limit-code":t.$buttonCode.saveSystemReport,loading:t.loadingBtn},on:{click:function(e){return t.saveAndBack("save")}}},[t._v("保存并启用")]):t._e()],1)]),t._v(" "),s("div",{staticClass:"template-body"},[s("div",{staticClass:"template-cell template-cell-l system-template-tab"},[s("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"卡片",name:"first"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.cardInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.cardInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name,"aria-hidden":"true"},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"交易",name:"second"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.tradeInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"生日会员",name:"third"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.birthdayMemberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.birthdayMemberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"会员",name:"four"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.memberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.memberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"执行力",name:"five"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.powerInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.powerInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)])],1)],1),t._v(" "),s("div",{staticClass:"template-cell template-cell-m"},[s("div",{staticClass:"phone-view"},[s("div",{staticClass:"phone-show-content"},[s("div",{staticClass:"drag-show-content"},[s("div",{staticClass:"view-container"},[s("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[s("img",{staticClass:"templet-null-img",attrs:{src:a("Y7wY")}})]:t._e(),t._v(" "),s("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(e){t.tempaletDataList=e},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(e,a){return s("li",{key:"li1"+a,class:["filed-item",t.currentIndex==a?"active-item":"","li-block"],on:{click:function(s){return s.stopPropagation(),t.selectItem(e.fieldCode,a)}}},[s("span",{staticClass:"item-close p-item-close",on:{click:function(s){return s.stopPropagation(),t.deleteItem(e.name,e.parentCode,a)}}},[s("i",{staticClass:"el-icon-close"})]),t._v(" "),"1"!=e.classify?s("div",{staticClass:"filed-item-name"},[s("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))])]):t._e(),t._v(" "),"timeProgress"==e.name?s("time-progress",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataShop"==e.name?s("store-performance",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataNumber"==e.name?s("membership-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"anomalMonitor"==e.name?s("error-mointor",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"oldNumber"==e.name?s("old-customer-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"birthNumber"==e.name?s("birthday-membership-data",{attrs:{fieldName:e.title}}):t._e()],1)}),0)],2)])])])])])])]),t._v(" "),s("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}}),t._v(" "),t.setVisible?s("system-set",{attrs:{setting:t.setting},on:{closeSet:t.closeSet}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"template-title flex-1"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("云日报系统报表:提供系统能够智能识别的指标(例如:销售额、达成率等),配置成报表融入云日报上报模板中。")])])])])}]};var O=a("VU/8")(B,F,!1,function(t){a("LTXF")},"data-v-65d8e9fa",null);e.default=O.exports},LTXF:function(t,e){},RnLd:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("J/6z"),i=a("ak3k"),n={name:"DailySetting",props:{brandId:{type:String,default:""}},components:{SystemReport:s.default,CustomReport:i.default},data:function(){return{activeName:"first"}}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-tabs",{staticClass:"daily-setting",model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"系统报表",name:"first"}},[a("system-report",{attrs:{"brand-id":t.brandId}})],1),t._v(" "),a("el-tab-pane",{attrs:{label:"自定义报表",name:"second"}},[a("custom-report",{attrs:{"brand-id":t.brandId}})],1)],1)],1)},staticRenderFns:[]};var o=a("VU/8")(n,r,!1,function(t){a("fn+l")},"data-v-c7453d62",null);e.default=o.exports},ak3k:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("2eFk"),i=a("Ke24"),n=a("fPyK"),r=a("P9l9"),o=a("Ch4/"),l=a("3E4D"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!1,tableH:window.screen.availHeight-464-126+"px",topMenuData:[{id:"1",name:"自定义报表"}],activeId:"1",activeTab:"1",activeBrand:"1",tableData:[],multipleSelection:[]}},computed:{},methods:{changeRouter:function(t){this.$router.push(t)},setSelectTab:function(t){this.activeTab=t.tabId},handlePreview:function(t,e){var a=window.location.origin+"/office-mobile/#/defineTemplate?templateId="+e.dailyReportTemplateId;this.$refs.qrcodePreview.qrcode(a,"daily-preview"),this.dialogVisible=!0},toCustomSet:function(){this.changeRouter("/customReportSet")},handleCopy:function(t,e){this.changeRouter("/customReportCopy?templateId="+e.dailyReportTemplateId+"&type=copy")},handleEdit:function(t,e){this.changeRouter("/customReportEdit?&templateId="+e.dailyReportTemplateId+"&type=edit")},handleDelete:function(t,e){var a=this;a.$confirm("一旦删除之后,该范围的门店将无法接收该日报,是否确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.deleteTemplate(t,e)}).catch(function(){})},deleteTemplate:function(t,e){var a=this;Object(r.g)("/haoban-app-daily-three-web/daily/del-define-template",{templateId:e.dailyReportTemplateId}).then(function(e){var s=e.data;if(1==s.errorCode)return l.a.showmsg("删除成功","success"),void a.tableData.splice(t,1);o.a.errorMsg(s)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getData:function(){var t=this;Object(r.g)("/haoban-app-daily-three-web/daily/list-define-template",{enterpriseId:t.brandId}).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=[],void(a.result&&a.result.length&&(t.tableData=a.result));o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.brandId&&this.getData()},components:{appDetail:s.a,commonDetailTop:i.a,qrcodeDialog:n.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-set-wrap"},[a("div",{staticClass:"custom-set-content border-box"},[a("div",{staticClass:"flex flex-space-between flex-pack-center m-b-23"},[t._m(0),t._v(" "),a("div",[t.$getButtonLimit(t.$buttonCode.addCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.addCustomReport,type:"primary"},on:{click:function(e){return t.toCustomSet("")}}},[t._v("新建模板")]):t._e()],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.title))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"模板描述","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.description))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"address",label:"门店类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.storeType?a("span",[t._v("自营门店")]):t._e(),t._v(" "),1==e.row.storeType?a("span",[t._v("联营门店")]):t._e(),t._v(" "),2==e.row.storeType?a("span",[t._v("代理门店")]):t._e(),t._v(" "),3==e.row.storeType?a("span",[t._v("代销门店")]):t._e(),t._v(" "),4==e.row.storeType?a("span",[t._v("托管门店")]):t._e()]}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.copyCustomReport)||t.$getButtonLimit(t.$buttonCode.editCustomReport)||t.$getButtonLimit(t.$buttonCode.delCustomReport)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.copyCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.copyCustomReport,type:"text"},on:{click:function(a){return t.handleCopy(e.$index,e.row)}}},[t._v("复制")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.editCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.editCustomReport,type:"text"},on:{click:function(a){return t.handleEdit(e.$index,e.row)}}},[t._v("编辑")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.delCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.delCustomReport,type:"text"},on:{click:function(a){return t.handleDelete(e.$index,e.row)}}},[t._v("删除")]):t._e()]}}])}):t._e()],1)],1),t._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"custom-set-title flex flex-pack-center"},[e("span",{staticClass:"font-14 color-909399"},[this._v("注:创建自定义日报后才能触发并下发日报")])])}]};var p=a("VU/8")(c,d,!1,function(t){a("29DL")},"data-v-aa3f75f2",null);e.default=p.exports},aqQ7:function(t,e){},cfOg:function(t,e){},eUKg:function(t,e){},"fn+l":function(t,e){},h7wL:function(t,e){},pJmJ:function(t,e){},zGvM:function(t,e){}});
\ No newline at end of file
webpackJsonp([7,55,90,95,103,119],{"2WGr":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.startTitle)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.startTitle))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")),i("i",{staticClass:"el-icon-arrow-right"})])])]),e._v(" "),i("div",{staticClass:"b-t-1 flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.endTitle)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.endTitle))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("MZ4b")},"data-v-59c3893a",null);t.default=s.exports},"8dpP":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]),e._v(" "),i("div",{staticClass:"must"},[e._v(e._s(e.childItem.isMust?"(必填)":""))]),e._v(" "),e._m(0)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"draged-item-show"},[t("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t("i",{staticClass:"iconfont-hb3 icon-icon"})])])}]};var s=i("VU/8")(a,n,!1,function(e){i("ut2q")},"data-v-e9ece5a0",null);t.default=s.exports},"92mS":function(e,t){},LTPC:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("//Fk"),n=i.n(a),s=i("Gu7T"),l=i.n(s),r=i("gBtx"),c=i.n(r),o=i("mvHQ"),d=i.n(o),u=i("w/TU"),p=i.n(u),m=i("Isrn"),h=i("l46T"),f=i("8dpP"),v=i("rYZf"),g=i("2WGr"),_=i("zHtI"),y=i("O3gZ"),b=i("fPyK"),C=i("fZjL"),I=i.n(C),x={props:{templateObj:{type:[Array,Object],default:function(){return{}}},storeList:{type:[Array,Object],default:function(){return[]}}},data:function(){return{setVisible:!0,rules:{title:[{required:!0,message:"请输入模板名称",trigger:"blur"}],description:[{required:!0,message:"请输入模板描述",trigger:"blur"}],storeType:[{required:!0,message:"请选择门店类型",trigger:"change"}]},ruleForm:{title:"",description:"",storeType:""}}},computed:{},watch:{templateObj:function(e){I()("val").length&&(this.ruleForm=JSON.parse(d()(e)))}},methods:{handleClose:function(e){e(),this.$emit("closeSet","close"),this.selectId=""},cancel:function(){this.$emit("closeSet","close"),this.selectId=""},submitForm:function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;t.$emit("closeSet",t.ruleForm)})}},components:{limitInput:h.a},mounted:function(){this.ruleForm=JSON.parse(d()(this.templateObj))}},w={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{width:"600px",title:"模板设置",visible:e.setVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.setVisible=t}}},[i("div",{staticClass:"m-t-20"},[i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"模板名称",prop:"title"}},[i("limitInput",{attrs:{inputWidth:340,inputValue:e.ruleForm.title,holder:"",disflag:!1,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){return e.$set(e.ruleForm,"title",t)},"update:input-value":function(t){return e.$set(e.ruleForm,"title",t)}}})],1),e._v(" "),i("el-form-item",{attrs:{label:"模板描述",prop:"description"}},[i("limitInput",{attrs:{inputWidth:340,inputValue:e.ruleForm.description,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(t){return e.$set(e.ruleForm,"description",t)},"update:input-value":function(t){return e.$set(e.ruleForm,"description",t)}}})],1),e._v(" "),i("el-form-item",{attrs:{label:"门店类型",prop:"storeType"}},e._l(e.storeList,function(t,a){return i("div",{key:t.name+a,staticClass:"store-type-cell m-b-20"},[i("el-radio",{attrs:{label:t.id,disabled:t.disabled},model:{value:e.ruleForm.storeType,callback:function(t){e.$set(e.ruleForm,"storeType",t)},expression:"ruleForm.storeType"}},[e._v(e._s(t.name))])],1)}),0)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var k=i("VU/8")(x,w,!1,function(e){i("dy5a")},"data-v-6c2a73fe",null).exports,T=i("3E4D"),F=i("Ch4/"),$=i("PI0u"),M=i("P9l9"),O={name:"customSetTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:1,activeName:"first",enterpriseId:this.brandId,rightWidth:"-350px",rightName:"second",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)-277+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},templateId:"",oparateType:"",counter:1,selectKey:"",tradeInfo:[],personInfo:[],goodsInfo:[],competeInfo:[],defineInfo:[],currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[],setList:[],templateObj:{title:"",description:"",storeType:"",momory:[]},storeList:[{id:"0",name:"自营门店",disabled:!1},{id:"1",name:"联营门店",disabled:!1},{id:"2",name:"代理门店",disabled:!1},{id:"3",name:"代销门店",disabled:!1},{id:"4",name:"托管门店",disabled:!1}],setVisible:!1,loadingBtn:!1}},methods:{templateSet:function(){this.setVisible=!0},closeSet:function(e){if(this.setVisible=!1,"close"==e)return!1;this.templateObj=e},changeTab:function(e){this.activeTab=e,this.activeName=2==e?"five":"first"},getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)},cloneItem:function(e){var t=JSON.parse(d()(e));return t.cid="c"+this.counter,t.systemFlag||(t.name.includes("textc")&&(t.name="textc"+this.counter),t.name.includes("paragraphc")&&(t.name="paragraphc"+this.counter),t.name.includes("numberc")&&(t.name="numberc"+this.counter),t.name.includes("checkboxesOrRadioc")&&(t.name="checkboxesOrRadioc"+this.counter),t.name.includes("datec")&&(t.name="datec"+this.counter),t.name.includes("dateareac")&&(t.name="dateareac"+this.counter),t.name.includes("picc")&&(t.name="picc"+this.counter),t.name.includes("introductionc")&&(t.name="introductionc"+this.counter),t.name.includes("pricec")&&(t.name="pricec"+this.counter),t.name.includes("groupc")&&(t.name="groupc"+this.counter,t.title=""+t.title+this.counter)),t},onMove:function(e){var t=e.draggedContext.element;return!this.tempaletDataList.map(function(e){return e.name}).includes(t.name)&&!t.fixed},onChildMove:function(e){var t=!0;return-1!=e.dragged.className.indexOf("block-class")&&-1!=e.to.className.indexOf("block-wrap")&&(t=!1),t},itemMoveEnd:function(e){var t=this;function i(e){t[e].forEach(function(e,i){e.name==t.selectKey&&(e.fixed=!0)})}t.isDragging=!1,t.selectKey="",t.selectKey=e.clone.dataset.name,t.tempaletDataList.forEach(function(e,a){e.name==t.selectKey&&i(e.parentCode),e.children&&e.children.forEach(function(e,a){e.name==t.selectKey&&i(e.parentCode)})}),t.selectKey="",t.tempaletDataList=JSON.parse(d()(t.tempaletDataList)),t.$forceUpdate(),t.counter=t.counter+1},selectItem:function(e,t){this.rightWidth="0",this.currentIndex=t,this.currentChildIndex=null},deleteItem:function(e,t,i,a){var n=this;if(n.tempaletDataList.splice(i,1),n.currentIndex--,n.currentIndex<=0&&(n.currentIndex=0),!a.systemFlag)return a.name.includes("groupc")&&a.children.length&&a.children.forEach(function(e){e.systemFlag&&n[e.parentCode].forEach(function(t){t.name==e.name&&(t.fixed=!1)})}),!1;n[t].forEach(function(t,i){t.name==e&&(t.fixed=!1)})},addDragItem:function(e){return!1},selectChildItem:function(e,t,i,a){this.currentIndex=null,this.currentChildKey=e,this.childIndex=t,this.currentChildIndex=i},deleteChildItem:function(e,t,i,a,n){if(this.childIndex=t,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[t].children[i].name,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(d()(this.tempaletDataList)),this.tempaletDataList[t].children.splice(i,1),!n.systemFlag)return!1;this[n.parentCode].forEach(function(t,i){t.name===e&&(t.fixed=!1)})},delChildItem:function(e,t,i){i.list.splice(t,1)},addChildItem:function(e,t,i){if(19!=t){i.list.push({value:"选项"+(t+2),key:t+2});var a=i.list.map(function(e){return e.value});this.isRepeat(a)&&(i.list.splice(i.list.length-1,1),a.splice(i.list.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},changeMust:function(e,t,i){t&&i.list.forEach(function(t){t.isMust=!!e})},isRepeat:function(e){var t={};for(var i in e){if(t[e[i]])return!0;t[e[i]]=!0}return!1},changeRoute:function(e){this.$router.push(e)},checkTag:function(e){var t={filedFlag:!0,filedRepeat:!1},i=[];return e.forEach(function(e){if(""==e.title)return t.filedFlag=!1,t.name=e.title||"",!1;i.push(e.title),e.hasOwnProperty("children")&&e.children.length&&e.children.forEach(function(e){if(e.systemFlag&&""==e.title)return t.filedFlag=!1,t.name=e.title||"",!1;i.push(e.title)})}),this.isRepeat(i)&&(t.filedRepeat=!0),t},checkTemplateObj:function(){var e=!0;return this.templateObj.title&&this.templateObj.description&&this.templateObj.storeType||(e=!1),e},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},saveAndBack:Object($.a)(function(e){if(!this.checkTemplateObj())return this.$message.error({duration:1e3,message:"请完善模板设置内容"}),!1;var t=JSON.parse(d()(this.tempaletDataList)),i=this.checkTag(t);if(!i.filedFlag)return this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"}),!1;if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(t.forEach(function(e,t){e.sort=t,e.isMust=e.isMust?1:0,e.memory=e.memory?1:0,e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=e.openCapitalize?1:0),e.hasOwnProperty("list")&&e.list.forEach(function(e){e.isMust=e.isMust?1:0}),e.hasOwnProperty("children")&&(e.children.forEach(function(e,t){e.sort=t,e.isMust=e.isMust?1:0,e.memory=e.memory?1:0,e.hasOwnProperty("list")&&e.list.forEach(function(e){e.isMust=e.isMust?1:0}),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=e.openCapitalize?1:0)}),e.list=e.children)}),!t.length)return this.$message.error({duration:1e3,message:"请先配置字段"}),!1;this.loadingBtn=!0,"save"===e?this.saveAllData(t):this.postPreview(t)}},500),saveAllData:function(e){var t=this,i=this,a={status:1,enterpriseId:i.enterpriseId,templateContent:d()(e),title:i.templateObj.title,description:i.templateObj.description,storeType:i.templateObj.storeType,memory:[]};Object(M.g)("/haoban-app-daily-three-web/daily/save-define-template",a).then(function(e){var a=e.data;if(i.loadingBtn=!1,1==a.errorCode)return T.a.showmsg("保存成功","success"),void t.$router.go(-1);F.a.errorMsg(a)}).catch(function(e){i.loadingBtn=!1,i.$message.error({duration:1e3,message:e.message})})},postPreview:function(e){var t=this,i={templateType:1,enterpriseId:t.enterpriseId,templateContent:d()(e)};Object(M.g)("/haoban-app-daily-three-web/daily/preview-template",i).then(function(e){var i=e.data;if(t.loadingBtn=!1,1==i.errorCode){var a=window.location.origin+"/office-mobile/#/defineTemplate?enterpriseId="+t.enterpriseId+"&templateId="+i.result;return t.$refs.qrcodePreview.qrcode(a,"daily-preview"),void(t.dialogVisible=!0)}F.a.errorMsg(i)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},closeDialog:function(){this.dialogVisible=!1},getHasStores:function(){var e=this;Object(M.g)("/haoban-app-daily-three-web/daily/has-defined-template-store-type",{enterpriseId:e.enterpriseId}).then(function(t){var i=t.data;1!=i.errorCode?F.a.errorMsg(i):e.storeList.forEach(function(t){i.result&&i.result.length&&i.result.includes(c()(t.id))&&(t.disabled=!0),"edit"==e.oparateType&&e.storeType==t.id&&(t.disabled=!1)})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getAllFields:function(e){var t=this;Object(M.g)("/haoban-app-daily-three-web/daily/get-template-items",{enterpriseId:t.enterpriseId,type:e}).then(function(i){var a=i.data;if(1==a.errorCode)return a.result.forEach(function(t){t.isMust=!!t.isMust,t.memory=!!t.memory,t.title=t.title.trim(),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=!!t.openCapitalize),t.hasOwnProperty("list")&&t.list&&t.list.length&&t.list.forEach(function(e){e.isMust=!!e.isMust}),t.systemFlag=3!=e,t.name.includes("groupc")&&(t.children=[])}),void(3==e?t.defineInfo=a.result:t.handleAllFields(a.result));F.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(e){var t=this;e.forEach(function(e){e.fixed=!1,1==e.classify&&(e.parentCode="tradeInfo",t.tradeInfo.push(e)),2==e.classify&&(e.parentCode="personInfo",t.personInfo.push(e)),3==e.classify&&(e.parentCode="goodsInfo",t.goodsInfo.push(e)),4==e.classify&&(e.parentCode="competeInfo",t.competeInfo.push(e))})},getInfo:function(){var e=this;Object(M.g)("/haoban-app-daily-three-web/daily/get-define-template",{templateId:e.templateId}).then(function(t){var i=t.data;if(1==i.errorCode)return e.setList=[],i.result&&(e.templateObj.title=i.result.title,e.templateObj.description=i.result.description,e.storeType="edit"==e.oparateType?String(i.result.storeType):"",e.templateObj.storeType="edit"==e.oparateType?String(i.result.storeType):"",i.result.templateContent&&i.result.templateContent.length&&e.handleGetInfo(i.result.templateContent)),void e.getHasStores();F.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){var t=e.filter(function(t){var i=e.filter(function(e){return t.fieldCode==e.parentCode});return i.length>0&&(t.children=i),0==t.parentCode});return t.sort(function(e,t){return e.sort-t.sort}),t.forEach(function(e,t){e.children.sort(function(e,t){return e.sort-t.sort})}),t},handleGetInfo:function(e){var t=this,i=JSON.parse(d()(e));t.cids=[],t.setParent=[],i.forEach(function(e,i){e.title=e.title.trim(),e.isMust=!!e.isMust,e.memory=!!e.memory,e.name.includes("textc")||e.name.includes("paragraphc")||e.name.includes("numberc")||e.name.includes("checkboxesOrRadioc")||e.name.includes("datec")||e.name.includes("dateareac")||e.name.includes("picc")||e.name.includes("introductionc")||e.name.includes("pricec")||e.name.includes("groupc")?(e.systemFlag=!1,e.parentCode="defineInfo"):(t.setParent.push(e.name),e.systemFlag=!0,1==e.classify&&(e.parentCode="tradeInfo"),2==e.classify&&(e.parentCode="personInfo"),3==e.classify&&(e.parentCode="goodsInfo"),4==e.classify&&(e.parentCode="competeInfo")),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=!!e.openCapitalize),e.hasOwnProperty("list")&&e.list&&e.list.length&&(e.list.forEach(function(i){(i.isMust=!!i.isMust,e.name.includes("groupc"))&&(i.isMust=!!i.isMust,i.memory=!!i.memory,i.name.includes("textc")||i.name.includes("paragraphc")||i.name.includes("numberc")||i.name.includes("checkboxesOrRadioc")||i.name.includes("datec")||i.name.includes("dateareac")||i.name.includes("picc")||i.name.includes("introductionc")||i.name.includes("pricec")||i.name.includes("groupc")?i.systemFlag=!1:(t.setParent.push(i.name),i.systemFlag=!0,1==i.classify&&(i.parentCode="tradeInfo"),2==i.classify&&(i.parentCode="personInfo"),3==i.classify&&(i.parentCode="goodsInfo"),4==i.classify&&(i.parentCode="competeInfo")))}),e.name.includes("groupc")&&(e.children=e.list)),t.cids.push(c()(e.cid.match(/\d+/g))),e.hasOwnProperty("children")&&e.children.forEach(function(e){e.isMust=!!e.isMust,e.memory=!!e.memory,t.cids.push(c()(e.cid.match(/\d+/g)))})}),t.counter=Math.max.apply(Math,l()(t.cids)),t.tempaletDataList=i,setTimeout(function(){t.setFixed()},500)},setFixed:function(){var e=this;["tradeInfo","personInfo","goodsInfo","competeInfo"].forEach(function(t){e[t].forEach(function(t){e.setParent.includes(t.name)&&(t.fixed=!0)})})}},watch:{isDragging:function(e){var t=this;e?t.delayedDragging=!0:t.$nextTick(function(){t.delayedDragging=!1})},brandId:function(e,t){var i=this;if(e){i.enterpriseId=e,i.counter=1,i.tradeInfo=[],i.personInfo=[],i.goodsInfo=[],i.competeInfo=[],i.defineInfo=[],i.currentChildKey=null,i.currentChildIndex=null,i.childIndex=0,i.currentIndex=0,i.tempaletDataList=[],i.setList=[],i.templateObj={title:"",description:"",storeType:"",momory:[]};var a=i.$route.query;n.a.all([i.getAllFields(2)]).then(function(e){i.getAllFields(3),a.hasOwnProperty("type")&&"copy"==a.type?(i.templateId=a.templateId,i.oparateType=a.type,i.getInfo()):i.getHasStores()}).catch(function(e){console.log(e)})}}},components:{draggable:p.a,AddInput:m.a,limitInput:h.a,imageCom:f.default,selectCom:v.default,dateRangeCom:g.default,inputCom:_.default,blockCom:y.default,qrcodeDialog:b.a,customSet:k},mounted:function(){var e=this;document.documentElement.style.backgroundColor="#f0f2f5";var t=e.$route.query;e.$emit("showTab","32","copy"===t.type?"322":t.templateId?"321":"322"),n.a.all([e.getAllFields(2)]).then(function(i){e.getAllFields(3),t.hasOwnProperty("templateId")?(e.templateId=t.templateId,e.oparateType=t.type,e.getInfo()):e.getHasStores()}).catch(function(e){console.log(e)}),document.body.ondrop=function(e){e.preventDefault(),e.stopPropagation()}},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},L={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"template-wrap",staticStyle:{"min-height":"calc(100vh - 114px)"}},[a("div",{staticClass:"template-contain"},[a("div",{staticClass:"template-head"},[a("div",{staticClass:"template-title flex-1"}),e._v(" "),a("div",{staticClass:"template-btns flex-1 flex-r"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.templateSet}},[e._v("模板设置")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(t){return e.saveAndBack("save")}}},[e._v("保存并启用")])],1)]),e._v(" "),a("div",{staticClass:"template-body"},[a("div",{staticClass:"template-cell template-cell-l"},[a("div",{staticClass:"flex"},[a("div",{class:["template-cell-title font-14 ",1==e.activeTab?"color-3033133":"color-606266"],on:{click:function(t){return e.changeTab("1")}}},[e._v("系统字段")]),e._v(" "),a("span",{staticClass:"p-l-15 color-dedfe6"},[e._v("|")]),e._v(" "),a("div",{class:["template-cell-title font-14 ",2==e.activeTab?"color-3033133":"color-606266"],on:{click:function(t){return e.changeTab("2")}}},[e._v("自定义字段")])]),e._v(" "),a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[1==e.activeTab?a("el-tab-pane",{attrs:{label:"交易",name:"first"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list1",list:e.tradeInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.tradeInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name,"aria-hidden":"true"}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"人员",name:"second"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list2",list:e.personInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.personInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"商品",name:"third"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list3",list:e.goodsInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.goodsInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"竞品",name:"four"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list4",list:e.competeInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.competeInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),2==e.activeTab?a("el-tab-pane",{attrs:{label:"自定义字段",name:"five"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.defineInfo,options:e.leftDefineOption,clone:e.cloneItem,move:e.onChildMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.defineInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":"",11==t.type?"block-class":""],attrs:{"data-type":t.fieldCode}},[0==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),1==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),2==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),3==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),4==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),5==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),6==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),7==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),9==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),10==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),11==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),0==t.type?a("i",{staticClass:"bg-icon bg-icon-one"}):e._e(),e._v(" "),1==t.type?a("i",{staticClass:"bg-icon bg-icon-two"}):e._e(),e._v(" "),2==t.type?a("i",{staticClass:"bg-icon bg-icon-three"}):e._e(),e._v(" "),3==t.type?a("i",{staticClass:"bg-icon bg-icon-four"}):e._e(),e._v(" "),4==t.type?a("i",{staticClass:"bg-icon bg-icon-five"}):e._e(),e._v(" "),5==t.type?a("i",{staticClass:"bg-icon bg-icon-six"}):e._e(),e._v(" "),6==t.type?a("i",{staticClass:"bg-icon bg-icon-seven"}):e._e(),e._v(" "),7==t.type?a("i",{staticClass:"bg-icon bg-icon-eight"}):e._e(),e._v(" "),9==t.type?a("i",{staticClass:"bg-icon bg-icon-ten"}):e._e(),e._v(" "),10==t.type?a("i",{staticClass:"bg-icon bg-icon-eleven"}):e._e(),e._v(" "),11==t.type?a("i",{staticClass:"bg-icon bg-icon-twelve"}):e._e()])}),0)],1)]):e._e()],1)],1),e._v(" "),a("div",{staticClass:"template-cell template-cell-m"},[a("div",{staticClass:"phone-view"},[a("div",{staticClass:"phone-show-content"},[a("div",{staticClass:"drag-show-content"},[a("div",{staticClass:"view-container"},[a("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==e.tempaletDataList.length?[a("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:e._e(),e._v(" "),a("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:e.tempaletDataList,callback:function(t){e.tempaletDataList=t},expression:"tempaletDataList"}},e._l(e.tempaletDataList,function(t,i){return a("li",{key:"li1"+i,class:["filed-item",e.currentIndex==i?"active-item":"","li-block"],on:{click:function(a){return e.selectItem(t.fieldCode,i)}}},["baseInfo"!=t.fieldCode?a("span",{staticClass:"item-close p-item-close",on:{click:function(a){return a.stopPropagation(),e.deleteItem(t.name,t.parentCode,i,t)}}},[a("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),t.systemFlag||!t.name.includes("groupc")?a("div",[1==t.type||2==t.type||3==t.type||10==t.type||9==t.type?a("input-com",{attrs:{childItem:t}}):e._e(),e._v(" "),4==t.type||5==t.type?a("select-com",{attrs:{childItem:t}}):e._e(),e._v(" "),6==t.type?a("date-range-com",{attrs:{childItem:t}}):e._e(),e._v(" "),7==t.type?a("image-com",{attrs:{childItem:t}}):e._e(),e._v(" "),"11"==t.type?a("block-com",{attrs:{childItem:t}}):e._e()],1):e._e(),e._v(" "),[t.name.includes("groupc")?a("div",{staticClass:"block"},[a("div",{staticClass:"block-head"},[a("div",{class:["opencard-item-title",e.getZhLen(t.title)>=6?"title-pre-wrap":""]},[e._v(e._s(t.title))])]),e._v(" "),a("ul",{staticClass:"view-content"},[a("draggable",{class:["drag-wrap","block-wrap",t.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:e.addDragItem},model:{value:t.children,callback:function(i){e.$set(t,"children",i)},expression:"item.children"}},e._l(t.children,function(n,s){return a("li",{key:"li"+s,class:["filed-item","child-filed-item",e.currentChildKey==n.name&&e.currentChildIndex==s?"active-item":""],on:{click:function(a){return a.stopPropagation(),e.selectChildItem(n.name,i,s,t.children)}}},[a("span",{staticClass:"item-close child-item-close",on:{click:function(a){return a.stopPropagation(),e.deleteChildItem(n.name,i,s,t.children,n)}}},[a("i",{staticClass:"el-icon-close"})]),e._v(" "),4==n.type||5==n.type?a("select-com",{attrs:{childItem:n}}):e._e(),e._v(" "),6==n.type?a("date-range-com",{attrs:{childItem:n}}):e._e(),e._v(" "),7==n.type?a("image-com",{attrs:{childItem:n}}):e._e(),e._v(" "),1==n.type||2==n.type||3==n.type||10==n.type||9==n.type?a("input-com",{attrs:{childItem:n}}):e._e(),e._v(" "),"11"==n.type&&n.systemFlag?a("block-com",{attrs:{childItem:n}}):e._e()],1)}),0)],1)]):e._e()]],2)}),0)],2)])])])])]),e._v(" "),a("div",{staticClass:"template-cell template-cell-r define-template-tab",style:{right:e.rightWidth}},[a("div",{staticClass:"template-cell-title font-14 color-303133"},[e._v("控件设置")]),e._v(" "),a("div",{attrs:{label:"",name:"first"}},[a("div",{attrs:{id:"edit-box"}},[a("div",{staticClass:"edit-view baby-info-flag baby-info"},[e._l(e.tempaletDataList,function(t,i){return[e.currentIndex!=i||t.systemFlag||6==t.type?e._e():[a("div",{key:"child"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.title,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"title",i)},"update:input-value":function(i){return e.$set(t,"title",i)}}}),e._v(" "),7==t.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n 图片最多可添加9张\n ")]):e._e()],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||6!=t.type?e._e():[a("div",{key:"child62"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.startTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"startTitle",i)},"update:input-value":function(i){return e.$set(t,"startTitle",i)}}})],1),e._v(" "),a("div",{key:"child64"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题2 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.endTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"endTitle",i)},"update:input-value":function(i){return e.$set(t,"endTitle",i)}}})],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||11==t.type||5==t.type||7==t.type?e._e():[a("div",{key:"child1"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("提示文字最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"placeholder",i)},"update:input-value":function(i){return e.$set(t,"placeholder",i)}}}),e._v(" "),2==t.type||9==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入500个字,可显示多行内容")]):e._e(),e._v(" "),1==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入100个字,仅可显示一行内容")]):e._e()],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||3!=t.type?e._e():[a("div",{key:"child11"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("单位最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"placeholder",i)},"update:input-value":function(i){return e.$set(t,"placeholder",i)}}}),e._v(" "),a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最大限制为12位数")])],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||"4"!=t.type?e._e():[a("div",{key:"child111"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():a("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.list,function(n,s){return[a("div",{key:"child10"+s,staticClass:"margin-t-15 limit-w-340",style:0==s?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:300,inputValue:n.value,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){return e.$set(n,"value",t)},"update:input-value":function(t){return e.$set(n,"value",t)}}}),e._v(" "),!t.systemFlag&&t.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){return e.delChildItem(i,s,t)}}}):e._e(),e._v(" "),!t.systemFlag&&s<19?[s==t.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){return e.addChildItem(i,s,t)}}}):e._e()]:e._e()],2)]})],2),e._v(" "),a("div",{key:"parent22"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("选择框类型")]),e._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"item.chooseType"}},[e._v("单选")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"item.chooseType"}},[e._v("多选")])],1)])],e._v(" "),e.currentIndex!=i||t.systemFlag||5!=t.type&&6!=t.type?e._e():[a("div",{key:"child117"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"item.dateType"}},[e._v("\n 年-月-日 时 分\n ")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"item.dateType"}},[e._v("\n 年-月-日\n ")])],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||10!=t.type?e._e():[a("div",{key:"parent210"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("大写")]),e._v(" "),a("el-checkbox",{model:{value:t.openCapitalize,callback:function(i){e.$set(t,"openCapitalize",i)},expression:"item.openCapitalize"}},[e._v("显示大写")])],1)],e._v(" "),e.currentIndex!=i||t.name.includes("groupc")?e._e():[a("div",{key:"parent2"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证")]),e._v(" "),a("el-checkbox",{on:{change:function(i){return e.changeMust(i,!!t.list,t)}},model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"item.isMust"}},[e._v("必填")])],1)],e._v(" "),e.currentIndex!=i||"performanceKing"!=t.name&&"competitorInfo"!=t.name?e._e():[a("div",{key:"parent21"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证 是否必填")]),e._v(" "),a("div",{staticClass:"must-list"},e._l(t.list,function(t,i){return a("div",{key:"list"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"listItem.isMust"}},[e._v(e._s(t.title))])],1)}),0)])],e._v(" "),e.currentIndex!=i||t.name.includes("groupc")?e._e():[a("div",{key:"parent3"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("记忆")]),e._v(" "),a("el-checkbox",{model:{value:t.memory,callback:function(i){e.$set(t,"memory",i)},expression:"item.memory"}},[e._v("是否记忆")])],1)],e._v(" "),e.childIndex==i&&t.children&&t.children.length?[e._l(t.children,function(t,n){return[e.currentChildIndex!=n||t.systemFlag||6==t.type?e._e():[a("div",{key:"child"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.title,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"title",i)},"update:input-value":function(i){return e.$set(t,"title",i)}}}),e._v(" "),7==t.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n 图片最多可添加9张\n ")]):e._e()],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||6!=t.type?e._e():[a("div",{key:"child2"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.startTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"startTitle",i)},"update:input-value":function(i){return e.$set(t,"startTitle",i)}}})],1),e._v(" "),a("div",{key:"child4"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题2 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.endTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"endTitle",i)},"update:input-value":function(i){return e.$set(t,"endTitle",i)}}})],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||5==t.type||7==t.type?e._e():[a("div",{key:"child1"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("提示文字最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"placeholder",i)},"update:input-value":function(i){return e.$set(t,"placeholder",i)}}}),e._v(" "),2==t.type||9==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入500个字,可显示多行内容")]):e._e(),e._v(" "),1==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入100个字,仅可显示一行内容")]):e._e()],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||3!=t.type?e._e():[a("div",{key:"child6"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("单位最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"unit",i)},"update:input-value":function(i){return e.$set(t,"unit",i)}}}),e._v(" "),a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最大限制为12位数")])],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||5!=t.type&&6!=t.type?e._e():[a("div",{key:"child7"+n,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"childItem.dateType"}},[e._v("\n 年-月-日 时 分\n ")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"childItem.dateType"}},[e._v("\n 年-月-日\n ")])],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||"4"!=t.type?e._e():[a("div",{key:"child9"+n,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():a("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.list,function(n,s){return[a("div",{key:"child10"+s,staticClass:"margin-t-15 limit-w-340",style:0==s?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:300,inputValue:n.value,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){return e.$set(n,"value",t)},"update:input-value":function(t){return e.$set(n,"value",t)}}}),e._v(" "),!t.systemFlag&&t.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){return e.delChildItem(i,s,t)}}}):e._e(),e._v(" "),!t.systemFlag&&s<19?[s==t.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){return e.addChildItem(i,s,t)}}}):e._e()]:e._e()],2)]})],2),e._v(" "),a("div",{key:"child922"+n,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("选择框类型")]),e._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"childItem.chooseType"}},[e._v("单选")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"childItem.chooseType"}},[e._v("多选")])],1)])],e._v(" "),e.currentChildIndex!=n||t.systemFlag||10!=t.type?e._e():[a("div",{key:"child910"+n,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("大写")]),e._v(" "),a("el-checkbox",{model:{value:t.openCapitalize,callback:function(i){e.$set(t,"openCapitalize",i)},expression:"childItem.openCapitalize"}},[e._v("显示大写")])],1)],e._v(" "),e.currentChildIndex==n?[a("div",{key:"child11"+n,staticClass:"edit-item"},[a("div",{staticClass:"edit-item-title"},[e._v("验证")]),e._v(" "),a("el-checkbox",{on:{change:function(i){return e.changeMust(i,!!t.list,t)}},model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"childItem.isMust"}},[e._v("必填")])],1)]:e._e(),e._v(" "),e.currentChildIndex!=n||"performanceKing"!=t.name&&"competitorInfo"!=t.name?e._e():[a("div",{key:"child111"+n,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证 是否必填")]),e._v(" "),a("div",{staticClass:"must-list"},e._l(t.list,function(t,i){return a("div",{key:"list111"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"listItem.isMust"}},[e._v(e._s(t.title))])],1)}),0)])],e._v(" "),e.currentChildIndex==n?[a("div",{key:"child12"+n,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("记忆")]),e._v(" "),a("el-checkbox",{model:{value:t.memory,callback:function(i){e.$set(t,"memory",i)},expression:"childItem.memory"}},[e._v("是否记忆")])],1)]:e._e()]})]:e._e()]})],2)])])])])]),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}}),e._v(" "),e.setVisible?a("custom-set",{attrs:{templateObj:e.templateObj,storeList:e.storeList},on:{closeSet:e.closeSet}}):e._e()],1)},staticRenderFns:[]};var V=i("VU/8")(O,L,!1,function(e){i("zy2t")},"data-v-14decdbc",null);t.default=V.exports},MZ4b:function(e,t){},O3gZ:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",e.childItem.title.length>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))])]),e._v(" "),i("ul",{staticClass:"view-content"},e._l(e.childItem.list,function(t,a){return i("li",{key:"performance"+a,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",t.title.length>=6?"title-pre-wrap":""]},[e._v(e._s(t.title))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[e._v(e._s(t.placeholder)+" "+e._s(t.isMust?"(必填)":""))])])])}),0),e._v(" "),"competitorInfo"==e.childItem.name?i("div",{staticClass:"compete-add"},[e._v("\n +竞品信息\n ")]):e._e()])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("hEsI")},"data-v-51fed69c",null);t.default=s.exports},VKgB:function(e,t){},dy5a:function(e,t){},hEsI:function(e,t){},rYZf:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("VKgB")},"data-v-39067a2d",null);t.default=s.exports},ut2q:function(e,t){},zHtI:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:[2==e.childItem.type?"h-66":""]},[9!=e.childItem.type?i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]):e._e(),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==e.childItem.type?"15px":"0"}},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":""))])]),e._v(" "),10==e.childItem.type&&e.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[e._v("大写:壹万元整(示例)")]):e._e()])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("92mS")},"data-v-17b428fa",null);t.default=s.exports},zy2t:function(e,t){}});
\ No newline at end of file
webpackJsonp([69],{JPjq:function(t,e){},"qWC+":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),r=a.n(o),s=a("fPyK"),l=a("Ggl+"),i=a("P9l9"),n=a("Ch4/"),c=a("PI0u"),u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,selectRadio:0,showDialog:!1,conditionObj:{keyword:"",storeStatus:"",isCompleted:"",storeGroupIds:[]},loading:!1,completeStatusOptions:[{label:"门店完善状态",value:""},{label:"已完善",value:"1"},{label:"未完善",value:"0"}],storeStatusOptions:[{value:"",label:"所有门店状态"},{value:"0",label:"待审核"},{value:"1",label:"正常"},{value:"2",label:"审核失败"},{value:"3",label:"停业整顿"},{value:"4",label:"回收站"},{value:"5",label:"删除"}],statistics:{},tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroupIds=t,this.currentPage=1,this.getTableList()},searchStore:Object(c.a)(function(t){this.currentPage,this.getTableList()},500),clearInput:function(t){1==this.currentPage?this.getTableList():this.currentPage=1},checkStoreGroupIds:function(t){this.currentPage=1,this.conditionObj.storeGroupIds=t,this.getTableList()},selectBrandId:function(t){this.activeBrand=t},setSelectTab:function(t){this.activeTab=t.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toSalerMonth:function(t,e){this.$router.push("/salerMonthDetail?storeId="+e.storeId+"&yearMonth="+this.yearMonth)},getTableList:function(t){var e=this;e.loading=!0;var a={yearMonth:e.yearMonth||e.$route.query.yearMonth,keyword:e.conditionObj.keyword||"",storeStatus:e.conditionObj.storeStatus||"",isCompleted:e.conditionObj.isCompleted||"",storeGroupIds:e.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(i.b)("/haoban-app-performance-three-web/performance/query-store-month-performance",a).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return a.result.list&&a.result.list.length&&(a.result.list.forEach(function(t){t.performance=Object(c.c)(Number(t.performance))}),a.result.statistics&&r()(a.result.statistics).length?(e.statistics=a.result.statistics,e.tableData.unshift({completeStatus:a.result.statistics.totalComplete,performance:Object(c.c)(Number(a.result.statistics.totalPerformance)),storeName:a.result.statistics.totalStore,totalComplete:a.result.statistics.totalComplete,totalPerformance:Object(c.c)(Number(a.result.statistics.totalPerformance)),totalStore:a.result.statistics.totalStore})):e.tableData.unshift({completeStatus:e.statistics.totalComplete,performance:Object(c.c)(Number(e.statistics.totalPerformance)),storeName:e.statistics.totalStore,totalComplete:e.statistics.totalComplete,totalPerformance:e.statistics.totalPerformance,totalStore:e.statistics.totalStore})),e.tableData=a.result.list||[],void(e.total=a.result.pageInfo?a.result.pageInfo.total:0);n.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.yearMonth=this.$route.query.yearMonth,this.getTableList())}},mounted:function(){this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&(this.yearMonth=this.$route.query.yearMonth,this.getTableList())},components:{qrcodeDialog:s.a,gicSelectGroup:l.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap common-right-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 margin-l-10",attrs:{maxlength:"50",placeholder:"请输入门店名称/code","prefix-icon":"el-icon-search",clearable:""},on:{change:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.searchStore(a);var a},clear:function(e){return t.clearInput(e)}},model:{value:t.conditionObj.keyword,callback:function(e){t.$set(t.conditionObj,"keyword",e)},expression:"conditionObj.keyword"}}),t._v(" "),a("el-select",{staticClass:"w-131 m-l-10",attrs:{placeholder:"门店完善状态"},on:{change:t.changeSelect},model:{value:t.conditionObj.isCompleted,callback:function(e){t.$set(t.conditionObj,"isCompleted",e)},expression:"conditionObj.isCompleted"}},t._l(t.completeStatusOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroupIds},on:{checkGroupIds:t.checkGroupIds}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"})]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{class:["flex flex-pack-center flex-start",e.row.totalStore?"color-303133":""]},[t._v(t._s(e.row.totalStore?"总计:"+e.row.totalStore+"家":e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"月指标"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{class:[e.row.totalStore?"color-303133":""]},[t._v(t._s(e.row.performance))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"门店完善状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.totalStore?a("div",{staticClass:"color-303133"},[t._v(t._s("已完善:"+e.row.totalComplete+"家"))]):a("div",[t._v(t._s(0==e.row.completeStatus?"未完善":"已完善"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交人"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.operationStaffName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.totalStore?t._e():a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toSalerMonth(e.$index,e.row)}}},[t._v("导购月指标详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var p=a("VU/8")(u,d,!1,function(t){a("JPjq")},"data-v-91c827bc",null);e.default=p.exports}}); webpackJsonp([70],{JPjq:function(t,e){},"qWC+":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),r=a.n(o),s=a("fPyK"),l=a("Ggl+"),i=a("P9l9"),n=a("Ch4/"),c=a("PI0u"),u={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,selectRadio:0,showDialog:!1,conditionObj:{keyword:"",storeStatus:"",isCompleted:"",storeGroupIds:[]},loading:!1,completeStatusOptions:[{label:"门店完善状态",value:""},{label:"已完善",value:"1"},{label:"未完善",value:"0"}],storeStatusOptions:[{value:"",label:"所有门店状态"},{value:"0",label:"待审核"},{value:"1",label:"正常"},{value:"2",label:"审核失败"},{value:"3",label:"停业整顿"},{value:"4",label:"回收站"},{value:"5",label:"删除"}],statistics:{},tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{checkGroupIds:function(t){this.conditionObj.storeGroupIds=t,this.currentPage=1,this.getTableList()},searchStore:Object(c.a)(function(t){this.currentPage,this.getTableList()},500),clearInput:function(t){1==this.currentPage?this.getTableList():this.currentPage=1},checkStoreGroupIds:function(t){this.currentPage=1,this.conditionObj.storeGroupIds=t,this.getTableList()},selectBrandId:function(t){this.activeBrand=t},setSelectTab:function(t){this.activeTab=t.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},toSalerMonth:function(t,e){this.$router.push("/salerMonthDetail?storeId="+e.storeId+"&yearMonth="+this.yearMonth)},getTableList:function(t){var e=this;e.loading=!0;var a={yearMonth:e.yearMonth||e.$route.query.yearMonth,keyword:e.conditionObj.keyword||"",storeStatus:e.conditionObj.storeStatus||"",isCompleted:e.conditionObj.isCompleted||"",storeGroupIds:e.conditionObj.storeGroupIds.map(function(t){return t.storeGroupId}).join(",")||"",pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.activeBrand};Object(i.b)("/haoban-app-performance-three-web/performance/query-store-month-performance",a).then(function(t){var a=t.data;if(e.loading=!1,1==a.errorCode)return a.result.list&&a.result.list.length&&(a.result.list.forEach(function(t){t.performance=Object(c.c)(Number(t.performance))}),a.result.statistics&&r()(a.result.statistics).length?(e.statistics=a.result.statistics,e.tableData.unshift({completeStatus:a.result.statistics.totalComplete,performance:Object(c.c)(Number(a.result.statistics.totalPerformance)),storeName:a.result.statistics.totalStore,totalComplete:a.result.statistics.totalComplete,totalPerformance:Object(c.c)(Number(a.result.statistics.totalPerformance)),totalStore:a.result.statistics.totalStore})):e.tableData.unshift({completeStatus:e.statistics.totalComplete,performance:Object(c.c)(Number(e.statistics.totalPerformance)),storeName:e.statistics.totalStore,totalComplete:e.statistics.totalComplete,totalPerformance:e.statistics.totalPerformance,totalStore:e.statistics.totalStore})),e.tableData=a.result.list||[],void(e.total=a.result.pageInfo?a.result.pageInfo.total:0);n.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.yearMonth=this.$route.query.yearMonth,this.getTableList())}},mounted:function(){this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&(this.yearMonth=this.$route.query.yearMonth,this.getTableList())},components:{qrcodeDialog:s.a,gicSelectGroup:l.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap common-right-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 margin-l-10",attrs:{maxlength:"50",placeholder:"请输入门店名称/code","prefix-icon":"el-icon-search",clearable:""},on:{change:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.searchStore(a);var a},clear:function(e){return t.clearInput(e)}},model:{value:t.conditionObj.keyword,callback:function(e){t.$set(t.conditionObj,"keyword",e)},expression:"conditionObj.keyword"}}),t._v(" "),a("el-select",{staticClass:"w-131 m-l-10",attrs:{placeholder:"门店完善状态"},on:{change:t.changeSelect},model:{value:t.conditionObj.isCompleted,callback:function(e){t.$set(t.conditionObj,"isCompleted",e)},expression:"conditionObj.isCompleted"}},t._l(t.completeStatusOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1),t._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:t.brandId,width:213,selectData:t.conditionObj.storeGroupIds},on:{checkGroupIds:t.checkGroupIds}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"})]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{class:["flex flex-pack-center flex-start",e.row.totalStore?"color-303133":""]},[t._v(t._s(e.row.totalStore?"总计:"+e.row.totalStore+"家":e.row.storeName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"月指标"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{class:[e.row.totalStore?"color-303133":""]},[t._v(t._s(e.row.performance))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"门店完善状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.totalStore?a("div",{staticClass:"color-303133"},[t._v(t._s("已完善:"+e.row.totalComplete+"家"))]):a("div",[t._v(t._s(0==e.row.completeStatus?"未完善":"已完善"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"提交人"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(e.row.operationStaffName))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.totalStore?t._e():a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toSalerMonth(e.$index,e.row)}}},[t._v("导购月指标详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var p=a("VU/8")(u,d,!1,function(t){a("JPjq")},"data-v-91c827bc",null);e.default=p.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([70],{"Q3j/":function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={name:"page404",data:function(){return{gicHost:"",message:""}},methods:{toLogin:function(){location.href=this.gicHost+"/gic-web/#/login?ishb=1"}},mounted:function(){var e=this.$route.query.errorCode;this.message={1000:"系统异常",1001:"您还不是好办的管理员,请在 GIC 后台绑定好办企业后再登录",1003:"系统异常,通过手机号查询失败",1004:"企微应用未授权",1005:"登录超时,请重新登录",1006:"账号已冻结,请联系管理员"}[e]||"系统异常,请联系达摩管理员",this.$message.error(this.message),setTimeout(this.toLogin,3e3);var t=JSON.parse(sessionStorage.getItem("userInfos")||"{}");this.gicHost="string"==typeof t.gicHost?t.gicHost.replace(/\/$/,""):""}},o={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"error-page"})},staticRenderFns:[]};var r=s("VU/8")(i,o,!1,function(e){s("xs31")},"data-v-8afbf5d0",null);t.default=r.exports},xs31:function(e,t){}}); webpackJsonp([71],{"Q3j/":function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i={name:"page404",data:function(){return{gicHost:"",message:""}},methods:{toLogin:function(){location.href=this.gicHost+"/gic-web/#/login?ishb=1"}},mounted:function(){var e=this.$route.query.errorCode;this.message={1000:"系统异常",1001:"您还不是好办的管理员,请在 GIC 后台绑定好办企业后再登录",1003:"系统异常,通过手机号查询失败",1004:"企微应用未授权",1005:"登录超时,请重新登录",1006:"账号已冻结,请联系管理员"}[e]||"系统异常,请联系达摩管理员",this.$message.error(this.message),setTimeout(this.toLogin,3e3);var t=JSON.parse(sessionStorage.getItem("userInfos")||"{}");this.gicHost="string"==typeof t.gicHost?t.gicHost.replace(/\/$/,""):""}},o={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"error-page"})},staticRenderFns:[]};var r=s("VU/8")(i,o,!1,function(e){s("xs31")},"data-v-8afbf5d0",null);t.default=r.exports},xs31:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([99],{K1Vb:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("ibab")},"data-v-42a8460e",null);e.default=o.exports},ibab:function(t,e){}}); webpackJsonp([72],{jPcV:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("rvl7")},"data-v-7e45f36b",null);e.default=o.exports},rvl7:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([72],{ZEf4:function(t,e){},w5vQ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("mvHQ"),i=a.n(n),o=a("P9l9"),s=a("Ch4/"),c={name:"AppVisibleSetting",data:function(){return{loading:!1,settingData:{checked:[]},allApps:[]}},created:function(){this.getSetting()},methods:{getSetting:function(){var t=this;Object(o.b)("/haoban-manage3-web/application-open-close-list",{}).then(function(e){var a=e.data||{},n=a.errorCode,i=a.result;if(1!=n)return s.a.errorMsg(e.data);var o=(i||{}).allList;o=Array.isArray(o)?o:[],t.allApps=o,t.settingData.checked=o.filter(function(t){return 1==t.openFlag}).map(function(t){return t.applicationId})})},onSave:function(){var t=this;this.loading=!0;var e=this.settingData.checked,a=this.allApps.map(function(t){return{applicationId:t.applicationId,openFlag:e.includes(t.applicationId)?1:0}}),n={dataJson:i()(a)};Object(o.g)("/haoban-manage3-web/open-or-close",n).then(function(e){if(1!=(e.data||{}).errorCode)return s.a.errorMsg(e.data);t.$message.success("保存成功")}).finally(function(){setTimeout(function(){return t.loading=!1},100)})}}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"guide-setting"},[a("p",{staticClass:"app-auth-tip"},[t._v("设置导购可见应用")]),t._v(" "),a("el-checkbox-group",{model:{value:t.settingData.checked,callback:function(e){t.$set(t.settingData,"checked",e)},expression:"settingData.checked"}},t._l(t.allApps,function(e){return a("el-checkbox",{key:e.applicationId,staticStyle:{"margin-left":"0"},attrs:{label:e.applicationId}},[t._v(t._s(e.applicationName))])}),1),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveAppsVisible)?a("el-button",{staticClass:"save-btn",attrs:{"limit-code":t.$buttonCode.saveAppsVisible,loading:t.loading,type:"primary"},on:{click:t.onSave}},[t._v("保存")]):t._e()],1)},staticRenderFns:[]};var r=a("VU/8")(c,l,!1,function(t){a("ZEf4")},"data-v-7a74d96c",null);e.default=r.exports}}); webpackJsonp([73],{ZEf4:function(t,e){},w5vQ:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("mvHQ"),i=a.n(n),o=a("P9l9"),s=a("Ch4/"),c={name:"AppVisibleSetting",data:function(){return{loading:!1,settingData:{checked:[]},allApps:[]}},created:function(){this.getSetting()},methods:{getSetting:function(){var t=this;Object(o.b)("/haoban-manage3-web/application-open-close-list",{}).then(function(e){var a=e.data||{},n=a.errorCode,i=a.result;if(1!=n)return s.a.errorMsg(e.data);var o=(i||{}).allList;o=Array.isArray(o)?o:[],t.allApps=o,t.settingData.checked=o.filter(function(t){return 1==t.openFlag}).map(function(t){return t.applicationId})})},onSave:function(){var t=this;this.loading=!0;var e=this.settingData.checked,a=this.allApps.map(function(t){return{applicationId:t.applicationId,openFlag:e.includes(t.applicationId)?1:0}}),n={dataJson:i()(a)};Object(o.g)("/haoban-manage3-web/open-or-close",n).then(function(e){if(1!=(e.data||{}).errorCode)return s.a.errorMsg(e.data);t.$message.success("保存成功")}).finally(function(){setTimeout(function(){return t.loading=!1},100)})}}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"guide-setting"},[a("p",{staticClass:"app-auth-tip"},[t._v("设置导购可见应用")]),t._v(" "),a("el-checkbox-group",{model:{value:t.settingData.checked,callback:function(e){t.$set(t.settingData,"checked",e)},expression:"settingData.checked"}},t._l(t.allApps,function(e){return a("el-checkbox",{key:e.applicationId,staticStyle:{"margin-left":"0"},attrs:{label:e.applicationId}},[t._v(t._s(e.applicationName))])}),1),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveAppsVisible)?a("el-button",{staticClass:"save-btn",attrs:{"limit-code":t.$buttonCode.saveAppsVisible,loading:t.loading,type:"primary"},on:{click:t.onSave}},[t._v("保存")]):t._e()],1)},staticRenderFns:[]};var r=a("VU/8")(c,l,!1,function(t){a("ZEf4")},"data-v-7a74d96c",null);e.default=r.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([73],{IfXV:function(t,e){},xWf4:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Dd8w"),n=a.n(i),o=a("P9l9"),l=a("PI0u"),s=a("+hGG"),r={data:function(){return{form:{title:"",pageSize:20,pageNum:1},dialogVisible:!1,welcomeId:"",total:0,wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",friendSettingId:"",btnLoading:!1,iconType:{1:"iconwenjianleixingtupian",2:"iconwenjianleixingshipin",3:"iconwenjianleixing-wenjian",4:"iconwenjianleixing-lianjie",5:"iconwenjianleixing-xiaochengxu",6:"iconwenjianleixing-xiaochengxu",7:"icongongzhonghao1"},tableData:[],loading:!1}},mounted:function(){this.getData()},activated:function(){this.getData()},props:{type:{type:[Number,String],default:1}},components:{relationDialog:s.default},watch:{type:function(t){this.form={title:"",pageSize:20,pageNum:1},this.getData()}},methods:{toInput:Object(l.a)(function(t,e){this.getData()},500),clearSearch:function(){this.getData()},changeRoute:function(t){this.$router.push({path:"/editSalutatorySet",query:{id:t.welcomeId,isDefalut:t.defaultWelcomeFlag,type:t.type}})},addSalutatory:function(){this.$router.push({path:"/salutatorySet",query:{type:this.type}})},remove:function(t){2==t.type?this.delType2(t):this.delType1(t)},delType1:function(t){var e=this,a="模板删除后将无法恢复";1==t.defaultWelcomeFlag&&(a="此条欢迎语为全员欢迎语,删除后可能影响欢迎语发送"),this.$confirm(a,"确认要删除该欢迎语吗?",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.b)("/haoban-manage3-web/welcome/remove",{welcomeId:t.welcomeId}).then(function(t){console.log(t),0==t.data.code&&(e.$message.success("删除成功"),e.getData())})})},delType2:function(t){var e=this;Object(o.b)("/haoban-manage3-web/welcome/statistics",{welcomeId:t.welcomeId}).then(function(a){var i=a.data.result,n="";i?(i.qrCodeReferNum&&i.linkReferNum?n="当前欢迎语已关联状态为正常的活码("+i.qrCodeReferNum+")、链接("+i.linkReferNum+"),请确认相关活码是否不再使用该欢迎语以及链接已投放结束,解除关联后才可删除该模板":i.qrCodeReferNum?n="当前欢迎语已关联状态为正常的活码("+i.qrCodeReferNum+"),请确认相关活码是否不再使用该欢迎语,解除关联后才可删除该模板":i.linkReferNum&&(n="当前欢迎语已关联链接("+i.linkReferNum+"),请确认相关链接已投放结束,解除关联后才可删除该模板"),e.$confirm(n,"无法删除该欢迎语",{confirmButtonText:"关联详情",cancelButtonText:"取消",type:"warning"}).then(function(){e.showRelateDetail(t)})):(n="欢迎语删除后将无法恢复",e.$confirm(n,"确认要删除该欢迎语吗?",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.b)("/haoban-manage3-web/welcome/remove",{welcomeId:t.welcomeId}).then(function(t){console.log(t),0==t.data.code&&(e.$message.success("删除成功"),e.getData())})}))})},showRelateDetail:function(t){this.dialogVisible=!0,this.welcomeId=t.welcomeId},goLinkDetail:function(t){2==t.type?window.open("/haoban-3/#/actCodeDetail?hmId="+t.referId):window.open("/haoban-3/#/attractFlowLinkInfo/"+t.referId)},getData:function(){var t=this;this.loading=!0,Object(o.f)("/haoban-manage3-web/welcome/list",n()({},this.form,{wxEnterpriseId:this.wxEnterpriseId,type:this.type})).then(function(e){var a=e.data;0==a.code&&a.result&&(t.tableData=a.result.result,t.tableData.forEach(function(t){t.suitDepartmentName=[],t.suitDepartmentList&&t.suitDepartmentList.length&&t.suitDepartmentList.forEach(function(e){t.suitDepartmentName.push(e.departmentName)})}),t.total=a.result.totalCount,t.$nextTick(function(){var e=document.createElement("span");e.style.position="fixed",e.style.opacity=0,e.style.visibility="hidden";var a=t.$refs.title&&t.$refs.title.offsetWidth-85;t.tableData.map(function(t){return e.innerHTML=t.title,document.body.appendChild(e),t.isOverflow=e.offsetWidth>a,t}),document.body.removeChild(e)}))}).catch(function(e){t.$message.error({duration:1e3,message:e.message})}).finally(function(){t.loading=!1})},handleSizeChange:function(t){this.form.pageNum=1,this.form.pageSize=t,this.getData()},handleCurrentChange:function(t){this.form.pageNum=t,this.getData()}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"daily-set-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"admin-tip-body"},[1==t.type?a("div",{staticClass:"el-alert el-alert--info",staticStyle:{width:"860px"},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),t._v(" "),t._m(0)]):a("div",{staticClass:"el-alert el-alert--info",staticStyle:{width:"860px"},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),t._v(" "),t._m(1)])]),t._v(" "),a("div",{staticClass:"flex flex-space-between m-b-20 m-t-20"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入标题",maxlength:"50",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addSalutatory)?a("el-button",{attrs:{"limit-code":t.$buttonCode.addSalutatory,type:"primary"},on:{click:t.addSalutatory}},[t._v("新建欢迎语")]):t._e()],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"title",label:"标题",width:"200",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return a("div",{ref:"title"},[i.isOverflow?a("el-tooltip",{attrs:{placement:"top",content:i.title}},[a("span",{staticClass:"title-text"},[t._v(t._s(i.title))])]):a("span",[t._v(t._s(i.title))]),t._v(" "),1==i.defaultWelcomeFlag?a("el-tag",{attrs:{size:"mini"}},[t._v("默认欢迎语")]):t._e()],1)}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"welcomeContent",label:"内容","show-overflow-tooltip":"","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(t._s(a.welcomeContent))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"附件",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.welcomeMediaList&&i.welcomeMediaList.length?a("el-popover",{attrs:{placement:"top-start",trigger:"hover"}},[t._l(i.welcomeMediaList,function(e){return a("div",{key:e.welcomeMediaId,staticClass:"flexBox"},[a("svg-icon",{staticStyle:{"margin-right":"13px"},attrs:{iconname:t.iconType[e.mediaType],size:"16"}}),t._v(" "),a("span",{staticClass:"popverText"},[t._v(t._s(e.mediaTitle))])],1)}),t._v(" "),i.welcomeMediaList&&i.welcomeMediaList.length?a("div",{staticClass:"flexBox",attrs:{slot:"reference"},slot:"reference"},[a("svg-icon",{staticStyle:{"margin-right":"10px"},attrs:{iconname:t.iconType[i.welcomeMediaList[0].mediaType],size:"40"}}),t._v(" "),a("span",{staticClass:"wrapText"},[t._v(" "+t._s(i.welcomeMediaList[0].mediaTitle))])],1):t._e()],2):a("div",[t._v("--")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"updateTime",label:"更新时间",width:"180","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(t._s(t._f("formatTimeStamp")(a.updateTime)))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"creatorName",label:"创建人",width:"120","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"modifierName",label:"操作人",width:"120","show-overflow-tooltip":""}}),t._v(" "),1==t.type?a("el-table-column",{attrs:{prop:"suitDepartmentName",label:"适用范围",width:"300"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.defaultWelcomeFlag?a("div",[a("div",[t._v("全体成员")])]):a("div",[i.suitDepartmentName.join(",").length>40?a("div",{staticClass:"wrapText"},[t._v("\n "+t._s(i.suitDepartmentName.join(",").slice(0,40)+"...")+"\n ")]):a("div",{staticClass:"wrapText"},[t._v("\n "+t._s(i.suitDepartmentName.join(","))+"\n ")])])]}}])}):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.editSalutatory)||t.$getButtonLimit(t.$buttonCode.delSalutatory)?a("el-table-column",{attrs:{label:"操作",width:2==t.type?220:180,fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{directives:[{name:"show",rawName:"v-show",value:2==i.type,expression:"row.type == 2"}],attrs:{type:"text"},on:{click:function(e){return t.showRelateDetail(i)}}},[t._v("关联详情")]),t._v(" "),t.$getButtonLimit(t.$buttonCode.editSalutatory)?a("el-button",{attrs:{"limit-code":t.$buttonCode.editSalutatory,type:"text"},on:{click:function(e){return t.changeRoute(i)}}},[t._v("编辑")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.delSalutatory)?a("el-button",{attrs:{"limit-code":t.$buttonCode.delSalutatory,type:"text"},on:{click:function(e){return t.remove(i)}}},[t._v("删除")]):t._e()]}}])}):t._e()],1),t._v(" "),a("relation-dialog",{attrs:{dialogVisible:t.dialogVisible,id:t.welcomeId},on:{"update:dialogVisible":function(e){t.dialogVisible=e},"update:dialog-visible":function(e){t.dialogVisible=e},goLinkDetail:t.goLinkDetail}}),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.form.pageNum,"page-sizes":[20,40,60,80],"page-size":t.form.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert__content"},[e("p",{staticClass:"el-alert__title"},[this._v("\n 1、若使用此处的好办欢迎语,请关闭企微欢迎语或其他自建应用/第三方应用的欢迎语配置,否则会产生冲突,好办欢迎语不生效。"),e("br"),this._v("\n 2、在使用此处好办欢迎语的情况下,只有关联了好办导购账号的企微员工在添加好友后才能触发欢迎语。 "),e("br"),this._v("\n 3、可按照企微不同的组织架构来分别配置不同的欢迎语。(若某企微员工在多个企微部门,或者某企微部门配置了多条欢迎语,则仅发送“更新时间”最新的那条欢迎语) "),e("br"),this._v("\n 4、创建欢迎语时,可在欢迎语内容中配置“带参会员小程序/带参公众号二维码”,以便于在“不同开平”的情况下,保证“客户”身份与“好友”身份的对应,"),e("a",{staticStyle:{color:"#2f54eb"},attrs:{href:"https://www.yuque.com/exnmlu/oo64hg/bsabp2",target:"_blank"}},[this._v("详见>>>")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert__content"},[e("p",{staticClass:"el-alert__title"},[this._v("\n 作为一个“欢迎语库”,下方所创建的欢迎语将可被不同模块进行引用,如【活码管理】中的活码欢迎语、链接欢迎语。\n ")])])}]};var u=a("VU/8")(r,c,!1,function(t){a("IfXV")},"data-v-78356120",null);e.default=u.exports}}); webpackJsonp([74],{IfXV:function(t,e){},xWf4:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("Dd8w"),n=a.n(i),o=a("P9l9"),l=a("PI0u"),s=a("+hGG"),r={data:function(){return{form:{title:"",pageSize:20,pageNum:1},dialogVisible:!1,welcomeId:"",total:0,wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",friendSettingId:"",btnLoading:!1,iconType:{1:"iconwenjianleixingtupian",2:"iconwenjianleixingshipin",3:"iconwenjianleixing-wenjian",4:"iconwenjianleixing-lianjie",5:"iconwenjianleixing-xiaochengxu",6:"iconwenjianleixing-xiaochengxu",7:"icongongzhonghao1"},tableData:[],loading:!1}},mounted:function(){this.getData()},activated:function(){this.getData()},props:{type:{type:[Number,String],default:1}},components:{relationDialog:s.default},watch:{type:function(t){this.form={title:"",pageSize:20,pageNum:1},this.getData()}},methods:{toInput:Object(l.a)(function(t,e){this.getData()},500),clearSearch:function(){this.getData()},changeRoute:function(t){this.$router.push({path:"/editSalutatorySet",query:{id:t.welcomeId,isDefalut:t.defaultWelcomeFlag,type:t.type}})},addSalutatory:function(){this.$router.push({path:"/salutatorySet",query:{type:this.type}})},remove:function(t){2==t.type?this.delType2(t):this.delType1(t)},delType1:function(t){var e=this,a="模板删除后将无法恢复";1==t.defaultWelcomeFlag&&(a="此条欢迎语为全员欢迎语,删除后可能影响欢迎语发送"),this.$confirm(a,"确认要删除该欢迎语吗?",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.b)("/haoban-manage3-web/welcome/remove",{welcomeId:t.welcomeId}).then(function(t){console.log(t),0==t.data.code&&(e.$message.success("删除成功"),e.getData())})})},delType2:function(t){var e=this;Object(o.b)("/haoban-manage3-web/welcome/statistics",{welcomeId:t.welcomeId}).then(function(a){var i=a.data.result,n="";i?(i.qrCodeReferNum&&i.linkReferNum?n="当前欢迎语已关联状态为正常的活码("+i.qrCodeReferNum+")、链接("+i.linkReferNum+"),请确认相关活码是否不再使用该欢迎语以及链接已投放结束,解除关联后才可删除该模板":i.qrCodeReferNum?n="当前欢迎语已关联状态为正常的活码("+i.qrCodeReferNum+"),请确认相关活码是否不再使用该欢迎语,解除关联后才可删除该模板":i.linkReferNum&&(n="当前欢迎语已关联链接("+i.linkReferNum+"),请确认相关链接已投放结束,解除关联后才可删除该模板"),e.$confirm(n,"无法删除该欢迎语",{confirmButtonText:"关联详情",cancelButtonText:"取消",type:"warning"}).then(function(){e.showRelateDetail(t)})):(n="欢迎语删除后将无法恢复",e.$confirm(n,"确认要删除该欢迎语吗?",{confirmButtonText:"删除",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.b)("/haoban-manage3-web/welcome/remove",{welcomeId:t.welcomeId}).then(function(t){console.log(t),0==t.data.code&&(e.$message.success("删除成功"),e.getData())})}))})},showRelateDetail:function(t){this.dialogVisible=!0,this.welcomeId=t.welcomeId},goLinkDetail:function(t){2==t.type?window.open("/haoban-3/#/actCodeDetail?hmId="+t.referId):window.open("/haoban-3/#/attractFlowLinkInfo/"+t.referId)},getData:function(){var t=this;this.loading=!0,Object(o.f)("/haoban-manage3-web/welcome/list",n()({},this.form,{wxEnterpriseId:this.wxEnterpriseId,type:this.type})).then(function(e){var a=e.data;0==a.code&&a.result&&(t.tableData=a.result.result,t.tableData.forEach(function(t){t.suitDepartmentName=[],t.suitDepartmentList&&t.suitDepartmentList.length&&t.suitDepartmentList.forEach(function(e){t.suitDepartmentName.push(e.departmentName)})}),t.total=a.result.totalCount,t.$nextTick(function(){var e=document.createElement("span");e.style.position="fixed",e.style.opacity=0,e.style.visibility="hidden";var a=t.$refs.title&&t.$refs.title.offsetWidth-85;t.tableData.map(function(t){return e.innerHTML=t.title,document.body.appendChild(e),t.isOverflow=e.offsetWidth>a,t}),document.body.removeChild(e)}))}).catch(function(e){t.$message.error({duration:1e3,message:e.message})}).finally(function(){t.loading=!1})},handleSizeChange:function(t){this.form.pageNum=1,this.form.pageSize=t,this.getData()},handleCurrentChange:function(t){this.form.pageNum=t,this.getData()}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"daily-set-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"admin-tip-body"},[1==t.type?a("div",{staticClass:"el-alert el-alert--info",staticStyle:{width:"860px"},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),t._v(" "),t._m(0)]):a("div",{staticClass:"el-alert el-alert--info",staticStyle:{width:"860px"},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),t._v(" "),t._m(1)])]),t._v(" "),a("div",{staticClass:"flex flex-space-between m-b-20 m-t-20"},[a("el-input",{staticClass:"w-264",staticStyle:{width:"264px"},attrs:{placeholder:"请输入标题",maxlength:"50",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.form.title,callback:function(e){t.$set(t.form,"title",e)},expression:"form.title"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addSalutatory)?a("el-button",{attrs:{"limit-code":t.$buttonCode.addSalutatory,type:"primary"},on:{click:t.addSalutatory}},[t._v("新建欢迎语")]):t._e()],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",style:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"title",label:"标题",width:"200",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return a("div",{ref:"title"},[i.isOverflow?a("el-tooltip",{attrs:{placement:"top",content:i.title}},[a("span",{staticClass:"title-text"},[t._v(t._s(i.title))])]):a("span",[t._v(t._s(i.title))]),t._v(" "),1==i.defaultWelcomeFlag?a("el-tag",{attrs:{size:"mini"}},[t._v("默认欢迎语")]):t._e()],1)}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"welcomeContent",label:"内容","show-overflow-tooltip":"","min-width":"200"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(t._s(a.welcomeContent))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"附件",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.welcomeMediaList&&i.welcomeMediaList.length?a("el-popover",{attrs:{placement:"top-start",trigger:"hover"}},[t._l(i.welcomeMediaList,function(e){return a("div",{key:e.welcomeMediaId,staticClass:"flexBox"},[a("svg-icon",{staticStyle:{"margin-right":"13px"},attrs:{iconname:t.iconType[e.mediaType],size:"16"}}),t._v(" "),a("span",{staticClass:"popverText"},[t._v(t._s(e.mediaTitle))])],1)}),t._v(" "),i.welcomeMediaList&&i.welcomeMediaList.length?a("div",{staticClass:"flexBox",attrs:{slot:"reference"},slot:"reference"},[a("svg-icon",{staticStyle:{"margin-right":"10px"},attrs:{iconname:t.iconType[i.welcomeMediaList[0].mediaType],size:"40"}}),t._v(" "),a("span",{staticClass:"wrapText"},[t._v(" "+t._s(i.welcomeMediaList[0].mediaTitle))])],1):t._e()],2):a("div",[t._v("--")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"updateTime",label:"更新时间",width:"180","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[t._v(t._s(t._f("formatTimeStamp")(a.updateTime)))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"creatorName",label:"创建人",width:"120","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"modifierName",label:"操作人",width:"120","show-overflow-tooltip":""}}),t._v(" "),1==t.type?a("el-table-column",{attrs:{prop:"suitDepartmentName",label:"适用范围",width:"300"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[i.defaultWelcomeFlag?a("div",[a("div",[t._v("全体成员")])]):a("div",[i.suitDepartmentName.join(",").length>40?a("div",{staticClass:"wrapText"},[t._v("\n "+t._s(i.suitDepartmentName.join(",").slice(0,40)+"...")+"\n ")]):a("div",{staticClass:"wrapText"},[t._v("\n "+t._s(i.suitDepartmentName.join(","))+"\n ")])])]}}])}):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.editSalutatory)||t.$getButtonLimit(t.$buttonCode.delSalutatory)?a("el-table-column",{attrs:{label:"操作",width:2==t.type?220:180,fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){var i=e.row;return[a("el-button",{directives:[{name:"show",rawName:"v-show",value:2==i.type,expression:"row.type == 2"}],attrs:{type:"text"},on:{click:function(e){return t.showRelateDetail(i)}}},[t._v("关联详情")]),t._v(" "),t.$getButtonLimit(t.$buttonCode.editSalutatory)?a("el-button",{attrs:{"limit-code":t.$buttonCode.editSalutatory,type:"text"},on:{click:function(e){return t.changeRoute(i)}}},[t._v("编辑")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.delSalutatory)?a("el-button",{attrs:{"limit-code":t.$buttonCode.delSalutatory,type:"text"},on:{click:function(e){return t.remove(i)}}},[t._v("删除")]):t._e()]}}])}):t._e()],1),t._v(" "),a("relation-dialog",{attrs:{dialogVisible:t.dialogVisible,id:t.welcomeId},on:{"update:dialogVisible":function(e){t.dialogVisible=e},"update:dialog-visible":function(e){t.dialogVisible=e},goLinkDetail:t.goLinkDetail}}),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.form.pageNum,"page-sizes":[20,40,60,80],"page-size":t.form.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert__content"},[e("p",{staticClass:"el-alert__title"},[this._v("\n 1、若使用此处的好办欢迎语,请关闭企微欢迎语或其他自建应用/第三方应用的欢迎语配置,否则会产生冲突,好办欢迎语不生效。"),e("br"),this._v("\n 2、在使用此处好办欢迎语的情况下,只有关联了好办导购账号的企微员工在添加好友后才能触发欢迎语。 "),e("br"),this._v("\n 3、可按照企微不同的组织架构来分别配置不同的欢迎语。(若某企微员工在多个企微部门,或者某企微部门配置了多条欢迎语,则仅发送“更新时间”最新的那条欢迎语) "),e("br"),this._v("\n 4、创建欢迎语时,可在欢迎语内容中配置“带参会员小程序/带参公众号二维码”,以便于在“不同开平”的情况下,保证“客户”身份与“好友”身份的对应,"),e("a",{staticStyle:{color:"#2f54eb"},attrs:{href:"https://www.yuque.com/exnmlu/oo64hg/bsabp2",target:"_blank"}},[this._v("详见>>>")])])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-alert__content"},[e("p",{staticClass:"el-alert__title"},[this._v("\n 作为一个“欢迎语库”,下方所创建的欢迎语将可被不同模块进行引用,如【活码管理】中的活码欢迎语、链接欢迎语。\n ")])])}]};var u=a("VU/8")(r,c,!1,function(t){a("IfXV")},"data-v-78356120",null);e.default=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([74],{FLMi:function(t,e){},K8Yn:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),s=a("Qs+A"),l=a("P9l9"),r=a("Ch4/"),i=a("PI0u"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-288+"px",navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/contactsList"},{name:"组织架构管理",path:"/orgStructSet"},{name:"回收站",path:""}],options:[{label:"所有部门类型",value:""},{label:"分组",value:"0"},{label:"门店",value:"1"}],searchInput:"",storeFlag:"",currentPage:1,pageSize:20,total:0,tableData:[],setVisible:!1,recoverItem:{}}},computed:{},methods:{toRecover:function(t,e){this.recoverItem=e,this.setVisible=!0},closeSet:function(){this.setVisible=!1,this.currentPage=1,this.getTableList()},changeRoute:function(t){this.$router.push(t)},toInput:Object(i.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeType:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",storeFlag:e.storeFlag,pageNum:e.currentPage,pageSize:e.pageSize};Object(l.b)("/haoban-manage3-web/department-recycle-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,setDepartment:s.a}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition-search m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入部门名称/CODE/ID",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),a("el-select",{staticClass:"w-191 m-l-10",attrs:{placeholder:"所有部门类型"},on:{change:t.changeType},model:{value:t.storeFlag,callback:function(e){t.storeFlag=e},expression:"storeFlag"}},t._l(t.options,function(t){return a("el-option",{key:t.value+"type",attrs:{label:t.label,value:t.value}})}),1)],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"部门名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["iconfont-hb3 color-2f54eb",1==e.row.isStore?"icondianpu-kuai":"iconqiye-tianchong"]}),a("span",{staticClass:"p-l-10"},[t._v(t._s(e.row.departmentName||"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"ERP CODE","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeCode||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toRecover(e.$index,e.row)}}},[t._v("恢复")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])]),t._v(" "),t.setVisible?a("set-department",{attrs:{recoverItem:t.recoverItem},on:{closeSet:t.closeSet}}):t._e()],1)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"overstore-tip"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("什么是回收站?"),e("br"),this._v("GIC分组或门店被删除后将被放置到回收站,如果是误删或想再次启用,您可以随时恢复它们。")])])])])}]};var u=a("VU/8")(o,c,!1,function(t){a("FLMi")},"data-v-76ee3008",null);e.default=u.exports}}); webpackJsonp([75],{FLMi:function(t,e){},K8Yn:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),s=a("Qs+A"),l=a("P9l9"),r=a("Ch4/"),i=a("PI0u"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-288+"px",navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/contactsList"},{name:"组织架构管理",path:"/orgStructSet"},{name:"回收站",path:""}],options:[{label:"所有部门类型",value:""},{label:"分组",value:"0"},{label:"门店",value:"1"}],searchInput:"",storeFlag:"",currentPage:1,pageSize:20,total:0,tableData:[],setVisible:!1,recoverItem:{}}},computed:{},methods:{toRecover:function(t,e){this.recoverItem=e,this.setVisible=!0},closeSet:function(){this.setVisible=!1,this.currentPage=1,this.getTableList()},changeRoute:function(t){this.$router.push(t)},toInput:Object(i.a)(function(t,e){this.currentPage=1,this.getTableList()},500),clearInput:function(){this.currentPage=1,this.getTableList()},changeType:function(){this.currentPage=1,this.getTableList()},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},getTableList:function(t){var e=this,a={keyWord:e.searchInput||"",storeFlag:e.storeFlag,pageNum:e.currentPage,pageSize:e.pageSize};Object(l.b)("/haoban-manage3-web/department-recycle-list",a).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;r.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{activeBrand:function(t,e){this.activeBrand=t},activeGroup:function(t,e){this.activeGroup=t}},mounted:function(){this.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a,setDepartment:s.a}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-right"},[t._m(0),t._v(" "),a("div",{staticClass:"table-condition-search m-t-20"},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入部门名称/CODE/ID",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.searchInput);var a}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),a("el-select",{staticClass:"w-191 m-l-10",attrs:{placeholder:"所有部门类型"},on:{change:t.changeType},model:{value:t.storeFlag,callback:function(e){t.storeFlag=e},expression:"storeFlag"}},t._l(t.options,function(t){return a("el-option",{key:t.value+"type",attrs:{label:t.label,value:t.value}})}),1)],1),t._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"部门名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["iconfont-hb3 color-2f54eb",1==e.row.isStore?"icondianpu-kuai":"iconqiye-tianchong"]}),a("span",{staticClass:"p-l-10"},[t._v(t._s(e.row.departmentName||"--"))])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"ERP CODE","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeCode||"--"))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toRecover(e.$index,e.row)}}},[t._v("恢复")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])]),t._v(" "),t.setVisible?a("set-department",{attrs:{recoverItem:t.recoverItem},on:{closeSet:t.closeSet}}):t._e()],1)],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"overstore-tip"},[e("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title color-606266 font-14"},[this._v("什么是回收站?"),e("br"),this._v("GIC分组或门店被删除后将被放置到回收站,如果是误删或想再次启用,您可以随时恢复它们。")])])])])}]};var u=a("VU/8")(o,c,!1,function(t){a("FLMi")},"data-v-76ee3008",null);e.default=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([75],{Vdwv:function(t,e){},cD4x:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),r=a.n(n),i=a("exGp"),s=a.n(i),o=a("Ch4/"),c=a("3E4D"),l=a("PI0u"),u=a("P9l9"),d={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",loading:!1,searchInput:"",tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的补发卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.repairId)}).catch(function(){})},delCardList:function(t){var e=this,a={repairId:t};Object(u.g)("/haoban-app-customer-web/inner/delete-repair",a).then(function(t){var a=t.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCardPut?repairId="+e.repairId)},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCardPut")},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;return s()(r.a.mark(function e(){var a,n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(a=t).loading=!1,n={wxEnterpriseId:a.wxEnterpriseId,pageNum:a.currentPage,pageSize:a.pageSize},Object(u.g)("/haoban-app-customer-web/inner/page-repair",n).then(function(t){var e=t.data;if(a.loading=!1,1==e.errorCode)return a.tableData=e.result.result||[],void(a.total=e.result.totalCount);o.a.errorMsg(e)}).catch(function(t){a.loading=!1,a.$message.error({duration:1e3,message:t.message})});case 4:case"end":return e.stop()}},e,t)}))()}},mounted:function(){this.$emit("showTab","3"),this.getTableList()}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[t._m(0),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.toNewCard}},[t._v("新增补发")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 0px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券组合名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardCombineName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券模板","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardTemplates)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEdit(e.$index,e.row)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("span",{staticClass:"font-12 color-909399 p-l-10 font-w-300"},[this._v("内购券投放是针对卡券策略中没有下发的内购券,针对员工进行补发")])])}]};var g=a("VU/8")(d,p,!1,function(t){a("Vdwv")},"data-v-751436f6",null);e.default=g.exports}}); webpackJsonp([76],{Vdwv:function(t,e){},cD4x:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("Xxa5"),r=a.n(n),i=a("exGp"),s=a.n(i),o=a("Ch4/"),c=a("3E4D"),l=a("PI0u"),u=a("P9l9"),d={components:{},props:{brandId:{type:String,default:""}},data:function(){return{activeId:"2",wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",loading:!1,searchInput:"",tableData:[],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getTableList()}},methods:{toDel:function(t,e){var a=this;a.$confirm("是否要删除选中的补发卡券?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.delCardList(e.repairId)}).catch(function(){})},delCardList:function(t){var e=this,a={repairId:t};Object(u.g)("/haoban-app-customer-web/inner/delete-repair",a).then(function(t){var a=t.data;if(1==a.errorCode)return c.a.showmsg("删除成功","success"),void e.getTableList(e.brandId);o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},toEdit:function(t,e){this.$router.push("/newCardPut?repairId="+e.repairId)},toInput:Object(l.a)(function(t,e){this.currentPage=1,this.getTableList(this.brandId)},500),clearInput:function(){this.currentPage=1,this.getTableList(this.brandId)},toNewCard:function(){this.$router.push("/newCardPut")},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},changeYear:function(){this.currentPage=1,this.getTableList()},getTableList:function(){var t=this;return s()(r.a.mark(function e(){var a,n;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(a=t).loading=!1,n={wxEnterpriseId:a.wxEnterpriseId,pageNum:a.currentPage,pageSize:a.pageSize},Object(u.g)("/haoban-app-customer-web/inner/page-repair",n).then(function(t){var e=t.data;if(a.loading=!1,1==e.errorCode)return a.tableData=e.result.result||[],void(a.total=e.result.totalCount);o.a.errorMsg(e)}).catch(function(t){a.loading=!1,a.$message.error({duration:1e3,message:t.message})});case 4:case"end":return e.stop()}},e,t)}))()}},mounted:function(){this.$emit("showTab","3"),this.getTableList()}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("div",{staticClass:"flex flex-space-between m-b-20"},[t._m(0),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.toNewCard}},[t._v("新增补发")])],1),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"calc(100% - 0px)"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"卡券组合名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardCombineName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"卡券模板","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.cardTemplates)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEdit(e.$index,e.row)}}},[t._v("查看")]),t._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDel(e.$index,e.row)}}},[t._v("删除")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",[e("span",{staticClass:"font-12 color-909399 p-l-10 font-w-300"},[this._v("内购券投放是针对卡券策略中没有下发的内购券,针对员工进行补发")])])}]};var g=a("VU/8")(d,p,!1,function(t){a("Vdwv")},"data-v-751436f6",null);e.default=g.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([76],{g9l9:function(t,e){},z2RJ:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("woOf"),o=s.n(a),i=s("PI0u"),l=s("Ch4/"),r=s("3E4D"),n=s("P9l9"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,options:[{label:"企业电话",value:"1",tooltips:["1.对接第三方呼叫中心,外呼显示第三方号码,可监控通话状态。费用结算及通话记录存储于GIC计费中心;","2.若任务创建时无双向呼叫权限,此项设置勾选也不生效"]},{label:"私人电话",value:"2",tooltips:["导购手机呼叫,无法监控通话状态。呼叫结算费用由导购手机自费"]},{label:"企微会话",value:"3",tooltips:["通过企微会话完成任务,无法监控通话状态。不产生通话费用"]}],activeId:"1",setObj:{taskCallTypes:[],taskType:0,overDayJudge:"3",distributeTypeJudge:"",distributeCustomerJudge:1,giveUpJudge:""},loadingBtn:!1}},computed:{},methods:{saveSet:Object(i.a)(function(){this.loadingBtn=!0,this.postSave()},500),postSave:function(){var t=this,e={enterpriseId:t.activeBrand,taskCallTypes:t.setObj.taskCallTypes.join(","),taskType:0,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,distributeCustomerJudge:t.setObj.distributeCustomerJudge,relaxTaskJudge:t.setObj.relaxTaskJudge?1:0};Object(n.g)("/haoban-app-tel-task-three-web/setting/save-task-setting",e).then(function(e){var s=e.data;t.loadingBtn=!1,1!=s.errorCode?l.a.errorMsg(s):r.a.showmsg("保存成功","success")}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand,taskType:0};Object(n.g)("/haoban-app-tel-task-three-web/setting/find-task-setting",e).then(function(e){var s=e.data;if(1!=s.errorCode)l.a.errorMsg(s);else{s.result.relaxTaskJudge=1==s.result.relaxTaskJudge;var a="string"==typeof s.result.taskCallTypes?s.result.taskCallTypes.split(","):[];t.setObj=o()({},s.result,{taskCallTypes:a})}}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","2"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},d={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"set-line-item flex"},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"代理商户默认关闭双向呼叫功能,如需开通请联系达摩运营或实施进行开通",placement:"top-start","open-delay":200}},[s("span",{staticClass:"set-line-item_title text-right m-r-4"},[s("i",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","font-style":"normal","padding-bottom":"2px","border-bottom":"1px dashed rgb(47, 84, 235)"}},[t._v("不良评价拨打")]),t._v(":")])]),t._v(" "),s("el-checkbox-group",{model:{value:t.setObj.taskCallTypes,callback:function(e){t.$set(t.setObj,"taskCallTypes",e)},expression:"setObj.taskCallTypes"}},t._l(t.options,function(e){return s("el-checkbox",{key:e.value,attrs:{label:e.value}},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top-start","open-delay":200}},[s("template",{slot:"content"},t._l(e.tooltips,function(e){return s("p",{key:e},[t._v(t._s(e))])}),0),t._v(" "),s("i",{class:["tooltips",t.setObj.taskCallTypes.includes(e.value)?"color-303133":"color-606266"]},[t._v(t._s(e.label))])],2)],1)}),1)],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("任务分配:")]),t._v(" "),s("el-radio",{staticStyle:{"margin-right":"5px"},attrs:{label:1},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的所在门店店长",placement:"top-start"}},[s("span",{class:["font-14 color-606266",1==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给消费门店店长")])]),t._v(" "),s("el-radio",{staticClass:"p-l-40",staticStyle:{"margin-right":"5px"},attrs:{label:2},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的会员的专属导购",placement:"top-start"}},[s("span",{class:["font-14 ",2==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给专属导购")])])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("逾期设置:")]),t._v(" "),s("span",{staticClass:" font-14 color-303133"},[t._v("不良评价回访下发后")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),s("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"}),t._v(" "),s("el-button",{attrs:{type:"primary",loading:t.loadingBtn,disabled:t.$store.state.wxEnterpriseType},on:{click:t.saveSet}},[t._v("保存")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"})])])},staticRenderFns:[]};var u=s("VU/8")(c,d,!1,function(t){s("g9l9")},"data-v-74784215",null);e.default=u.exports}}); webpackJsonp([77],{g9l9:function(t,e){},z2RJ:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("woOf"),o=s.n(a),i=s("PI0u"),l=s("Ch4/"),r=s("3E4D"),n=s("P9l9"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,options:[{label:"企业电话",value:"1",tooltips:["1.对接第三方呼叫中心,外呼显示第三方号码,可监控通话状态。费用结算及通话记录存储于GIC计费中心;","2.若任务创建时无双向呼叫权限,此项设置勾选也不生效"]},{label:"私人电话",value:"2",tooltips:["导购手机呼叫,无法监控通话状态。呼叫结算费用由导购手机自费"]},{label:"企微会话",value:"3",tooltips:["通过企微会话完成任务,无法监控通话状态。不产生通话费用"]}],activeId:"1",setObj:{taskCallTypes:[],taskType:0,overDayJudge:"3",distributeTypeJudge:"",distributeCustomerJudge:1,giveUpJudge:""},loadingBtn:!1}},computed:{},methods:{saveSet:Object(i.a)(function(){this.loadingBtn=!0,this.postSave()},500),postSave:function(){var t=this,e={enterpriseId:t.activeBrand,taskCallTypes:t.setObj.taskCallTypes.join(","),taskType:0,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,distributeCustomerJudge:t.setObj.distributeCustomerJudge,relaxTaskJudge:t.setObj.relaxTaskJudge?1:0};Object(n.g)("/haoban-app-tel-task-three-web/setting/save-task-setting",e).then(function(e){var s=e.data;t.loadingBtn=!1,1!=s.errorCode?l.a.errorMsg(s):r.a.showmsg("保存成功","success")}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand,taskType:0};Object(n.g)("/haoban-app-tel-task-three-web/setting/find-task-setting",e).then(function(e){var s=e.data;if(1!=s.errorCode)l.a.errorMsg(s);else{s.result.relaxTaskJudge=1==s.result.relaxTaskJudge;var a="string"==typeof s.result.taskCallTypes?s.result.taskCallTypes.split(","):[];t.setObj=o()({},s.result,{taskCallTypes:a})}}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","2"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},d={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"set-line-item flex"},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"代理商户默认关闭双向呼叫功能,如需开通请联系达摩运营或实施进行开通",placement:"top-start","open-delay":200}},[s("span",{staticClass:"set-line-item_title text-right m-r-4"},[s("i",{staticClass:"font-14 color-606266",staticStyle:{cursor:"pointer","font-style":"normal","padding-bottom":"2px","border-bottom":"1px dashed rgb(47, 84, 235)"}},[t._v("不良评价拨打")]),t._v(":")])]),t._v(" "),s("el-checkbox-group",{model:{value:t.setObj.taskCallTypes,callback:function(e){t.$set(t.setObj,"taskCallTypes",e)},expression:"setObj.taskCallTypes"}},t._l(t.options,function(e){return s("el-checkbox",{key:e.value,attrs:{label:e.value}},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top-start","open-delay":200}},[s("template",{slot:"content"},t._l(e.tooltips,function(e){return s("p",{key:e},[t._v(t._s(e))])}),0),t._v(" "),s("i",{class:["tooltips",t.setObj.taskCallTypes.includes(e.value)?"color-303133":"color-606266"]},[t._v(t._s(e.label))])],2)],1)}),1)],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("任务分配:")]),t._v(" "),s("el-radio",{staticStyle:{"margin-right":"5px"},attrs:{label:1},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的所在门店店长",placement:"top-start"}},[s("span",{class:["font-14 color-606266",1==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给消费门店店长")])]),t._v(" "),s("el-radio",{staticClass:"p-l-40",staticStyle:{"margin-right":"5px"},attrs:{label:2},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的会员的专属导购",placement:"top-start"}},[s("span",{class:["font-14 ",2==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给专属导购")])])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("逾期设置:")]),t._v(" "),s("span",{staticClass:" font-14 color-303133"},[t._v("不良评价回访下发后")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),s("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"}),t._v(" "),s("el-button",{attrs:{type:"primary",loading:t.loadingBtn,disabled:t.$store.state.wxEnterpriseType},on:{click:t.saveSet}},[t._v("保存")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"})])])},staticRenderFns:[]};var u=s("VU/8")(c,d,!1,function(t){s("g9l9")},"data-v-74784215",null);e.default=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([77],{"6ynr":function(e,t){},Yz8m:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),l=a("2eFk"),i=a("Ke24"),s=a("LRn8"),r=a("fPyK"),c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,topMenuData:[{id:"1",name:"不良评价回访记录",path:"/badEvaluateRecord"},{id:"2",name:"记录详情",path:""}],selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={taskType:0,storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskIds})||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",reason:e.reason,brandId:t.activeBrand,isAll:t.selectRadio};Object(c.g)("/haoban-app-tel-task-web/task/batch-del-clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,o={taskId:t.taskId,brandId:a.activeBrand};Object(c.b)("/haoban-app-tel-task-web/task/del-one",o).then(function(t){var o=t.data;if(1==o.errorCode)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=""+t.taskId;this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand,taskType:0};Object(c.b)("/haoban-app-tel-task-web/task/clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo?a.result.pageInfo.total:0);d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","1"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:l.a,commonDetailTop:i.a,multipleDel:s.a,qrcodeDialog:r.a}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableH},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"left"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("span",[e._v(e._s(t.row?"完成备注":"放弃备注"))])]}},{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:e.row.reason}},[a("i",{staticClass:"iconfont-hb3 icon-beizhu"})])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["已完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?t.row.reason:""}},[a("i",{staticClass:"iconfont-hb3 icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"放弃备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["未完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?"":t.row.reason}},[a("i",{staticClass:"iconfont-hb3 icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handlePreview(t.$index,t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var m=a("VU/8")(f,p,!1,function(e){a("6ynr")},"data-v-74413d71",null);t.default=m.exports}}); webpackJsonp([78],{"6ynr":function(e,t){},Yz8m:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),l=a("2eFk"),i=a("Ke24"),s=a("LRn8"),r=a("fPyK"),c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,topMenuData:[{id:"1",name:"不良评价回访记录",path:"/badEvaluateRecord"},{id:"2",name:"记录详情",path:""}],selectRadio:0,showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0}},computed:{},methods:{handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={taskType:0,storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskIds})||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",reason:e.reason,brandId:t.activeBrand,isAll:t.selectRadio};Object(c.g)("/haoban-app-tel-task-web/task/batch-del-clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,o={taskId:t.taskId,brandId:a.activeBrand};Object(c.b)("/haoban-app-tel-task-web/task/del-one",o).then(function(t){var o=t.data;if(1==o.errorCode)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=""+t.taskId;this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand,taskType:0};Object(c.b)("/haoban-app-tel-task-web/task/clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo?a.result.pageInfo.total:0);d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","1"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:l.a,commonDetailTop:i.a,multipleDel:s.a,qrcodeDialog:r.a}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableH},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"left"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("span",[e._v(e._s(t.row?"完成备注":"放弃备注"))])]}},{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:e.row.reason}},[a("i",{staticClass:"iconfont-hb3 icon-beizhu"})])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["已完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?t.row.reason:""}},[a("i",{staticClass:"iconfont-hb3 icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"放弃备注"},scopedSlots:e._u([{key:"default",fn:function(t){return["未完成"==t.row.isCompleted?a("el-popover",{attrs:{placement:"top-start",title:"",width:"200",trigger:"hover",content:"已完成"==t.row.isCompleted?"":t.row.reason}},[a("i",{staticClass:"iconfont-hb3 icon-beizhu",staticStyle:{"font-size":"40px"},attrs:{slot:"reference"},slot:"reference"})]):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handlePreview(t.$index,t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var m=a("VU/8")(f,p,!1,function(e){a("6ynr")},"data-v-74413d71",null);t.default=m.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([79],{A8p3:function(t,e){},Y55K:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("A8p3")},"data-v-739b6c02",null);e.default=o.exports}});
\ No newline at end of file
webpackJsonp([8,9,64],{"29DL":function(t,e){},"9Q6k":function(t,e){},BkG1:function(t,e){},"J/6z":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("//Fk"),i=a.n(s),n=a("mvHQ"),r=a.n(n),o=a("w/TU"),l=a.n(o),c=a("Isrn"),d=a("l46T"),p={name:"time-progress",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},v={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-contain"},[e("div",[e("p",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-item"},[e("div",{staticClass:"time-progress-title"},[e("p",{staticClass:"gic-pull-left"},[this._v("50.00%")]),this._v(" "),e("p",{staticClass:"gic-pull-right"},[e("span",[this._v("15")]),this._v("/"),e("span",[this._v("30")])])]),this._v(" "),e("div",{staticClass:"time-progress-bottom"},[e("div",{staticClass:"time-progress-top"})])])}]};var u=a("VU/8")(p,v,!1,function(t){a("9Q6k")},"data-v-540cc965",null).exports,m={name:"store-performance",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},f={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[t._v("指标")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("累计销售额")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("999,476,960")])]),t._v(" "),a("tr",[a("td",[t._v("达成率")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var _=a("VU/8")(m,f,!1,function(t){a("BkG1")},"data-v-537e48ec",null).exports,h={name:"membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},g={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{attrs:{colspan:"1"}},[t._v("会员总数")]),t._v(" "),a("td",{attrs:{colspan:"2"}},[t._v("9,000,000")])]),t._v(" "),a("tr",[a("td",[t._v("新增会员")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var b=a("VU/8")(h,g,!1,function(t){a("NzOk")},"data-v-79b73771",null).exports,C={name:"error-mointor",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},y={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"anomal-monitor-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[t._v(t._s(t.fieldName))])]),t._v(" "),a("div",{staticClass:"progress-contain"},[a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress1"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"72.2668",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-left",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("75.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("无导购率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress2"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"216.8",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-mid",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("25.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("退单率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress3"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"14.4534",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-right",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("95.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("凭空退单率")])])])])},staticRenderFns:[]};var x=a("VU/8")(C,y,!1,function(t){a("RHtY")},"data-v-13aa0e8a",null).exports,w={name:"old-customer-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},I={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var k=a("VU/8")(w,I,!1,function(t){a("g+0C")},"data-v-18397033",null).exports,$={name:"birthday-membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},S={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var D=a("VU/8")($,S,!1,function(t){a("y9Xh")},"data-v-afb2e45a",null).exports,R=a("fPyK"),M={props:{setting:{type:[Number,String],default:function(){return"0"}}},data:function(){return{setVisible:!0,selectId:"0"}},computed:{},watch:{setting:function(t){this.selectId=t}},methods:{handleClose:function(t){t(),this.$emit("closeSet","close"),this.selectId=""},cancel:function(){this.$emit("closeSet","close"),this.selectId=""},submitForm:function(){this.$emit("closeSet",this.selectId)}},components:{},mounted:function(){this.selectId=this.setting}},E={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"600px",title:"模板设置",visible:t.setVisible,"append-to-body":"","before-close":t.handleClose},on:{"update:visible":function(e){t.setVisible=e}}},[a("div",{staticClass:"m-t-20"},[a("el-radio",{attrs:{label:"0"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板上面")]),t._v(" "),a("el-radio",{staticClass:"m-l-40",attrs:{label:"1"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板下面")])],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("确定")])],1)])},staticRenderFns:[]};var N=a("VU/8")(M,E,!1,function(t){a("eUKg")},"data-v-ef3b9696",null).exports,T=a("3E4D"),V=a("Ch4/"),L=a("PI0u"),P=a("P9l9"),B={name:"staffRecordsTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},enterpriseId:this.brandId,setting:"0",selectKey:"",cardInfo:[],tradeInfo:[],birthdayMemberInfo:[],memberInfo:[],powerInfo:[],currentIndex:0,tempaletDataList:[],setParent:[],setVisible:!1,loadingBtn:!1}},created:function(){},methods:{templateSet:function(){this.setVisible=!0},closeSet:function(t){if(this.setVisible=!1,"close"==t)return!1;this.setting=t},clickItem:function(t){},onMove:function(t){var e=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(e.name)&&!e.fixed},itemMoveEnd:function(t){var e=this;e.isDragging=!1,e.selectKey="",e.selectKey=t.clone.dataset.name,e.tempaletDataList.forEach(function(t,a){var s;t.name==e.selectKey&&(s=t.parentCode,e[s].forEach(function(t,a){t.name==e.selectKey&&(t.fixed=!0)}))}),e.selectKey="",e.tempaletDataList=JSON.parse(r()(e.tempaletDataList)),e.$forceUpdate()},selectItem:function(t,e){this.currentIndex=e},deleteItem:function(t,e,a){this.tempaletDataList.splice(a,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[e].forEach(function(e,a){e.name==t&&(e.fixed=!1)})},changeRoute:function(t){this.$router.push(t)},isRepeat:function(t){var e={};for(var a in t){if(e[t[a]])return!0;e[t[a]]=!0}return!1},checkTag:function(t){var e={filedFlag:!0,filedRepeat:!1},a=[];return t.forEach(function(t,e){a.push(t.title)}),this.isRepeat(a)&&(e.filedRepeat=!0),e},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},saveAndBack:Object(L.a)(function(t){var e=JSON.parse(r()(this.tempaletDataList));return this.checkTag(e).filedRepeat?(this.$message.error({duration:1e3,message:"字段标题不能重复"}),!1):(e.forEach(function(t,e){t.sort=e}),e.length?(this.loadingBtn=!0,void("save"===t?this.saveAllData(e):this.postPreview(e))):(this.$message.error({duration:1e3,message:"请先配置字段"}),!1))},500),saveAllData:function(t){var e=this,a={enterpriseId:e.enterpriseId,templateContent:r()({setting:e.setting,data:t})};Object(P.g)("/haoban-app-daily-three-web/daily/save-system-template",a).then(function(t){var a=t.data;e.loadingBtn=!1,1!=a.errorCode?V.a.errorMsg(a):T.a.showmsg("保存成功","success")}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var e=this,a={templateType:0,enterpriseId:e.enterpriseId,templateContent:r()(t)};Object(P.g)("/haoban-app-daily-three-web/daily/preview-template",a).then(function(t){var a=t.data;if(e.loadingBtn=!1,1==a.errorCode){var s=window.location.origin+"/office-mobile/#/systemTemplate?enterpriseId="+e.enterpriseId+"&templateId="+a.result;return e.$refs.qrcodePreview.qrcode(s,"daily-preview"),void(e.dialogVisible=!0)}V.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var t=this;Object(P.b)("/haoban-app-daily-three-web/daily/get-template-items",{enterpriseId:t.enterpriseId,type:1}).then(function(e){var a=e.data;if(1==a.errorCode){var s=setTimeout(function(){t.handleAllFields(a.result),clearTimeout(s)},200);return!1}V.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(t){var e=this;t.forEach(function(t,a){e.setParent.includes(t.name)?t.fixed=!0:t.fixed=!1,1==t.classify&&(t.parentCode="cardInfo",e.cardInfo.push(t)),2==t.classify&&(t.parentCode="tradeInfo",e.tradeInfo.push(t)),3==t.classify&&(t.parentCode="birthdayMemberInfo",e.birthdayMemberInfo.push(t)),4==t.classify&&(t.parentCode="memberInfo",e.memberInfo.push(t)),5==t.classify&&(t.parentCode="powerInfo",e.powerInfo.push(t))})},getInfo:function(){var t=this;Object(P.b)("/haoban-app-daily-three-web/daily/get-system-template-data",{enterpriseId:t.enterpriseId}).then(function(e){var a=e.data;1!=a.errorCode?V.a.errorMsg(a):a.result&&(t.setting=String(a.result.setting),a.result.data&&a.result.data.length&&t.handleGetInfo(a.result.data))}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleGetInfo:function(t){var e=this,a=JSON.parse(r()(t));e.setParent=[],a.forEach(function(t,a){t.fixed=!0,e.setParent.push(t.name)}),e.tempaletDataList=a}},watch:{isDragging:function(t){var e=this;t?e.delayedDragging=!0:e.$nextTick(function(){e.delayedDragging=!1})},brandId:function(t,e){var a=this;t&&(a.enterpriseId=t,a.cardInfo=[],a.tradeInfo=[],a.birthdayMemberInfo=[],a.memberInfo=[],a.powerInfo=[],a.currentIndex=0,a.tempaletDataList=[],a.setParent=[],i.a.all([a.getInfo()]).then(function(t){console.log(),a.getAllFields()}).catch(function(t){console.log(t)}))}},components:{draggable:l.a,AddInput:c.a,limitInput:d.a,timeProgress:u,storePerformance:_,errorMointor:x,membershipData:b,oldCustomerData:k,birthdayMembershipData:D,qrcodeDialog:R.a,systemSet:N},mounted:function(){var t=this;t.$emit("showTab","31"),document.documentElement.style.backgroundColor="#f0f2f5",t.enterpriseId=t.brandId,i.a.all([t.getInfo()]).then(function(e){t.getAllFields()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},F={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"template-wrap"},[s("div",{staticClass:"template-contain"},[s("div",{staticClass:"template-cell-title font-14 color-303133"},[t._v("系统字段")]),t._v(" "),s("div",{staticClass:"template-head"},[t._m(0),t._v(" "),s("div",{staticClass:"template-btns flex-1 flex-r"},[t.$getButtonLimit(t.$buttonCode.settingSystemReport)?s("el-button",{attrs:{type:"primary",plain:"","limit-code":t.$buttonCode.settingSystemReport},on:{click:t.templateSet}},[t._v("模板设置")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveSystemReport)?s("el-button",{attrs:{type:"primary","limit-code":t.$buttonCode.saveSystemReport,loading:t.loadingBtn},on:{click:function(e){return t.saveAndBack("save")}}},[t._v("保存并启用")]):t._e()],1)]),t._v(" "),s("div",{staticClass:"template-body"},[s("div",{staticClass:"template-cell template-cell-l system-template-tab"},[s("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"卡片",name:"first"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.cardInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.cardInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name,"aria-hidden":"true"},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"交易",name:"second"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.tradeInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"生日会员",name:"third"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.birthdayMemberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.birthdayMemberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"会员",name:"four"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.memberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.memberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"执行力",name:"five"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.powerInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.powerInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)])],1)],1),t._v(" "),s("div",{staticClass:"template-cell template-cell-m"},[s("div",{staticClass:"phone-view"},[s("div",{staticClass:"phone-show-content"},[s("div",{staticClass:"drag-show-content"},[s("div",{staticClass:"view-container"},[s("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[s("img",{staticClass:"templet-null-img",attrs:{src:a("Y7wY")}})]:t._e(),t._v(" "),s("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(e){t.tempaletDataList=e},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(e,a){return s("li",{key:"li1"+a,class:["filed-item",t.currentIndex==a?"active-item":"","li-block"],on:{click:function(s){return s.stopPropagation(),t.selectItem(e.fieldCode,a)}}},[s("span",{staticClass:"item-close p-item-close",on:{click:function(s){return s.stopPropagation(),t.deleteItem(e.name,e.parentCode,a)}}},[s("i",{staticClass:"el-icon-close"})]),t._v(" "),"1"!=e.classify?s("div",{staticClass:"filed-item-name"},[s("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))])]):t._e(),t._v(" "),"timeProgress"==e.name?s("time-progress",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataShop"==e.name?s("store-performance",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataNumber"==e.name?s("membership-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"anomalMonitor"==e.name?s("error-mointor",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"oldNumber"==e.name?s("old-customer-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"birthNumber"==e.name?s("birthday-membership-data",{attrs:{fieldName:e.title}}):t._e()],1)}),0)],2)])])])])])])]),t._v(" "),s("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}}),t._v(" "),t.setVisible?s("system-set",{attrs:{setting:t.setting},on:{closeSet:t.closeSet}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"template-title flex-1"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("云日报系统报表:提供系统能够智能识别的指标(例如:销售额、达成率等),配置成报表融入云日报上报模板中。")])])])])}]};var O=a("VU/8")(B,F,!1,function(t){a("LTXF")},"data-v-65d8e9fa",null);e.default=O.exports},LTXF:function(t,e){},NzOk:function(t,e){},RHtY:function(t,e){},RnLd:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("J/6z"),i=a("ak3k"),n={name:"DailySetting",props:{brandId:{type:String,default:""}},components:{SystemReport:s.default,CustomReport:i.default},data:function(){return{activeName:"first"}}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-tabs",{staticClass:"daily-setting",model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"系统报表",name:"first"}},[a("system-report",{attrs:{"brand-id":t.brandId}})],1),t._v(" "),a("el-tab-pane",{attrs:{label:"自定义报表",name:"second"}},[a("custom-report",{attrs:{"brand-id":t.brandId}})],1)],1)],1)},staticRenderFns:[]};var o=a("VU/8")(n,r,!1,function(t){a("fn+l")},"data-v-c7453d62",null);e.default=o.exports},ak3k:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("2eFk"),i=a("Ke24"),n=a("fPyK"),r=a("P9l9"),o=a("Ch4/"),l=a("3E4D"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!1,tableH:window.screen.availHeight-464-126+"px",topMenuData:[{id:"1",name:"自定义报表"}],activeId:"1",activeTab:"1",activeBrand:"1",tableData:[],multipleSelection:[]}},computed:{},methods:{changeRouter:function(t){this.$router.push(t)},setSelectTab:function(t){this.activeTab=t.tabId},handlePreview:function(t,e){var a=window.location.origin+"/office-mobile/#/defineTemplate?templateId="+e.dailyReportTemplateId;this.$refs.qrcodePreview.qrcode(a,"daily-preview"),this.dialogVisible=!0},toCustomSet:function(){this.changeRouter("/customReportSet")},handleCopy:function(t,e){this.changeRouter("/customReportCopy?templateId="+e.dailyReportTemplateId+"&type=copy")},handleEdit:function(t,e){this.changeRouter("/customReportEdit?&templateId="+e.dailyReportTemplateId+"&type=edit")},handleDelete:function(t,e){var a=this;a.$confirm("一旦删除之后,该范围的门店将无法接收该日报,是否确定删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.deleteTemplate(t,e)}).catch(function(){})},deleteTemplate:function(t,e){var a=this;Object(r.g)("/haoban-app-daily-three-web/daily/del-define-template",{templateId:e.dailyReportTemplateId}).then(function(e){var s=e.data;if(1==s.errorCode)return l.a.showmsg("删除成功","success"),void a.tableData.splice(t,1);o.a.errorMsg(s)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},getData:function(){var t=this;Object(r.g)("/haoban-app-daily-three-web/daily/list-define-template",{enterpriseId:t.brandId}).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=[],void(a.result&&a.result.length&&(t.tableData=a.result));o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.brandId&&this.getData()},components:{appDetail:s.a,commonDetailTop:i.a,qrcodeDialog:n.a}},d={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-set-wrap"},[a("div",{staticClass:"custom-set-content border-box"},[a("div",{staticClass:"flex flex-space-between flex-pack-center m-b-23"},[t._m(0),t._v(" "),a("div",[t.$getButtonLimit(t.$buttonCode.addCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.addCustomReport,type:"primary"},on:{click:function(e){return t.toCustomSet("")}}},[t._v("新建模板")]):t._e()],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"模板名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.title))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"name",label:"模板描述","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.description))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"address",label:"门店类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.storeType?a("span",[t._v("自营门店")]):t._e(),t._v(" "),1==e.row.storeType?a("span",[t._v("联营门店")]):t._e(),t._v(" "),2==e.row.storeType?a("span",[t._v("代理门店")]):t._e(),t._v(" "),3==e.row.storeType?a("span",[t._v("代销门店")]):t._e(),t._v(" "),4==e.row.storeType?a("span",[t._v("托管门店")]):t._e()]}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.copyCustomReport)||t.$getButtonLimit(t.$buttonCode.editCustomReport)||t.$getButtonLimit(t.$buttonCode.delCustomReport)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[t.$getButtonLimit(t.$buttonCode.copyCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.copyCustomReport,type:"text"},on:{click:function(a){return t.handleCopy(e.$index,e.row)}}},[t._v("复制")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.editCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.editCustomReport,type:"text"},on:{click:function(a){return t.handleEdit(e.$index,e.row)}}},[t._v("编辑")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.delCustomReport)?a("el-button",{attrs:{"limit-code":t.$buttonCode.delCustomReport,type:"text"},on:{click:function(a){return t.handleDelete(e.$index,e.row)}}},[t._v("删除")]):t._e()]}}])}):t._e()],1)],1),t._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"custom-set-title flex flex-pack-center"},[e("span",{staticClass:"font-14 color-909399"},[this._v("注:创建自定义日报后才能触发并下发日报")])])}]};var p=a("VU/8")(c,d,!1,function(t){a("29DL")},"data-v-aa3f75f2",null);e.default=p.exports},eUKg:function(t,e){},"fn+l":function(t,e){},"g+0C":function(t,e){},y9Xh:function(t,e){}});
\ No newline at end of file
webpackJsonp([8,55,80,83,87,95],{"2WGr":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",[i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.startTitle)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.startTitle))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")),i("i",{staticClass:"el-icon-arrow-right"})])])]),e._v(" "),i("div",{staticClass:"b-t-1 flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.endTitle)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.endTitle))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("csI9")},"data-v-7040e068",null);t.default=s.exports},"8dpP":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"image-com flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]),e._v(" "),i("div",{staticClass:"must"},[e._v(e._s(e.childItem.isMust?"(必填)":""))]),e._v(" "),e._m(0)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"draged-item-show"},[t("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t("i",{staticClass:"iconfont-hb3 icon-icon"})])])}]};var s=i("VU/8")(a,n,!1,function(e){i("ut2q")},"data-v-e9ece5a0",null);t.default=s.exports},FQZX:function(e,t){},LTPC:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("//Fk"),n=i.n(a),s=i("Gu7T"),l=i.n(s),r=i("gBtx"),c=i.n(r),o=i("mvHQ"),d=i.n(o),u=i("w/TU"),p=i.n(u),m=i("Isrn"),h=i("l46T"),f=i("8dpP"),v=i("rYZf"),g=i("2WGr"),_=i("zHtI"),y=i("O3gZ"),b=i("fPyK"),C=i("fZjL"),I=i.n(C),x={props:{templateObj:{type:[Array,Object],default:function(){return{}}},storeList:{type:[Array,Object],default:function(){return[]}}},data:function(){return{setVisible:!0,rules:{title:[{required:!0,message:"请输入模板名称",trigger:"blur"}],description:[{required:!0,message:"请输入模板描述",trigger:"blur"}],storeType:[{required:!0,message:"请选择门店类型",trigger:"change"}]},ruleForm:{title:"",description:"",storeType:""}}},computed:{},watch:{templateObj:function(e){I()("val").length&&(this.ruleForm=JSON.parse(d()(e)))}},methods:{handleClose:function(e){e(),this.$emit("closeSet","close"),this.selectId=""},cancel:function(){this.$emit("closeSet","close"),this.selectId=""},submitForm:function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return console.log("error submit!!"),!1;t.$emit("closeSet",t.ruleForm)})}},components:{limitInput:h.a},mounted:function(){this.ruleForm=JSON.parse(d()(this.templateObj))}},w={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{width:"600px",title:"模板设置",visible:e.setVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.setVisible=t}}},[i("div",{staticClass:"m-t-20"},[i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[i("el-form-item",{attrs:{label:"模板名称",prop:"title"}},[i("limitInput",{attrs:{inputWidth:340,inputValue:e.ruleForm.title,holder:"",disflag:!1,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){return e.$set(e.ruleForm,"title",t)},"update:input-value":function(t){return e.$set(e.ruleForm,"title",t)}}})],1),e._v(" "),i("el-form-item",{attrs:{label:"模板描述",prop:"description"}},[i("limitInput",{attrs:{inputWidth:340,inputValue:e.ruleForm.description,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(t){return e.$set(e.ruleForm,"description",t)},"update:input-value":function(t){return e.$set(e.ruleForm,"description",t)}}})],1),e._v(" "),i("el-form-item",{attrs:{label:"门店类型",prop:"storeType"}},e._l(e.storeList,function(t,a){return i("div",{key:t.name+a,staticClass:"store-type-cell m-b-20"},[i("el-radio",{attrs:{label:t.id,disabled:t.disabled},model:{value:e.ruleForm.storeType,callback:function(t){e.$set(e.ruleForm,"storeType",t)},expression:"ruleForm.storeType"}},[e._v(e._s(t.name))])],1)}),0)],1)],1),e._v(" "),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:e.cancel}},[e._v("取消")]),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},staticRenderFns:[]};var k=i("VU/8")(x,w,!1,function(e){i("dy5a")},"data-v-6c2a73fe",null).exports,T=i("3E4D"),F=i("Ch4/"),$=i("PI0u"),M=i("P9l9"),O={name:"customSetTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:1,activeName:"first",enterpriseId:this.brandId,rightWidth:"-350px",rightName:"second",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)-277+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},templateId:"",oparateType:"",counter:1,selectKey:"",tradeInfo:[],personInfo:[],goodsInfo:[],competeInfo:[],defineInfo:[],currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[],setList:[],templateObj:{title:"",description:"",storeType:"",momory:[]},storeList:[{id:"0",name:"自营门店",disabled:!1},{id:"1",name:"联营门店",disabled:!1},{id:"2",name:"代理门店",disabled:!1},{id:"3",name:"代销门店",disabled:!1},{id:"4",name:"托管门店",disabled:!1}],setVisible:!1,loadingBtn:!1}},methods:{templateSet:function(){this.setVisible=!0},closeSet:function(e){if(this.setVisible=!1,"close"==e)return!1;this.templateObj=e},changeTab:function(e){this.activeTab=e,this.activeName=2==e?"five":"first"},getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)},cloneItem:function(e){var t=JSON.parse(d()(e));return t.cid="c"+this.counter,t.systemFlag||(t.name.includes("textc")&&(t.name="textc"+this.counter),t.name.includes("paragraphc")&&(t.name="paragraphc"+this.counter),t.name.includes("numberc")&&(t.name="numberc"+this.counter),t.name.includes("checkboxesOrRadioc")&&(t.name="checkboxesOrRadioc"+this.counter),t.name.includes("datec")&&(t.name="datec"+this.counter),t.name.includes("dateareac")&&(t.name="dateareac"+this.counter),t.name.includes("picc")&&(t.name="picc"+this.counter),t.name.includes("introductionc")&&(t.name="introductionc"+this.counter),t.name.includes("pricec")&&(t.name="pricec"+this.counter),t.name.includes("groupc")&&(t.name="groupc"+this.counter,t.title=""+t.title+this.counter)),t},onMove:function(e){var t=e.draggedContext.element;return!this.tempaletDataList.map(function(e){return e.name}).includes(t.name)&&!t.fixed},onChildMove:function(e){var t=!0;return-1!=e.dragged.className.indexOf("block-class")&&-1!=e.to.className.indexOf("block-wrap")&&(t=!1),t},itemMoveEnd:function(e){var t=this;function i(e){t[e].forEach(function(e,i){e.name==t.selectKey&&(e.fixed=!0)})}t.isDragging=!1,t.selectKey="",t.selectKey=e.clone.dataset.name,t.tempaletDataList.forEach(function(e,a){e.name==t.selectKey&&i(e.parentCode),e.children&&e.children.forEach(function(e,a){e.name==t.selectKey&&i(e.parentCode)})}),t.selectKey="",t.tempaletDataList=JSON.parse(d()(t.tempaletDataList)),t.$forceUpdate(),t.counter=t.counter+1},selectItem:function(e,t){this.rightWidth="0",this.currentIndex=t,this.currentChildIndex=null},deleteItem:function(e,t,i,a){var n=this;if(n.tempaletDataList.splice(i,1),n.currentIndex--,n.currentIndex<=0&&(n.currentIndex=0),!a.systemFlag)return a.name.includes("groupc")&&a.children.length&&a.children.forEach(function(e){e.systemFlag&&n[e.parentCode].forEach(function(t){t.name==e.name&&(t.fixed=!1)})}),!1;n[t].forEach(function(t,i){t.name==e&&(t.fixed=!1)})},addDragItem:function(e){return!1},selectChildItem:function(e,t,i,a){this.currentIndex=null,this.currentChildKey=e,this.childIndex=t,this.currentChildIndex=i},deleteChildItem:function(e,t,i,a,n){if(this.childIndex=t,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[t].children[i].name,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(d()(this.tempaletDataList)),this.tempaletDataList[t].children.splice(i,1),!n.systemFlag)return!1;this[n.parentCode].forEach(function(t,i){t.name===e&&(t.fixed=!1)})},delChildItem:function(e,t,i){i.list.splice(t,1)},addChildItem:function(e,t,i){if(19!=t){i.list.push({value:"选项"+(t+2),key:t+2});var a=i.list.map(function(e){return e.value});this.isRepeat(a)&&(i.list.splice(i.list.length-1,1),a.splice(i.list.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},changeMust:function(e,t,i){t&&i.list.forEach(function(t){t.isMust=!!e})},isRepeat:function(e){var t={};for(var i in e){if(t[e[i]])return!0;t[e[i]]=!0}return!1},changeRoute:function(e){this.$router.push(e)},checkTag:function(e){var t={filedFlag:!0,filedRepeat:!1},i=[];return e.forEach(function(e){if(""==e.title)return t.filedFlag=!1,t.name=e.title||"",!1;i.push(e.title),e.hasOwnProperty("children")&&e.children.length&&e.children.forEach(function(e){if(e.systemFlag&&""==e.title)return t.filedFlag=!1,t.name=e.title||"",!1;i.push(e.title)})}),this.isRepeat(i)&&(t.filedRepeat=!0),t},checkTemplateObj:function(){var e=!0;return this.templateObj.title&&this.templateObj.description&&this.templateObj.storeType||(e=!1),e},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},saveAndBack:Object($.a)(function(e){if(!this.checkTemplateObj())return this.$message.error({duration:1e3,message:"请完善模板设置内容"}),!1;var t=JSON.parse(d()(this.tempaletDataList)),i=this.checkTag(t);if(!i.filedFlag)return this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"}),!1;if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(t.forEach(function(e,t){e.sort=t,e.isMust=e.isMust?1:0,e.memory=e.memory?1:0,e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=e.openCapitalize?1:0),e.hasOwnProperty("list")&&e.list.forEach(function(e){e.isMust=e.isMust?1:0}),e.hasOwnProperty("children")&&(e.children.forEach(function(e,t){e.sort=t,e.isMust=e.isMust?1:0,e.memory=e.memory?1:0,e.hasOwnProperty("list")&&e.list.forEach(function(e){e.isMust=e.isMust?1:0}),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=e.openCapitalize?1:0)}),e.list=e.children)}),!t.length)return this.$message.error({duration:1e3,message:"请先配置字段"}),!1;this.loadingBtn=!0,"save"===e?this.saveAllData(t):this.postPreview(t)}},500),saveAllData:function(e){var t=this,i=this,a={status:1,enterpriseId:i.enterpriseId,templateContent:d()(e),title:i.templateObj.title,description:i.templateObj.description,storeType:i.templateObj.storeType,memory:[]};Object(M.g)("/haoban-app-daily-three-web/daily/save-define-template",a).then(function(e){var a=e.data;if(i.loadingBtn=!1,1==a.errorCode)return T.a.showmsg("保存成功","success"),void t.$router.go(-1);F.a.errorMsg(a)}).catch(function(e){i.loadingBtn=!1,i.$message.error({duration:1e3,message:e.message})})},postPreview:function(e){var t=this,i={templateType:1,enterpriseId:t.enterpriseId,templateContent:d()(e)};Object(M.g)("/haoban-app-daily-three-web/daily/preview-template",i).then(function(e){var i=e.data;if(t.loadingBtn=!1,1==i.errorCode){var a=window.location.origin+"/office-mobile/#/defineTemplate?enterpriseId="+t.enterpriseId+"&templateId="+i.result;return t.$refs.qrcodePreview.qrcode(a,"daily-preview"),void(t.dialogVisible=!0)}F.a.errorMsg(i)}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},closeDialog:function(){this.dialogVisible=!1},getHasStores:function(){var e=this;Object(M.g)("/haoban-app-daily-three-web/daily/has-defined-template-store-type",{enterpriseId:e.enterpriseId}).then(function(t){var i=t.data;1!=i.errorCode?F.a.errorMsg(i):e.storeList.forEach(function(t){i.result&&i.result.length&&i.result.includes(c()(t.id))&&(t.disabled=!0),"edit"==e.oparateType&&e.storeType==t.id&&(t.disabled=!1)})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getAllFields:function(e){var t=this;Object(M.g)("/haoban-app-daily-three-web/daily/get-template-items",{enterpriseId:t.enterpriseId,type:e}).then(function(i){var a=i.data;if(1==a.errorCode)return a.result.forEach(function(t){t.isMust=!!t.isMust,t.memory=!!t.memory,t.title=t.title.trim(),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=!!t.openCapitalize),t.hasOwnProperty("list")&&t.list&&t.list.length&&t.list.forEach(function(e){e.isMust=!!e.isMust}),t.systemFlag=3!=e,t.name.includes("groupc")&&(t.children=[])}),void(3==e?t.defineInfo=a.result:t.handleAllFields(a.result));F.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(e){var t=this;e.forEach(function(e){e.fixed=!1,1==e.classify&&(e.parentCode="tradeInfo",t.tradeInfo.push(e)),2==e.classify&&(e.parentCode="personInfo",t.personInfo.push(e)),3==e.classify&&(e.parentCode="goodsInfo",t.goodsInfo.push(e)),4==e.classify&&(e.parentCode="competeInfo",t.competeInfo.push(e))})},getInfo:function(){var e=this;Object(M.g)("/haoban-app-daily-three-web/daily/get-define-template",{templateId:e.templateId}).then(function(t){var i=t.data;if(1==i.errorCode)return e.setList=[],i.result&&(e.templateObj.title=i.result.title,e.templateObj.description=i.result.description,e.storeType="edit"==e.oparateType?String(i.result.storeType):"",e.templateObj.storeType="edit"==e.oparateType?String(i.result.storeType):"",i.result.templateContent&&i.result.templateContent.length&&e.handleGetInfo(i.result.templateContent)),void e.getHasStores();F.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},treeData:function(e){var t=e.filter(function(t){var i=e.filter(function(e){return t.fieldCode==e.parentCode});return i.length>0&&(t.children=i),0==t.parentCode});return t.sort(function(e,t){return e.sort-t.sort}),t.forEach(function(e,t){e.children.sort(function(e,t){return e.sort-t.sort})}),t},handleGetInfo:function(e){var t=this,i=JSON.parse(d()(e));t.cids=[],t.setParent=[],i.forEach(function(e,i){e.title=e.title.trim(),e.isMust=!!e.isMust,e.memory=!!e.memory,e.name.includes("textc")||e.name.includes("paragraphc")||e.name.includes("numberc")||e.name.includes("checkboxesOrRadioc")||e.name.includes("datec")||e.name.includes("dateareac")||e.name.includes("picc")||e.name.includes("introductionc")||e.name.includes("pricec")||e.name.includes("groupc")?(e.systemFlag=!1,e.parentCode="defineInfo"):(t.setParent.push(e.name),e.systemFlag=!0,1==e.classify&&(e.parentCode="tradeInfo"),2==e.classify&&(e.parentCode="personInfo"),3==e.classify&&(e.parentCode="goodsInfo"),4==e.classify&&(e.parentCode="competeInfo")),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=!!e.openCapitalize),e.hasOwnProperty("list")&&e.list&&e.list.length&&(e.list.forEach(function(i){(i.isMust=!!i.isMust,e.name.includes("groupc"))&&(i.isMust=!!i.isMust,i.memory=!!i.memory,i.name.includes("textc")||i.name.includes("paragraphc")||i.name.includes("numberc")||i.name.includes("checkboxesOrRadioc")||i.name.includes("datec")||i.name.includes("dateareac")||i.name.includes("picc")||i.name.includes("introductionc")||i.name.includes("pricec")||i.name.includes("groupc")?i.systemFlag=!1:(t.setParent.push(i.name),i.systemFlag=!0,1==i.classify&&(i.parentCode="tradeInfo"),2==i.classify&&(i.parentCode="personInfo"),3==i.classify&&(i.parentCode="goodsInfo"),4==i.classify&&(i.parentCode="competeInfo")))}),e.name.includes("groupc")&&(e.children=e.list)),t.cids.push(c()(e.cid.match(/\d+/g))),e.hasOwnProperty("children")&&e.children.forEach(function(e){e.isMust=!!e.isMust,e.memory=!!e.memory,t.cids.push(c()(e.cid.match(/\d+/g)))})}),t.counter=Math.max.apply(Math,l()(t.cids)),t.tempaletDataList=i,setTimeout(function(){t.setFixed()},500)},setFixed:function(){var e=this;["tradeInfo","personInfo","goodsInfo","competeInfo"].forEach(function(t){e[t].forEach(function(t){e.setParent.includes(t.name)&&(t.fixed=!0)})})}},watch:{isDragging:function(e){var t=this;e?t.delayedDragging=!0:t.$nextTick(function(){t.delayedDragging=!1})},brandId:function(e,t){var i=this;if(e){i.enterpriseId=e,i.counter=1,i.tradeInfo=[],i.personInfo=[],i.goodsInfo=[],i.competeInfo=[],i.defineInfo=[],i.currentChildKey=null,i.currentChildIndex=null,i.childIndex=0,i.currentIndex=0,i.tempaletDataList=[],i.setList=[],i.templateObj={title:"",description:"",storeType:"",momory:[]};var a=i.$route.query;n.a.all([i.getAllFields(2)]).then(function(e){i.getAllFields(3),a.hasOwnProperty("type")&&"copy"==a.type?(i.templateId=a.templateId,i.oparateType=a.type,i.getInfo()):i.getHasStores()}).catch(function(e){console.log(e)})}}},components:{draggable:p.a,AddInput:m.a,limitInput:h.a,imageCom:f.default,selectCom:v.default,dateRangeCom:g.default,inputCom:_.default,blockCom:y.default,qrcodeDialog:b.a,customSet:k},mounted:function(){var e=this;document.documentElement.style.backgroundColor="#f0f2f5";var t=e.$route.query;e.$emit("showTab","32","copy"===t.type?"322":t.templateId?"321":"322"),n.a.all([e.getAllFields(2)]).then(function(i){e.getAllFields(3),t.hasOwnProperty("templateId")?(e.templateId=t.templateId,e.oparateType=t.type,e.getInfo()):e.getHasStores()}).catch(function(e){console.log(e)}),document.body.ondrop=function(e){e.preventDefault(),e.stopPropagation()}},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},L={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"template-wrap",staticStyle:{"min-height":"calc(100vh - 114px)"}},[a("div",{staticClass:"template-contain"},[a("div",{staticClass:"template-head"},[a("div",{staticClass:"template-title flex-1"}),e._v(" "),a("div",{staticClass:"template-btns flex-1 flex-r"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.templateSet}},[e._v("模板设置")]),e._v(" "),a("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(t){return e.saveAndBack("save")}}},[e._v("保存并启用")])],1)]),e._v(" "),a("div",{staticClass:"template-body"},[a("div",{staticClass:"template-cell template-cell-l"},[a("div",{staticClass:"flex"},[a("div",{class:["template-cell-title font-14 ",1==e.activeTab?"color-3033133":"color-606266"],on:{click:function(t){return e.changeTab("1")}}},[e._v("系统字段")]),e._v(" "),a("span",{staticClass:"p-l-15 color-dedfe6"},[e._v("|")]),e._v(" "),a("div",{class:["template-cell-title font-14 ",2==e.activeTab?"color-3033133":"color-606266"],on:{click:function(t){return e.changeTab("2")}}},[e._v("自定义字段")])]),e._v(" "),a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[1==e.activeTab?a("el-tab-pane",{attrs:{label:"交易",name:"first"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list1",list:e.tradeInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.tradeInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name,"aria-hidden":"true"}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"人员",name:"second"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list2",list:e.personInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.personInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"商品",name:"third"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list3",list:e.goodsInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.goodsInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),1==e.activeTab?a("el-tab-pane",{attrs:{label:"竞品",name:"four"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list4",list:e.competeInfo,options:e.leftOption,clone:e.cloneItem,move:e.onMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.competeInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":""],attrs:{"data-name":t.name}},[a("span",[e._v(e._s(t.title))])])}),0)],1)]):e._e(),e._v(" "),2==e.activeTab?a("el-tab-pane",{attrs:{label:"自定义字段",name:"five"}},[a("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[a("draggable",{staticClass:"compenent",attrs:{id:"list5",list:e.defineInfo,options:e.leftDefineOption,clone:e.cloneItem,move:e.onChildMove},on:{start:function(t){e.isDragging=!0},end:e.itemMoveEnd}},e._l(e.defineInfo,function(t,i){return a("li",{key:i,class:["compenent-item",1==t.fixed?"fixed-item":"",11==t.type?"block-class":""],attrs:{"data-type":t.fieldCode}},[0==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),1==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),2==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),3==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),4==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),5==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),6==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),7==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),9==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),10==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),11==t.type?a("span",[e._v(e._s(t.title))]):e._e(),e._v(" "),0==t.type?a("i",{staticClass:"bg-icon bg-icon-one"}):e._e(),e._v(" "),1==t.type?a("i",{staticClass:"bg-icon bg-icon-two"}):e._e(),e._v(" "),2==t.type?a("i",{staticClass:"bg-icon bg-icon-three"}):e._e(),e._v(" "),3==t.type?a("i",{staticClass:"bg-icon bg-icon-four"}):e._e(),e._v(" "),4==t.type?a("i",{staticClass:"bg-icon bg-icon-five"}):e._e(),e._v(" "),5==t.type?a("i",{staticClass:"bg-icon bg-icon-six"}):e._e(),e._v(" "),6==t.type?a("i",{staticClass:"bg-icon bg-icon-seven"}):e._e(),e._v(" "),7==t.type?a("i",{staticClass:"bg-icon bg-icon-eight"}):e._e(),e._v(" "),9==t.type?a("i",{staticClass:"bg-icon bg-icon-ten"}):e._e(),e._v(" "),10==t.type?a("i",{staticClass:"bg-icon bg-icon-eleven"}):e._e(),e._v(" "),11==t.type?a("i",{staticClass:"bg-icon bg-icon-twelve"}):e._e()])}),0)],1)]):e._e()],1)],1),e._v(" "),a("div",{staticClass:"template-cell template-cell-m"},[a("div",{staticClass:"phone-view"},[a("div",{staticClass:"phone-show-content"},[a("div",{staticClass:"drag-show-content"},[a("div",{staticClass:"view-container"},[a("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==e.tempaletDataList.length?[a("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:e._e(),e._v(" "),a("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:e.tempaletDataList,callback:function(t){e.tempaletDataList=t},expression:"tempaletDataList"}},e._l(e.tempaletDataList,function(t,i){return a("li",{key:"li1"+i,class:["filed-item",e.currentIndex==i?"active-item":"","li-block"],on:{click:function(a){return e.selectItem(t.fieldCode,i)}}},["baseInfo"!=t.fieldCode?a("span",{staticClass:"item-close p-item-close",on:{click:function(a){return a.stopPropagation(),e.deleteItem(t.name,t.parentCode,i,t)}}},[a("i",{staticClass:"el-icon-close"})]):e._e(),e._v(" "),t.systemFlag||!t.name.includes("groupc")?a("div",[1==t.type||2==t.type||3==t.type||10==t.type||9==t.type?a("input-com",{attrs:{childItem:t}}):e._e(),e._v(" "),4==t.type||5==t.type?a("select-com",{attrs:{childItem:t}}):e._e(),e._v(" "),6==t.type?a("date-range-com",{attrs:{childItem:t}}):e._e(),e._v(" "),7==t.type?a("image-com",{attrs:{childItem:t}}):e._e(),e._v(" "),"11"==t.type?a("block-com",{attrs:{childItem:t}}):e._e()],1):e._e(),e._v(" "),[t.name.includes("groupc")?a("div",{staticClass:"block"},[a("div",{staticClass:"block-head"},[a("div",{class:["opencard-item-title",e.getZhLen(t.title)>=6?"title-pre-wrap":""]},[e._v(e._s(t.title))])]),e._v(" "),a("ul",{staticClass:"view-content"},[a("draggable",{class:["drag-wrap","block-wrap",t.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:e.addDragItem},model:{value:t.children,callback:function(i){e.$set(t,"children",i)},expression:"item.children"}},e._l(t.children,function(n,s){return a("li",{key:"li"+s,class:["filed-item","child-filed-item",e.currentChildKey==n.name&&e.currentChildIndex==s?"active-item":""],on:{click:function(a){return a.stopPropagation(),e.selectChildItem(n.name,i,s,t.children)}}},[a("span",{staticClass:"item-close child-item-close",on:{click:function(a){return a.stopPropagation(),e.deleteChildItem(n.name,i,s,t.children,n)}}},[a("i",{staticClass:"el-icon-close"})]),e._v(" "),4==n.type||5==n.type?a("select-com",{attrs:{childItem:n}}):e._e(),e._v(" "),6==n.type?a("date-range-com",{attrs:{childItem:n}}):e._e(),e._v(" "),7==n.type?a("image-com",{attrs:{childItem:n}}):e._e(),e._v(" "),1==n.type||2==n.type||3==n.type||10==n.type||9==n.type?a("input-com",{attrs:{childItem:n}}):e._e(),e._v(" "),"11"==n.type&&n.systemFlag?a("block-com",{attrs:{childItem:n}}):e._e()],1)}),0)],1)]):e._e()]],2)}),0)],2)])])])])]),e._v(" "),a("div",{staticClass:"template-cell template-cell-r define-template-tab",style:{right:e.rightWidth}},[a("div",{staticClass:"template-cell-title font-14 color-303133"},[e._v("控件设置")]),e._v(" "),a("div",{attrs:{label:"",name:"first"}},[a("div",{attrs:{id:"edit-box"}},[a("div",{staticClass:"edit-view baby-info-flag baby-info"},[e._l(e.tempaletDataList,function(t,i){return[e.currentIndex!=i||t.systemFlag||6==t.type?e._e():[a("div",{key:"child"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.title,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"title",i)},"update:input-value":function(i){return e.$set(t,"title",i)}}}),e._v(" "),7==t.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n 图片最多可添加9张\n ")]):e._e()],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||6!=t.type?e._e():[a("div",{key:"child62"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.startTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"startTitle",i)},"update:input-value":function(i){return e.$set(t,"startTitle",i)}}})],1),e._v(" "),a("div",{key:"child64"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题2 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.endTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"endTitle",i)},"update:input-value":function(i){return e.$set(t,"endTitle",i)}}})],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||11==t.type||5==t.type||7==t.type?e._e():[a("div",{key:"child1"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("提示文字最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"placeholder",i)},"update:input-value":function(i){return e.$set(t,"placeholder",i)}}}),e._v(" "),2==t.type||9==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入500个字,可显示多行内容")]):e._e(),e._v(" "),1==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入100个字,仅可显示一行内容")]):e._e()],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||3!=t.type?e._e():[a("div",{key:"child11"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("单位最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"placeholder",i)},"update:input-value":function(i){return e.$set(t,"placeholder",i)}}}),e._v(" "),a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最大限制为12位数")])],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||"4"!=t.type?e._e():[a("div",{key:"child111"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():a("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.list,function(n,s){return[a("div",{key:"child10"+s,staticClass:"margin-t-15 limit-w-340",style:0==s?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:300,inputValue:n.value,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){return e.$set(n,"value",t)},"update:input-value":function(t){return e.$set(n,"value",t)}}}),e._v(" "),!t.systemFlag&&t.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){return e.delChildItem(i,s,t)}}}):e._e(),e._v(" "),!t.systemFlag&&s<19?[s==t.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){return e.addChildItem(i,s,t)}}}):e._e()]:e._e()],2)]})],2),e._v(" "),a("div",{key:"parent22"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("选择框类型")]),e._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"item.chooseType"}},[e._v("单选")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"item.chooseType"}},[e._v("多选")])],1)])],e._v(" "),e.currentIndex!=i||t.systemFlag||5!=t.type&&6!=t.type?e._e():[a("div",{key:"child117"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"item.dateType"}},[e._v("\n 年-月-日 时 分\n ")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"item.dateType"}},[e._v("\n 年-月-日\n ")])],1)],e._v(" "),e.currentIndex!=i||t.systemFlag||10!=t.type?e._e():[a("div",{key:"parent210"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("大写")]),e._v(" "),a("el-checkbox",{model:{value:t.openCapitalize,callback:function(i){e.$set(t,"openCapitalize",i)},expression:"item.openCapitalize"}},[e._v("显示大写")])],1)],e._v(" "),e.currentIndex!=i||t.name.includes("groupc")?e._e():[a("div",{key:"parent2"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证")]),e._v(" "),a("el-checkbox",{on:{change:function(i){return e.changeMust(i,!!t.list,t)}},model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"item.isMust"}},[e._v("必填")])],1)],e._v(" "),e.currentIndex!=i||"performanceKing"!=t.name&&"competitorInfo"!=t.name?e._e():[a("div",{key:"parent21"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证 是否必填")]),e._v(" "),a("div",{staticClass:"must-list"},e._l(t.list,function(t,i){return a("div",{key:"list"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"listItem.isMust"}},[e._v(e._s(t.title))])],1)}),0)])],e._v(" "),e.currentIndex!=i||t.name.includes("groupc")?e._e():[a("div",{key:"parent3"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("记忆")]),e._v(" "),a("el-checkbox",{model:{value:t.memory,callback:function(i){e.$set(t,"memory",i)},expression:"item.memory"}},[e._v("是否记忆")])],1)],e._v(" "),e.childIndex==i&&t.children&&t.children.length?[e._l(t.children,function(t,n){return[e.currentChildIndex!=n||t.systemFlag||6==t.type?e._e():[a("div",{key:"child"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.title,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"title",i)},"update:input-value":function(i){return e.$set(t,"title",i)}}}),e._v(" "),7==t.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[e._v("\n 图片最多可添加9张\n ")]):e._e()],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||6!=t.type?e._e():[a("div",{key:"child2"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.startTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"startTitle",i)},"update:input-value":function(i){return e.$set(t,"startTitle",i)}}})],1),e._v(" "),a("div",{key:"child4"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("标题2 最多10个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.endTitle,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){return e.$set(t,"endTitle",i)},"update:input-value":function(i){return e.$set(t,"endTitle",i)}}})],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||5==t.type||7==t.type?e._e():[a("div",{key:"child1"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("提示文字最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"placeholder",i)},"update:input-value":function(i){return e.$set(t,"placeholder",i)}}}),e._v(" "),2==t.type||9==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入500个字,可显示多行内容")]):e._e(),e._v(" "),1==t.type?a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最多输入100个字,仅可显示一行内容")]):e._e()],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||3!=t.type?e._e():[a("div",{key:"child6"+n,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[e._v("单位最多20个字")]),e._v(" "),a("limitInput",{attrs:{inputWidth:300,inputValue:t.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){return e.$set(t,"unit",i)},"update:input-value":function(i){return e.$set(t,"unit",i)}}}),e._v(" "),a("p",{staticClass:"font-12 m-t-10"},[e._v("内容最大限制为12位数")])],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||5!=t.type&&6!=t.type?e._e():[a("div",{key:"child7"+n,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("日期类型")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"childItem.dateType"}},[e._v("\n 年-月-日 时 分\n ")]),e._v(" "),a("el-radio",{attrs:{label:0},model:{value:t.dateType,callback:function(i){e.$set(t,"dateType",i)},expression:"childItem.dateType"}},[e._v("\n 年-月-日\n ")])],1)],e._v(" "),e.currentChildIndex!=n||t.systemFlag||"4"!=t.type?e._e():[a("div",{key:"child9"+n,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[e._v("选项 "),t.systemFlag?e._e():a("span",[e._v("最多20项,每项最多10个字")])]),e._v(" "),e._l(t.list,function(n,s){return[a("div",{key:"child10"+s,staticClass:"margin-t-15 limit-w-340",style:0==s?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:300,inputValue:n.value,holder:"",disflag:t.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(t){return e.$set(n,"value",t)},"update:input-value":function(t){return e.$set(n,"value",t)}}}),e._v(" "),!t.systemFlag&&t.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){return e.delChildItem(i,s,t)}}}):e._e(),e._v(" "),!t.systemFlag&&s<19?[s==t.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){return e.addChildItem(i,s,t)}}}):e._e()]:e._e()],2)]})],2),e._v(" "),a("div",{key:"child922"+n,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("选择框类型")]),e._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"childItem.chooseType"}},[e._v("单选")]),e._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.chooseType,callback:function(i){e.$set(t,"chooseType",i)},expression:"childItem.chooseType"}},[e._v("多选")])],1)])],e._v(" "),e.currentChildIndex!=n||t.systemFlag||10!=t.type?e._e():[a("div",{key:"child910"+n,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("大写")]),e._v(" "),a("el-checkbox",{model:{value:t.openCapitalize,callback:function(i){e.$set(t,"openCapitalize",i)},expression:"childItem.openCapitalize"}},[e._v("显示大写")])],1)],e._v(" "),e.currentChildIndex==n?[a("div",{key:"child11"+n,staticClass:"edit-item"},[a("div",{staticClass:"edit-item-title"},[e._v("验证")]),e._v(" "),a("el-checkbox",{on:{change:function(i){return e.changeMust(i,!!t.list,t)}},model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"childItem.isMust"}},[e._v("必填")])],1)]:e._e(),e._v(" "),e.currentChildIndex!=n||"performanceKing"!=t.name&&"competitorInfo"!=t.name?e._e():[a("div",{key:"child111"+n,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("验证 是否必填")]),e._v(" "),a("div",{staticClass:"must-list"},e._l(t.list,function(t,i){return a("div",{key:"list111"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:t.isMust,callback:function(i){e.$set(t,"isMust",i)},expression:"listItem.isMust"}},[e._v(e._s(t.title))])],1)}),0)])],e._v(" "),e.currentChildIndex==n?[a("div",{key:"child12"+n,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[e._v("记忆")]),e._v(" "),a("el-checkbox",{model:{value:t.memory,callback:function(i){e.$set(t,"memory",i)},expression:"childItem.memory"}},[e._v("是否记忆")])],1)]:e._e()]})]:e._e()]})],2)])])])])]),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}}),e._v(" "),e.setVisible?a("custom-set",{attrs:{templateObj:e.templateObj,storeList:e.storeList},on:{closeSet:e.closeSet}}):e._e()],1)},staticRenderFns:[]};var V=i("VU/8")(O,L,!1,function(e){i("zy2t")},"data-v-14decdbc",null);t.default=V.exports},O3gZ:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",e.childItem.title.length>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))])]),e._v(" "),i("ul",{staticClass:"view-content"},e._l(e.childItem.list,function(t,a){return i("li",{key:"performance"+a,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",t.title.length>=6?"title-pre-wrap":""]},[e._v(e._s(t.title))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[e._v(e._s(t.placeholder)+" "+e._s(t.isMust?"(必填)":""))])])])}),0),e._v(" "),"competitorInfo"==e.childItem.name?i("div",{staticClass:"compete-add"},[e._v("\n +竞品信息\n ")]):e._e()])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("Q9Uw")},"data-v-67147ae0",null);t.default=s.exports},Q9Uw:function(e,t){},Tvq6:function(e,t){},csI9:function(e,t){},dy5a:function(e,t){},rYZf:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"flex"},[i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("Tvq6")},"data-v-67cc7786",null);t.default=s.exports},ut2q:function(e,t){},zHtI:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(e){for(var t=0,i=0;i<e.length;i++){null!=e.charAt(i).match(/[^\x00-\xff]/gi)?t+=1:t+=.5}return Math.ceil(t)}}},n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{class:[2==e.childItem.type?"h-66":""]},[9!=e.childItem.type?i("div",{class:["opencard-item-title",e.getZhLen(e.childItem.title)>=6?"title-pre-wrap":""]},[e._v(e._s(e.childItem.title))]):e._e(),e._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==e.childItem.type?"15px":"0"}},[e._v(e._s(e.childItem.placeholder)+" "+e._s(e.childItem.isMust?"(必填)":""))])]),e._v(" "),10==e.childItem.type&&e.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[e._v("大写:壹万元整(示例)")]):e._e()])},staticRenderFns:[]};var s=i("VU/8")(a,n,!1,function(e){i("FQZX")},"data-v-4cfabcb1",null);t.default=s.exports},zy2t:function(e,t){}});
\ No newline at end of file
webpackJsonp([78],{YKf6:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("fZjL"),n=a.n(i),o=a("LRn8"),s=a("P9l9"),l=a("Ch4/"),r=a("3E4D"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,selectRadio:0,showDialog:!1,conditionObj:{isCompleted:"",isOverTime:"",dateRange:[]},completedOptions:[{label:"所有完成情况",value:""},{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"所有逾期情况",value:""},{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],loading:!1,tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0,userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""}}},computed:{},methods:{showSingleInfo:function(e){var t=this,a={clerkId:e};Object(s.g)("/haoban-manage3-web/get-clerk-info",a).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.userData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},init:function(){var e=this.$route.query.startDate,t=this.$route.query.endDate;this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.conditionObj.dateRange=t?[e,t]:[],this.brandId&&this.getTableList()},selectInit:function(e,t){return 0!=e.removeAble},handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskId}).join(",")||"",isOverTime:t.conditionObj.isOverTime||"",isCompleted:t.conditionObj.isCompleted||"",reason:e.reason,startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand,isAll:t.selectRadio};Object(s.g)("/haoban-app-performance-three-web/performance/batch-remove-clerk-month-performance-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return r.a.showmsg("删除成功","success"),void t.getTableList();l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;this.$confirm("确认要删除吗?","提示").then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,i={taskId:t.taskId,enterpriseId:this.activeBrand};Object(s.b)("/haoban-app-performance-three-web/performance/remove-clerk-month-performance-task",i).then(function(t){var i=t.data;if(1==i.errorCode)return a.total--,a.tableData.splice(e,1),0==a.tableData.length&&(a.currentPage>1?(a.currentPage--,a.getTableList()):a.total>0&&a.getTableList()),void a.$message.success("删除成功");l.a.errorMsg(i)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},getTableList:function(e){var t=this;t.loading=!0;var a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.isOverTime||"",isCompleted:t.conditionObj.isCompleted||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.activeBrand};Object(s.b)("/haoban-app-performance-three-web/performance/query-clerk-month-performance-task",a).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo?a.result.pageInfo.total:0);l.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){this.init()},components:{multipleDel:o.a}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap common-right-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-133 ",attrs:{placeholder:"所有完成情况"},on:{change:e.changeSelect},model:{value:e.conditionObj.isOverTime,callback:function(t){e.$set(e.conditionObj,"isOverTime",t)},expression:"conditionObj.isOverTime"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("el-select",{staticClass:"w-133 m-l-10",attrs:{placeholder:"所有逾期情况"},on:{change:e.changeSelect},model:{value:e.conditionObj.isCompleted,callback:function(t){e.$set(e.conditionObj,"isCompleted",t)},expression:"conditionObj.isCompleted"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",staticStyle:{width:"310px"},attrs:{editable:!1,"value-format":"yyyy-MM",type:"monthrange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[e.$getButtonLimit(e.$buttonCode.multipleDelTask)?a("el-button",{attrs:{"limit-code":e.$buttonCode.multipleDelTask,type:"danger"},on:{click:e.multDel}},[e._v("批量删除")]):e._e()],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45",selectable:e.selectInit}}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象",width:"260"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){return e.showSingleInfo(t.row.clerkId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.userData.headImg?a("img",{attrs:{src:e.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(e.userData.staffName||"--")+" ( "+e._s(e.userData.position||"--")+")\n ")]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==e.userData.nationCode?e.userData.phoneNumber:"+"+e.userData.nationCode+"-"+e.userData.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属部门:")]),a("span",{staticClass:"w-130"},[e._v(e._s(e.userData.departmentName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("p",{staticClass:"first-item font-14 color-303133",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.clerkPhone))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-909399 line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",{staticClass:"color-909399 line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",{staticClass:"color-909399 line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.delTask)?a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.removeAble&&e.$getButtonLimit(e.$buttonCode.delTask)?a("el-button",{attrs:{"limit-code":e.$buttonCode.delTask,type:"text"},on:{click:function(a){return e.handleDel(t.$index,t.row)}}},[e._v("删除")]):a("span",[e._v("--")])]}}])}):e._e()],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0,detailShowFlag:!0},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,d,!1,function(e){a("g7mR")},"data-v-73231a2d",null);t.default=u.exports},g7mR:function(e,t){}}); webpackJsonp([80],{YKf6:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("fZjL"),n=a.n(i),o=a("LRn8"),s=a("P9l9"),l=a("Ch4/"),r=a("3E4D"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeBrand:this.brandId,selectRadio:0,showDialog:!1,conditionObj:{isCompleted:"",isOverTime:"",dateRange:[]},completedOptions:[{label:"所有完成情况",value:""},{label:"已完成",value:"1"},{label:"未完成",value:"0"}],overOptions:[{label:"所有逾期情况",value:""},{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],loading:!1,tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:20,total:0,userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentName:"",headImg:""}}},computed:{},methods:{showSingleInfo:function(e){var t=this,a={clerkId:e};Object(s.g)("/haoban-manage3-web/get-clerk-info",a).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):t.userData=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},init:function(){var e=this.$route.query.startDate,t=this.$route.query.endDate;this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.conditionObj.dateRange=t?[e,t]:[],this.brandId&&this.getTableList()},selectInit:function(e,t){return 0!=e.removeAble},handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},changeDate:function(e){e||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskId}).join(",")||"",isOverTime:t.conditionObj.isOverTime||"",isCompleted:t.conditionObj.isCompleted||"",reason:e.reason,startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",enterpriseId:t.activeBrand,isAll:t.selectRadio};Object(s.g)("/haoban-app-performance-three-web/performance/batch-remove-clerk-month-performance-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return r.a.showmsg("删除成功","success"),void t.getTableList();l.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.currentPage=1,this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;this.$confirm("确认要删除吗?","提示").then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,i={taskId:t.taskId,enterpriseId:this.activeBrand};Object(s.b)("/haoban-app-performance-three-web/performance/remove-clerk-month-performance-task",i).then(function(t){var i=t.data;if(1==i.errorCode)return a.total--,a.tableData.splice(e,1),0==a.tableData.length&&(a.currentPage>1?(a.currentPage--,a.getTableList()):a.total>0&&a.getTableList()),void a.$message.success("删除成功");l.a.errorMsg(i)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})})},getTableList:function(e){var t=this;t.loading=!0;var a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.isOverTime||"",isCompleted:t.conditionObj.isCompleted||"",startDate:t.conditionObj.dateRange[0]||"",endDate:t.conditionObj.dateRange[1]||"",pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.activeBrand};Object(s.b)("/haoban-app-performance-three-web/performance/query-clerk-month-performance-task",a).then(function(e){var a=e.data;if(t.loading=!1,1==a.errorCode)return t.tableData=a.result.list||[],void(t.total=a.result.pageInfo?a.result.pageInfo.total:0);l.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){this.init()},components:{multipleDel:o.a}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap common-right-wrap"},[a("div",{staticClass:"daily-set-content border-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-133 ",attrs:{placeholder:"所有完成情况"},on:{change:e.changeSelect},model:{value:e.conditionObj.isOverTime,callback:function(t){e.$set(e.conditionObj,"isOverTime",t)},expression:"conditionObj.isOverTime"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("el-select",{staticClass:"w-133 m-l-10",attrs:{placeholder:"所有逾期情况"},on:{change:e.changeSelect},model:{value:e.conditionObj.isCompleted,callback:function(t){e.$set(e.conditionObj,"isCompleted",t)},expression:"conditionObj.isCompleted"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",staticStyle:{width:"310px"},attrs:{editable:!1,"value-format":"yyyy-MM",type:"monthrange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始月份","end-placeholder":"结束月份"},on:{change:e.changeDate},model:{value:e.conditionObj.dateRange,callback:function(t){e.$set(e.conditionObj,"dateRange",t)},expression:"conditionObj.dateRange"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[e.$getButtonLimit(e.$buttonCode.multipleDelTask)?a("el-button",{attrs:{"limit-code":e.$buttonCode.multipleDelTask,type:"danger"},on:{click:e.multDel}},[e._v("批量删除")]):e._e()],1)]),e._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45",selectable:e.selectInit}}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象",width:"260"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("el-popover",{attrs:{placement:"top-start",width:"300",trigger:"hover"},on:{show:function(a){return e.showSingleInfo(t.row.clerkId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[e.userData.headImg?a("img",{attrs:{src:e.userData.headImg,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(e.userData.staffName||"--")+" ( "+e._s(e.userData.position||"--")+")\n ")]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==e.userData.nationCode?e.userData.phoneNumber:"+"+e.userData.nationCode+"-"+e.userData.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属部门:")]),a("span",{staticClass:"w-130"},[e._v(e._s(e.userData.departmentName||"--"))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic cursor-pointer"},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:"img"}}):a("i",{staticClass:"iconfont-hb3 icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[a("p",{staticClass:"first-item font-14 color-303133",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399",staticStyle:{"line-height":"18px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[e._v(e._s(t.row.clerkPhone))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"color-909399 line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",{staticClass:"color-909399 line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",{staticClass:"color-909399 line-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.delTask)?a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.removeAble&&e.$getButtonLimit(e.$buttonCode.delTask)?a("el-button",{attrs:{"limit-code":e.$buttonCode.delTask,type:"text"},on:{click:function(a){return e.handleDel(t.$index,t.row)}}},[e._v("删除")]):a("span",[e._v("--")])]}}])}):e._e()],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0,detailShowFlag:!0},on:{hideDialog:e.hideDialog}})],1)},staticRenderFns:[]};var u=a("VU/8")(c,d,!1,function(e){a("g7mR")},"data-v-73231a2d",null);t.default=u.exports},g7mR:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([79],{M8Mj:function(e,a){},tF0P:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var o=t("mvHQ"),r=t.n(o),i=t("l46T"),n=t("Kkt8"),s=t("P9l9"),l=t("3E4D"),m=t("Ch4/"),p=t("PI0u"),c={name:"chat-log",props:{brandId:{type:String,default:function(){return""}}},components:{limitInput:i.a,limitTextarea:n.a},data:function(){return{activeBrand:this.brandId,activeId:"3",commitName:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).staffName:"",wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",formData:{templateId:"",templateName:"",cardType:"0",cardApplicationChannel:["offlineStore"],erpDemoCode:"",cardColor:"#2f54eb",cardDenomination:"1",minGoodsType:"0",minApplicableGoods:"1",maxGoodsType:"0",maxApplicableGoods:"1",useCondition:{sale_limit:{fee:1},goods:{ok:"",no:""},only:1,discount_amount_upper_limit:0,goods_discounts_number_upper_limit:"1",goods_discounts_number_lower_limit:"1"},limitTopType:"0",limitTop:0,minCostCheck:!1,minCost:"1",shareCheck:!1,fitGoodCheck:!1,fitGoodDes:"",noFitGoodDes:"",cardLimitType:"0",cardLimit:"1",costValue:"1",useCustomCode:"0",cardExplain:"",applicationStoreType:"1",useDescript:"",gicEnterpriseId:""},rules:{templateName:[{required:!0,message:"请输入模板名称",trigger:"blur"}],cardApplicationChannel:[{type:"array",required:!0,message:"请至少选择一个卡券适用渠道",trigger:"change"}],cardDenomination:[{required:!0,message:"请输入减免金额",trigger:"blur"}],costValue:[{required:!0,message:"请输入成本费用",trigger:"blur"}],cardExplain:[{required:!0,message:"请输入适用门店说明",trigger:"blur"}],applicationStoreType:[{required:!0,message:"请选择适用门店",trigger:"change"}],useDescript:[{required:!0,message:"请输入使用说明",trigger:"blur"}],gicEnterpriseId:[{required:!0,message:"请选择商户",trigger:"change"}]},cardSelectShow:!1,brandListData:[],chanelList:[],loadingBtn:!1}},methods:{changeEnterprise:function(){this.formData.cardApplicationChannel=[],this.getChanel()},getChanel:function(){var e=this,a={gicEnterpriseId:e.formData.gicEnterpriseId};Object(s.b)("/haoban-app-customer-web/inner/get-channel-type",a).then(function(a){var t=a.data;return 1==t.errorCode&&(e.chanelList=t.result||[],t.result.length&&!e.$route.query.templateId&&(e.formData.cardApplicationChannel=[t.result[0].value])),!1}).catch(function(a){e.$message.error({duration:1e3,message:a.message})})},changeTop:function(e){0==e&&(this.formData.limitTop=0)},cancelEdit:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.go(-1)}).catch(function(){})},submitForm:Object(p.a)(function(e,a){var t=this;return t.formData.fitGoodCheck&&!t.formData.fitGoodDes&&t.formData.noFitGoodDes?(t.$message.error({duration:1e3,message:"适用商品至少填写一项"}),!1):t.formData.minCostCheck&&!t.formData.minCost?(t.$message.error({duration:1e3,message:"请输入最低消费"}),!1):1!=t.formData.limitTopType||t.formData.limitTop?1!=t.formData.minGoodsType||t.formData.minApplicableGoods?1!=t.formData.maxGoodsType||t.formData.maxApplicableGoods?2!=t.formData.cardLimitType||t.formData.cardLimit?(t.loadingBtn=!0,void t.$refs[e].validate(function(e){e?t.postSaveCard(a):t.loadingBtn=!1})):(t.$message.error({duration:1e3,message:"请输入领券限制"}),!1):(t.$message.error({duration:1e3,message:"请输入最高适用商品件数"}),!1):(t.$message.error({duration:1e3,message:"请输入最低适用商品件数"}),!1):(t.$message.error({duration:1e3,message:"请输入封顶金额"}),!1)},1e3),postSaveCard:function(e){var a=this,t={sale_limit:{fee:0},goods:{ok:a.formData.fitGoodDes,no:a.formData.noFitGoodDes},only:a.formData.shareCheck?1:0,discount_amount_upper_limit:1==a.formData.cardType&&1==a.formData.limitTopType?a.formData.limitTop:0,goods_discounts_number_lower_limit:1==a.formData.minGoodsType?a.formData.minApplicableGoods:0,goods_discounts_number_upper_limit:1==a.formData.maxGoodsType?a.formData.maxApplicableGoods:0};a.formData.minCostCheck&&(t.sale_limit={fee:a.formData.minCost});var o={templateId:a.formData.templateId,templateName:a.formData.templateName,cardType:a.formData.cardType,cardApplicationChannel:a.formData.cardApplicationChannel.join(","),erpDemoCode:a.formData.erpDemoCode,cardColor:a.formData.cardColor,cardDenomination:a.formData.cardDenomination,minGoodsType:a.formData.minGoodsType,minApplicableGoods:a.formData.minApplicableGoods,maxGoodsType:a.formData.maxGoodsType,maxApplicableGoods:a.formData.maxApplicableGoods,limitTopType:a.formData.limitTopType,limitTop:a.formData.limitTop,useCondition:r()(t),cardLimitType:a.formData.cardLimitType,cardLimit:a.formData.cardLimit,costValue:a.formData.costValue,useCustomCode:a.formData.useCustomCode,cardExplain:a.formData.cardExplain,applicationStoreType:a.formData.applicationStoreType,useDescript:a.formData.useDescript,gicEnterpriseId:a.formData.gicEnterpriseId,commitName:a.commitName,wxEnterpriseId:a.wxEnterpriseId};Object(s.g)((a.$route.query.templateId,"/haoban-app-customer-web/inner/save-template"),o).then(function(t){var o=t.data;a.loadingBtn=!1,1==o.errorCode&&(l.a.showmsg(a.$route.query.templateId?"编辑卡券模板成功":"新建卡券模板成功","success"),e?(a.formData={templateId:"",templateName:"",cardType:"0",cardApplicationChannel:[],erpDemoCode:"",cardColor:"#2f54eb",cardDenomination:"1",minGoodsType:"0",minApplicableGoods:"1",maxGoodsType:"0",maxApplicableGoods:"1",useCondition:{sale_limit:{fee:1},goods:{ok:"",no:""},only:1,discount_amount_upper_limit:0,goods_discounts_number_upper_limit:"1",goods_discounts_number_lower_limit:"1"},limitTopType:"0",limitTop:0,minCostCheck:!1,minCost:"1",shareCheck:!1,fitGoodCheck:!1,fitGoodDes:"",noFitGoodDes:"",cardLimitType:"0",cardLimit:"1",costValue:"1",useCustomCode:"0",cardExplain:"",applicationStoreType:"1",useDescript:"",gicEnterpriseId:a.brandListData[0].enterpriseId},a.getChanel()):a.$router.push("/cardTemplate")),m.a.errorMsg(o)}).catch(function(e){a.loadingBtn=!1,a.$message.error({duration:1e3,message:e.message})})},toReturn:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.push("/cardTemplate")}).catch(function(){})},changeRange:function(e){this.formData.selectList=[]},getCardData:function(){var e=this,a={templateId:e.$route.query.templateId};Object(s.b)("/haoban-app-customer-web/inner/find-template",a).then(function(a){var t=a.data;if(1==t.errorCode){var o=JSON.parse(t.result.useCondition);return e.formData={templateId:t.result.templateId,templateName:t.result.templateName,cardType:String(t.result.cardType),cardApplicationChannel:t.result.cardApplicationChannel.split(",")||[],erpDemoCode:t.result.erpDemoCode,cardColor:t.result.cardColor,cardDenomination:t.result.cardDenomination,limitTopType:String(t.result.limitTopType),limitTop:t.result.limitTop,minGoodsType:String(t.result.minGoodsType),minApplicableGoods:t.result.minApplicableGoods,maxGoodsType:String(t.result.maxGoodsType),maxApplicableGoods:t.result.maxApplicableGoods,minCostCheck:!!o.sale_limit.fee,minCost:o.sale_limit.fee?o.sale_limit.fee:"1",shareCheck:!!o.only,fitGoodCheck:!(!o.goods.ok&&!o.goods.no),fitGoodDes:o.goods.ok,noFitGoodDes:o.goods.no,cardLimitType:String(t.result.cardLimitType),cardLimit:t.result.cardLimit,costValue:t.result.costValue,useCustomCode:String(t.result.useCustomCode),cardExplain:t.result.cardExplain,applicationStoreType:String(t.result.applicationStoreType),useDescript:t.result.useDescript,gicEnterpriseId:t.result.gicEnterpriseId},e.getChanel(),!1}m.a.errorMsg(t)}).catch(function(a){e.$message.error({duration:1e3,message:a.message})})},getBrandData:function(){var e=this;Object(s.g)("/haoban-manage3-web/wx-enterprise-list",{}).then(function(a){var t=a.data;if(1==t.errorCode)return e.brandListData=t.result||[],void(t.result.length&&!e.$route.query.templateId&&(e.formData.gicEnterpriseId=t.result[0].enterpriseId,e.getChanel()));m.a.errorMsg(t)}).catch(function(a){e.$message.error({duration:1e3,message:a.message})})}},watch:{brandId:function(e,a){e&&this.$route.query.templateId&&(this.activeBrand=e)}},mounted:function(){var e=this;e.$emit("showTab","1"),e.getBrandData(),e.$route.query.templateId&&e.$nextTick(function(){e.getCardData()})}},d={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("section",{staticClass:"common-right-wrap"},[t("div",{staticClass:"new-card-body border-box"},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"142px"}},[t("el-form-item",{attrs:{label:"卡券模板名称",prop:"templateName"}},[t("limitInput",{attrs:{inputWidth:307,inputValue:e.formData.templateName,getByType:"word",holder:"请输入卡券模板名称",maxLength:6},on:{"update:inputValue":function(a){return e.$set(e.formData,"templateName",a)},"update:input-value":function(a){return e.$set(e.formData,"templateName",a)}}})],1),e._v(" "),t("el-form-item",{attrs:{label:"卡券类型",prop:"cardType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.cardType,callback:function(a){e.$set(e.formData,"cardType",a)},expression:"formData.cardType"}},[e._v("抵金券")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.cardType,callback:function(a){e.$set(e.formData,"cardType",a)},expression:"formData.cardType"}},[e._v("折扣券")])],1),e._v(" "),t("el-form-item",{attrs:{label:"选择商户",prop:"gicEnterpriseId"}},[t("el-select",{attrs:{placeholder:"请选择"},on:{change:e.changeEnterprise},model:{value:e.formData.gicEnterpriseId,callback:function(a){e.$set(e.formData,"gicEnterpriseId",a)},expression:"formData.gicEnterpriseId"}},e._l(e.brandListData,function(e){return t("el-option",{key:e.enterpriseId,attrs:{label:e.enterpriseName,value:e.enterpriseId}})}),1)],1),e._v(" "),t("el-form-item",{attrs:{label:"卡券适用渠道",prop:"cardApplicationChannel"}},[t("el-checkbox-group",{model:{value:e.formData.cardApplicationChannel,callback:function(a){e.$set(e.formData,"cardApplicationChannel",a)},expression:"formData.cardApplicationChannel"}},e._l(e.chanelList,function(a,o){return t("el-checkbox",{key:o+"chanel",attrs:{label:a.value}},[e._v(e._s(a.name))])}),1)],1),e._v(" "),t("el-form-item",{attrs:{label:"demo券号",prop:"erpDemoCode"}},[t("limitInput",{attrs:{inputWidth:307,inputValue:e.formData.erpDemoCode,getByType:"word",holder:"请输入demo券号",maxLength:200},on:{"update:inputValue":function(a){return e.$set(e.formData,"erpDemoCode",a)},"update:input-value":function(a){return e.$set(e.formData,"erpDemoCode",a)}}})],1),e._v(" "),t("el-form-item",{attrs:{label:"卡券颜色",prop:"cardColor"}},[t("div",{staticClass:"card-color flex flex-space-between"},[t("span",[e._v(e._s(e.formData.cardColor))]),e._v(" "),t("el-color-picker",{model:{value:e.formData.cardColor,callback:function(a){e.$set(e.formData,"cardColor",a)},expression:"formData.cardColor"}})],1)]),e._v(" "),0==e.formData.cardType?t("el-form-item",{attrs:{label:"减免金额",prop:"cardDenomination"}},[t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.cardDenomination,callback:function(a){e.$set(e.formData,"cardDenomination",a)},expression:"formData.cardDenomination"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元")]),t("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("输入大于0的整数")])],1):e._e(),e._v(" "),1==e.formData.cardType?t("el-form-item",{attrs:{label:"折扣额度",prop:"cardDenomination"}},[t("el-input-number",{attrs:{"controls-position":"right",precision:1,min:1,max:9.9,step:.1},model:{value:e.formData.cardDenomination,callback:function(a){e.$set(e.formData,"cardDenomination",a)},expression:"formData.cardDenomination"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("折")]),t("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("请填写1-9.9之间的数字")])],1):e._e(),e._v(" "),1==e.formData.cardType?t("el-form-item",{attrs:{label:"优惠金额封顶",prop:""}},[t("el-radio",{attrs:{label:"0"},on:{change:e.changeTop},model:{value:e.formData.limitTopType,callback:function(a){e.$set(e.formData,"limitTopType",a)},expression:"formData.limitTopType"}},[e._v("不封顶")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.limitTopType,callback:function(a){e.$set(e.formData,"limitTopType",a)},expression:"formData.limitTopType"}},[e._v("限制封顶")]),1==e.formData.limitTopType?t("el-input-number",{attrs:{"controls-position":"right",precision:2,min:1,max:99999999},model:{value:e.formData.limitTop,callback:function(a){e.$set(e.formData,"limitTop",a)},expression:"formData.limitTop"}}):e._e(),e._v(" "),1==e.formData.limitTopType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元")]):e._e()],1):e._e(),e._v(" "),t("el-form-item",{attrs:{label:"最低适用商品件数",prop:"minGoodsType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.minGoodsType,callback:function(a){e.$set(e.formData,"minGoodsType",a)},expression:"formData.minGoodsType"}},[e._v("不限")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.minGoodsType,callback:function(a){e.$set(e.formData,"minGoodsType",a)},expression:"formData.minGoodsType"}},[e._v("限制")]),1==e.formData.minGoodsType?t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.minApplicableGoods,callback:function(a){e.$set(e.formData,"minApplicableGoods",a)},expression:"formData.minApplicableGoods"}}):e._e(),e._v(" "),1==e.formData.minGoodsType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("件")]):e._e()],1),e._v(" "),t("el-form-item",{attrs:{label:"最高适用商品件数",prop:"maxGoodsType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.maxGoodsType,callback:function(a){e.$set(e.formData,"maxGoodsType",a)},expression:"formData.maxGoodsType"}},[e._v("不限")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.maxGoodsType,callback:function(a){e.$set(e.formData,"maxGoodsType",a)},expression:"formData.maxGoodsType"}},[e._v("限制")]),1==e.formData.maxGoodsType?t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.maxApplicableGoods,callback:function(a){e.$set(e.formData,"maxApplicableGoods",a)},expression:"formData.maxApplicableGoods"}}):e._e(),e._v(" "),1==e.formData.maxGoodsType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("件")]):e._e()],1),e._v(" "),t("el-form-item",{attrs:{label:"适用条件",prop:"minCostCheck"}},[t("div",[t("el-checkbox",{model:{value:e.formData.minCostCheck,callback:function(a){e.$set(e.formData,"minCostCheck",a)},expression:"formData.minCostCheck"}},[e._v("最低消费")]),t("el-input-number",{staticClass:"m-l-10",attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.minCost,callback:function(a){e.$set(e.formData,"minCost",a)},expression:"formData.minCost"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元可用")])],1),e._v(" "),t("div",[t("el-checkbox",{model:{value:e.formData.fitGoodCheck,callback:function(a){e.$set(e.formData,"fitGoodCheck",a)},expression:"formData.fitGoodCheck"}},[e._v("适用商品")]),t("span",{staticClass:"font-14 color-909399"},[e._v("(至少填写一项)")])],1),e._v(" "),e.formData.fitGoodCheck?t("div",{staticClass:"fit-good border-box m-b-20"},[t("div",[t("div",{staticClass:"m-b-20 flex"},[t("span",{staticClass:"font-14 color-606266 w-86 m-r-10"},[e._v("适用商品:")]),t("limitInput",{attrs:{inputWidth:300,inputValue:e.formData.fitGoodDes,getByType:"word",holder:"请输入内容",maxLength:18},on:{"update:inputValue":function(a){return e.$set(e.formData,"fitGoodDes",a)},"update:input-value":function(a){return e.$set(e.formData,"fitGoodDes",a)}}})],1),e._v(" "),t("div",{staticClass:"flex"},[t("span",{staticClass:"font-14 color-606266 w-86 m-r-10"},[e._v("不适用商品:")]),t("limitInput",{attrs:{inputWidth:300,inputValue:e.formData.noFitGoodDes,getByType:"word",holder:"请输入内容",maxLength:18},on:{"update:inputValue":function(a){return e.$set(e.formData,"noFitGoodDes",a)},"update:input-value":function(a){return e.$set(e.formData,"noFitGoodDes",a)}}})],1)])]):e._e(),e._v(" "),t("div",[t("el-checkbox",{model:{value:e.formData.shareCheck,callback:function(a){e.$set(e.formData,"shareCheck",a)},expression:"formData.shareCheck"}},[e._v("不与其他优惠共享")])],1)]),e._v(" "),t("el-form-item",{attrs:{label:"领券限制",prop:"cardLimitType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.cardLimitType,callback:function(a){e.$set(e.formData,"cardLimitType",a)},expression:"formData.cardLimitType"}},[e._v("1张/人")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.cardLimitType,callback:function(a){e.$set(e.formData,"cardLimitType",a)},expression:"formData.cardLimitType"}},[e._v("100张/人")]),e._v(" "),t("el-radio",{attrs:{label:"2"},model:{value:e.formData.cardLimitType,callback:function(a){e.$set(e.formData,"cardLimitType",a)},expression:"formData.cardLimitType"}},[e._v("自定义")]),2==e.formData.cardLimitType?t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.cardLimit,callback:function(a){e.$set(e.formData,"cardLimit",a)},expression:"formData.cardLimit"}}):e._e(),e._v(" "),2==e.formData.cardLimitType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("张/人")]):e._e()],1),e._v(" "),t("el-form-item",{attrs:{label:"成本费用",prop:"costValue"}},[t("el-input-number",{attrs:{"controls-position":"right",precision:2,min:1,max:99999999},model:{value:e.formData.costValue,callback:function(a){e.$set(e.formData,"costValue",a)},expression:"formData.costValue"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元")]),t("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("请填写大于0的数字(限制两位小数)")])],1),e._v(" "),t("el-form-item",{attrs:{label:"code类型",prop:"useCustomCode"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.useCustomCode,callback:function(a){e.$set(e.formData,"useCustomCode",a)},expression:"formData.useCustomCode"}},[e._v("随机生成")])],1),e._v(" "),t("el-form-item",{attrs:{label:"适用门店说明",prop:"cardExplain"}},[t("limit-textarea",{attrs:{inputWidth:450,inputValue:e.formData.cardExplain,holder:"请输入适用门店说明",getByType:"word",maxLength:50},on:{"update:inputValue":function(a){return e.$set(e.formData,"cardExplain",a)},"update:input-value":function(a){return e.$set(e.formData,"cardExplain",a)}}})],1),e._v(" "),t("el-form-item",{attrs:{label:"适用门店",prop:"applicationStoreType"}},[t("el-radio",{attrs:{label:"1"},model:{value:e.formData.applicationStoreType,callback:function(a){e.$set(e.formData,"applicationStoreType",a)},expression:"formData.applicationStoreType"}},[e._v("所有门店")])],1),e._v(" "),t("el-form-item",{attrs:{label:"使用说明",prop:"useDescript"}},[t("limit-textarea",{attrs:{inputWidth:450,inputValue:e.formData.useDescript,holder:"请输入使用说明",getByType:"word",maxLength:500},on:{"update:inputValue":function(a){return e.$set(e.formData,"useDescript",a)},"update:input-value":function(a){return e.$set(e.formData,"useDescript",a)}}})],1),e._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.cancelEdit}},[e._v("取消")]),e._v(" "),t("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(a){return e.submitForm("ruleForm")}}},[e._v("确认"+e._s(e.$route.query.templateId?"编辑":"新建"))]),e._v(" "),e.$route.query.templateId?e._e():t("el-button",{attrs:{type:"primary"},on:{click:function(a){return e.submitForm("ruleForm","flag")}}},[e._v("确认并继续新建")])],1)],1)],1)])},staticRenderFns:[]};var u=t("VU/8")(c,d,!1,function(e){t("M8Mj")},"data-v-727bbf32",null);a.default=u.exports}}); webpackJsonp([81],{M8Mj:function(e,a){},tF0P:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var o=t("mvHQ"),r=t.n(o),i=t("l46T"),n=t("Kkt8"),s=t("P9l9"),l=t("3E4D"),m=t("Ch4/"),p=t("PI0u"),c={name:"chat-log",props:{brandId:{type:String,default:function(){return""}}},components:{limitInput:i.a,limitTextarea:n.a},data:function(){return{activeBrand:this.brandId,activeId:"3",commitName:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).staffName:"",wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",formData:{templateId:"",templateName:"",cardType:"0",cardApplicationChannel:["offlineStore"],erpDemoCode:"",cardColor:"#2f54eb",cardDenomination:"1",minGoodsType:"0",minApplicableGoods:"1",maxGoodsType:"0",maxApplicableGoods:"1",useCondition:{sale_limit:{fee:1},goods:{ok:"",no:""},only:1,discount_amount_upper_limit:0,goods_discounts_number_upper_limit:"1",goods_discounts_number_lower_limit:"1"},limitTopType:"0",limitTop:0,minCostCheck:!1,minCost:"1",shareCheck:!1,fitGoodCheck:!1,fitGoodDes:"",noFitGoodDes:"",cardLimitType:"0",cardLimit:"1",costValue:"1",useCustomCode:"0",cardExplain:"",applicationStoreType:"1",useDescript:"",gicEnterpriseId:""},rules:{templateName:[{required:!0,message:"请输入模板名称",trigger:"blur"}],cardApplicationChannel:[{type:"array",required:!0,message:"请至少选择一个卡券适用渠道",trigger:"change"}],cardDenomination:[{required:!0,message:"请输入减免金额",trigger:"blur"}],costValue:[{required:!0,message:"请输入成本费用",trigger:"blur"}],cardExplain:[{required:!0,message:"请输入适用门店说明",trigger:"blur"}],applicationStoreType:[{required:!0,message:"请选择适用门店",trigger:"change"}],useDescript:[{required:!0,message:"请输入使用说明",trigger:"blur"}],gicEnterpriseId:[{required:!0,message:"请选择商户",trigger:"change"}]},cardSelectShow:!1,brandListData:[],chanelList:[],loadingBtn:!1}},methods:{changeEnterprise:function(){this.formData.cardApplicationChannel=[],this.getChanel()},getChanel:function(){var e=this,a={gicEnterpriseId:e.formData.gicEnterpriseId};Object(s.b)("/haoban-app-customer-web/inner/get-channel-type",a).then(function(a){var t=a.data;return 1==t.errorCode&&(e.chanelList=t.result||[],t.result.length&&!e.$route.query.templateId&&(e.formData.cardApplicationChannel=[t.result[0].value])),!1}).catch(function(a){e.$message.error({duration:1e3,message:a.message})})},changeTop:function(e){0==e&&(this.formData.limitTop=0)},cancelEdit:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.go(-1)}).catch(function(){})},submitForm:Object(p.a)(function(e,a){var t=this;return t.formData.fitGoodCheck&&!t.formData.fitGoodDes&&t.formData.noFitGoodDes?(t.$message.error({duration:1e3,message:"适用商品至少填写一项"}),!1):t.formData.minCostCheck&&!t.formData.minCost?(t.$message.error({duration:1e3,message:"请输入最低消费"}),!1):1!=t.formData.limitTopType||t.formData.limitTop?1!=t.formData.minGoodsType||t.formData.minApplicableGoods?1!=t.formData.maxGoodsType||t.formData.maxApplicableGoods?2!=t.formData.cardLimitType||t.formData.cardLimit?(t.loadingBtn=!0,void t.$refs[e].validate(function(e){e?t.postSaveCard(a):t.loadingBtn=!1})):(t.$message.error({duration:1e3,message:"请输入领券限制"}),!1):(t.$message.error({duration:1e3,message:"请输入最高适用商品件数"}),!1):(t.$message.error({duration:1e3,message:"请输入最低适用商品件数"}),!1):(t.$message.error({duration:1e3,message:"请输入封顶金额"}),!1)},1e3),postSaveCard:function(e){var a=this,t={sale_limit:{fee:0},goods:{ok:a.formData.fitGoodDes,no:a.formData.noFitGoodDes},only:a.formData.shareCheck?1:0,discount_amount_upper_limit:1==a.formData.cardType&&1==a.formData.limitTopType?a.formData.limitTop:0,goods_discounts_number_lower_limit:1==a.formData.minGoodsType?a.formData.minApplicableGoods:0,goods_discounts_number_upper_limit:1==a.formData.maxGoodsType?a.formData.maxApplicableGoods:0};a.formData.minCostCheck&&(t.sale_limit={fee:a.formData.minCost});var o={templateId:a.formData.templateId,templateName:a.formData.templateName,cardType:a.formData.cardType,cardApplicationChannel:a.formData.cardApplicationChannel.join(","),erpDemoCode:a.formData.erpDemoCode,cardColor:a.formData.cardColor,cardDenomination:a.formData.cardDenomination,minGoodsType:a.formData.minGoodsType,minApplicableGoods:a.formData.minApplicableGoods,maxGoodsType:a.formData.maxGoodsType,maxApplicableGoods:a.formData.maxApplicableGoods,limitTopType:a.formData.limitTopType,limitTop:a.formData.limitTop,useCondition:r()(t),cardLimitType:a.formData.cardLimitType,cardLimit:a.formData.cardLimit,costValue:a.formData.costValue,useCustomCode:a.formData.useCustomCode,cardExplain:a.formData.cardExplain,applicationStoreType:a.formData.applicationStoreType,useDescript:a.formData.useDescript,gicEnterpriseId:a.formData.gicEnterpriseId,commitName:a.commitName,wxEnterpriseId:a.wxEnterpriseId};Object(s.g)((a.$route.query.templateId,"/haoban-app-customer-web/inner/save-template"),o).then(function(t){var o=t.data;a.loadingBtn=!1,1==o.errorCode&&(l.a.showmsg(a.$route.query.templateId?"编辑卡券模板成功":"新建卡券模板成功","success"),e?(a.formData={templateId:"",templateName:"",cardType:"0",cardApplicationChannel:[],erpDemoCode:"",cardColor:"#2f54eb",cardDenomination:"1",minGoodsType:"0",minApplicableGoods:"1",maxGoodsType:"0",maxApplicableGoods:"1",useCondition:{sale_limit:{fee:1},goods:{ok:"",no:""},only:1,discount_amount_upper_limit:0,goods_discounts_number_upper_limit:"1",goods_discounts_number_lower_limit:"1"},limitTopType:"0",limitTop:0,minCostCheck:!1,minCost:"1",shareCheck:!1,fitGoodCheck:!1,fitGoodDes:"",noFitGoodDes:"",cardLimitType:"0",cardLimit:"1",costValue:"1",useCustomCode:"0",cardExplain:"",applicationStoreType:"1",useDescript:"",gicEnterpriseId:a.brandListData[0].enterpriseId},a.getChanel()):a.$router.push("/cardTemplate")),m.a.errorMsg(o)}).catch(function(e){a.loadingBtn=!1,a.$message.error({duration:1e3,message:e.message})})},toReturn:function(){var e=this;e.$confirm("是否确认返回,返回后当前页面内容将丢失","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$router.push("/cardTemplate")}).catch(function(){})},changeRange:function(e){this.formData.selectList=[]},getCardData:function(){var e=this,a={templateId:e.$route.query.templateId};Object(s.b)("/haoban-app-customer-web/inner/find-template",a).then(function(a){var t=a.data;if(1==t.errorCode){var o=JSON.parse(t.result.useCondition);return e.formData={templateId:t.result.templateId,templateName:t.result.templateName,cardType:String(t.result.cardType),cardApplicationChannel:t.result.cardApplicationChannel.split(",")||[],erpDemoCode:t.result.erpDemoCode,cardColor:t.result.cardColor,cardDenomination:t.result.cardDenomination,limitTopType:String(t.result.limitTopType),limitTop:t.result.limitTop,minGoodsType:String(t.result.minGoodsType),minApplicableGoods:t.result.minApplicableGoods,maxGoodsType:String(t.result.maxGoodsType),maxApplicableGoods:t.result.maxApplicableGoods,minCostCheck:!!o.sale_limit.fee,minCost:o.sale_limit.fee?o.sale_limit.fee:"1",shareCheck:!!o.only,fitGoodCheck:!(!o.goods.ok&&!o.goods.no),fitGoodDes:o.goods.ok,noFitGoodDes:o.goods.no,cardLimitType:String(t.result.cardLimitType),cardLimit:t.result.cardLimit,costValue:t.result.costValue,useCustomCode:String(t.result.useCustomCode),cardExplain:t.result.cardExplain,applicationStoreType:String(t.result.applicationStoreType),useDescript:t.result.useDescript,gicEnterpriseId:t.result.gicEnterpriseId},e.getChanel(),!1}m.a.errorMsg(t)}).catch(function(a){e.$message.error({duration:1e3,message:a.message})})},getBrandData:function(){var e=this;Object(s.g)("/haoban-manage3-web/wx-enterprise-list",{}).then(function(a){var t=a.data;if(1==t.errorCode)return e.brandListData=t.result||[],void(t.result.length&&!e.$route.query.templateId&&(e.formData.gicEnterpriseId=t.result[0].enterpriseId,e.getChanel()));m.a.errorMsg(t)}).catch(function(a){e.$message.error({duration:1e3,message:a.message})})}},watch:{brandId:function(e,a){e&&this.$route.query.templateId&&(this.activeBrand=e)}},mounted:function(){var e=this;e.$emit("showTab","1"),e.getBrandData(),e.$route.query.templateId&&e.$nextTick(function(){e.getCardData()})}},d={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("section",{staticClass:"common-right-wrap"},[t("div",{staticClass:"new-card-body border-box"},[t("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.formData,rules:e.rules,"label-width":"142px"}},[t("el-form-item",{attrs:{label:"卡券模板名称",prop:"templateName"}},[t("limitInput",{attrs:{inputWidth:307,inputValue:e.formData.templateName,getByType:"word",holder:"请输入卡券模板名称",maxLength:6},on:{"update:inputValue":function(a){return e.$set(e.formData,"templateName",a)},"update:input-value":function(a){return e.$set(e.formData,"templateName",a)}}})],1),e._v(" "),t("el-form-item",{attrs:{label:"卡券类型",prop:"cardType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.cardType,callback:function(a){e.$set(e.formData,"cardType",a)},expression:"formData.cardType"}},[e._v("抵金券")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.cardType,callback:function(a){e.$set(e.formData,"cardType",a)},expression:"formData.cardType"}},[e._v("折扣券")])],1),e._v(" "),t("el-form-item",{attrs:{label:"选择商户",prop:"gicEnterpriseId"}},[t("el-select",{attrs:{placeholder:"请选择"},on:{change:e.changeEnterprise},model:{value:e.formData.gicEnterpriseId,callback:function(a){e.$set(e.formData,"gicEnterpriseId",a)},expression:"formData.gicEnterpriseId"}},e._l(e.brandListData,function(e){return t("el-option",{key:e.enterpriseId,attrs:{label:e.enterpriseName,value:e.enterpriseId}})}),1)],1),e._v(" "),t("el-form-item",{attrs:{label:"卡券适用渠道",prop:"cardApplicationChannel"}},[t("el-checkbox-group",{model:{value:e.formData.cardApplicationChannel,callback:function(a){e.$set(e.formData,"cardApplicationChannel",a)},expression:"formData.cardApplicationChannel"}},e._l(e.chanelList,function(a,o){return t("el-checkbox",{key:o+"chanel",attrs:{label:a.value}},[e._v(e._s(a.name))])}),1)],1),e._v(" "),t("el-form-item",{attrs:{label:"demo券号",prop:"erpDemoCode"}},[t("limitInput",{attrs:{inputWidth:307,inputValue:e.formData.erpDemoCode,getByType:"word",holder:"请输入demo券号",maxLength:200},on:{"update:inputValue":function(a){return e.$set(e.formData,"erpDemoCode",a)},"update:input-value":function(a){return e.$set(e.formData,"erpDemoCode",a)}}})],1),e._v(" "),t("el-form-item",{attrs:{label:"卡券颜色",prop:"cardColor"}},[t("div",{staticClass:"card-color flex flex-space-between"},[t("span",[e._v(e._s(e.formData.cardColor))]),e._v(" "),t("el-color-picker",{model:{value:e.formData.cardColor,callback:function(a){e.$set(e.formData,"cardColor",a)},expression:"formData.cardColor"}})],1)]),e._v(" "),0==e.formData.cardType?t("el-form-item",{attrs:{label:"减免金额",prop:"cardDenomination"}},[t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.cardDenomination,callback:function(a){e.$set(e.formData,"cardDenomination",a)},expression:"formData.cardDenomination"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元")]),t("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("输入大于0的整数")])],1):e._e(),e._v(" "),1==e.formData.cardType?t("el-form-item",{attrs:{label:"折扣额度",prop:"cardDenomination"}},[t("el-input-number",{attrs:{"controls-position":"right",precision:1,min:1,max:9.9,step:.1},model:{value:e.formData.cardDenomination,callback:function(a){e.$set(e.formData,"cardDenomination",a)},expression:"formData.cardDenomination"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("折")]),t("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("请填写1-9.9之间的数字")])],1):e._e(),e._v(" "),1==e.formData.cardType?t("el-form-item",{attrs:{label:"优惠金额封顶",prop:""}},[t("el-radio",{attrs:{label:"0"},on:{change:e.changeTop},model:{value:e.formData.limitTopType,callback:function(a){e.$set(e.formData,"limitTopType",a)},expression:"formData.limitTopType"}},[e._v("不封顶")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.limitTopType,callback:function(a){e.$set(e.formData,"limitTopType",a)},expression:"formData.limitTopType"}},[e._v("限制封顶")]),1==e.formData.limitTopType?t("el-input-number",{attrs:{"controls-position":"right",precision:2,min:1,max:99999999},model:{value:e.formData.limitTop,callback:function(a){e.$set(e.formData,"limitTop",a)},expression:"formData.limitTop"}}):e._e(),e._v(" "),1==e.formData.limitTopType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元")]):e._e()],1):e._e(),e._v(" "),t("el-form-item",{attrs:{label:"最低适用商品件数",prop:"minGoodsType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.minGoodsType,callback:function(a){e.$set(e.formData,"minGoodsType",a)},expression:"formData.minGoodsType"}},[e._v("不限")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.minGoodsType,callback:function(a){e.$set(e.formData,"minGoodsType",a)},expression:"formData.minGoodsType"}},[e._v("限制")]),1==e.formData.minGoodsType?t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.minApplicableGoods,callback:function(a){e.$set(e.formData,"minApplicableGoods",a)},expression:"formData.minApplicableGoods"}}):e._e(),e._v(" "),1==e.formData.minGoodsType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("件")]):e._e()],1),e._v(" "),t("el-form-item",{attrs:{label:"最高适用商品件数",prop:"maxGoodsType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.maxGoodsType,callback:function(a){e.$set(e.formData,"maxGoodsType",a)},expression:"formData.maxGoodsType"}},[e._v("不限")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.maxGoodsType,callback:function(a){e.$set(e.formData,"maxGoodsType",a)},expression:"formData.maxGoodsType"}},[e._v("限制")]),1==e.formData.maxGoodsType?t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.maxApplicableGoods,callback:function(a){e.$set(e.formData,"maxApplicableGoods",a)},expression:"formData.maxApplicableGoods"}}):e._e(),e._v(" "),1==e.formData.maxGoodsType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("件")]):e._e()],1),e._v(" "),t("el-form-item",{attrs:{label:"适用条件",prop:"minCostCheck"}},[t("div",[t("el-checkbox",{model:{value:e.formData.minCostCheck,callback:function(a){e.$set(e.formData,"minCostCheck",a)},expression:"formData.minCostCheck"}},[e._v("最低消费")]),t("el-input-number",{staticClass:"m-l-10",attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.minCost,callback:function(a){e.$set(e.formData,"minCost",a)},expression:"formData.minCost"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元可用")])],1),e._v(" "),t("div",[t("el-checkbox",{model:{value:e.formData.fitGoodCheck,callback:function(a){e.$set(e.formData,"fitGoodCheck",a)},expression:"formData.fitGoodCheck"}},[e._v("适用商品")]),t("span",{staticClass:"font-14 color-909399"},[e._v("(至少填写一项)")])],1),e._v(" "),e.formData.fitGoodCheck?t("div",{staticClass:"fit-good border-box m-b-20"},[t("div",[t("div",{staticClass:"m-b-20 flex"},[t("span",{staticClass:"font-14 color-606266 w-86 m-r-10"},[e._v("适用商品:")]),t("limitInput",{attrs:{inputWidth:300,inputValue:e.formData.fitGoodDes,getByType:"word",holder:"请输入内容",maxLength:18},on:{"update:inputValue":function(a){return e.$set(e.formData,"fitGoodDes",a)},"update:input-value":function(a){return e.$set(e.formData,"fitGoodDes",a)}}})],1),e._v(" "),t("div",{staticClass:"flex"},[t("span",{staticClass:"font-14 color-606266 w-86 m-r-10"},[e._v("不适用商品:")]),t("limitInput",{attrs:{inputWidth:300,inputValue:e.formData.noFitGoodDes,getByType:"word",holder:"请输入内容",maxLength:18},on:{"update:inputValue":function(a){return e.$set(e.formData,"noFitGoodDes",a)},"update:input-value":function(a){return e.$set(e.formData,"noFitGoodDes",a)}}})],1)])]):e._e(),e._v(" "),t("div",[t("el-checkbox",{model:{value:e.formData.shareCheck,callback:function(a){e.$set(e.formData,"shareCheck",a)},expression:"formData.shareCheck"}},[e._v("不与其他优惠共享")])],1)]),e._v(" "),t("el-form-item",{attrs:{label:"领券限制",prop:"cardLimitType"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.cardLimitType,callback:function(a){e.$set(e.formData,"cardLimitType",a)},expression:"formData.cardLimitType"}},[e._v("1张/人")]),e._v(" "),t("el-radio",{attrs:{label:"1"},model:{value:e.formData.cardLimitType,callback:function(a){e.$set(e.formData,"cardLimitType",a)},expression:"formData.cardLimitType"}},[e._v("100张/人")]),e._v(" "),t("el-radio",{attrs:{label:"2"},model:{value:e.formData.cardLimitType,callback:function(a){e.$set(e.formData,"cardLimitType",a)},expression:"formData.cardLimitType"}},[e._v("自定义")]),2==e.formData.cardLimitType?t("el-input-number",{attrs:{"controls-position":"right",min:1,max:99999999},model:{value:e.formData.cardLimit,callback:function(a){e.$set(e.formData,"cardLimit",a)},expression:"formData.cardLimit"}}):e._e(),e._v(" "),2==e.formData.cardLimitType?t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("张/人")]):e._e()],1),e._v(" "),t("el-form-item",{attrs:{label:"成本费用",prop:"costValue"}},[t("el-input-number",{attrs:{"controls-position":"right",precision:2,min:1,max:99999999},model:{value:e.formData.costValue,callback:function(a){e.$set(e.formData,"costValue",a)},expression:"formData.costValue"}}),t("span",{staticClass:"font-14 color-303133 p-l-10"},[e._v("元")]),t("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("请填写大于0的数字(限制两位小数)")])],1),e._v(" "),t("el-form-item",{attrs:{label:"code类型",prop:"useCustomCode"}},[t("el-radio",{attrs:{label:"0"},model:{value:e.formData.useCustomCode,callback:function(a){e.$set(e.formData,"useCustomCode",a)},expression:"formData.useCustomCode"}},[e._v("随机生成")])],1),e._v(" "),t("el-form-item",{attrs:{label:"适用门店说明",prop:"cardExplain"}},[t("limit-textarea",{attrs:{inputWidth:450,inputValue:e.formData.cardExplain,holder:"请输入适用门店说明",getByType:"word",maxLength:50},on:{"update:inputValue":function(a){return e.$set(e.formData,"cardExplain",a)},"update:input-value":function(a){return e.$set(e.formData,"cardExplain",a)}}})],1),e._v(" "),t("el-form-item",{attrs:{label:"适用门店",prop:"applicationStoreType"}},[t("el-radio",{attrs:{label:"1"},model:{value:e.formData.applicationStoreType,callback:function(a){e.$set(e.formData,"applicationStoreType",a)},expression:"formData.applicationStoreType"}},[e._v("所有门店")])],1),e._v(" "),t("el-form-item",{attrs:{label:"使用说明",prop:"useDescript"}},[t("limit-textarea",{attrs:{inputWidth:450,inputValue:e.formData.useDescript,holder:"请输入使用说明",getByType:"word",maxLength:500},on:{"update:inputValue":function(a){return e.$set(e.formData,"useDescript",a)},"update:input-value":function(a){return e.$set(e.formData,"useDescript",a)}}})],1),e._v(" "),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:e.cancelEdit}},[e._v("取消")]),e._v(" "),t("el-button",{attrs:{type:"primary",loading:e.loadingBtn},on:{click:function(a){return e.submitForm("ruleForm")}}},[e._v("确认"+e._s(e.$route.query.templateId?"编辑":"新建"))]),e._v(" "),e.$route.query.templateId?e._e():t("el-button",{attrs:{type:"primary"},on:{click:function(a){return e.submitForm("ruleForm","flag")}}},[e._v("确认并继续新建")])],1)],1)],1)])},staticRenderFns:[]};var u=t("VU/8")(c,d,!1,function(e){t("M8Mj")},"data-v-727bbf32",null);a.default=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([81],{"+eVq":function(e,t){},VlR1:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s("P9l9"),n=s("3E4D"),r=s("Ch4/"),o={name:"setting",data:function(){return{wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",clerkPhoneFlag:0,storeEditFlag:0}},methods:{submit:function(){var e=this,t={wxEnterpriseId:this.wxEnterpriseId,clerkPhoneFlag:this.clerkPhoneFlag,storeEditFlag:this.storeEditFlag};Object(a.g)("/haoban-manage3-web/setting/operation-setting/save-or-update",t).then(function(e){1==e.data.errorCode&&n.a.showmsg("保存成功","success"),r.a.errorMsg(e.data)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(){var e=this;Object(a.b)("/haoban-manage3-web/setting/get-operation-setting",{wxEnterpriseId:this.wxEnterpriseId}).then(function(t){var s=t.data.result||{},a=s.clerkPhoneFlag,n=s.storeEditFlag;e.clerkPhoneFlag=a||0,e.storeEditFlag=n||0}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.$emit("showTab",6),document.documentElement.style.backgroundColor="#f0f2f5",this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},i={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"unreview-wrap common-set-wrap"},[s("div",{staticClass:"app-detail-pane border-box p-20"},[s("div",{staticClass:"m-b-20"},[s("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:e.clerkPhoneFlag,callback:function(t){e.clerkPhoneFlag=t},expression:"clerkPhoneFlag"}},[e._v("添加导购时,手机号必填")]),e._v(" "),s("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:勾选此项后,门店店长在好办移动端添加导购时,导购的手机号必填")])],1),e._v(" "),s("div",{staticClass:"m-t-46 m-l-25"},[s("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("保 存")])],1)])])},staticRenderFns:[]};var l=s("VU/8")(o,i,!1,function(e){s("+eVq")},"data-v-6b670bb3",null);t.default=l.exports}}); webpackJsonp([82],{"+eVq":function(e,t){},VlR1:function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=s("P9l9"),n=s("3E4D"),r=s("Ch4/"),o={name:"setting",data:function(){return{wxEnterpriseId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",clerkPhoneFlag:0,storeEditFlag:0}},methods:{submit:function(){var e=this,t={wxEnterpriseId:this.wxEnterpriseId,clerkPhoneFlag:this.clerkPhoneFlag,storeEditFlag:this.storeEditFlag};Object(a.g)("/haoban-manage3-web/setting/operation-setting/save-or-update",t).then(function(e){1==e.data.errorCode&&n.a.showmsg("保存成功","success"),r.a.errorMsg(e.data)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getData:function(){var e=this;Object(a.b)("/haoban-manage3-web/setting/get-operation-setting",{wxEnterpriseId:this.wxEnterpriseId}).then(function(t){var s=t.data.result||{},a=s.clerkPhoneFlag,n=s.storeEditFlag;e.clerkPhoneFlag=a||0,e.storeEditFlag=n||0}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.$emit("showTab",6),document.documentElement.style.backgroundColor="#f0f2f5",this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},i={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"unreview-wrap common-set-wrap"},[s("div",{staticClass:"app-detail-pane border-box p-20"},[s("div",{staticClass:"m-b-20"},[s("el-checkbox",{staticClass:"w-195",attrs:{"true-label":1,"false-label":0},model:{value:e.clerkPhoneFlag,callback:function(t){e.clerkPhoneFlag=t},expression:"clerkPhoneFlag"}},[e._v("添加导购时,手机号必填")]),e._v(" "),s("div",{staticClass:"font-14 color-909399 set-tip-item"},[e._v("注:勾选此项后,门店店长在好办移动端添加导购时,导购的手机号必填")])],1),e._v(" "),s("div",{staticClass:"m-t-46 m-l-25"},[s("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("保 存")])],1)])])},staticRenderFns:[]};var l=s("VU/8")(o,i,!1,function(e){s("+eVq")},"data-v-6b670bb3",null);t.default=l.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([83],{Tvq6:function(t,e){},rYZf:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,a=0;a<t.length;a++){null!=t.charAt(a).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex"},[a("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),a("div",{staticClass:"draged-item-show"},[a("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),a("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var i=a("VU/8")(s,c,!1,function(t){a("Tvq6")},"data-v-67cc7786",null);e.default=i.exports}});
\ No newline at end of file
webpackJsonp([82],{"6GLP":function(e,t){},txZy:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("Dd8w"),a=r.n(o),n=r("1fzb"),s=r("znzC"),m=r("P9l9"),i={components:{setActCode:n.default,SelectClerk:s.default},data:function(){return{loading:!1,form:{hmId:"",hmGroupId:"",passFlag:1,welcomeId:"",hmType:1,name:"",memberLabelId:"",memberLabelName:"",memberLabelStatus:-1,clerkList:[],welcomeType:1,hmUserNum:null}}},created:function(){this.$route.query.hmId&&(this.form.hmId=this.$route.query.hmId,this.getActCodeInfo())},methods:{onTypeChange:function(){this.form.name="",this.form.clerkList=[],this.form.hmUserNum=0},onChange:function(e){var t=this;this.form.hmUserNum=e.length,this.form.clerkList=e,""==this.form.name&&(this.form.name=e.map(function(e){return e.clerkName}).toString().slice(0,20)),this.$nextTick(function(){t.$refs.setActCodePage.getForm().validateField(["name","clerkList"])})},getActCodeInfo:function(){var e=this;this.loading=!0,Object(m.b)("/haoban-manage3-web/hm/qrcode/detail",{hmId:this.form.hmId}).then(function(t){e.form=t.data.result,e.form.welcomeId?e.form.welcomeType=1:e.form.welcomeType=2,e.form.hmUserNum=e.form.clerkList.length}).finally(function(){return e.loading=!1})},onSubmit:function(e){var t=this,r=a()({},e,this.form);r.clerkIdList=r.clerkList.map(function(e){return e.clerkId}),this.form.hmId?Object(m.f)("/haoban-manage3-web/hm/qrcode/update",r).then(function(e){if(0!=e.data.code)return t.$refs.setActCodePage.btnLoading=!1,t.$refs.setActCodePage.saveLoading=!1,t.$message.error(e.data.message);setTimeout(function(){t.$router.go(-1),t.$refs.setActCodePage.btnLoading=!1,t.$refs.setActCodePage.saveLoading=!1},1e3)}):Object(m.f)("/haoban-manage3-web/hm/qrcode/add",r).then(function(e){if(0!=e.data.code)return t.$refs.setActCodePage.btnLoading=!1,t.$refs.setActCodePage.saveLoading=!1,t.$message.error(e.data.message);setTimeout(function(){t.$refs.setActCodePage.btnLoading=!1,t.$refs.setActCodePage.saveLoading=!1,t.$router.go(-1)},1e3)})}}},l={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("setActCode",{ref:"setActCodePage",attrs:{actCodeData:e.form},on:{sumbit:e.onSubmit},scopedSlots:e._u([{key:"typeCode",fn:function(){return[r("el-form-item",{attrs:{label:"活码类型",rules:[{required:!0,message:"请选择活码类型",trigger:"blur"}]}},[r("el-radio-group",{attrs:{disabled:!!e.form.hmId},on:{change:e.onTypeChange},model:{value:e.form.hmType,callback:function(t){e.$set(e.form,"hmType",t)},expression:"form.hmType"}},[r("el-radio",{attrs:{label:1}},[e._v("单人活码")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("多人活码")])],1)],1)]},proxy:!0},{key:"codeName",fn:function(){return[r("el-form-item",{attrs:{label:"活码名称",prop:"name",rules:[{required:!0,message:"请输入活码名称",trigger:"blur"}]}},[r("el-input",{staticClass:"w340",attrs:{placeholder:"请输入活码名称,默认使用成员名称",maxlength:"20","show-word-limit":""},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)]},proxy:!0},{key:"member",fn:function(){return[r("el-form-item",{attrs:{label:"关联导购",prop:"clerkList",rules:[{required:!0,message:"请选择使用成员",trigger:"blur"}]}},[1==e.form.hmType?r("p",{staticClass:"tabs"},[e._v("单人活码仅可选择一名成员")]):e._e(),e._v(" "),2==e.form.hmType?r("p",{staticClass:"tabs"},[e._v("若选择多名成员,则随机分配企微员工")]):e._e(),e._v(" "),r("select-clerk",{attrs:{"is-simple":1==e.form.hmType,multiple:2==e.form.hmType,data:e.form.clerkList,disabled:1==e.form.hmType&&!!e.form.hmId},on:{change:e.onChange}})],1)]},proxy:!0}])})],1)},staticRenderFns:[]};var c=r("VU/8")(i,l,!1,function(e){r("6GLP")},"data-v-69e10189",null);t.default=c.exports}}); webpackJsonp([83],{"6GLP":function(e,t){},txZy:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=r("Dd8w"),a=r.n(o),n=r("1fzb"),s=r("znzC"),m=r("P9l9"),i={components:{setActCode:n.default,SelectClerk:s.default},data:function(){return{loading:!1,form:{hmId:"",hmGroupId:"",passFlag:1,welcomeId:"",hmType:1,name:"",memberLabelId:"",memberLabelName:"",memberLabelStatus:-1,clerkList:[],welcomeType:1,hmUserNum:null}}},created:function(){this.$route.query.hmId&&(this.form.hmId=this.$route.query.hmId,this.getActCodeInfo())},methods:{onTypeChange:function(){this.form.name="",this.form.clerkList=[],this.form.hmUserNum=0},onChange:function(e){var t=this;this.form.hmUserNum=e.length,this.form.clerkList=e,""==this.form.name&&(this.form.name=e.map(function(e){return e.clerkName}).toString().slice(0,20)),this.$nextTick(function(){t.$refs.setActCodePage.getForm().validateField(["name","clerkList"])})},getActCodeInfo:function(){var e=this;this.loading=!0,Object(m.b)("/haoban-manage3-web/hm/qrcode/detail",{hmId:this.form.hmId}).then(function(t){e.form=t.data.result,e.form.welcomeId?e.form.welcomeType=1:e.form.welcomeType=2,e.form.hmUserNum=e.form.clerkList.length}).finally(function(){return e.loading=!1})},onSubmit:function(e){var t=this,r=a()({},e,this.form);r.clerkIdList=r.clerkList.map(function(e){return e.clerkId}),this.form.hmId?Object(m.f)("/haoban-manage3-web/hm/qrcode/update",r).then(function(e){if(0!=e.data.code)return t.$refs.setActCodePage.btnLoading=!1,t.$refs.setActCodePage.saveLoading=!1,t.$message.error(e.data.message);setTimeout(function(){t.$router.go(-1),t.$refs.setActCodePage.btnLoading=!1,t.$refs.setActCodePage.saveLoading=!1},1e3)}):Object(m.f)("/haoban-manage3-web/hm/qrcode/add",r).then(function(e){if(0!=e.data.code)return t.$refs.setActCodePage.btnLoading=!1,t.$refs.setActCodePage.saveLoading=!1,t.$message.error(e.data.message);setTimeout(function(){t.$refs.setActCodePage.btnLoading=!1,t.$refs.setActCodePage.saveLoading=!1,t.$router.go(-1)},1e3)})}}},l={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",[r("setActCode",{ref:"setActCodePage",attrs:{actCodeData:e.form},on:{sumbit:e.onSubmit},scopedSlots:e._u([{key:"typeCode",fn:function(){return[r("el-form-item",{attrs:{label:"活码类型",rules:[{required:!0,message:"请选择活码类型",trigger:"blur"}]}},[r("el-radio-group",{attrs:{disabled:!!e.form.hmId},on:{change:e.onTypeChange},model:{value:e.form.hmType,callback:function(t){e.$set(e.form,"hmType",t)},expression:"form.hmType"}},[r("el-radio",{attrs:{label:1}},[e._v("单人活码")]),e._v(" "),r("el-radio",{attrs:{label:2}},[e._v("多人活码")])],1)],1)]},proxy:!0},{key:"codeName",fn:function(){return[r("el-form-item",{attrs:{label:"活码名称",prop:"name",rules:[{required:!0,message:"请输入活码名称",trigger:"blur"}]}},[r("el-input",{staticClass:"w340",attrs:{placeholder:"请输入活码名称,默认使用成员名称",maxlength:"20","show-word-limit":""},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)]},proxy:!0},{key:"member",fn:function(){return[r("el-form-item",{attrs:{label:"关联导购",prop:"clerkList",rules:[{required:!0,message:"请选择使用成员",trigger:"blur"}]}},[1==e.form.hmType?r("p",{staticClass:"tabs"},[e._v("单人活码仅可选择一名成员")]):e._e(),e._v(" "),2==e.form.hmType?r("p",{staticClass:"tabs"},[e._v("若选择多名成员,则随机分配企微员工")]):e._e(),e._v(" "),r("select-clerk",{attrs:{"is-simple":1==e.form.hmType,multiple:2==e.form.hmType,data:e.form.clerkList,disabled:1==e.form.hmType&&!!e.form.hmId},on:{change:e.onChange}})],1)]},proxy:!0}])})],1)},staticRenderFns:[]};var c=r("VU/8")(i,l,!1,function(e){r("6GLP")},"data-v-69e10189",null);t.default=c.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([88],{lNsz:function(t,e){},moBL:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("PI0u"),i=s("Ch4/"),o=s("3E4D"),l=s("P9l9"),n={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,options:[{label:"私人电话",value:1},{label:"企业电话",value:2}],activeId:"1",setObj:{taskCallType:1,taskType:0,overDayJudge:"",distributeTypeJudge:"",distributeCustomerJudge:1,giveUpJudge:""},loadingBtn:!1}},computed:{},methods:{saveSet:Object(a.a)(function(){this.loadingBtn=!0,this.postSave()},500),postSave:function(){var t=this,e={enterpriseId:t.activeBrand,taskCallType:t.setObj.taskCallType,taskType:0,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,distributeCustomerJudge:t.setObj.distributeCustomerJudge,relaxTaskJudge:t.setObj.relaxTaskJudge?1:0};Object(l.g)("/haoban-app-tel-task-three-web/setting/save-task-setting",e).then(function(e){var s=e.data;t.loadingBtn=!1,1!=s.errorCode?i.a.errorMsg(s):o.a.showmsg("保存成功","success")}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand,taskType:0};Object(l.g)("/haoban-app-tel-task-three-web/setting/find-task-setting",e).then(function(e){var s=e.data;if(1==s.errorCode)return s.result.relaxTaskJudge=1==s.result.relaxTaskJudge,void(t.setObj=s.result);i.a.errorMsg(s)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","23"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},r={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("不良评价拨打:")]),s("el-select",{staticClass:"w-240",attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.setObj.taskCallType,callback:function(e){t.$set(t.setObj,"taskCallType",e)},expression:"setObj.taskCallType"}},t._l(t.options,function(t){return s("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1),2==t.setObj.taskCallType?s("span",{staticClass:"font-14 color-909399 p-l-10 set-long-tip"},[t._v("第三方双向呼叫及透传(透传功能暂无法使用,外呼显示号码为固定电话),可监控通话状态。呼叫结算及通话记录存储于GIC计费中心。")]):t._e(),t._v(" "),1==t.setObj.taskCallType?s("span",{staticClass:"font-14 color-909399 p-l-10"},[t._v("导购手机呼叫,无法监控通话状态。呼叫结算费用由导购手机自费。")]):t._e()],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("任务分配:")]),t._v(" "),s("el-radio",{staticStyle:{"margin-right":"5px"},attrs:{label:1},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的所在门店店长",placement:"top-start"}},[s("span",{class:["font-14 color-606266",1==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给消费门店店长")])]),t._v(" "),s("el-radio",{staticClass:"p-l-40",staticStyle:{"margin-right":"5px"},attrs:{label:2},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的会员的专属导购",placement:"top-start"}},[s("span",{class:["font-14 ",2==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给专属导购")])])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("逾期设置:")]),t._v(" "),s("span",{staticClass:" font-14 color-303133"},[t._v("不良评价回访下发后")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),s("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),2==t.setObj.taskCallType?s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("放弃任务条件:")]),s("span",{staticClass:"font-14 color-606266"},[t._v("不良评价下发后 ")]),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),s("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应,导购可放弃该条任务")])],1):t._e(),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"}),t._v(" "),s("el-button",{attrs:{type:"primary",loading:t.loadingBtn,disabled:t.$store.state.wxEnterpriseType},on:{click:t.saveSet}},[t._v("保存")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"})])])},staticRenderFns:[]};var c=s("VU/8")(n,r,!1,function(t){s("lNsz")},"data-v-65cf4516",null);e.default=c.exports}}); webpackJsonp([87],{lNsz:function(t,e){},moBL:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("PI0u"),i=s("Ch4/"),o=s("3E4D"),l=s("P9l9"),n={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeBrand:this.brandId,options:[{label:"私人电话",value:1},{label:"企业电话",value:2}],activeId:"1",setObj:{taskCallType:1,taskType:0,overDayJudge:"",distributeTypeJudge:"",distributeCustomerJudge:1,giveUpJudge:""},loadingBtn:!1}},computed:{},methods:{saveSet:Object(a.a)(function(){this.loadingBtn=!0,this.postSave()},500),postSave:function(){var t=this,e={enterpriseId:t.activeBrand,taskCallType:t.setObj.taskCallType,taskType:0,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge,distributeCustomerJudge:t.setObj.distributeCustomerJudge,relaxTaskJudge:t.setObj.relaxTaskJudge?1:0};Object(l.g)("/haoban-app-tel-task-three-web/setting/save-task-setting",e).then(function(e){var s=e.data;t.loadingBtn=!1,1!=s.errorCode?i.a.errorMsg(s):o.a.showmsg("保存成功","success")}).catch(function(e){t.loadingBtn=!1,t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={enterpriseId:t.activeBrand,taskType:0};Object(l.g)("/haoban-app-tel-task-three-web/setting/find-task-setting",e).then(function(e){var s=e.data;if(1==s.errorCode)return s.result.relaxTaskJudge=1==s.result.relaxTaskJudge,void(t.setObj=s.result);i.a.errorMsg(s)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","23"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{}},r={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-detail-wrap"},[s("div",{staticClass:"task-set-content boder-box"},[s("div",{staticClass:"task-set-cell"},[s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("不良评价拨打:")]),s("el-select",{staticClass:"w-240",attrs:{placeholder:"请选择"},on:{change:t.changeSelect},model:{value:t.setObj.taskCallType,callback:function(e){t.$set(t.setObj,"taskCallType",e)},expression:"setObj.taskCallType"}},t._l(t.options,function(t){return s("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1),2==t.setObj.taskCallType?s("span",{staticClass:"font-14 color-909399 p-l-10 set-long-tip"},[t._v("第三方双向呼叫及透传(透传功能暂无法使用,外呼显示号码为固定电话),可监控通话状态。呼叫结算及通话记录存储于GIC计费中心。")]):t._e(),t._v(" "),1==t.setObj.taskCallType?s("span",{staticClass:"font-14 color-909399 p-l-10"},[t._v("导购手机呼叫,无法监控通话状态。呼叫结算费用由导购手机自费。")]):t._e()],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("任务分配:")]),t._v(" "),s("el-radio",{staticStyle:{"margin-right":"5px"},attrs:{label:1},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的所在门店店长",placement:"top-start"}},[s("span",{class:["font-14 color-606266",1==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给消费门店店长")])]),t._v(" "),s("el-radio",{staticClass:"p-l-40",staticStyle:{"margin-right":"5px"},attrs:{label:2},model:{value:t.setObj.distributeCustomerJudge,callback:function(e){t.$set(t.setObj,"distributeCustomerJudge",e)},expression:"setObj.distributeCustomerJudge"}},[t._v(t._s(""))]),s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的会员的专属导购",placement:"top-start"}},[s("span",{class:["font-14 ",2==t.setObj.distributeCustomerJudge?"color-303133":"color-606266"],staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("分配给专属导购")])])],1),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("逾期设置:")]),t._v(" "),s("span",{staticClass:" font-14 color-303133"},[t._v("不良评价回访下发后")]),t._v(" "),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),s("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),2==t.setObj.taskCallType?s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"},[t._v("放弃任务条件:")]),s("span",{staticClass:"font-14 color-606266"},[t._v("不良评价下发后 ")]),s("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),s("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),s("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应,导购可放弃该条任务")])],1):t._e(),t._v(" "),s("div",{staticClass:"set-line-item"},[s("span",{staticClass:"set-line-item_title font-14 color-606266 text-right"}),t._v(" "),s("el-button",{attrs:{type:"primary",loading:t.loadingBtn,disabled:t.$store.state.wxEnterpriseType},on:{click:t.saveSet}},[t._v("保存")])],1)]),t._v(" "),s("div",{staticClass:"task-set-save m-t-30"})])])},staticRenderFns:[]};var c=s("VU/8")(n,r,!1,function(t){s("lNsz")},"data-v-65cf4516",null);e.default=c.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([87],{O3gZ:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),i("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,l){return i("li",{key:"performance"+l,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])}),0),t._v(" "),"competitorInfo"==t.childItem.name?i("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var a=i("VU/8")(l,s,!1,function(t){i("Q9Uw")},"data-v-67147ae0",null);e.default=a.exports},Q9Uw:function(t,e){}});
\ No newline at end of file
webpackJsonp([89],{"4QyY":function(a,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("Gu7T"),i=e.n(n),c=e("bzW+"),o=e("Qie6"),r=e("Z8ln"),s=e("Ch4/"),d=e("P9l9"),h={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"云日报",activeSelTab:"11",activeTab:"11",defaultNavpath:[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"}],navpath:[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"}],navName:{11:"云日报-云日报记录",111:"云日报-记录详情",12:"云日报导出",2:"任务下发设置",3:"云日报设置",31:"云日报设置-系统报表",32:"云日报设置-自定义报表",321:"编辑模板",322:"新建模板"},navFrontPath:{11:"/dailyRecord",111:"/dailyRecord",12:"/dailyRecord",2:"/dailyRecord",31:"/dailyRecord",32:"/dailyRecord",321:"/customReport",322:"/customReport"},tabListData:[{tabId:"1",tabName:"云日报",icon:"iconribao",onlyIconActive:!1,children:[{tabId:"11",tabName:"云日报记录",icon:""},{tabId:"12",tabName:"云日报导出",icon:""}]},{tabId:"2",tabName:"任务下发设置",icon:"iconxiafa"},{tabId:"3",tabName:"云日报设置",icon:"iconribaoshezhi",onlyIconActive:!1,children:[{tabId:"31",tabName:"系统报表",icon:""},{tabId:"32",tabName:"自定义报表",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var a=this,t={enterpriseId:a.activeBrand};Object(d.b)("/haoban-manage3-web/enterprise-is-over",t).then(function(t){var e=t.data;1!=e.errorCode?s.a.errorMsg(e):a.expiredFlag=e.result}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},changeRoute:function(a){this.$router.push(a)},selectBrandId:function(a,t){this.activeBrand=a,this.activeGroup=t,this.getExpired()},setSelectTab:function(a){switch(this.activeTab=a.tabId,a.tabId){case"1":case"11":this.changeRoute("dailyRecord");break;case"12":this.changeRoute("dailyExport");break;case"2":this.changeRoute("taskAssign");break;case"3":case"31":this.changeRoute("systemReport");break;case"32":this.changeRoute("customReport")}},showTab:function(a){var t=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=a,this.activeSelTab=a;var n=[].concat(i()(this.defaultNavpath));e.length&&e.map(function(a){n[n.length-1].path=t.navFrontPath[a],n.push({name:t.navName[a],path:""})}),this.$nextTick(function(){return t.navpath=[].concat(n)})},changeNavShow:function(a){"/dailyDetail"==a.path?this.navpath=[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"},{name:"云日报记录详情",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"云日报",path:""}]}},watch:{$route:{handler:function(a,t){this.changeNavShow(a)},deep:!0},activeBrand:function(a,t){this.activeBrand=a},activeGroup:function(a,t){this.activeGroup=a}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:o.a,expiredDialog:r.a}},l={render:function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:a.navpath},on:{selectBrandId:a.selectBrandId}}),a._v(" "),e("div",{staticClass:"right-content border-box"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("common-detail-left",{attrs:{tabListData:a.tabListData,activeSelTab:a.activeSelTab},on:{setSelectTab:a.setSelectTab}})],1),a._v(" "),e("div",{staticClass:"apps-content-right border-box"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[a.activeBrand?e("router-view",{attrs:{brandId:a.activeBrand,activeGroupId:a.activeGroup,tabType:a.activeTab},on:{showTab:a.showTab}}):a._e()],1)],1)])])]),a._v(" "),a.expiredFlag?e("expired-dialog"):a._e()],1)},staticRenderFns:[]};var p=e("VU/8")(h,l,!1,function(a){e("YXcV")},"data-v-63f80218",null);t.default=p.exports},YXcV:function(a,t){}}); webpackJsonp([88],{"4QyY":function(a,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=e("Gu7T"),i=e.n(n),c=e("bzW+"),o=e("Qie6"),r=e("Z8ln"),s=e("Ch4/"),d=e("P9l9"),h={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"云日报",activeSelTab:"11",activeTab:"11",defaultNavpath:[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"}],navpath:[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"}],navName:{11:"云日报-云日报记录",111:"云日报-记录详情",12:"云日报导出",2:"任务下发设置",3:"云日报设置",31:"云日报设置-系统报表",32:"云日报设置-自定义报表",321:"编辑模板",322:"新建模板"},navFrontPath:{11:"/dailyRecord",111:"/dailyRecord",12:"/dailyRecord",2:"/dailyRecord",31:"/dailyRecord",32:"/dailyRecord",321:"/customReport",322:"/customReport"},tabListData:[{tabId:"1",tabName:"云日报",icon:"iconribao",onlyIconActive:!1,children:[{tabId:"11",tabName:"云日报记录",icon:""},{tabId:"12",tabName:"云日报导出",icon:""}]},{tabId:"2",tabName:"任务下发设置",icon:"iconxiafa"},{tabId:"3",tabName:"云日报设置",icon:"iconribaoshezhi",onlyIconActive:!1,children:[{tabId:"31",tabName:"系统报表",icon:""},{tabId:"32",tabName:"自定义报表",icon:""}]}],activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var a=this,t={enterpriseId:a.activeBrand};Object(d.b)("/haoban-manage3-web/enterprise-is-over",t).then(function(t){var e=t.data;1!=e.errorCode?s.a.errorMsg(e):a.expiredFlag=e.result}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},changeRoute:function(a){this.$router.push(a)},selectBrandId:function(a,t){this.activeBrand=a,this.activeGroup=t,this.getExpired()},setSelectTab:function(a){switch(this.activeTab=a.tabId,a.tabId){case"1":case"11":this.changeRoute("dailyRecord");break;case"12":this.changeRoute("dailyExport");break;case"2":this.changeRoute("taskAssign");break;case"3":case"31":this.changeRoute("systemReport");break;case"32":this.changeRoute("customReport")}},showTab:function(a){var t=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=a,this.activeSelTab=a;var n=[].concat(i()(this.defaultNavpath));e.length&&e.map(function(a){n[n.length-1].path=t.navFrontPath[a],n.push({name:t.navName[a],path:""})}),this.$nextTick(function(){return t.navpath=[].concat(n)})},changeNavShow:function(a){"/dailyDetail"==a.path?this.navpath=[{name:"首页",path:"/index"},{name:"云日报",path:"/dailyRecord"},{name:"云日报记录详情",path:""}]:this.navpath=[{name:"首页",path:"/index"},{name:"云日报",path:""}]}},watch:{$route:{handler:function(a,t){this.changeNavShow(a)},deep:!0},activeBrand:function(a,t){this.activeBrand=a},activeGroup:function(a,t){this.activeGroup=a}},mounted:function(){this.changeNavShow(this.$route),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:c.a,commonDetailLeft:o.a,expiredDialog:r.a}},l={render:function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:a.navpath},on:{selectBrandId:a.selectBrandId}}),a._v(" "),e("div",{staticClass:"right-content border-box"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("common-detail-left",{attrs:{tabListData:a.tabListData,activeSelTab:a.activeSelTab},on:{setSelectTab:a.setSelectTab}})],1),a._v(" "),e("div",{staticClass:"apps-content-right border-box"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[a.activeBrand?e("router-view",{attrs:{brandId:a.activeBrand,activeGroupId:a.activeGroup,tabType:a.activeTab},on:{showTab:a.showTab}}):a._e()],1)],1)])])]),a._v(" "),a.expiredFlag?e("expired-dialog"):a._e()],1)},staticRenderFns:[]};var p=e("VU/8")(h,l,!1,function(a){e("YXcV")},"data-v-63f80218",null);t.default=p.exports},YXcV:function(a,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([90],{CTf4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(t){n("Ql4E")},"data-v-61d0b205",null);e.default=i.exports},Ql4E:function(t,e){}}); webpackJsonp([89],{CTf4:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",components:{vueOfficeHeader:n("NKg7").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(t){n("Ql4E")},"data-v-61d0b205",null);e.default=i.exports},Ql4E:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([9],{AIQa:function(t,e){},"J/6z":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("//Fk"),i=a.n(s),n=a("mvHQ"),r=a.n(n),l=a("w/TU"),o=a.n(l),c=a("Isrn"),d=a("l46T"),v={name:"time-progress",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},p={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-contain"},[e("div",[e("p",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-item"},[e("div",{staticClass:"time-progress-title"},[e("p",{staticClass:"gic-pull-left"},[this._v("50.00%")]),this._v(" "),e("p",{staticClass:"gic-pull-right"},[e("span",[this._v("15")]),this._v("/"),e("span",[this._v("30")])])]),this._v(" "),e("div",{staticClass:"time-progress-bottom"},[e("div",{staticClass:"time-progress-top"})])])}]};var m=a("VU/8")(v,p,!1,function(t){a("aqQ7")},"data-v-94775b56",null).exports,f={name:"store-performance",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},u={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[t._v("指标")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("累计销售额")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("999,476,960")])]),t._v(" "),a("tr",[a("td",[t._v("达成率")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var _=a("VU/8")(f,u,!1,function(t){a("h7wL")},"data-v-66c2fe71",null).exports,h={name:"membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},g={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{attrs:{colspan:"1"}},[t._v("会员总数")]),t._v(" "),a("td",{attrs:{colspan:"2"}},[t._v("9,000,000")])]),t._v(" "),a("tr",[a("td",[t._v("新增会员")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var C=a("VU/8")(h,g,!1,function(t){a("zGvM")},"data-v-6f4f982c",null).exports,b={name:"error-mointor",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},x={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"anomal-monitor-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[t._v(t._s(t.fieldName))])]),t._v(" "),a("div",{staticClass:"progress-contain"},[a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress1"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"72.2668",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-left",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("75.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("无导购率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress2"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"216.8",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-mid",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("25.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("退单率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress3"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"14.4534",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-right",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("95.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("凭空退单率")])])])])},staticRenderFns:[]};var y=a("VU/8")(b,x,!1,function(t){a("cfOg")},"data-v-64e9da9d",null).exports,I={name:"old-customer-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},w={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var k=a("VU/8")(I,w,!1,function(t){a("pJmJ")},"data-v-b7ca6e44",null).exports,S={name:"birthday-membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},M={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var D=a("VU/8")(S,M,!1,function(t){a("AIQa")},"data-v-b252e530",null).exports,$=a("fPyK"),E={props:{setting:{type:[Number,String],default:function(){return"0"}}},data:function(){return{setVisible:!0,selectId:"0"}},computed:{},watch:{setting:function(t){this.selectId=t}},methods:{handleClose:function(t){t(),this.$emit("closeSet","close"),this.selectId=""},cancel:function(){this.$emit("closeSet","close"),this.selectId=""},submitForm:function(){this.$emit("closeSet",this.selectId)}},components:{},mounted:function(){this.selectId=this.setting}},N={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"600px",title:"模板设置",visible:t.setVisible,"append-to-body":"","before-close":t.handleClose},on:{"update:visible":function(e){t.setVisible=e}}},[a("div",{staticClass:"m-t-20"},[a("el-radio",{attrs:{label:"0"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板上面")]),t._v(" "),a("el-radio",{staticClass:"m-l-40",attrs:{label:"1"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板下面")])],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("确定")])],1)])},staticRenderFns:[]};var V=a("VU/8")(E,N,!1,function(t){a("eUKg")},"data-v-ef3b9696",null).exports,L=a("3E4D"),P=a("Ch4/"),F=a("PI0u"),R=a("P9l9"),O={name:"staffRecordsTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},enterpriseId:this.brandId,setting:"0",selectKey:"",cardInfo:[],tradeInfo:[],birthdayMemberInfo:[],memberInfo:[],powerInfo:[],currentIndex:0,tempaletDataList:[],setParent:[],setVisible:!1,loadingBtn:!1}},created:function(){},methods:{templateSet:function(){this.setVisible=!0},closeSet:function(t){if(this.setVisible=!1,"close"==t)return!1;this.setting=t},clickItem:function(t){},onMove:function(t){var e=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(e.name)&&!e.fixed},itemMoveEnd:function(t){var e=this;e.isDragging=!1,e.selectKey="",e.selectKey=t.clone.dataset.name,e.tempaletDataList.forEach(function(t,a){var s;t.name==e.selectKey&&(s=t.parentCode,e[s].forEach(function(t,a){t.name==e.selectKey&&(t.fixed=!0)}))}),e.selectKey="",e.tempaletDataList=JSON.parse(r()(e.tempaletDataList)),e.$forceUpdate()},selectItem:function(t,e){this.currentIndex=e},deleteItem:function(t,e,a){this.tempaletDataList.splice(a,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[e].forEach(function(e,a){e.name==t&&(e.fixed=!1)})},changeRoute:function(t){this.$router.push(t)},isRepeat:function(t){var e={};for(var a in t){if(e[t[a]])return!0;e[t[a]]=!0}return!1},checkTag:function(t){var e={filedFlag:!0,filedRepeat:!1},a=[];return t.forEach(function(t,e){a.push(t.title)}),this.isRepeat(a)&&(e.filedRepeat=!0),e},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},saveAndBack:Object(F.a)(function(t){var e=JSON.parse(r()(this.tempaletDataList));return this.checkTag(e).filedRepeat?(this.$message.error({duration:1e3,message:"字段标题不能重复"}),!1):(e.forEach(function(t,e){t.sort=e}),e.length?(this.loadingBtn=!0,void("save"===t?this.saveAllData(e):this.postPreview(e))):(this.$message.error({duration:1e3,message:"请先配置字段"}),!1))},500),saveAllData:function(t){var e=this,a={enterpriseId:e.enterpriseId,templateContent:r()({setting:e.setting,data:t})};Object(R.g)("/haoban-app-daily-three-web/daily/save-system-template",a).then(function(t){var a=t.data;e.loadingBtn=!1,1!=a.errorCode?P.a.errorMsg(a):L.a.showmsg("保存成功","success")}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var e=this,a={templateType:0,enterpriseId:e.enterpriseId,templateContent:r()(t)};Object(R.g)("/haoban-app-daily-three-web/daily/preview-template",a).then(function(t){var a=t.data;if(e.loadingBtn=!1,1==a.errorCode){var s=window.location.origin+"/office-mobile/#/systemTemplate?enterpriseId="+e.enterpriseId+"&templateId="+a.result;return e.$refs.qrcodePreview.qrcode(s,"daily-preview"),void(e.dialogVisible=!0)}P.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var t=this;Object(R.b)("/haoban-app-daily-three-web/daily/get-template-items",{enterpriseId:t.enterpriseId,type:1}).then(function(e){var a=e.data;if(1==a.errorCode){var s=setTimeout(function(){t.handleAllFields(a.result),clearTimeout(s)},200);return!1}P.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(t){var e=this;t.forEach(function(t,a){e.setParent.includes(t.name)?t.fixed=!0:t.fixed=!1,1==t.classify&&(t.parentCode="cardInfo",e.cardInfo.push(t)),2==t.classify&&(t.parentCode="tradeInfo",e.tradeInfo.push(t)),3==t.classify&&(t.parentCode="birthdayMemberInfo",e.birthdayMemberInfo.push(t)),4==t.classify&&(t.parentCode="memberInfo",e.memberInfo.push(t)),5==t.classify&&(t.parentCode="powerInfo",e.powerInfo.push(t))})},getInfo:function(){var t=this;Object(R.b)("/haoban-app-daily-three-web/daily/get-system-template-data",{enterpriseId:t.enterpriseId}).then(function(e){var a=e.data;1!=a.errorCode?P.a.errorMsg(a):a.result&&(t.setting=String(a.result.setting),a.result.data&&a.result.data.length&&t.handleGetInfo(a.result.data))}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleGetInfo:function(t){var e=this,a=JSON.parse(r()(t));e.setParent=[],a.forEach(function(t,a){t.fixed=!0,e.setParent.push(t.name)}),e.tempaletDataList=a}},watch:{isDragging:function(t){var e=this;t?e.delayedDragging=!0:e.$nextTick(function(){e.delayedDragging=!1})},brandId:function(t,e){var a=this;t&&(a.enterpriseId=t,a.cardInfo=[],a.tradeInfo=[],a.birthdayMemberInfo=[],a.memberInfo=[],a.powerInfo=[],a.currentIndex=0,a.tempaletDataList=[],a.setParent=[],i.a.all([a.getInfo()]).then(function(t){console.log(),a.getAllFields()}).catch(function(t){console.log(t)}))}},components:{draggable:o.a,AddInput:c.a,limitInput:d.a,timeProgress:m,storePerformance:_,errorMointor:y,membershipData:C,oldCustomerData:k,birthdayMembershipData:D,qrcodeDialog:$.a,systemSet:V},mounted:function(){var t=this;t.$emit("showTab","31"),document.documentElement.style.backgroundColor="#f0f2f5",t.enterpriseId=t.brandId,i.a.all([t.getInfo()]).then(function(e){t.getAllFields()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},B={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"template-wrap"},[s("div",{staticClass:"template-contain"},[s("div",{staticClass:"template-cell-title font-14 color-303133"},[t._v("系统字段")]),t._v(" "),s("div",{staticClass:"template-head"},[t._m(0),t._v(" "),s("div",{staticClass:"template-btns flex-1 flex-r"},[t.$getButtonLimit(t.$buttonCode.settingSystemReport)?s("el-button",{attrs:{type:"primary",plain:"","limit-code":t.$buttonCode.settingSystemReport},on:{click:t.templateSet}},[t._v("模板设置")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveSystemReport)?s("el-button",{attrs:{type:"primary","limit-code":t.$buttonCode.saveSystemReport,loading:t.loadingBtn},on:{click:function(e){return t.saveAndBack("save")}}},[t._v("保存并启用")]):t._e()],1)]),t._v(" "),s("div",{staticClass:"template-body"},[s("div",{staticClass:"template-cell template-cell-l system-template-tab"},[s("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"卡片",name:"first"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.cardInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.cardInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name,"aria-hidden":"true"},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"交易",name:"second"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.tradeInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"生日会员",name:"third"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.birthdayMemberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.birthdayMemberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"会员",name:"four"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.memberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.memberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"执行力",name:"five"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.powerInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.powerInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)])],1)],1),t._v(" "),s("div",{staticClass:"template-cell template-cell-m"},[s("div",{staticClass:"phone-view"},[s("div",{staticClass:"phone-show-content"},[s("div",{staticClass:"drag-show-content"},[s("div",{staticClass:"view-container"},[s("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[s("img",{staticClass:"templet-null-img",attrs:{src:a("Y7wY")}})]:t._e(),t._v(" "),s("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(e){t.tempaletDataList=e},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(e,a){return s("li",{key:"li1"+a,class:["filed-item",t.currentIndex==a?"active-item":"","li-block"],on:{click:function(s){return s.stopPropagation(),t.selectItem(e.fieldCode,a)}}},[s("span",{staticClass:"item-close p-item-close",on:{click:function(s){return s.stopPropagation(),t.deleteItem(e.name,e.parentCode,a)}}},[s("i",{staticClass:"el-icon-close"})]),t._v(" "),"1"!=e.classify?s("div",{staticClass:"filed-item-name"},[s("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))])]):t._e(),t._v(" "),"timeProgress"==e.name?s("time-progress",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataShop"==e.name?s("store-performance",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataNumber"==e.name?s("membership-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"anomalMonitor"==e.name?s("error-mointor",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"oldNumber"==e.name?s("old-customer-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"birthNumber"==e.name?s("birthday-membership-data",{attrs:{fieldName:e.title}}):t._e()],1)}),0)],2)])])])])])])]),t._v(" "),s("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}}),t._v(" "),t.setVisible?s("system-set",{attrs:{setting:t.setting},on:{closeSet:t.closeSet}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"template-title flex-1"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("云日报系统报表:提供系统能够智能识别的指标(例如:销售额、达成率等),配置成报表融入云日报上报模板中。")])])])])}]};var T=a("VU/8")(O,B,!1,function(t){a("LTXF")},"data-v-65d8e9fa",null);e.default=T.exports},LTXF:function(t,e){},aqQ7:function(t,e){},cfOg:function(t,e){},eUKg:function(t,e){},h7wL:function(t,e){},pJmJ:function(t,e){},zGvM:function(t,e){}});
\ No newline at end of file
webpackJsonp([9],{"9Q6k":function(t,e){},BkG1:function(t,e){},"J/6z":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("//Fk"),i=a.n(s),n=a("mvHQ"),r=a.n(n),l=a("w/TU"),o=a.n(l),c=a("Isrn"),d=a("l46T"),v={name:"time-progress",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},p={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-contain"},[e("div",[e("p",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"time-progress-item"},[e("div",{staticClass:"time-progress-title"},[e("p",{staticClass:"gic-pull-left"},[this._v("50.00%")]),this._v(" "),e("p",{staticClass:"gic-pull-right"},[e("span",[this._v("15")]),this._v("/"),e("span",[this._v("30")])])]),this._v(" "),e("div",{staticClass:"time-progress-bottom"},[e("div",{staticClass:"time-progress-top"})])])}]};var m=a("VU/8")(v,p,!1,function(t){a("9Q6k")},"data-v-540cc965",null).exports,f={name:"store-performance",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},u={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",[t._v("指标")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("累计销售额")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("999,476,960")])]),t._v(" "),a("tr",[a("td",[t._v("达成率")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var _=a("VU/8")(f,u,!1,function(t){a("BkG1")},"data-v-537e48ec",null).exports,h={name:"membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},g={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"data-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("table",{staticClass:"data-number-table"},[a("thead",[a("tr",[a("th",{staticClass:"w_22"}),t._v(" "),a("th",{staticClass:"w_26"},[t._v("日")]),t._v(" "),a("th",{staticClass:"w_26"},[t._v("月")])])]),t._v(" "),a("tbody",[a("tr",[a("td",{attrs:{colspan:"1"}},[t._v("会员总数")]),t._v(" "),a("td",{attrs:{colspan:"2"}},[t._v("9,000,000")])]),t._v(" "),a("tr",[a("td",[t._v("新增会员")]),t._v(" "),a("td",[t._v("473,960")]),t._v(" "),a("td",[t._v("473,960")])]),t._v(" "),a("tr",[a("td",[t._v("同比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])]),t._v(" "),a("tr",[a("td",[t._v("环比")]),t._v(" "),a("td",[t._v("100%")]),t._v(" "),a("td",[t._v("100%")])])])])}]};var C=a("VU/8")(h,g,!1,function(t){a("NzOk")},"data-v-79b73771",null).exports,b={name:"error-mointor",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},x={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"anomal-monitor-contain"},[a("h3",{staticClass:"build-title title-flag"},[a("span",[t._v(t._s(t.fieldName))])]),t._v(" "),a("div",{staticClass:"progress-contain"},[a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress1"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"72.2668",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-left",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("75.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("无导购率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress2"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"216.8",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-mid",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("25.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("退单率")])]),t._v(" "),a("div",{staticClass:"progress-center"},[a("div",{staticClass:"container-progress",staticStyle:{position:"relative"},attrs:{id:"container_progress3"}},[a("svg",{staticStyle:{display:"block",width:"100%"},attrs:{viewBox:"0 0 100 100"}},[a("path",{attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#eee","stroke-width":"8","fill-opacity":"0"}}),t._v(" "),a("path",{staticStyle:{"stroke-dasharray":"289.067, 289.067","stroke-dashoffset":"14.4534",transition:"stroke-dashoffset 1.5s ease-in"},attrs:{d:"M 50,50 m 0,-46 a 46,46 0 1 1 0,92 a 46,46 0 1 1 0,-92",stroke:"#2f54eb","stroke-width":"8","fill-opacity":"0"}})]),t._v(" "),a("div",{staticClass:"progressbar-text progressbar-text-right",staticStyle:{position:"absolute",left:"50%",top:"50%",padding:"0px",margin:"0px",transform:"translate(-50%, -50%)",color:"#2f54eb","font-size":"14px","font-weight":"600"}},[t._v("95.00%")])]),t._v(" "),a("p",{staticClass:"progress-text"},[t._v("凭空退单率")])])])])},staticRenderFns:[]};var y=a("VU/8")(b,x,!1,function(t){a("RHtY")},"data-v-13aa0e8a",null).exports,I={name:"old-customer-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},w={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var k=a("VU/8")(I,w,!1,function(t){a("g+0C")},"data-v-18397033",null).exports,S={name:"birthday-membership-data",props:{fieldName:{type:String,default:function(){return""}}},data:function(){return{}}},D={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"birth-number-contain"},[e("h3",{staticClass:"build-title title-flag"},[e("span",[this._v(this._s(this.fieldName))])]),this._v(" "),this._m(0)])},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"data-list"},[a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("订单数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费人数占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])]),t._v(" "),a("div",{staticClass:"data-item"},[a("div",{staticClass:"data-progress"},[a("span",{staticClass:"data-item-title"},[t._v("消费金额占比")]),t._v(" "),a("div",{staticClass:"data-bottom"},[a("div",{staticClass:"data-num"},[t._v("80.00%")]),t._v(" "),a("div",{staticClass:"data-percent"},[a("span",{staticClass:"data-percent-first"},[t._v("8000")]),t._v("/"),a("span",{staticClass:"data-percent-second"},[t._v("10000")])]),t._v(" "),a("div",{staticClass:"data-top"})])]),t._v(" "),a("div",{staticClass:"data-title"},[a("p",{staticClass:"gic-pull-right"},[t._v("环比"),a("span",{staticClass:"data-ratio"},[t._v("50.55%")])])])])])}]};var $=a("VU/8")(S,D,!1,function(t){a("y9Xh")},"data-v-afb2e45a",null).exports,M=a("fPyK"),N={props:{setting:{type:[Number,String],default:function(){return"0"}}},data:function(){return{setVisible:!0,selectId:"0"}},computed:{},watch:{setting:function(t){this.selectId=t}},methods:{handleClose:function(t){t(),this.$emit("closeSet","close"),this.selectId=""},cancel:function(){this.$emit("closeSet","close"),this.selectId=""},submitForm:function(){this.$emit("closeSet",this.selectId)}},components:{},mounted:function(){this.selectId=this.setting}},E={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"600px",title:"模板设置",visible:t.setVisible,"append-to-body":"","before-close":t.handleClose},on:{"update:visible":function(e){t.setVisible=e}}},[a("div",{staticClass:"m-t-20"},[a("el-radio",{attrs:{label:"0"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板上面")]),t._v(" "),a("el-radio",{staticClass:"m-l-40",attrs:{label:"1"},model:{value:t.selectId,callback:function(e){t.selectId=e},expression:"selectId"}},[t._v("定义在日报自定义上报模板下面")])],1),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.submitForm}},[t._v("确定")])],1)])},staticRenderFns:[]};var V=a("VU/8")(N,E,!1,function(t){a("eUKg")},"data-v-ef3b9696",null).exports,R=a("3E4D"),P=a("Ch4/"),F=a("PI0u"),L=a("P9l9"),O={name:"staffRecordsTemplate",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeName:"first",rightName:"first",dialogVisible:!1,isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},enterpriseId:this.brandId,setting:"0",selectKey:"",cardInfo:[],tradeInfo:[],birthdayMemberInfo:[],memberInfo:[],powerInfo:[],currentIndex:0,tempaletDataList:[],setParent:[],setVisible:!1,loadingBtn:!1}},created:function(){},methods:{templateSet:function(){this.setVisible=!0},closeSet:function(t){if(this.setVisible=!1,"close"==t)return!1;this.setting=t},clickItem:function(t){},onMove:function(t){var e=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(e.name)&&!e.fixed},itemMoveEnd:function(t){var e=this;e.isDragging=!1,e.selectKey="",e.selectKey=t.clone.dataset.name,e.tempaletDataList.forEach(function(t,a){var s;t.name==e.selectKey&&(s=t.parentCode,e[s].forEach(function(t,a){t.name==e.selectKey&&(t.fixed=!0)}))}),e.selectKey="",e.tempaletDataList=JSON.parse(r()(e.tempaletDataList)),e.$forceUpdate()},selectItem:function(t,e){this.currentIndex=e},deleteItem:function(t,e,a){this.tempaletDataList.splice(a,1),this.currentIndex--,this.currentIndex<=0&&(this.currentIndex=0),this[e].forEach(function(e,a){e.name==t&&(e.fixed=!1)})},changeRoute:function(t){this.$router.push(t)},isRepeat:function(t){var e={};for(var a in t){if(e[t[a]])return!0;e[t[a]]=!0}return!1},checkTag:function(t){var e={filedFlag:!0,filedRepeat:!1},a=[];return t.forEach(function(t,e){a.push(t.title)}),this.isRepeat(a)&&(e.filedRepeat=!0),e},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},saveAndBack:Object(F.a)(function(t){var e=JSON.parse(r()(this.tempaletDataList));return this.checkTag(e).filedRepeat?(this.$message.error({duration:1e3,message:"字段标题不能重复"}),!1):(e.forEach(function(t,e){t.sort=e}),e.length?(this.loadingBtn=!0,void("save"===t?this.saveAllData(e):this.postPreview(e))):(this.$message.error({duration:1e3,message:"请先配置字段"}),!1))},500),saveAllData:function(t){var e=this,a={enterpriseId:e.enterpriseId,templateContent:r()({setting:e.setting,data:t})};Object(L.g)("/haoban-app-daily-three-web/daily/save-system-template",a).then(function(t){var a=t.data;e.loadingBtn=!1,1!=a.errorCode?P.a.errorMsg(a):R.a.showmsg("保存成功","success")}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var e=this,a={templateType:0,enterpriseId:e.enterpriseId,templateContent:r()(t)};Object(L.g)("/haoban-app-daily-three-web/daily/preview-template",a).then(function(t){var a=t.data;if(e.loadingBtn=!1,1==a.errorCode){var s=window.location.origin+"/office-mobile/#/systemTemplate?enterpriseId="+e.enterpriseId+"&templateId="+a.result;return e.$refs.qrcodePreview.qrcode(s,"daily-preview"),void(e.dialogVisible=!0)}P.a.errorMsg(a)}).catch(function(t){e.loadingBtn=!1,e.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getAllFields:function(){var t=this;Object(L.b)("/haoban-app-daily-three-web/daily/get-template-items",{enterpriseId:t.enterpriseId,type:1}).then(function(e){var a=e.data;if(1==a.errorCode){var s=setTimeout(function(){t.handleAllFields(a.result),clearTimeout(s)},200);return!1}P.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleAllFields:function(t){var e=this;t.forEach(function(t,a){e.setParent.includes(t.name)?t.fixed=!0:t.fixed=!1,1==t.classify&&(t.parentCode="cardInfo",e.cardInfo.push(t)),2==t.classify&&(t.parentCode="tradeInfo",e.tradeInfo.push(t)),3==t.classify&&(t.parentCode="birthdayMemberInfo",e.birthdayMemberInfo.push(t)),4==t.classify&&(t.parentCode="memberInfo",e.memberInfo.push(t)),5==t.classify&&(t.parentCode="powerInfo",e.powerInfo.push(t))})},getInfo:function(){var t=this;Object(L.b)("/haoban-app-daily-three-web/daily/get-system-template-data",{enterpriseId:t.enterpriseId}).then(function(e){var a=e.data;1!=a.errorCode?P.a.errorMsg(a):a.result&&(t.setting=String(a.result.setting),a.result.data&&a.result.data.length&&t.handleGetInfo(a.result.data))}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleGetInfo:function(t){var e=this,a=JSON.parse(r()(t));e.setParent=[],a.forEach(function(t,a){t.fixed=!0,e.setParent.push(t.name)}),e.tempaletDataList=a}},watch:{isDragging:function(t){var e=this;t?e.delayedDragging=!0:e.$nextTick(function(){e.delayedDragging=!1})},brandId:function(t,e){var a=this;t&&(a.enterpriseId=t,a.cardInfo=[],a.tradeInfo=[],a.birthdayMemberInfo=[],a.memberInfo=[],a.powerInfo=[],a.currentIndex=0,a.tempaletDataList=[],a.setParent=[],i.a.all([a.getInfo()]).then(function(t){console.log(),a.getAllFields()}).catch(function(t){console.log(t)}))}},components:{draggable:o.a,AddInput:c.a,limitInput:d.a,timeProgress:m,storePerformance:_,errorMointor:y,membershipData:C,oldCustomerData:k,birthdayMembershipData:$,qrcodeDialog:M.a,systemSet:V},mounted:function(){var t=this;t.$emit("showTab","31"),document.documentElement.style.backgroundColor="#f0f2f5",t.enterpriseId=t.brandId,i.a.all([t.getInfo()]).then(function(e){t.getAllFields()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}},destroyed:function(){document.documentElement.style.backgroundColor="#fff"}},B={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"template-wrap"},[s("div",{staticClass:"template-contain"},[s("div",{staticClass:"template-cell-title font-14 color-303133"},[t._v("系统字段")]),t._v(" "),s("div",{staticClass:"template-head"},[t._m(0),t._v(" "),s("div",{staticClass:"template-btns flex-1 flex-r"},[t.$getButtonLimit(t.$buttonCode.settingSystemReport)?s("el-button",{attrs:{type:"primary",plain:"","limit-code":t.$buttonCode.settingSystemReport},on:{click:t.templateSet}},[t._v("模板设置")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.saveSystemReport)?s("el-button",{attrs:{type:"primary","limit-code":t.$buttonCode.saveSystemReport,loading:t.loadingBtn},on:{click:function(e){return t.saveAndBack("save")}}},[t._v("保存并启用")]):t._e()],1)]),t._v(" "),s("div",{staticClass:"template-body"},[s("div",{staticClass:"template-cell template-cell-l system-template-tab"},[s("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[s("el-tab-pane",{attrs:{label:"卡片",name:"first"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.cardInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.cardInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name,"aria-hidden":"true"},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"交易",name:"second"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.tradeInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"生日会员",name:"third"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.birthdayMemberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.birthdayMemberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"会员",name:"four"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.memberInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.memberInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)]),t._v(" "),s("el-tab-pane",{attrs:{label:"执行力",name:"five"}},[s("ul",{staticStyle:{"max-width":"450px","min-width":"420px"}},[s("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.powerInfo,options:t.leftOption,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.powerInfo,function(e,a){return s("li",{key:a,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name},on:{mousedown:function(a){return t.clickItem(e)}}},[s("span",[t._v(t._s(e.title))])])}),0)],1)])],1)],1),t._v(" "),s("div",{staticClass:"template-cell template-cell-m"},[s("div",{staticClass:"phone-view"},[s("div",{staticClass:"phone-show-content"},[s("div",{staticClass:"drag-show-content"},[s("div",{staticClass:"view-container"},[s("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[s("img",{staticClass:"templet-null-img",attrs:{src:a("Y7wY")}})]:t._e(),t._v(" "),s("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(e){t.tempaletDataList=e},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(e,a){return s("li",{key:"li1"+a,class:["filed-item",t.currentIndex==a?"active-item":"","li-block"],on:{click:function(s){return s.stopPropagation(),t.selectItem(e.fieldCode,a)}}},[s("span",{staticClass:"item-close p-item-close",on:{click:function(s){return s.stopPropagation(),t.deleteItem(e.name,e.parentCode,a)}}},[s("i",{staticClass:"el-icon-close"})]),t._v(" "),"1"!=e.classify?s("div",{staticClass:"filed-item-name"},[s("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))])]):t._e(),t._v(" "),"timeProgress"==e.name?s("time-progress",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataShop"==e.name?s("store-performance",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"dataNumber"==e.name?s("membership-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"anomalMonitor"==e.name?s("error-mointor",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"oldNumber"==e.name?s("old-customer-data",{attrs:{fieldName:e.title}}):t._e(),t._v(" "),"birthNumber"==e.name?s("birthday-membership-data",{attrs:{fieldName:e.title}}):t._e()],1)}),0)],2)])])])])])])]),t._v(" "),s("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}}),t._v(" "),t.setVisible?s("system-set",{attrs:{setting:t.setting},on:{closeSet:t.closeSet}}):t._e()],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"template-title flex-1"},[e("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[e("i",{staticClass:"el-alert__icon el-icon-info"}),this._v(" "),e("div",{staticClass:"el-alert__content"},[e("span",{staticClass:"el-alert__title"},[this._v("云日报系统报表:提供系统能够智能识别的指标(例如:销售额、达成率等),配置成报表融入云日报上报模板中。")])])])])}]};var T=a("VU/8")(O,B,!1,function(t){a("LTXF")},"data-v-65d8e9fa",null);e.default=T.exports},LTXF:function(t,e){},NzOk:function(t,e){},RHtY:function(t,e){},eUKg:function(t,e){},"g+0C":function(t,e){},y9Xh:function(t,e){}});
\ No newline at end of file
webpackJsonp([80],{"2WGr":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,s=0;s<t.length;s++){null!=t.charAt(s).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.startTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),s("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),s("div",{staticClass:"b-t-1 flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.endTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),s("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=s("VU/8")(a,i,!1,function(t){s("csI9")},"data-v-7040e068",null);e.default=l.exports},csI9:function(t,e){}}); webpackJsonp([90],{"2WGr":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,s=0;s<t.length;s++){null!=t.charAt(s).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},i={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.startTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),s("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),s("div",{staticClass:"b-t-1 flex"},[s("div",{class:["opencard-item-title",t.getZhLen(t.childItem.endTitle)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),s("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=s("VU/8")(a,i,!1,function(t){s("MZ4b")},"data-v-59c3893a",null);e.default=l.exports},MZ4b:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([71],{"19JA":function(e,t){},w4UW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("Dd8w"),o=a.n(s),r=a("3E4D"),n=a("Ggl+"),l=a("P9l9"),i=a("Ch4/"),c=a("PI0u"),d={name:"grStoreList",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{selectRadio:2,tableRefresh:!1,multipleSelection:[],dateStart:(new Date).getTime()-31536e6,dateEnd:new Date,loading:!1,pageParams:{pageNum:1,pageSize:20,storeGroup:[],storeName:"",date:this.$store.state.salesDate},total:0,tableData:[],pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()<t.getTime()-31536e6||e.getTime()>t.getTime()-864e5}},loadingBtn:!1}},computed:{},methods:{handleSelectionChange:function(e){this.multipleSelection=e,!e.length&&(this.selectRadio=2)},handleCommand:function(e){var t=this;this.selectRadio=e,this.tableRefresh=!this.tableRefresh,1==e||0==e?this.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):2==e&&this.$refs.multipleTable.clearSelection()},exportExcel:function(){var e=this;if(!this.multipleSelection.length)return r.a.showmsg("请选择门店","warning"),!1;this.loadingBtn=!0;var t="/haoban-task-manage-web/market/clue/export/store-view",a=JSON.parse(sessionStorage.getItem("userInfos")),s=this.pageParams,n={pageNum:s.pageNum,pageSize:s.pageSize,storeName:s.storeName,taskType:2,selectType:this.selectRadio,selectIdList:1==this.selectRadio?"":this.multipleSelection.map(function(e){return e.storeId}).join(","),enterpriseId:a.enterpriseId,qywxEnterpriseId:a.wxEnterpriseId,startTime:this.pageParams.date[0],endTime:this.pageParams.date[1]};if(this.pageParams.storeGroup){var c=[];this.pageParams.storeGroup.forEach(function(e){c.push(e.storeGroupId)}),n.storeGroupIds=c.join(",")||""}var d=this.pageParams.date.length?"群发任务-门店视图_"+n.startTime+"至"+n.endTime+".xls":"群发任务-门店视图.xls";this.$route.query.hasOwnProperty("ecmPlanName")&&(n=o()({},n,this.$route.query),t="/haoban-task-manage-web/market/clue/export/plan-view-task-store-detail",d=this.pageParams.date.length?"群发任务-计划视图-任务门店详情_"+n.startTime+"至"+n.endTime+".xls":"群发任务-计划视图-任务门店详情.xls"),Object(l.c)(t,n).then(function(t){if(e.loadingBtn=!1,!t.data)return i.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),s=document.createElement("a");s.download=d,s.style.display="none",s.href=URL.createObjectURL(a),document.body.appendChild(s),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})}).finally(function(){e.loadingBtn=!1})},checkGroupIds:function(e){this.pageParams.storeGroup=e,this.reFetch()},changeRoute:function(e){this.$router.push(e)},reFetch:Object(c.a)(function(e,t){this.pageParams.pageNum=1,this.getTableList()},500),changeDate:function(e){e?this.$store.dispatch("changeSales",e):(this.pageParams.date=[],this.$store.dispatch("changeSales",[])),this.pageParams.pageNum=1,this.getTableList()},handleSizeChange:function(e){this.pageParams.pageNum=1,this.pageParams.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.pageParams.pageNum=e,this.getTableList()},getTableList:function(e){var t=this;t.loading=!0;var a=JSON.parse(sessionStorage.getItem("userInfos")),s=o()({},t.pageParams,{enterpriseId:a.enterpriseId,qywxEnterpriseId:a.wxEnterpriseId,taskType:2});if(t.pageParams.storeGroup){var r=[];t.pageParams.storeGroup.forEach(function(e){r.push(e.storeGroupId)}),delete s.storeGroup,s.storeGroupIds=r.join(",")||""}s.date&&(s.startTime=s.date[0],s.endTime=s.date[1],delete s.date),t.$route.query.ecmPlanId&&(s.ecmPlanId=t.$route.query.ecmPlanId),Object(l.b)("/haoban-task-manage-web/market/clue/web/store-list",s).then(function(e){t.loading=!1;var a=e.data;1==a.errorCode?(t.tableData=a.result.list||[],t.total=a.result.pageInfo?a.result.pageInfo.total:0):i.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},showDetail:function(e){this.$route.query.ecmPlanId?this.$router.push("grStoreDetail/"+e.storeId+"?tab=2&ecmPlanId="+this.$route.query.ecmPlanId+"&ecmPlanName="+this.$route.query.ecmPlanName):this.$router.push("grStoreDetail/"+e.storeId)}},watch:{brandId:function(e){this.getTableList()},$route:function(e,t){"/grStoreList"==e.path&&this.getTableList()}},mounted:function(){this.getTableList()},components:{gicSelectGroup:n.a}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"apps-content flex"},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"overstore-body"},[a("div",{staticClass:"overstore-tip"},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start ",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-warning font-12 color-2f54eb"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-303133 font-13"},[e._v("仅展示近一年数据,数据截取时间:"+e._s(e._f("timeStampToYmd2")(e.dateStart))+" 至 "+e._s(e._f("timeStampToYmd2")(e.dateEnd)))])])]),e._v(" "),a("el-popover",{attrs:{placement:"bottom-start",width:"550",trigger:"click","popper-class":"salesleads-popover"}},[a("div",{staticClass:"tips-content"},[e._v("只统计通过GIC创建的群发,不包含在企业微信创建的群发及门店创建的群发")]),e._v(" "),a("div",{staticClass:"tips flex flex-align-center",attrs:{slot:"reference",role:"tips"},slot:"reference"},[a("i",{staticClass:"el-icon-warning-outline font-14 color-2f54eb"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[e._v("查看指标说明")])])])],1),e._v(" "),a("div",{staticClass:"table-condition-search flex flex-space-between m-t-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入门店名称","prefix-icon":"el-icon-search",clearable:""},on:{change:e.reFetch},model:{value:e.pageParams.storeName,callback:function(t){e.$set(e.pageParams,"storeName",t)},expression:"pageParams.storeName"}}),e._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:e.brandId,width:213,selectData:e.pageParams.storeGroup},on:{checkGroupIds:e.checkGroupIds}}),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.pageParams.date,callback:function(t){e.$set(e.pageParams,"date",t)},expression:"pageParams.date"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[e.$getButtonLimit(e.$buttonCode.exportStoreList)?a("el-button",{attrs:{"limit-code":e.$buttonCode.exportStoreList,loading:e.loadingBtn,type:"primary"},on:{click:e.exportExcel}},[e._v("导出")]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:e.tableRefresh,ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45","class-name":1==e.selectRadio?"cell-disabled":"font-size-zero"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont-hb3 icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":0,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择当页")])],1),e._v(" "),a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择全部")])],1)],1)],1)]},proxy:!0},{key:"default",fn:function(t){return[e._v(e._s(" "))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName||"--")+"\n "),a("p",{staticStyle:{color:"#909399"}},[e._v(e._s(t.row.storeCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"门店分组"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeGroupName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCnt||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.cplTaskCnt||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s((100*t.row.completionRate).toFixed(2)+"%"||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.waitFinishCount||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中/逾期失效"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ovincplTaskCnt||"--")+"/"+e._s(t.row.invalidCount||"--"))]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.checkStoreList)?a("el-table-column",{attrs:{prop:"",label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.checkStoreList)?a("el-button",{attrs:{"limit-code":e.$buttonCode.checkStoreList,type:"text"},on:{click:function(a){return e.showDetail(t.row)}}},[e._v("查看详情")]):e._e()]}}])}):e._e()],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageParams.pageSize,"current-page":e.pageParams.pageNum,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1):e._e()],1)])])])])])])},staticRenderFns:[]};var u=a("VU/8")(d,p,!1,function(e){a("19JA")},"data-v-7cf65136",null);t.default=u.exports}}); webpackJsonp([92],{"fMB/":function(e,t){},w4UW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("Dd8w"),o=a.n(s),r=a("3E4D"),n=a("Ggl+"),l=a("P9l9"),i=a("Ch4/"),c=a("PI0u"),d={name:"grStoreList",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{selectRadio:2,tableRefresh:!1,multipleSelection:[],dateStart:(new Date).getTime()-31536e6,dateEnd:new Date,loading:!1,pageParams:{pageNum:1,pageSize:20,storeGroup:[],storeName:"",date:this.$store.state.salesDate},total:0,tableData:[],pickerOptions:{disabledDate:function(e){var t=new Date;return e.getTime()<t.getTime()-31536e6||e.getTime()>t.getTime()-864e5}},loadingBtn:!1}},computed:{},methods:{handleSelectionChange:function(e){this.multipleSelection=e,!e.length&&(this.selectRadio=2)},handleCommand:function(e){var t=this;this.selectRadio=e,this.tableRefresh=!this.tableRefresh,1==e||0==e?this.$nextTick(function(){t.$refs.multipleTable.toggleAllSelection()}):2==e&&this.$refs.multipleTable.clearSelection()},exportExcel:function(){var e=this;if(!this.multipleSelection.length)return r.a.showmsg("请选择门店","warning"),!1;this.loadingBtn=!0;var t="/haoban-task-manage-web/market/clue/export/store-view",a=JSON.parse(sessionStorage.getItem("userInfos")),s=this.pageParams,n={pageNum:s.pageNum,pageSize:s.pageSize,storeName:s.storeName,taskType:2,selectType:this.selectRadio,selectIdList:1==this.selectRadio?"":this.multipleSelection.map(function(e){return e.storeId}).join(","),enterpriseId:a.enterpriseId,qywxEnterpriseId:a.wxEnterpriseId,startTime:this.pageParams.date[0],endTime:this.pageParams.date[1]};if(this.pageParams.storeGroup){var c=[];this.pageParams.storeGroup.forEach(function(e){c.push(e.storeGroupId)}),n.storeGroupIds=c.join(",")||""}var d=this.pageParams.date.length?"群发任务-门店视图_"+n.startTime+"至"+n.endTime+".xls":"群发任务-门店视图.xls";this.$route.query.hasOwnProperty("ecmPlanName")&&(n=o()({},n,this.$route.query),t="/haoban-task-manage-web/market/clue/export/plan-view-task-store-detail",d=this.pageParams.date.length?"群发任务-计划视图-任务门店详情_"+n.startTime+"至"+n.endTime+".xls":"群发任务-计划视图-任务门店详情.xls"),Object(l.c)(t,n).then(function(t){if(e.loadingBtn=!1,!t.data)return i.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),s=document.createElement("a");s.download=d,s.style.display="none",s.href=URL.createObjectURL(a),document.body.appendChild(s),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s)}).catch(function(e){this.$message.error({duration:1e3,message:e.message})}).finally(function(){e.loadingBtn=!1})},checkGroupIds:function(e){this.pageParams.storeGroup=e,this.reFetch()},changeRoute:function(e){this.$router.push(e)},reFetch:Object(c.a)(function(e,t){this.pageParams.pageNum=1,this.getTableList()},500),changeDate:function(e){e?this.$store.dispatch("changeSales",e):(this.pageParams.date=[],this.$store.dispatch("changeSales",[])),this.pageParams.pageNum=1,this.getTableList()},handleSizeChange:function(e){this.pageParams.pageNum=1,this.pageParams.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.pageParams.pageNum=e,this.getTableList()},getTableList:function(e){var t=this;t.loading=!0;var a=JSON.parse(sessionStorage.getItem("userInfos")),s=o()({},t.pageParams,{enterpriseId:a.enterpriseId,qywxEnterpriseId:a.wxEnterpriseId,taskType:2});if(t.pageParams.storeGroup){var r=[];t.pageParams.storeGroup.forEach(function(e){r.push(e.storeGroupId)}),delete s.storeGroup,s.storeGroupIds=r.join(",")||""}s.date&&(s.startTime=s.date[0],s.endTime=s.date[1],delete s.date),t.$route.query.ecmPlanId&&(s.ecmPlanId=t.$route.query.ecmPlanId),Object(l.b)("/haoban-task-manage-web/market/clue/web/store-list",s).then(function(e){t.loading=!1;var a=e.data;1==a.errorCode?(t.tableData=a.result.list||[],t.total=a.result.pageInfo?a.result.pageInfo.total:0):i.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},showDetail:function(e){this.$route.query.ecmPlanId?this.$router.push("grStoreDetail/"+e.storeId+"?tab=2&ecmPlanId="+this.$route.query.ecmPlanId+"&ecmPlanName="+this.$route.query.ecmPlanName):this.$router.push("grStoreDetail/"+e.storeId)}},watch:{brandId:function(e){this.getTableList()},$route:function(e,t){"/grStoreList"==e.path&&this.getTableList()}},actived:function(){this.getTableList()},components:{gicSelectGroup:n.a}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"apps-content flex"},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"overstore-body"},[a("div",{staticClass:"overstore-tip"},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start ",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-warning font-12 color-2f54eb"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-303133 font-13"},[e._v("仅展示近一年数据,数据截取时间:"+e._s(e._f("timeStampToYmd2")(e.dateStart))+" 至 "+e._s(e._f("timeStampToYmd2")(e.dateEnd)))])])]),e._v(" "),a("el-popover",{attrs:{placement:"bottom-start",width:"550",trigger:"click","popper-class":"salesleads-popover"}},[a("div",{staticClass:"tips-content"},[e._v("只统计通过GIC创建的群发,不包含在企业微信创建的群发及门店创建的群发")]),e._v(" "),a("div",{staticClass:"tips flex flex-align-center",attrs:{slot:"reference",role:"tips"},slot:"reference"},[a("i",{staticClass:"el-icon-warning-outline font-14 color-2f54eb"}),e._v(" "),a("div",{staticClass:"el-alert__content"},[e._v("查看指标说明")])])])],1),e._v(" "),a("div",{staticClass:"table-condition-search flex flex-space-between m-t-20"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-260",attrs:{placeholder:"请输入门店名称","prefix-icon":"el-icon-search",clearable:""},on:{change:e.reFetch},model:{value:e.pageParams.storeName,callback:function(t){e.$set(e.pageParams,"storeName",t)},expression:"pageParams.storeName"}}),e._v(" "),a("gic-select-group",{staticClass:"m-l-10",attrs:{brandId:e.brandId,width:213,selectData:e.pageParams.storeGroup},on:{checkGroupIds:e.checkGroupIds}}),e._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{"prefix-icon":"el-icon-time","picker-options":e.pickerOptions,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始时间","end-placeholder":"结束时间"},on:{change:e.changeDate},model:{value:e.pageParams.date,callback:function(t){e.$set(e.pageParams,"date",t)},expression:"pageParams.date"}})],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[e.$getButtonLimit(e.$buttonCode.exportStoreList)?a("el-button",{attrs:{"limit-code":e.$buttonCode.exportStoreList,loading:e.loadingBtn,type:"primary"},on:{click:e.exportExcel}},[e._v("导出")]):e._e()],1)]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],key:e.tableRefresh,ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45","class-name":1==e.selectRadio?"cell-disabled":"font-size-zero"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont-hb3 icongengduo"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":0,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择当页")])],1),e._v(" "),a("el-dropdown-item",[a("el-checkbox",{attrs:{"true-label":1,"false-label":2},on:{change:e.handleCommand},model:{value:e.selectRadio,callback:function(t){e.selectRadio=t},expression:"selectRadio"}},[e._v("选择全部")])],1)],1)],1)]},proxy:!0},{key:"default",fn:function(t){return[e._v(e._s(" "))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName||"--")+"\n "),a("p",{staticStyle:{color:"#909399"}},[e._v(e._s(t.row.storeCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"门店分组"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeGroupName||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.taskCnt||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.cplTaskCnt||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s((100*t.row.completionRate).toFixed(2)+"%"||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.waitFinishCount||"--"))]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中/逾期失效"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.ovincplTaskCnt||"--")+"/"+e._s(t.row.invalidCount||"--"))]}}])}),e._v(" "),e.$getButtonLimit(e.$buttonCode.checkStoreList)?a("el-table-column",{attrs:{prop:"",label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.$getButtonLimit(e.$buttonCode.checkStoreList)?a("el-button",{attrs:{"limit-code":e.$buttonCode.checkStoreList,type:"text"},on:{click:function(a){return e.showDetail(t.row)}}},[e._v("查看详情")]):e._e()]}}])}):e._e()],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageParams.pageSize,"current-page":e.pageParams.pageNum,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1):e._e()],1)])])])])])])},staticRenderFns:[]};var u=a("VU/8")(d,p,!1,function(e){a("fMB/")},"data-v-5658828b",null);t.default=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([92],{"5gao":function(t,a){},XrL3:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("3E4D"),o=e("Ch4/"),n=e("PI0u"),r=e("P9l9"),l={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",myCustomData:{salesGoodsFlag:!1,notSalesGoodsFlag:!1,showPriceFlag:!1},activeId:"1",loading:!1}},methods:{submit:Object(n.a)(function(t){this.loading=!0,this.setData(t)},500),setData:function(t){var a=this,e={enterpriseId:a.brandId,salesGoodsFlag:a.myCustomData.salesGoodsFlag?1:"0",notSalesGoodsFlag:a.myCustomData.notSalesGoodsFlag?1:"0",showPriceFlag:a.myCustomData.showPriceFlag?1:"0"};Object(r.g)("/haoban-app-aggregation-web/save-goods-setting",e).then(function(t){var e=t.data;a.loading=!1,a.getCustomerSet(),1!=e.errorCode?o.a.errorMsg(e):s.a.showmsg("保存成功","success")}).catch(function(t){a.loading=!1,a.$message.error({duration:1e3,message:t.message})})},getCustomerSet:function(t){var a=this,e={enterpriseId:a.brandId,wxEnterpriseRelatedId:a.wxEnterpriseRelatedId};Object(r.g)("/haoban-app-aggregation-web/find-goods-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):e.result&&(a.myCustomData.salesGoodsFlag=1==e.result.salesGoodsFlag,a.myCustomData.notSalesGoodsFlag=1==e.result.notSalesGoodsFlag,a.myCustomData.showPriceFlag=1==e.result.showPriceFlag)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,a){t&&this.getCustomerSet(this.brandId)}},mounted:function(){this.brandId&&this.getCustomerSet(this.brandId)},components:{}},i={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail-wrap"},[e("div",{staticClass:"app-detail-pane border-box p-20"},[e("div",{staticClass:"m-b-20"},[e("span",{staticClass:"font-14 p-r-10"},[t._v("商品展示:")]),t._v(" "),e("el-checkbox",{model:{value:t.myCustomData.salesGoodsFlag,callback:function(a){t.$set(t.myCustomData,"salesGoodsFlag",a)},expression:"myCustomData.salesGoodsFlag"}},[t._v("已上架商品")]),e("el-checkbox",{model:{value:t.myCustomData.notSalesGoodsFlag,callback:function(a){t.$set(t.myCustomData,"notSalesGoodsFlag",a)},expression:"myCustomData.notSalesGoodsFlag"}},[t._v("未上架商品")])],1),t._v(" "),e("div",[e("el-switch",{model:{value:t.myCustomData.showPriceFlag,callback:function(a){t.$set(t.myCustomData,"showPriceFlag",a)},expression:"myCustomData.showPriceFlag"}}),e("span",{staticClass:"font-14 color-303133 p-l-10"},[t._v("商品详情屏蔽价格")]),e("span",{staticClass:"font-12 color-909399 p-l-10"},[t._v("注:开启后,商品列表及商品详情中会屏蔽价格字段。关闭后显示价格。")])],1),t._v(" "),e("div",{staticClass:"m-t-46"},[t.$getButtonLimit(t.$buttonCode.saveGoodsSet)?e("el-button",{attrs:{"limit-code":t.$buttonCode.saveGoodsSet,type:"primary",loading:t.loading,disabled:t.$store.state.wxEnterpriseType},on:{click:function(a){return t.submit("searchFlag")}}},[t._v("保 存")]):t._e()],1)])])},staticRenderFns:[]};var d=e("VU/8")(l,i,!1,function(t){e("5gao")},"data-v-551cb015",null);a.default=d.exports}}); webpackJsonp([93],{"5gao":function(t,a){},XrL3:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("3E4D"),o=e("Ch4/"),n=e("PI0u"),r=e("P9l9"),l={name:"app-detail",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",myCustomData:{salesGoodsFlag:!1,notSalesGoodsFlag:!1,showPriceFlag:!1},activeId:"1",loading:!1}},methods:{submit:Object(n.a)(function(t){this.loading=!0,this.setData(t)},500),setData:function(t){var a=this,e={enterpriseId:a.brandId,salesGoodsFlag:a.myCustomData.salesGoodsFlag?1:"0",notSalesGoodsFlag:a.myCustomData.notSalesGoodsFlag?1:"0",showPriceFlag:a.myCustomData.showPriceFlag?1:"0"};Object(r.g)("/haoban-app-aggregation-web/save-goods-setting",e).then(function(t){var e=t.data;a.loading=!1,a.getCustomerSet(),1!=e.errorCode?o.a.errorMsg(e):s.a.showmsg("保存成功","success")}).catch(function(t){a.loading=!1,a.$message.error({duration:1e3,message:t.message})})},getCustomerSet:function(t){var a=this,e={enterpriseId:a.brandId,wxEnterpriseRelatedId:a.wxEnterpriseRelatedId};Object(r.g)("/haoban-app-aggregation-web/find-goods-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):e.result&&(a.myCustomData.salesGoodsFlag=1==e.result.salesGoodsFlag,a.myCustomData.notSalesGoodsFlag=1==e.result.notSalesGoodsFlag,a.myCustomData.showPriceFlag=1==e.result.showPriceFlag)}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,a){t&&this.getCustomerSet(this.brandId)}},mounted:function(){this.brandId&&this.getCustomerSet(this.brandId)},components:{}},i={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail-wrap"},[e("div",{staticClass:"app-detail-pane border-box p-20"},[e("div",{staticClass:"m-b-20"},[e("span",{staticClass:"font-14 p-r-10"},[t._v("商品展示:")]),t._v(" "),e("el-checkbox",{model:{value:t.myCustomData.salesGoodsFlag,callback:function(a){t.$set(t.myCustomData,"salesGoodsFlag",a)},expression:"myCustomData.salesGoodsFlag"}},[t._v("已上架商品")]),e("el-checkbox",{model:{value:t.myCustomData.notSalesGoodsFlag,callback:function(a){t.$set(t.myCustomData,"notSalesGoodsFlag",a)},expression:"myCustomData.notSalesGoodsFlag"}},[t._v("未上架商品")])],1),t._v(" "),e("div",[e("el-switch",{model:{value:t.myCustomData.showPriceFlag,callback:function(a){t.$set(t.myCustomData,"showPriceFlag",a)},expression:"myCustomData.showPriceFlag"}}),e("span",{staticClass:"font-14 color-303133 p-l-10"},[t._v("商品详情屏蔽价格")]),e("span",{staticClass:"font-12 color-909399 p-l-10"},[t._v("注:开启后,商品列表及商品详情中会屏蔽价格字段。关闭后显示价格。")])],1),t._v(" "),e("div",{staticClass:"m-t-46"},[t.$getButtonLimit(t.$buttonCode.saveGoodsSet)?e("el-button",{attrs:{"limit-code":t.$buttonCode.saveGoodsSet,type:"primary",loading:t.loading,disabled:t.$store.state.wxEnterpriseType},on:{click:function(a){return t.submit("searchFlag")}}},[t._v("保 存")]):t._e()],1)])])},staticRenderFns:[]};var d=e("VU/8")(l,i,!1,function(t){e("5gao")},"data-v-551cb015",null);a.default=d.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([93],{RvMj:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("woOf"),r=a.n(l),s=a("Ch4/"),o=a("P9l9"),i={name:"evaluate-set",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",formData:{enterpriseId:"",guideReplyFlag:0,allOrderFlag:0,taskCallTypes:[],distributeCustomerJudge:"",overDayJudge:2},formRules:{distributeCustomerJudge:{required:!0,validator:function(e,t,a){if(1!=t&&2!=t)return a(new Error("请设置任务分配"));a()},trigger:"blur"},overDayJudge:{required:!0},taskCallTypes:{required:!0,message:"请选择拨打方式",trigger:"change"}},callTypes:[{label:"企业电话",value:"1",tooltips:["1.对接第三方呼叫中心,外呼显示第三方号码,可监控通话状态。费用结算及通话记录存储于GIC计费中心;","2.若任务创建时无双向呼叫权限,此项设置勾选也不生效"]},{label:"私人电话",value:"2",tooltips:["导购手机呼叫,无法监控通话状态。呼叫结算费用由导购手机自费"]},{label:"企微会话",value:"3",tooltips:["通过企微会话完成任务,无法监控通话状态。不产生通话费用"]}],loading:!1}},methods:{onSave:function(){var e=this;this.loading=!0,this.$refs.formData.validate(function(t){if(t){var a=e.formData,l=a.enterpriseId,r=a.guideReplyFlag,i=a.allOrderFlag,n=a.taskCallTypes,u=a.distributeCustomerJudge,d=a.overDayJudge;Object(o.g)("/haoban-app-tel-task-three-web/setting/save-task-setting",{enterpriseId:l,guideReplyFlag:r,allOrderFlag:i,taskCallTypes:n.join(","),distributeCustomerJudge:u,overDayJudge:d,taskType:0}).then(function(t){if(1!=(t.data||{}).errorCode)return s.a.errorMsg(t.data);e.$message.success("保存成功")}).finally(function(){setTimeout(function(){return e.loading=!1},100)})}else e.loading=!1})},getConfig:function(){var e=this;Object(o.g)("/haoban-app-tel-task-three-web/setting/find-task-setting",{enterpriseId:this.formData.enterpriseId,taskType:0}).then(function(t){var a=t.data||{},l=a.errorCode,o=a.result;if(1!=l)return s.a.errorMsg(t.data);r()(e.formData,{guideReplyFlag:o.guideReplyFlag,allOrderFlag:o.allOrderFlag,taskCallTypes:"string"==typeof o.taskCallTypes?o.taskCallTypes.split(","):[],distributeCustomerJudge:o.distributeCustomerJudge,overDayJudge:o.overDayJudge})})}},created:function(){this.formData.enterpriseId=this.brandId,this.getConfig()}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"evaluate-set"},[a("el-form",[a("el-form-item",[a("dm-sub-title",{attrs:{type:"fill"}},[e._v("订单评价设置")])],1),e._v(" "),a("el-form-item",[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.formData.guideReplyFlag,callback:function(t){e.$set(e.formData,"guideReplyFlag",t)},expression:"formData.guideReplyFlag"}}),e._v(" "),a("span",{staticClass:"switch-label"},[e._v("禁止订单关联导购回复评价")]),e._v(" "),a("p",{staticClass:"switch-tip"},[e._v(" 开启后,订单关联导购不可回复评价")])],1),e._v(" "),a("el-form-item",[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.formData.allOrderFlag,callback:function(t){e.$set(e.formData,"allOrderFlag",t)},expression:"formData.allOrderFlag"}}),e._v(" "),a("span",{staticClass:"switch-label"},[e._v("允许店员查看所有订单评价")])],1),e._v(" "),a("el-form-item",[a("dm-sub-title",{attrs:{type:"fill"}},[e._v("不良评价回访设置")])],1),e._v(" "),a("el-form",{ref:"formData",attrs:{model:e.formData,rules:e.formRules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"不良评价拨打",prop:"taskCallTypes"}},[a("el-checkbox-group",{model:{value:e.formData.taskCallTypes,callback:function(t){e.$set(e.formData,"taskCallTypes",t)},expression:"formData.taskCallTypes"}},e._l(e.callTypes,function(t){return a("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n "),a("el-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"content"},e._l(t.tooltips,function(t,l){return a("p",{key:l},[e._v(e._s(t))])}),0),e._v(" "),a("i",{staticClass:"call-type-icon iconfont-components3 icon-cp-QuestionCircleOutlined"})],2)],1)}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"任务分配",prop:"distributeCustomerJudge"}},[a("el-radio-group",{model:{value:e.formData.distributeCustomerJudge,callback:function(t){e.$set(e.formData,"distributeCustomerJudge",t)},expression:"formData.distributeCustomerJudge"}},[a("el-radio",{attrs:{label:1}},[e._v("\n 分配给消费门店店长\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的所在门店店长",placement:"top"}},[a("i",{staticClass:"call-type-icon iconfont-components3 icon-cp-QuestionCircleOutlined"})])],1),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("\n 分配给专属导购\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的会员的专属导购",placement:"top"}},[a("i",{staticClass:"call-type-icon iconfont-components3 icon-cp-QuestionCircleOutlined"})])],1)],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"逾期设置",prop:"overDayJudge"}},[a("div",{staticClass:"delay-config"},[e._v("\n 不良评价回访下发后"),a("el-input-number",{staticClass:"delay-count",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:e.formData.overDayJudge,callback:function(t){e.$set(e.formData,"overDayJudge",t)},expression:"formData.overDayJudge"}}),e._v("天\n "),a("p",{staticClass:"delay-tip"},[e._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1)])],1)],1),e._v(" "),e.$getButtonLimit(e.$buttonCode.saveEvaluateSet)?a("hb-form-bottom",[a("el-button",{attrs:{"limit-code":e.$buttonCode.saveEvaluateSet,type:"primary",loading:e.loading},on:{click:e.onSave}},[e._v("保存")])],1):e._e()],1)},staticRenderFns:[]};var u=a("VU/8")(i,n,!1,function(e){a("dp7r")},"data-v-53c40c97",null);t.default=u.exports},dp7r:function(e,t){}}); webpackJsonp([94],{RvMj:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("woOf"),r=a.n(l),s=a("Ch4/"),o=a("P9l9"),i={name:"evaluate-set",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{wxEnterpriseRelatedId:sessionStorage.getItem("userInfos")?JSON.parse(sessionStorage.getItem("userInfos")).wxEnterpriseId:"",formData:{enterpriseId:"",guideReplyFlag:0,allOrderFlag:0,taskCallTypes:[],distributeCustomerJudge:"",overDayJudge:2},formRules:{distributeCustomerJudge:{required:!0,validator:function(e,t,a){if(1!=t&&2!=t)return a(new Error("请设置任务分配"));a()},trigger:"blur"},overDayJudge:{required:!0},taskCallTypes:{required:!0,message:"请选择拨打方式",trigger:"change"}},callTypes:[{label:"企业电话",value:"1",tooltips:["1.对接第三方呼叫中心,外呼显示第三方号码,可监控通话状态。费用结算及通话记录存储于GIC计费中心;","2.若任务创建时无双向呼叫权限,此项设置勾选也不生效"]},{label:"私人电话",value:"2",tooltips:["导购手机呼叫,无法监控通话状态。呼叫结算费用由导购手机自费"]},{label:"企微会话",value:"3",tooltips:["通过企微会话完成任务,无法监控通话状态。不产生通话费用"]}],loading:!1}},methods:{onSave:function(){var e=this;this.loading=!0,this.$refs.formData.validate(function(t){if(t){var a=e.formData,l=a.enterpriseId,r=a.guideReplyFlag,i=a.allOrderFlag,n=a.taskCallTypes,u=a.distributeCustomerJudge,d=a.overDayJudge;Object(o.g)("/haoban-app-tel-task-three-web/setting/save-task-setting",{enterpriseId:l,guideReplyFlag:r,allOrderFlag:i,taskCallTypes:n.join(","),distributeCustomerJudge:u,overDayJudge:d,taskType:0}).then(function(t){if(1!=(t.data||{}).errorCode)return s.a.errorMsg(t.data);e.$message.success("保存成功")}).finally(function(){setTimeout(function(){return e.loading=!1},100)})}else e.loading=!1})},getConfig:function(){var e=this;Object(o.g)("/haoban-app-tel-task-three-web/setting/find-task-setting",{enterpriseId:this.formData.enterpriseId,taskType:0}).then(function(t){var a=t.data||{},l=a.errorCode,o=a.result;if(1!=l)return s.a.errorMsg(t.data);r()(e.formData,{guideReplyFlag:o.guideReplyFlag,allOrderFlag:o.allOrderFlag,taskCallTypes:"string"==typeof o.taskCallTypes?o.taskCallTypes.split(","):[],distributeCustomerJudge:o.distributeCustomerJudge,overDayJudge:o.overDayJudge})})}},created:function(){this.formData.enterpriseId=this.brandId,this.getConfig()}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"evaluate-set"},[a("el-form",[a("el-form-item",[a("dm-sub-title",{attrs:{type:"fill"}},[e._v("订单评价设置")])],1),e._v(" "),a("el-form-item",[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.formData.guideReplyFlag,callback:function(t){e.$set(e.formData,"guideReplyFlag",t)},expression:"formData.guideReplyFlag"}}),e._v(" "),a("span",{staticClass:"switch-label"},[e._v("禁止订单关联导购回复评价")]),e._v(" "),a("p",{staticClass:"switch-tip"},[e._v(" 开启后,订单关联导购不可回复评价")])],1),e._v(" "),a("el-form-item",[a("el-switch",{attrs:{"active-value":1,"inactive-value":0},model:{value:e.formData.allOrderFlag,callback:function(t){e.$set(e.formData,"allOrderFlag",t)},expression:"formData.allOrderFlag"}}),e._v(" "),a("span",{staticClass:"switch-label"},[e._v("允许店员查看所有订单评价")])],1),e._v(" "),a("el-form-item",[a("dm-sub-title",{attrs:{type:"fill"}},[e._v("不良评价回访设置")])],1),e._v(" "),a("el-form",{ref:"formData",attrs:{model:e.formData,rules:e.formRules,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"不良评价拨打",prop:"taskCallTypes"}},[a("el-checkbox-group",{model:{value:e.formData.taskCallTypes,callback:function(t){e.$set(e.formData,"taskCallTypes",t)},expression:"formData.taskCallTypes"}},e._l(e.callTypes,function(t){return a("el-checkbox",{key:t.value,attrs:{label:t.value}},[e._v("\n "+e._s(t.label)+"\n "),a("el-tooltip",{attrs:{placement:"top"}},[a("template",{slot:"content"},e._l(t.tooltips,function(t,l){return a("p",{key:l},[e._v(e._s(t))])}),0),e._v(" "),a("i",{staticClass:"call-type-icon iconfont-components3 icon-cp-QuestionCircleOutlined"})],2)],1)}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"任务分配",prop:"distributeCustomerJudge"}},[a("el-radio-group",{model:{value:e.formData.distributeCustomerJudge,callback:function(t){e.$set(e.formData,"distributeCustomerJudge",t)},expression:"formData.distributeCustomerJudge"}},[a("el-radio",{attrs:{label:1}},[e._v("\n 分配给消费门店店长\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的所在门店店长",placement:"top"}},[a("i",{staticClass:"call-type-icon iconfont-components3 icon-cp-QuestionCircleOutlined"})])],1),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("\n 分配给专属导购\n "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选此项,不良评价回访任务将分配给产生该笔消费订单的会员的专属导购",placement:"top"}},[a("i",{staticClass:"call-type-icon iconfont-components3 icon-cp-QuestionCircleOutlined"})])],1)],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"逾期设置",prop:"overDayJudge"}},[a("div",{staticClass:"delay-config"},[e._v("\n 不良评价回访下发后"),a("el-input-number",{staticClass:"delay-count",attrs:{"controls-position":"right",placeholder:"请输入内容",step:1,"step-strictly":!0,min:0,max:99999999},model:{value:e.formData.overDayJudge,callback:function(t){e.$set(e.formData,"overDayJudge",t)},expression:"formData.overDayJudge"}}),e._v("天\n "),a("p",{staticClass:"delay-tip"},[e._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1)])],1)],1),e._v(" "),e.$getButtonLimit(e.$buttonCode.saveEvaluateSet)?a("hb-form-bottom",[a("el-button",{attrs:{"limit-code":e.$buttonCode.saveEvaluateSet,type:"primary",loading:e.loading},on:{click:e.onSave}},[e._v("保存")])],1):e._e()],1)},staticRenderFns:[]};var u=a("VU/8")(i,n,!1,function(e){a("dp7r")},"data-v-53c40c97",null);t.default=u.exports},dp7r:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([95],{FQZX:function(t,e){},zHtI:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}},methods:{getZhLen:function(t){for(var e=0,i=0;i<t.length;i++){null!=t.charAt(i).match(/[^\x00-\xff]/gi)?e+=1:e+=.5}return Math.ceil(e)}}},a={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.getZhLen(t.childItem.title)>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var c=i("VU/8")(l,a,!1,function(t){i("FQZX")},"data-v-4cfabcb1",null);e.default=c.exports}});
\ No newline at end of file
webpackJsonp([95],{O3gZ:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},l={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"block block-field"},[s("div",{staticClass:"block-head"},[s("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),s("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,i){return s("li",{key:"performance"+i,staticClass:"block-filed-item border-bottom-1"},[s("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),s("div",{staticClass:"draged-item-show"},[s("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])}),0),t._v(" "),"competitorInfo"==t.childItem.name?s("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var a=s("VU/8")(i,l,!1,function(t){s("hEsI")},"data-v-51fed69c",null);e.default=a.exports},hEsI:function(t,e){}});
\ No newline at end of file
webpackJsonp([94],{"Kj+C":function(t,a){},qSX4:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("Gu7T"),i=e.n(n),o=e("bzW+"),c=e("Qie6"),s=e("Z8ln"),r=e("Ch4/"),h=e("P9l9"),d={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"指标管理",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"指标管理",path:"/monthList"}],defaultNavpath:[{name:"首页",path:"/index"},{name:"指标管理",path:"/monthList"}],tabListData:[{tabId:"1",tabName:"月指标",icon:"iconzhibiao"},{tabId:"2",tabName:"月指标任务",icon:"iconrenwu"}],navName:{1:"月指标",11:"门店月指标",111:"导购月指标详情",12:"商户日权重月指标",2:"月指标任务",21:"月指标任务详情"},navFrontPath:{1:"/monthList",11:"/monthList",111:"/storeMonthTask",12:"/monthList",13:"/monthList",2:"/monthList",21:"/monthTask"},activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(h.b)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?r.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("monthList");break;case"2":this.changeRoute("monthTask")}},showTab:function(t){var a=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=t,this.activeSelTab=t,this.navpath=[].concat(i()(this.defaultNavpath)),e.length&&e.map(function(t){a.navpath[a.navpath.length-1].path="111"===t?a.navFrontPath[t]+"?yearMonth="+a.$route.query.yearMonth:a.navFrontPath[t],a.navpath.push({name:a.navName[t],path:""})})}},watch:{activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:o.a,commonDetailLeft:c.a,expiredDialog:s.a}},v={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[t.activeBrand?e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}}):t._e()],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var u=e("VU/8")(d,v,!1,function(t){e("Kj+C")},"data-v-4d124316",null);a.default=u.exports}}); webpackJsonp([96],{"Kj+C":function(t,a){},qSX4:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("Gu7T"),i=e.n(n),o=e("bzW+"),c=e("Qie6"),s=e("Z8ln"),r=e("Ch4/"),h=e("P9l9"),d={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"指标管理",activeSelTab:"1",activeTab:"1",navpath:[{name:"首页",path:"/index"},{name:"指标管理",path:"/monthList"}],defaultNavpath:[{name:"首页",path:"/index"},{name:"指标管理",path:"/monthList"}],tabListData:[{tabId:"1",tabName:"月指标",icon:"iconzhibiao"},{tabId:"2",tabName:"月指标任务",icon:"iconrenwu"}],navName:{1:"月指标",11:"门店月指标",111:"导购月指标详情",12:"商户日权重月指标",2:"月指标任务",21:"月指标任务详情"},navFrontPath:{1:"/monthList",11:"/monthList",111:"/storeMonthTask",12:"/monthList",13:"/monthList",2:"/monthList",21:"/monthTask"},activeBrand:"",activeGroup:"",expiredFlag:!1}},computed:{},methods:{getExpired:function(){var t=this,a={enterpriseId:t.activeBrand};Object(h.b)("/haoban-manage3-web/enterprise-is-over",a).then(function(a){var e=a.data;1!=e.errorCode?r.a.errorMsg(e):t.expiredFlag=e.result}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a,this.getExpired()},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("monthList");break;case"2":this.changeRoute("monthTask")}},showTab:function(t){var a=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=t,this.activeSelTab=t,this.navpath=[].concat(i()(this.defaultNavpath)),e.length&&e.map(function(t){a.navpath[a.navpath.length-1].path="111"===t?a.navFrontPath[t]+"?yearMonth="+a.$route.query.yearMonth:a.navFrontPath[t],a.navpath.push({name:a.navName[t],path:""})})}},watch:{activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:o.a,commonDetailLeft:c.a,expiredDialog:s.a}},v={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 112px)"}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[t.$route.meta.keepAlive?e("keep-alive",[t.activeBrand?e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}}):t._e()],1):e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])]),t._v(" "),t.expiredFlag?e("expired-dialog"):t._e()],1)},staticRenderFns:[]};var u=e("VU/8")(d,v,!1,function(t){e("Kj+C")},"data-v-4d124316",null);a.default=u.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([96],{fAFA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("Xxa5"),n=a.n(r),o=a("exGp"),i=a.n(o),s=a("Ch4/"),l=a("PI0u"),c=a("P9l9"),u={components:{},props:{brandId:{type:String,default:""}},data:function(){return{yearList:[],year:"",tableList:[],loading:!1,tabelHeader:[{prop:"yearMonth",label:"月份"},{prop:"totalPerformance",label:"月指标累计"},{prop:"totalStore",label:"门店总数"},{prop:"totalComplete",label:"门店指标完善数"}],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getYearList()}},methods:{handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.apiMonthPerformanceList()},handleCurrentChange:function(t){this.currentPage=t,this.apiMonthPerformanceList()},changeYear:function(){this.currentPage=1,this.apiMonthPerformanceList()},getYearList:function(){var t=this;return i()(n.a.mark(function e(){var a,r,o;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=t,e.next=3,n={enterpriseId:a.brandId},Object(c.b)("/haoban-app-performance-three-web/performance/get-years",n);case 3:r=e.sent,1==(o=r.data).errorCode?(a.yearList=[],o.result&&o.result.length&&(o.result.forEach(function(t){a.yearList.push({id:t,label:t+"年"})}),a.year=o.result[0],a.apiMonthPerformanceList())):s.a.errorMsg(o);case 6:case"end":return e.stop()}var n},e,t)}))()},apiMonthPerformanceList:function(){var t=this;return i()(n.a.mark(function e(){var a,r,o;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(a=t).loading=!0,e.next=4,n={enterpriseId:t.brandId,year:t.year},Object(c.b)("/haoban-app-performance-three-web/performance/query-month-performance",n);case 4:r=e.sent,o=r.data,a.loading=!1,1==o.errorCode&&(o.result.length&&o.result.forEach(function(t){t.totalPerformance=Object(l.c)(Number(t.totalPerformance).toFixed(2))}),a.tableList=o.result||[]);case 8:case"end":return e.stop()}var n},e,t)}))()}},mounted:function(){this.brandId&&this.getYearList()}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("el-select",{staticClass:"m-b-23 w-123",on:{change:t.changeYear},model:{value:t.year,callback:function(e){t.year=e},expression:"year"}},[a("i",{staticClass:"el-input__icon el-icon-date",attrs:{slot:"prefix"},slot:"prefix"}),t._v(" "),t._l(t.yearList,function(t,e){return a("el-option",{key:e,attrs:{value:t.id,label:t.label}})})],2),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableList}},[t._l(t.tabelHeader,function(t,e){return a("el-table-column",{key:e,attrs:{label:t.label,prop:t.prop}})}),t._v(" "),t.$getButtonLimit(t.$buttonCode.monthTarget)||t.$getButtonLimit(t.$buttonCode.dayTarget)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.settingStatus&&t.$getButtonLimit(t.$buttonCode.monthTarget)?a("el-button",{attrs:{"limit-code":t.$buttonCode.monthTarget,type:"text"},on:{click:function(a){return t.$router.push("/storeMonthTask?yearMonth="+e.row.yearMonth)}}},[t._v("门店月指标")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.dayTarget)?a("el-button",{attrs:{"limit-code":t.$buttonCode.dayTarget,type:"text"},on:{click:function(a){return t.$router.push("/companyDaySet?yearMonth="+e.row.yearMonth)}}},[t._v("商户日权重")]):t._e()]}}])}):t._e()],2)],1)])},staticRenderFns:[]};var d=a("VU/8")(u,p,!1,function(t){a("pQV7")},"data-v-4cf4a5fb",null);e.default=d.exports},pQV7:function(t,e){}}); webpackJsonp([97],{fAFA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=a("Xxa5"),n=a.n(r),o=a("exGp"),i=a.n(o),s=a("Ch4/"),l=a("PI0u"),c=a("P9l9"),u={components:{},props:{brandId:{type:String,default:""}},data:function(){return{yearList:[],year:"",tableList:[],loading:!1,tabelHeader:[{prop:"yearMonth",label:"月份"},{prop:"totalPerformance",label:"月指标累计"},{prop:"totalStore",label:"门店总数"},{prop:"totalComplete",label:"门店指标完善数"}],currentPage:1,pageSize:20,total:0}},watch:{brandId:function(t){t&&this.getYearList()}},methods:{handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.apiMonthPerformanceList()},handleCurrentChange:function(t){this.currentPage=t,this.apiMonthPerformanceList()},changeYear:function(){this.currentPage=1,this.apiMonthPerformanceList()},getYearList:function(){var t=this;return i()(n.a.mark(function e(){var a,r,o;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a=t,e.next=3,n={enterpriseId:a.brandId},Object(c.b)("/haoban-app-performance-three-web/performance/get-years",n);case 3:r=e.sent,1==(o=r.data).errorCode?(a.yearList=[],o.result&&o.result.length&&(o.result.forEach(function(t){a.yearList.push({id:t,label:t+"年"})}),a.year=o.result[0],a.apiMonthPerformanceList())):s.a.errorMsg(o);case 6:case"end":return e.stop()}var n},e,t)}))()},apiMonthPerformanceList:function(){var t=this;return i()(n.a.mark(function e(){var a,r,o;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return(a=t).loading=!0,e.next=4,n={enterpriseId:t.brandId,year:t.year},Object(c.b)("/haoban-app-performance-three-web/performance/query-month-performance",n);case 4:r=e.sent,o=r.data,a.loading=!1,1==o.errorCode&&(o.result.length&&o.result.forEach(function(t){t.totalPerformance=Object(l.c)(Number(t.totalPerformance).toFixed(2))}),a.tableList=o.result||[]);case 8:case"end":return e.stop()}var n},e,t)}))()}},mounted:function(){this.brandId&&this.getYearList()}},p={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("section",{staticClass:"common-right-wrap"},[a("div",{staticClass:"p-20"},[a("el-select",{staticClass:"m-b-23 w-123",on:{change:t.changeYear},model:{value:t.year,callback:function(e){t.year=e},expression:"year"}},[a("i",{staticClass:"el-input__icon el-icon-date",attrs:{slot:"prefix"},slot:"prefix"}),t._v(" "),t._l(t.yearList,function(t,e){return a("el-option",{key:e,attrs:{value:t.id,label:t.label}})})],2),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:t.tableList}},[t._l(t.tabelHeader,function(t,e){return a("el-table-column",{key:e,attrs:{label:t.label,prop:t.prop}})}),t._v(" "),t.$getButtonLimit(t.$buttonCode.monthTarget)||t.$getButtonLimit(t.$buttonCode.dayTarget)?a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.settingStatus&&t.$getButtonLimit(t.$buttonCode.monthTarget)?a("el-button",{attrs:{"limit-code":t.$buttonCode.monthTarget,type:"text"},on:{click:function(a){return t.$router.push("/storeMonthTask?yearMonth="+e.row.yearMonth)}}},[t._v("门店月指标")]):t._e(),t._v(" "),t.$getButtonLimit(t.$buttonCode.dayTarget)?a("el-button",{attrs:{"limit-code":t.$buttonCode.dayTarget,type:"text"},on:{click:function(a){return t.$router.push("/companyDaySet?yearMonth="+e.row.yearMonth)}}},[t._v("商户日权重")]):t._e()]}}])}):t._e()],2)],1)])},staticRenderFns:[]};var d=a("VU/8")(u,p,!1,function(t){a("pQV7")},"data-v-4cf4a5fb",null);e.default=d.exports},pQV7:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([97],{DCIc:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("2eFk"),s=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"不良评价回访记录"}],activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(d.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!n()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand,delTaskStatus:t.delOptFlag,reason:t.reason,isAll:e.selectRadio,taskType:0};Object(c.g)("/haoban-app-tel-task-web/task/batch-del-store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getTableList();p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){var t=[],e=[];this.conditionObj.storeGroup.forEach(function(a){2==a.type&&t.push(a.groupId),3==a.type&&e.push(a.storeId)});var a={search:this.conditionObj.searchInput||"",filterStoreIds:e.join(",")||"",storeGroupIds:t.join(",")||"",storeType:this.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",brandId:this.activeBrand,taskType:0},o="search="+a.search+"&taskType="+a.taskType+"&filterStoreIds="+a.filterStoreIds+"&storeGroupIds="+a.storeGroupIds+"&storeType="+a.storeType+"&startDate="+a.startDate+"&endDate="+a.endDate+"&brandId="+a.brandId+"&currentPage="+a.currentPage+"&pageSize="+a.pageSize;window.open(window.location.origin+"/haoban-app-tel-task-web/task/export-store-task-list?"+o)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(t){this.conditionObj.storeGroup=t,this.getTableList()},toDetail:function(t,e){this.$router.push("taskDetail?storeId="+e.storeId)},getTableList:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand,taskType:0};Object(c.b)("/haoban-app-tel-task-web/task/store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo?a.result.pageInfo.total:0,!1;p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,vueSelectStore:s.a,multipleDel:r.a}},b={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){return t.showDialogLayer("store",t.conditionObj.storeGroup)}}},[t.conditionObj.storeGroup.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc"},[t._v("请选择门店分组")]),t._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.conditionObj.storeGroup,function(e,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.delDepart(o,t.conditionObj.storeGroup)}}})])]})],2)])])])]),t._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeStoreType},model:{value:t.conditionObj.storeType,callback:function(e){t.$set(t.conditionObj,"storeType",e)},expression:"conditionObj.storeType"}},t._l(t.storeTypeOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[a("i",{staticClass:"iconfont-hb3 icon-icon_yunxiazai p-r-6"}),t._v("导出")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark",height:t.tableH},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:t.activeGroup,appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"group",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var g=a("VU/8")(h,b,!1,function(t){a("XGRz")},"data-v-4918241e",null);e.default=g.exports},XGRz:function(t,e){}}); webpackJsonp([98],{DCIc:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("2eFk"),s=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"不良评价回访记录"}],activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"自营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:0,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(d.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(t){t||(this.conditionObj.dateRange=[]),this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!n()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand,delTaskStatus:t.delOptFlag,reason:t.reason,isAll:e.selectRadio,taskType:0};Object(c.g)("/haoban-app-tel-task-web/task/batch-del-store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getTableList();p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){var t=[],e=[];this.conditionObj.storeGroup.forEach(function(a){2==a.type&&t.push(a.groupId),3==a.type&&e.push(a.storeId)});var a={search:this.conditionObj.searchInput||"",filterStoreIds:e.join(",")||"",storeGroupIds:t.join(",")||"",storeType:this.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",brandId:this.activeBrand,taskType:0},o="search="+a.search+"&taskType="+a.taskType+"&filterStoreIds="+a.filterStoreIds+"&storeGroupIds="+a.storeGroupIds+"&storeType="+a.storeType+"&startDate="+a.startDate+"&endDate="+a.endDate+"&brandId="+a.brandId+"&currentPage="+a.currentPage+"&pageSize="+a.pageSize;window.open(window.location.origin+"/haoban-app-tel-task-web/task/export-store-task-list?"+o)},handleSizeChange:function(t){this.currentPage=1,this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(t){this.conditionObj.storeGroup=t,this.getTableList()},toDetail:function(t,e){this.$router.push("taskDetail?storeId="+e.storeId)},getTableList:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand,taskType:0};Object(c.b)("/haoban-app-tel-task-web/task/store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo?a.result.pageInfo.total:0,!1;p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,vueSelectStore:s.a,multipleDel:r.a}},b={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称",maxlength:"50"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){return t.showDialogLayer("store",t.conditionObj.storeGroup)}}},[t.conditionObj.storeGroup.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc"},[t._v("请选择门店分组")]),t._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.conditionObj.storeGroup,function(e,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.delDepart(o,t.conditionObj.storeGroup)}}})])]})],2)])])])]),t._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeStoreType},model:{value:t.conditionObj.storeType,callback:function(e){t.$set(t.conditionObj,"storeType",e)},expression:"conditionObj.storeType"}},t._l(t.storeTypeOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})}),1),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[a("i",{staticClass:"iconfont-hb3 icon-icon_yunxiazai p-r-6"}),t._v("导出")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark",height:t.tableH},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#2f54eb":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:t.activeGroup,appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"group",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var g=a("VU/8")(h,b,!1,function(t){a("XGRz")},"data-v-4918241e",null);e.default=g.exports},XGRz:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([98],{"0zzn":function(t,e){},odfG:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("P9l9"),n=a("Ch4/"),l={name:"MemberShowSet",data:function(){return{tableData:[]}},created:function(){this.getTableData()},methods:{formatStoreType:function(t,e,a){var o=[];if("string"==typeof a){var n=a.split(",");o=[{label:"自营",value:"0"},{label:"联营",value:"1"},{label:"代理",value:"2"},{label:"代销",value:"3"},{label:"托管",value:"4"}].filter(function(t){return n.includes(t.value)}).map(function(t){return t.label})}return o.join("/")},formatSetting:function(t){var e=[];return 1==t.mainStoreFlag&&e.push("展示服务门店客户"),1==t.minorStoreFlag&&e.push("展示协管门店客户"),1==t.openCardStoreFlag&&e.push("展示开卡门店客户"),1==t.showFreezeFlag&&e.push("展示冻结会员"),1==t.isSeeAuthMember&&e.push("展示已开卡会员"),1==t.clerkSeeOtherFlag&&e.push("允许导购查看其他导购客户"),e.join(";")},getTableData:function(){var t=this;Object(o.b)("/haoban-app-customer-web/customer/find-member-manage-setting-list",{}).then(function(e){var a=e.data||{},o=a.code,l=a.result;0==o?(t.tableData=Array.isArray(l)?l:[],t.$nextTick(function(){t.tableData.map(function(e,a){var o=t.$refs["setContent"+a];t.$set(e,"isOverflow",o.scrollHeight>o.clientHeight)})})):n.a.errorMsg(e.data)})},onDel:function(t){var e=this;this.$set(t,"loading",!0),Object(o.b)("/haoban-app-customer-web/customer/del-member-setting",{memberManageSettingId:t.memberManageSettingId}).then(function(a){if(0!=(a.data||{}).code)return n.a.errorMsg(a.data),void e.$set(t,"loading",!1);e.$message.success("删除成功"),e.getTableData()}).catch(function(){return e.$set(t,"loading",!1)})}}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"show-set"},[a("div",{staticClass:"show-set-header"},[a("el-alert",{staticClass:"show-set-tips",attrs:{type:"info","show-icon":"",closable:!1}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("div",{staticClass:"tips-text"},[t._v("1. 同一商户下,各子管理员新增的特殊策略的门店类型不能重复;")]),t._v(" "),a("div",{staticClass:"tips-text"},[t._v("2. 子管理员设置的门店类型和默认重复时,按子管理员设置的逻辑生效;")])])]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addShowRules)?a("el-button",{attrs:{"limit-code":t.$buttonCode.addShowRules,type:"primary"},on:{click:function(e){return t.$router.push("/addMemberShowRules")}}},[t._v("新增特殊策略")]):t._e()],1),t._v(" "),a("el-table",{attrs:{data:t.tableData}},[a("el-table-column",{attrs:{label:"策略名称",prop:"strategyName","min-width":"185px","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row;return[0==e.$index?a("span",{staticClass:"default-store"},[t._v("默认")]):t._e(),t._v("\n "+t._s(o.strategyName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"策略类型",prop:"storeType",formatter:function(t,e,a){return"-999"==a?"通用策略":"特殊策略"},"min-width":"110px"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店类型",prop:"storeType",formatter:t.formatStoreType,"min-width":"110px"}}),t._v(" "),a("el-table-column",{attrs:{label:"设置内容","min-width":"310px"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row,n=e.$index;return[o.isOverflow?a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.formatSetting(o)))]),t._v(" "),a("div",{staticClass:"text-overflow"},[t._v(t._s(t.formatSetting(o)))])]):a("div",{ref:"setContent"+n,staticClass:"text-overflow"},[t._v(t._s(t.formatSetting(o)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建人",prop:"creatorName","min-width":"120px","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"编辑人",prop:"modifierName","min-width":"120px","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"最近编辑时间",prop:"updateTime","min-width":"110px"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row;return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[t._v(t._s(t._f("timeStampToYmd")(o.updateTime)))]),t._v(" "),a("p",[t._v(t._s(t._f("timeStampToHms")(o.updateTime)))])])}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.editShowRules)||t.$getButtonLimit(t.$buttonCode.delShowRules)?a("el-table-column",{attrs:{label:"操作","min-width":"120px"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row,n=e.$index;return[t.$getButtonLimit(t.$buttonCode.editShowRules)?a("el-button",{attrs:{"limit-code":t.$buttonCode.editShowRules,type:"text"},on:{click:function(e){return t.$router.push("/editMemberShowRules?id="+o.memberManageSettingId)}}},[t._v("编辑")]):t._e(),t._v(" "),n>0&&t.$getButtonLimit(t.$buttonCode.delShowRules)?a("dm-delete",{attrs:{tips:"是否删除?"},on:{confirm:function(e){return t.onDel(o)}}},[a("el-button",{attrs:{loading:o.loading,"limit-code":t.$buttonCode.delShowRules,type:"text"}},[t._v("删除")])],1):t._e()]}}])}):t._e()],1)],1)},staticRenderFns:[]};var i=a("VU/8")(l,r,!1,function(t){a("0zzn")},"data-v-46fb63d1",null);e.default=i.exports}}); webpackJsonp([99],{"0zzn":function(t,e){},odfG:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("P9l9"),n=a("Ch4/"),l={name:"MemberShowSet",data:function(){return{tableData:[]}},created:function(){this.getTableData()},methods:{formatStoreType:function(t,e,a){var o=[];if("string"==typeof a){var n=a.split(",");o=[{label:"自营",value:"0"},{label:"联营",value:"1"},{label:"代理",value:"2"},{label:"代销",value:"3"},{label:"托管",value:"4"}].filter(function(t){return n.includes(t.value)}).map(function(t){return t.label})}return o.join("/")},formatSetting:function(t){var e=[];return 1==t.mainStoreFlag&&e.push("展示服务门店客户"),1==t.minorStoreFlag&&e.push("展示协管门店客户"),1==t.openCardStoreFlag&&e.push("展示开卡门店客户"),1==t.showFreezeFlag&&e.push("展示冻结会员"),1==t.isSeeAuthMember&&e.push("展示已开卡会员"),1==t.clerkSeeOtherFlag&&e.push("允许导购查看其他导购客户"),e.join(";")},getTableData:function(){var t=this;Object(o.b)("/haoban-app-customer-web/customer/find-member-manage-setting-list",{}).then(function(e){var a=e.data||{},o=a.code,l=a.result;0==o?(t.tableData=Array.isArray(l)?l:[],t.$nextTick(function(){t.tableData.map(function(e,a){var o=t.$refs["setContent"+a];t.$set(e,"isOverflow",o.scrollHeight>o.clientHeight)})})):n.a.errorMsg(e.data)})},onDel:function(t){var e=this;this.$set(t,"loading",!0),Object(o.b)("/haoban-app-customer-web/customer/del-member-setting",{memberManageSettingId:t.memberManageSettingId}).then(function(a){if(0!=(a.data||{}).code)return n.a.errorMsg(a.data),void e.$set(t,"loading",!1);e.$message.success("删除成功"),e.getTableData()}).catch(function(){return e.$set(t,"loading",!1)})}}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"show-set"},[a("div",{staticClass:"show-set-header"},[a("el-alert",{staticClass:"show-set-tips",attrs:{type:"info","show-icon":"",closable:!1}},[a("div",{attrs:{slot:"title"},slot:"title"},[a("div",{staticClass:"tips-text"},[t._v("1. 同一商户下,各子管理员新增的特殊策略的门店类型不能重复;")]),t._v(" "),a("div",{staticClass:"tips-text"},[t._v("2. 子管理员设置的门店类型和默认重复时,按子管理员设置的逻辑生效;")])])]),t._v(" "),t.$getButtonLimit(t.$buttonCode.addShowRules)?a("el-button",{attrs:{"limit-code":t.$buttonCode.addShowRules,type:"primary"},on:{click:function(e){return t.$router.push("/addMemberShowRules")}}},[t._v("新增特殊策略")]):t._e()],1),t._v(" "),a("el-table",{attrs:{data:t.tableData}},[a("el-table-column",{attrs:{label:"策略名称",prop:"strategyName","min-width":"185px","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row;return[0==e.$index?a("span",{staticClass:"default-store"},[t._v("默认")]):t._e(),t._v("\n "+t._s(o.strategyName)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"策略类型",prop:"storeType",formatter:function(t,e,a){return"-999"==a?"通用策略":"特殊策略"},"min-width":"110px"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店类型",prop:"storeType",formatter:t.formatStoreType,"min-width":"110px"}}),t._v(" "),a("el-table-column",{attrs:{label:"设置内容","min-width":"310px"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row,n=e.$index;return[o.isOverflow?a("el-tooltip",{attrs:{placement:"top"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v(t._s(t.formatSetting(o)))]),t._v(" "),a("div",{staticClass:"text-overflow"},[t._v(t._s(t.formatSetting(o)))])]):a("div",{ref:"setContent"+n,staticClass:"text-overflow"},[t._v(t._s(t.formatSetting(o)))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建人",prop:"creatorName","min-width":"120px","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"编辑人",prop:"modifierName","min-width":"120px","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{label:"最近编辑时间",prop:"updateTime","min-width":"110px"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row;return a("div",{staticStyle:{"line-height":"normal"}},[a("p",[t._v(t._s(t._f("timeStampToYmd")(o.updateTime)))]),t._v(" "),a("p",[t._v(t._s(t._f("timeStampToHms")(o.updateTime)))])])}}])}),t._v(" "),t.$getButtonLimit(t.$buttonCode.editShowRules)||t.$getButtonLimit(t.$buttonCode.delShowRules)?a("el-table-column",{attrs:{label:"操作","min-width":"120px"},scopedSlots:t._u([{key:"default",fn:function(e){var o=e.row,n=e.$index;return[t.$getButtonLimit(t.$buttonCode.editShowRules)?a("el-button",{attrs:{"limit-code":t.$buttonCode.editShowRules,type:"text"},on:{click:function(e){return t.$router.push("/editMemberShowRules?id="+o.memberManageSettingId)}}},[t._v("编辑")]):t._e(),t._v(" "),n>0&&t.$getButtonLimit(t.$buttonCode.delShowRules)?a("dm-delete",{attrs:{tips:"是否删除?"},on:{confirm:function(e){return t.onDel(o)}}},[a("el-button",{attrs:{loading:o.loading,"limit-code":t.$buttonCode.delShowRules,type:"text"}},[t._v("删除")])],1):t._e()]}}])}):t._e()],1)],1)},staticRenderFns:[]};var i=a("VU/8")(l,r,!1,function(t){a("0zzn")},"data-v-46fb63d1",null);e.default=i.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([126],{"/wAz":function(e,t){},0:function(e,t,a){a("j1ja"),e.exports=a("NHnr")},"0xDb":function(e,t,a){"use strict";t.a=function(){var e=new Date((new Date).getTime()-864e5),t=e.getTime()-7776e6,a=e.getFullYear(),o=e.getMonth()+1,n=e.getDate()<10?"0"+e.getDate():e.getDate(),r=o<10?"0"+o:o,s=new Date(t),i=s.getFullYear(),p=s.getMonth()+1,d=s.getDate()<10?"0"+s.getDate():s.getDate();return[i+"-"+(p<10?"0"+p:p)+"-"+d,a+"-"+r+"-"+n]};var o=a("woOf"),n=(a.n(o),a("fZjL")),r=(a.n(n),a("pFYg"));a.n(r),new Date},"4qCZ":function(e,t){},"5tgt":function(e,t,a){e.exports=function(e,t){return function(o){a("Opzk")("./"+e+"/"+t+".vue").then(function(e){o(e)})}}},"Ch4/":function(e,t,a){"use strict";var o=a("l6IN"),n=(a.n(o),JSON.parse(sessionStorage.getItem("userInfos")||"{}")),r="string"==typeof n.gicHost?n.gicHost.replace(/\/$/,""):"";location.origin.indexOf("localhost")>=0&&(r=location.origin),t.a={errorMsg:function(e){if(1!=e.errorCode){if(4==e.errorCode)return window.location.href=r+"/gic-web/#/login?ishb=1",!1;if(10==e.errorCode)return window.location.href=r+"/haoban-3/#/index",!1;o.Message.error({duration:2e3,message:e.message||"接口异常"})}}}},FHfR:function(e,t){e.exports={multipleAssign:"multipleAssign",assign:"assign",willSyncTag:"willSyncTag",breakSyncTag:"breakSyncTag",addShowRules:"addShowRules",editShowRules:"editShowRules",delShowRules:"delShowRules",groupExpire:"groupExpire",syncGroup:"syncGroup",addGroupTemp:"addGroupTemp",editGroupTemp:"editGroupTemp",setStoreArea:"setStoreArea",delGroupTemp:"delGroupTemp",searchSetSave:"searchSetSave",saveTrafficTaskSet:"saveTrafficTaskSet",addCard:"addCard",editCard:"editCard",delCard:"delCard",sendCardLog:"sendCardLog",getCardLog:"getCardLog",saveEvaluateSet:"saveEvaluateSet",addMaterialGroup:"addMaterialGroup",editMaterialGroup:"editMaterialGroup",delMaterialGroup:"delMaterialGroup",multipleDelAssets:"multipleDelAssets",multipleMoveAssets:"multipleMoveAssets",addText:"addText",editText:"editText",delText:"delText",textAssignStore:"textAssignStore",addImage:"addImage",editImage:"editImage",delImage:"delImage",imageAssignStore:"imageAssignStore",addWeb:"addWeb",editWeb:"editWeb",delWeb:"delWeb",webAssignStore:"webAssignStore",addVideo:"addVideo",editVideo:"editVideo",delVideo:"delVideo",videoAssignStore:"videoAssignStore",addFile:"addFile",editFile:"editFile",delFile:"delFile",fileAssignStore:"fileAssignStore",addApps:"addApps",editApps:"editApps",delApps:"delApps",appsAssignStore:"appsAssignStore",saveGoodsSet:"saveGoodsSet",exportActiveUser:"exportActiveUser",exportLoginUser:"exportLoginUser",exportAreaLoginUser:"exportAreaLoginUser",multipleDelReport:"multipleDelReport",exportReport:"exportReport",reportDetail:"reportDetail",multipleDelReportDetail:"multipleDelReportDetail",delReportDetail:"delReportDetail",showReportDetail:"showReportDetail",multipleExportReport:"multipleExportReport",saveTaskSet:"saveTaskSet",settingSystemReport:"settingSystemReport",saveSystemReport:"saveSystemReport",addCustomReport:"addCustomReport",copyCustomReport:"copyCustomReport",editCustomReport:"editCustomReport",delCustomReport:"delCustomReport",monthTarget:"monthTarget",dayTarget:"dayTarget",exportMonthTask:"exportMonthTask",checkMonthTask:"checkMonthTask",multipleDelTask:"multipleDelTask",delTask:"delTask",exportStoreList:"exportStoreList",checkStoreList:"checkStoreList",exportStoreDetail:"exportStoreDetail",checkStoreDetail:"checkStoreDetail",exportStoreDetailPop:"exportStoreDetailPop",previewStoreDetail:"previewStoreDetail",exportGrTaskList:"exportGrTaskList",checkGrTaskList:"checkGrTaskList",exportTaskRecord:"exportTaskRecord",multipleDelTaskRecord:"multipleDelTaskRecord",checkTaskRecord:"checkTaskRecord",exportTaskDetail:"exportTaskDetail",multipleDelTaskDetail:"multipleDelTaskDetail",delTaskDetail:"delTaskDetail",resolveTaskDetail:"resolveTaskDetail",previewTaskDetail:"previewTaskDetail",exportTaskView:"exportTaskView",multipleDelTaskView:"multipleDelTaskView",checkTaskView:"checkTaskView",exportTaskViewDetail:"exportTaskViewDetail",multipleDelTaskViewDetail:"multipleDelTaskViewDetail",checkTaskDetail:"checkTaskDetail",addSalutatory:"addSalutatory",editSalutatory:"editSalutatory",delSalutatory:"delSalutatory",multipleResolve:"multipleResolve",singleResolve:"singleResolve",singleReject:"singleReject",saveApplySetting:"saveApplySetting",refreshStoreMember:"refreshStoreMember",exportContact:"exportContact",checkContactDetail:"checkContactDetail",checkContactMemberDetail:"checkContactMemberDetail",checkLog:"checkLog",saveGuideSetting:"saveGuideSetting",saveAppsVisible:"saveAppsVisible",refreshStoreInfo:"refreshStoreInfo",saveMemberSecret:"saveMemberSecret",addMemberAppsSecret:"addMemberAppsSecret",editMemberAppsSecret:"editMemberAppsSecret",delMemberAppsSecret:"delMemberAppsSecret",addAppsSecret:"addAppsSecret",getAppsSecret:"getAppsSecret",editAppsSecret:"editAppsSecret",delAppsSecret:"delAppsSecret",checkAuth:"checkAuth",bindStoreList:"bindStoreList",refreshStore:"refreshStore",refreshAdminList:"refreshAdminList",addActCode:"addActCode",batchActCode:"batchActCode",batchGroup:"batchGroup",dataActCode:"dataActCode",infoActCode:"infoActCode",editActCode:"editActCode",downActCode:"downActCode",delActCode:"delActCode",recordCode:"recordCode",addLink:"addLink",dataLink:"dataLink",infoLink:"infoLink",editLink:"editLink",downLink:"downLink",recordLink:"recordLink"}},MtkU:function(e,t){},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),r=(a("j1ja"),a("hKoQ")),s=a.n(r),i=a("mvHQ"),p=a.n(i),d=a("//Fk"),c=a.n(d),l=a("lRwf"),u=a.n(l),m=a("Ch4/"),g=a("P9l9"),h=a("Gu7T"),f=a.n(h),v=a("pRNm"),w=a.n(v),S=a("5tgt"),C=a.n(S),D=[{path:"/staffActCode",name:"员工活码",component:C()("salesleads/actCodeManage/staffActCode","index"),meta:{componentName:"staffActCode",fromPath:["/actCodeEdit","/actCodeBatch","/actCodeDetail","/actCodeDetails"]}},{path:"/actCodeRecord",name:"查看记录",component:C()("salesleads/actCodeManage/staffActCode","actCodeRecord")},{path:"/actCodeDetail",name:"活码详情-数据",component:C()("salesleads/actCodeManage/staffActCode","actCodeDetail")},{path:"/actCodeDetails",name:"活码详情-详情",component:C()("salesleads/actCodeManage/staffActCode","actCodeDetail"),meta:{componentName:"actCodeDetail",fromPath:["/actCodeRecord"]}},{path:"/actCodeAdd",name:"新增活码",component:C()("salesleads/actCodeManage/staffActCode/views","setActCode")},{path:"/actCodeEdit",name:"编辑活码",component:C()("salesleads/actCodeManage/staffActCode/views","setActCode")},{path:"/actCodeBatch",name:"批量创建活码",component:C()("salesleads/actCodeManage/staffActCode/views","batchAddCode")}],k=[{path:"/attractFlowLink",name:"引流链接",component:C()("salesleads/actCodeManage/attractFlowLink","index"),meta:{componentName:"attractFlowLink",fromPath:["/attractFlowLinkEdit/:id","/attractFlowLinkInfo/:id","/attractFlowLinkInfos/:id"]}},{path:"/attractFlowLinkAdd",name:"新增引流链接",meta:{type:"add"},component:C()("salesleads/actCodeManage/attractFlowLink","detail")},{path:"/attractFlowLinkEdit/:id",name:"编辑引流链接",meta:{type:"edit"},component:C()("salesleads/actCodeManage/attractFlowLink","detail")},{path:"/attractFlowLinkInfo/:id",name:"详情引流链接",meta:{type:"info"},component:C()("salesleads/actCodeManage/attractFlowLink","info")},{path:"/attractFlowLinkInfos/:id",name:"详情引流链接",meta:{type:"info"},component:C()("salesleads/actCodeManage/attractFlowLink","info")},{path:"/attLinkRecord",name:"查看记录",component:C()("salesleads/actCodeManage/staffActCode","actCodeRecord")},{path:"/ladingPageList",name:"落地页列表",component:C()("salesleads/actCodeManage/attractFlowLink/landingPage","list"),meta:{componentName:"ladingPageList",fromPath:["/ladingPageEdit/:id"]}},{path:"/ladingPageAdd",name:"新建落地页",meta:{type:"add"},component:C()("salesleads/actCodeManage/attractFlowLink/landingPage","detail")},{path:"/ladingPageEdit/:id",name:"编辑落地页",meta:{type:"edit"},component:C()("salesleads/actCodeManage/attractFlowLink/landingPage","detail")},{path:"/operationLog",name:"操作日志",component:C()("salesleads/actCodeManage","operateLog")}],b=[].concat(f()(D),f()(k));u.a.use(w.a);var x=function(e){a.e(1).then(a.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var y=[{path:"/loginMore",name:"登录",component:C()("login","login-more")},{path:"/refresh",name:"刷新",component:C()("errorPage","refresh")},{path:"/",redirect:"/index",component:function(){return Promise.all([a.e(0),a.e(6)]).then(a.bind(null,"xW93"))},children:[{path:"/contactsList",name:"通讯录",component:C()("business","contacts")},{path:"/syncLog",name:"通讯录日志",component:C()("business","syncLog")},{path:"/authMerchant",name:"授权商户",component:C()("business","authMerchant")},{path:"/authMerchantForm",name:"新建授权商户",component:C()("business","authMerchant-form")},{path:"/merchantStoreList",name:"绑定门店列表",component:C()("business","storeList")},{path:"/enterpriseSet",name:"企业信息",component:C()("enterprise","enterpriseSet")},{path:"/adminList",name:"企业信息",component:C()("enterprise","adminList")},{path:"/material",name:"素材库",component:C()("enterprise","material")},{path:"/salutatory",name:"欢迎语",component:C()("enterprise","salutatoryIndex"),meta:{componentName:"salutatoryIndex",fromPath:["/editSalutatorySet"]}},{path:"/salutatorySet",name:"新建欢迎语",component:C()("enterprise","salutatorySet")},{path:"/editSalutatorySet",name:"编辑欢迎语",component:C()("enterprise","salutatorySet")},{path:"/guide-setting",name:"导购设置",component:C()("enterprise","guide-setting")},{path:"/setting",name:"操作设置",component:C()("setting","index")},{path:"/unreview",name:"未审核",component:C()("reviewCenter","unreview")},{path:"/reviewed",name:"已审核",component:C()("reviewCenter","reviewed")},{path:"/reviewSet",name:"审核设置",component:C()("reviewCenter","reviewSet")},{path:"/taskRecord",name:"话务任务记录",component:C()("salesleads/trafficTask","taskRecord"),meta:{componentName:"TaskRecord",fromPath:["/taskDetail"]}},{path:"/taskView",name:"话务任务记录",component:C()("salesleads/trafficTask","taskView")},{path:"/taskDetail",name:"话务任务详情",component:C()("salesleads/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:C()("salesleads/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:C()("salesleads/trafficTask","trafficTaskSet")},{path:"/grStoreList",name:"门店视图",component:C()("salesleads/groupSend","grStoreList"),meta:{componentName:"grStoreList",fromPath:["/grStoreDetail/:id"]}},{path:"/grStoreDetail/:id",name:"门店视图",component:C()("salesleads/groupSend","grStoreDetail")},{path:"/grTaskList",name:"计划视图",component:C()("salesleads/groupSend","grTaskList")},{path:"/enterpriseUseData",name:"好办使用详情",component:C()("enterpriseData","enterpriseUseData")},{path:"/activeDetail",name:"激活人员明细",component:C()("enterpriseData","activeDetail")},{path:"/loginDetail",name:"登录人员明细",component:C()("enterpriseData","loginDetail")},{path:"/areaLoginDetail",name:"区域登录人员明细",component:C()("enterpriseData","areaLoginDetail")},{path:"/overStoreList",name:"溢出门店",component:C()("overstore","overStoreList")},{path:"/memberShowSet",name:"客户展示设置",component:C()("apps/customerApp","memberShowSet")},{path:"/addMemberShowRules",name:"新增特殊策略",component:C()("apps/customerApp","add-member-show-rules")},{path:"/editMemberShowRules",name:"编辑特殊策略",component:C()("apps/customerApp","add-member-show-rules")},{path:"/memberGroupSet",name:"客户分组设置",component:C()("apps/customerApp","memberGroupSet"),meta:{componentName:"memberGroupSet",fromPath:["/addGroupTemplate","/editGroupTemplate","/storeRangeSet"]}},{path:"/memberSearchSet",name:"客户搜索设置",component:C()("apps/customerApp","memberSearchSet")},{path:"/memberTagSet",name:"客户标签设置",component:C()("apps/customerApp","memberTagSet")},{path:"/syncHistory",name:"同步历史",component:C()("apps/customerApp","syncHistory")},{path:"/myCustomerList",name:"我的客户列表",component:C()("apps/customerApp","myCustomerList")},{path:"/addGroupTemplate",name:"添加模板",component:C()("apps/customerApp","addGroupTemplate")},{path:"/editGroupTemplate",name:"编辑模板",component:C()("apps/customerApp","addGroupTemplate")},{path:"/storeRangeSet",name:"门店范围设置",component:C()("apps/customerApp","storeRangeSet")},{path:"/dailyRecord",name:"云日报记录",component:C()("apps/cloudDaily","dailyRecord")},{path:"/dailyExport",name:"云日报导出",component:C()("apps/cloudDaily","dailyExport")},{path:"/dailyDetail",name:"日报详情",component:C()("apps/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:C()("apps/cloudDaily","taskAssign")},{path:"/daily-setting",name:"系统报表",component:C()("apps/cloudDaily","daily-setting")},{path:"/customReportSet",name:"新增自定义报表设置",component:C()("apps/cloudDaily","customReportSet")},{path:"/customReportCopy",name:"复制自定义报表设置",component:C()("apps/cloudDaily","customReportSet")},{path:"/customReportEdit",name:"编辑自定义报表设置",component:C()("apps/cloudDaily","customReportSet")},{path:"/monthList",name:"月指标列表",component:C()("apps/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:C()("apps/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:C()("apps/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:C()("apps/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:C()("apps/quota","monthTask"),meta:{componentName:"monthTask",fromPath:["/monthTaskDetail"]}},{path:"/monthTaskDetail",name:"月指标任务详情",component:C()("apps/quota","monthTaskDetail")},{path:"/cardList",name:"卡券列表",component:C()("apps/card","cardList")},{path:"/cardRecord",name:"卡券记录",component:C()("apps/card","cardRecord")},{path:"/newCard",name:"新建卡券",component:C()("apps/card","newCard")},{path:"/editCard",name:"编辑卡券",component:C()("apps/card","newCard")},{path:"/cardTemplate",name:"卡券模板",component:C()("apps/protectCard","cardTemplate")},{path:"/newCardTemp",name:"新建模板",component:C()("apps/protectCard","newCardTemp")},{path:"/cardStrategy",name:"卡券策略",component:C()("apps/protectCard","cardStrategy")},{path:"/newCardStrategy",name:"新建策略",component:C()("apps/protectCard","newCardStrategy")},{path:"/cardPut",name:"内购券投放",component:C()("apps/protectCard","cardPut")},{path:"/newCardPut",name:"新建补发",component:C()("apps/protectCard","newCardPut")},{path:"/cardPutRecord",name:"投放记录",component:C()("apps/protectCard","cardPutRecord")},{path:"/cardGetRecord",name:"领取记录",component:C()("apps/protectCard","cardGetRecord")},{path:"/goodsShowSet",name:"商品展示设置",component:C()("apps/shoppingCenter","goodsShowSet")},{path:"/evaluate-set",name:"订单评价",component:C()("apps/order-evaluate","evaluate-set")}].concat(f()(b),[{path:"/403",name:"无权访问",component:x},{path:"/404",name:"error404",component:x},{path:"/500",name:"error500",component:x}])},{path:"/gic-error",name:"gic跳转失败页",component:C()("errorPage","gic-error")}],A=new w.a({routes:y,scrollBehavior:function(){return{y:0}}}),T=["/login","/loginMore"],M="",R="";A.beforeEach(function(e,t,a){M=e.path,R=t.path,sessionStorage.getItem("hbReload")?sessionStorage.removeItem("hbReload"):T.includes(R)&&(sessionStorage.setItem("hbReload",1),setTimeout(function(){location.reload()},50)),a()});var L={name:"App",data:function(){return{loading:!0,menuList:[],pageRight:[]}},beforeDestroy:function(){document.removeEventListener("visibilitychange",this.checkUser)},created:function(){var e=this;document.addEventListener("visibilitychange",this.checkUser),this.getUserInfo().then(function(){T.includes(M)||T.includes(R)?e.loading=!1:c.a.all([e.getRight(),e.getMenuList()]).finally(function(){setTimeout(function(){return e.loading=!1},200)})})},methods:{checkUser:function(){var e=this;if(!document.hidden){var t=JSON.parse(sessionStorage.getItem("userInfos"));this.getUserInfo().then(function(){JSON.parse(sessionStorage.getItem("userInfos")).clerkId!=t.clerkId&&e.$router.push("/refresh")})}},getUserInfo:function(){return Object(g.g)("/haoban-manage3-web/get-login-info",{}).then(function(e){var t=e.data||{},a=t.errorCode,o=t.result;1==a?(sessionStorage.setItem("userInfos",p()(o)),o.enterpriseId&&(u.a.axios.defaults.headers.common.enterpriseId=o.enterpriseId)):m.a.errorMsg(e.data)})},getMenuList:function(){var e=this;return Object(g.b)("/haoban-manage3-web/get-haoban-menu",{}).then(function(t){var a=t.data||[],o=a.errorCode,n=a.result;1==o?Array.isArray(n)&&(e.menuList=n,e.setIndexRoute(n)):m.a.errorMsg(t.data)})},getRight:function(){var e=this;return Object(g.b)("/haoban-manage3-web/get-haoban-right",{}).then(function(t){var a=t.data||{},o=a.errorCode,n=a.result;1==o?(e.pageRight=e.getPageRight(n.menu),e.checkButtonRight(n.button),e.checkPageRight(e.pageRight,function(e){return function(e,t){e&&e.menuCode&&console.log(t.filter(function(t){return t.parentCode==e.menuCode}))}(e,n.button)})):m.a.errorMsg(t.data)})},getPageRight:function(e){return e.filter(function(e){return"string"==typeof e.menuUrl&&e.menuUrl.length>0}).map(function(e){for(var t=e.menuUrl,a=/(:.*)(\/?)/;a.test(t);)t=t.replace(a,"([\\d\\w]+[\\-]*[\\d\\w]*)$2");for(a=/(\/\*)(\/?)/;a.test(t);)t=t.replace(a,"([\\d\\w]+[\\-]*[\\d\\w]*)$2");return e.regexp=new RegExp("^/"+t+"$"),e})},checkButtonRight:function(e){u.a.prototype.$getButtonLimit=function(t){return 1==(e.find(function(e){return e.menuCode==t})||{}).hasRight}},checkPageRight:function(e,t){var a=e.find(function(e){return e.regexp.test(M)});if(a&&0==a.hasRight){var o=sessionStorage.getItem("hbReloadPath")||"";a.menuUrl==o.substr(1)?(this.$router.push("/index"),sessionStorage.removeItem("hbReloadPath")):this.$router.push({path:"/403"})}t(a),A.beforeEach(function(a,o,n){var r=e.find(function(e){return e.regexp.test(a.path)});if(t(r),r&&0==r.hasRight)return n({path:"/403"});n()})},setIndexRoute:function(e){var t="",a=[{path:"*",redirect:"/404"}];e.some(function(e){return e.hasRight&&e.isShow&&Array.isArray(e.childList)&&e.childList.some(function(e){return e.hasRight&&e.isShow&&Array.isArray(e.childList)&&e.childList.some(function(e){return e.hasRight&&e.isShow&&(t=e.menuUrl),e.hasRight&&e.isShow}),t}),t}),t&&a.push({path:"/index",redirect:"/"+t}),this.$router.addRoutes(a)}}},E={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:this.loading,expression:"loading"}],staticStyle:{"min-height":"100vh"},attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[this.loading?this._e():t("router-view",{attrs:{"menu-list":this.menuList,"page-right":this.pageRight}})],1)],1)},staticRenderFns:[]};var I,P=a("VU/8")(L,E,!1,function(e){a("MtkU")},null,null).exports,F=a("bOdI"),G=a.n(F),V=a("SJI6"),j=a.n(V),q=a("0xDb");u.a.use(j.a);var N=new j.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px",addDepartment:[],editDepartment:[],delDepartment:[],wxEnterpriseType:0,salesDate:Object(q.a)()},mutations:(I={},G()(I,"login",function(e,t){sessionStorage.token=t,e.token=t}),G()(I,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),G()(I,"title",function(e,t){e.title=t}),G()(I,"show",function(e,t){e.show=t}),G()(I,"saveAdd",function(e,t){e.addDepartment.push(t)}),G()(I,"saveEdit",function(e,t){e.editDepartment.push(t)}),G()(I,"saveDel",function(e,t){e.delDepartment.push(t)}),G()(I,"clearAdd",function(e){e.addDepartment=[]}),G()(I,"clearEdit",function(e){e.editDepartment=[]}),G()(I,"clearData",function(e){e.addDepartment=[],e.editDepartment=[],e.delDepartment=[]}),G()(I,"changeWxEntertype",function(e,t){e.wxEnterpriseType=t}),G()(I,"changeSalesDate",function(e,t){e.salesDate=t}),I),actions:{saveAddInfo:function(e,t){e.commit("saveAdd",t)},saveEditInfo:function(e,t){e.commit("saveEdit",t)},saveDelInfo:function(e,t){e.commit("saveDel",t)},clearAddData:function(e,t){e.commit("clearAdd")},clearEditData:function(e,t){e.commit("clearEdit")},clearTreeData:function(e,t){e.commit("clearData")},changeWxEntertypeData:function(e,t){e.commit("changeWxEntertype",t)},changeSales:function(e,t){e.commit("changeSalesDate",t)}}}),U={codeList:"https://www.yuque.com/exnmlu/oo64hg/thm172#WRdju",codeGl:"https://www.yuque.com/exnmlu/oo64hg/thm172#ADEzt",codeCkmx:"https://www.yuque.com/exnmlu/oo64hg/thm172#mDlza",linkList:"https://www.yuque.com/exnmlu/oo64hg/lggf7q#WRdju",linkGl:"https://www.yuque.com/exnmlu/oo64hg/lggf7q#ADEzt",linkCkmx:"https://www.yuque.com/exnmlu/oo64hg/lggf7q#mDlza"},H={clipboard:{bind:function(e,t,a,o){e.val=t.value,e.handler=function(){var t=e.val,a=document.createElement("input");e.appendChild(a),a.value=t,a.select(),document.execCommand("Copy"),u.a.prototype.$message({type:"success",message:"复制成功"}),a.parentNode.removeChild(a)},e.addEventListener("click",e.handler)},update:function(e,t,a,o){e.val=t.value},unbind:function(e){e.removeEventListener("click",e.handler)}},jumpLink:{bind:function(e,t){var a=t.arg;e.handler=function(){window.open(U[a])},e.addEventListener("click",e.handler)},unbind:function(e){e.removeEventListener("click",e.handler)}}},O=(a("/wAz"),a("pc4g"),a("4qCZ"),a("xtVA"),a("Q0Ca")),Y={props:{size:{type:[Number,String],default:20},iconname:{type:String,default:""}},computed:{ClassStyle:function(){return"width:"+parseInt(this.size)+";height:"+parseInt(this.size)+";"},IconName:function(){return"#"+this.iconname}}},z={render:function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{staticClass:"icon svg-icon svg-iconfont-hb3",style:this.ClassStyle,attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":this.IconName}})])},staticRenderFns:[]};var W=a("VU/8")(Y,z,!1,function(e){a("mF/g")},"data-v-aa28dd00",null).exports,$=a("TUaa"),J=a.n($),B=a("tyqE"),X=a.n(B),Q=a("pRVe"),K=a.n(Q),Z=a("XsK6"),_=a.n(Z),ee=a("QRL9"),te=a.n(ee),ae=a("eMjc"),oe=a.n(ae),ne=a("l9mu"),re=a.n(ne),se={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;oe()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var a=t.width,o=t.height,n=a/592.28*841.89,r=o,s=0,i=592.28/a*o,p=t.toDataURL("image/jpeg",1),d=new re.a("","pt","a4");if(r<n)d.addImage(p,"JPEG",0,0,595.28,i);else for(;r>0;)d.addImage(p,"JPEG",0,s,595.28,i),s-=841.89,(r-=n)>0&&d.addPage();d.save(e+".pdf")})}}},ie=a("/IwO"),pe=a.n(ie),de=a("FHfR"),ce=a.n(de),le={name:"HbFormBottom",inject:["layoutVm"],props:{horizontal:{type:String,default:"center"}},data:function(){return{width:"0px"}},mounted:function(){this.width=this.$parent.$el.offsetWidth+"px",this.layoutVm.pagePaddingBottom=this.$el.offsetHeight+"px"},beforeDestroy:function(){this.layoutVm.pagePaddingBottom=null}},ue={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"hb-form-bottom",style:{width:this.width,"justify-content":"left"==this.horizontal?"flex-start":"right"==this.horizontal?"flex-end":"center"}},[this._t("default")],2)},staticRenderFns:[]};var me=a("VU/8")(le,ue,!1,function(e){a("dKGT")},"data-v-87d7ea0c",null).exports;s.a.polyfill(),u.a.component("svg-icon",W),n()(H).map(function(e){return u.a.directive(e,H[e])}),u.a.use(pe.a),pe.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),window.ELEMENT.Dialog.props.closeOnClickModal.default=!1,u.a.use(se),u.a.use(_.a),u.a.use(te.a),u.a.use(K.a),u.a.use(X.a),u.a.use(J.a),u.a.component("hb-form-bottom",me),u.a.config.productionTip=!1,n()(O.a).forEach(function(e){u.a.filter(e,O.a[e])}),A.beforeEach(function(e,t,a){window.axiosPromiseArr&&axiosPromiseArr.forEach(function(e,t){e.cancel(),delete axiosPromiseArr[t]});var o=window.location.origin;o.indexOf("localhost"),a()}),u.a.prototype.$buttonCode=ce.a,new u.a({el:"#app",router:A,store:N,components:{App:P},template:"<App/>"})},OMN4:function(e,t){e.exports=axios},Opzk:function(e,t,a){var o={"./apps/badEvaluate/badEvaluateDetail.vue":["Yz8m",0,77],"./apps/badEvaluate/badEvaluateRecord.vue":["DCIc",0,97],"./apps/badEvaluate/badEvaluateSet.vue":["moBL",0,88],"./apps/badEvaluate/index.vue":["AG22",0,40],"./apps/card/cardList.vue":["X5LE",0,101],"./apps/card/cardRecord.vue":["xDJN",0,29],"./apps/card/index.vue":["nV1L",0,67],"./apps/card/newCard.vue":["7/Zw",0,22],"./apps/cloudDaily/customReport.vue":["ak3k",0,64],"./apps/cloudDaily/customReportSet.vue":["LTPC",0,8],"./apps/cloudDaily/daily-setting.vue":["RnLd",0,7],"./apps/cloudDaily/dailyDetail.vue":["JwJ7",0,30],"./apps/cloudDaily/dailyExport.vue":["H3Dc",0,38],"./apps/cloudDaily/dailyRecord.vue":["IuWw",0,65],"./apps/cloudDaily/index.vue":["4QyY",0,89],"./apps/cloudDaily/systemReport.vue":["J/6z",0,9],"./apps/cloudDaily/taskAssign.vue":["Hb/M",0,53],"./apps/cloudDaily/template/block.vue":["O3gZ",87],"./apps/cloudDaily/template/date-range.vue":["2WGr",80],"./apps/cloudDaily/template/image.vue":["8dpP",55],"./apps/cloudDaily/template/input.vue":["zHtI",95],"./apps/cloudDaily/template/select.vue":["rYZf",83],"./apps/customerApp/add-member-show-rules.vue":["SUcx",58],"./apps/customerApp/addGroupTemplate.vue":["vIlm",0,41],"./apps/customerApp/index.vue":["QHTa",0,62],"./apps/customerApp/memberDetailSet.vue":["F1Rz",0,54],"./apps/customerApp/memberGroupList.vue":["scn4",0,68],"./apps/customerApp/memberGroupSet.vue":["JuNN",0,18],"./apps/customerApp/memberGroupSetList.vue":["8fbE",0,113],"./apps/customerApp/memberSearchSet.vue":["Z3Aa",0,122],"./apps/customerApp/memberShowSet.vue":["odfG",98],"./apps/customerApp/memberTagSet.vue":["HmLC",51],"./apps/customerApp/myCustomerList.vue":["9CCr",0,11],"./apps/customerApp/storeRangeSet.vue":["z3jf",0,85],"./apps/customerApp/syncHistory.vue":["T435",52],"./apps/index.vue":["K1Vb",0,99],"./apps/order-evaluate/bad-evaluate-set.vue":["z2RJ",0,76],"./apps/order-evaluate/evaluate-set.vue":["RvMj",93],"./apps/order-evaluate/index.vue":["NUSj",0,61],"./apps/protectCard/cardGetRecord.vue":["5GE8",0,117],"./apps/protectCard/cardPut.vue":["cD4x",0,75],"./apps/protectCard/cardPutRecord.vue":["dhLd",0,104],"./apps/protectCard/cardStrategy.vue":["rUvh",0,45],"./apps/protectCard/cardTemplate.vue":["c7iB",0,102],"./apps/protectCard/index.vue":["aWmL",0,121],"./apps/protectCard/newCardPut.vue":["9db3",0,15],"./apps/protectCard/newCardStrategy.vue":["8Rwt",0,16],"./apps/protectCard/newCardTemp.vue":["tF0P",0,79],"./apps/quota/companyDaySet.vue":["NiGE",0,91],"./apps/quota/index.vue":["qSX4",0,94],"./apps/quota/monthList.vue":["fAFA",0,96],"./apps/quota/monthTask.vue":["NpHY",0,66],"./apps/quota/monthTaskDetail.vue":["YKf6",0,78],"./apps/quota/salerMonthDetail.vue":["+qr5",0,120],"./apps/quota/storeMonthTask.vue":["qWC+",0,69],"./apps/shoppingCenter/goodsShowSet.vue":["XrL3",0,92],"./apps/shoppingCenter/index.vue":["FIFf",0,109],"./business/authMerchant-dailog.vue":["/cEq",0,33],"./business/authMerchant-form.vue":["2xxS",0,10],"./business/authMerchant.vue":["mjMK",123],"./business/contacts.vue":["/W60",0,4],"./business/index.vue":["jPcV",0,100],"./business/not-manager.vue":["9F6+",0],"./business/orgStructSet.vue":["OI5V",0,3],"./business/recycle.vue":["K8Yn",0,74],"./business/storeList.vue":["QZxC",0,111],"./business/syncLog.vue":["20P3",0,46],"./enterprise/adminList.vue":["zYBJ",0,119],"./enterprise/app-visible-setting.vue":["w5vQ",72],"./enterprise/enterpriseSet.vue":["x5Fx",0,21],"./enterprise/guide-auth-setting.vue":["i0rV",116],"./enterprise/guide-setting.vue":["tPY2",24],"./enterprise/index.vue":["m9dW",0,107],"./enterprise/material.vue":["q+Sm",0,2],"./enterprise/relationDialog.vue":["+hGG",0],"./enterprise/salutatory.vue":["xWf4",0,73],"./enterprise/salutatoryIndex.vue":["nExe",0,27],"./enterprise/salutatorySet.vue":["vqCN",0,19],"./enterpriseData/activeDetail.vue":["h9Ca",0,32],"./enterpriseData/areaLoginDetail.vue":["TLd+",0,26],"./enterpriseData/enterpriseUseData.vue":["i4c9",0,5],"./enterpriseData/index.vue":["CTf4",0,90],"./enterpriseData/loginDetail.vue":["kX6v",0,12],"./errorPage/403.vue":["6XGN",43],"./errorPage/404.vue":["AejC",42],"./errorPage/500.vue":["FskK",35],"./errorPage/gic-error.vue":["Q3j/",70],"./errorPage/index.vue":["ODjX",1],"./errorPage/refresh.vue":["0/JE",124],"./index/index.vue":["JXTs",0,37],"./login/index.vue":["T+/8",0,34],"./login/login-more.vue":["AVFt",0,50],"./overstore/index.vue":["Y55K",0,118],"./overstore/overStoreList.vue":["vuAV",0,57],"./reviewCenter/index.vue":["+lem",110],"./reviewCenter/reviewSet.vue":["6j9f",0,103],"./reviewCenter/reviewed.vue":["CLYF",0,31],"./reviewCenter/unreview.vue":["xCEU",0,17],"./salesleads/actCodeManage/attractFlowLink/detail.vue":["ATNk",0,47],"./salesleads/actCodeManage/attractFlowLink/index.vue":["7m4r",0,105],"./salesleads/actCodeManage/attractFlowLink/info.vue":["phd8",0,23],"./salesleads/actCodeManage/attractFlowLink/landingPage/cardView.vue":["4KYo",48],"./salesleads/actCodeManage/attractFlowLink/landingPage/detail.vue":["t/sc",0,112],"./salesleads/actCodeManage/attractFlowLink/landingPage/list.vue":["fjEt",0,14],"./salesleads/actCodeManage/attractFlowLink/landingPage/relationDialog.vue":["GdW8",0,106],"./salesleads/actCodeManage/attractFlowLink/newAddChart.vue":["tqu3",0,114],"./salesleads/actCodeManage/components/select-clerk/index.vue":["znzC",0],"./salesleads/actCodeManage/components/select-clerk/select-clerk.vue":["1Am8",0],"./salesleads/actCodeManage/components/select-clerk/selected-clerk-item.vue":["jMsE",0],"./salesleads/actCodeManage/operateLog.vue":["EzCA",0,86],"./salesleads/actCodeManage/staffActCode/actCodeDetail.vue":["DWsn",0,28],"./salesleads/actCodeManage/staffActCode/actCodeDetailStatistics.vue":["YQXN",0,84],"./salesleads/actCodeManage/staffActCode/actCodeRecord.vue":["jx8Q",0,36],"./salesleads/actCodeManage/staffActCode/index.vue":["tVK0",0,13],"./salesleads/actCodeManage/staffActCode/newAddChart.vue":["eaYI",0],"./salesleads/actCodeManage/staffActCode/views/act-code-table.vue":["XZyq",0,39],"./salesleads/actCodeManage/staffActCode/views/batchAddCode.vue":["/pg7",0,56],"./salesleads/actCodeManage/staffActCode/views/group-list.vue":["t6Nl",0,115],"./salesleads/actCodeManage/staffActCode/views/setActCode.vue":["txZy",0,82],"./salesleads/components/act-code-set.vue":["1fzb",0],"./salesleads/components/actCodeDetailInfo.vue":["DvcT",0],"./salesleads/components/dataDetail.vue":["/p6h",0],"./salesleads/components/welcomesItem.vue":["42hH",0],"./salesleads/groupSend/grStoreDetail.vue":["XF7X",0,20],"./salesleads/groupSend/grStoreList.vue":["w4UW",0,71],"./salesleads/groupSend/grTaskList.vue":["Uvr8",0,108],"./salesleads/index.vue":["owWS",0,44],"./salesleads/trafficTask/taskDetail.vue":["wRTX",0,25],"./salesleads/trafficTask/taskRecord.vue":["Wj0m",0,60],"./salesleads/trafficTask/taskView.vue":["TsS9",0,49],"./salesleads/trafficTask/taskViewDetail.vue":["f1qT",0,63],"./salesleads/trafficTask/trafficTaskSet.vue":["3Qek",0,59],"./setting/index.vue":["VlR1",0,81]};function n(e){var t=o[e];return t?Promise.all(t.slice(1).map(a.e)).then(function(){return a(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}n.keys=function(){return Object.keys(o)},n.id="Opzk",e.exports=n},P9l9:function(e,t,a){"use strict";a.d(t,"b",function(){return D}),a.d(t,"a",function(){return k}),a.d(t,"g",function(){return b}),a.d(t,"f",function(){return x}),a.d(t,"e",function(){return y}),a.d(t,"d",function(){return A}),a.d(t,"c",function(){return T});var o=a("//Fk"),n=a.n(o),r=a("lRwf"),s=a.n(r),i=a("Rf8U"),p=a.n(i),d=a("OMN4"),c=a.n(d),l=a("mw3O"),u=a.n(l),m=a("l6IN");a.n(m);s.a.use(p.a,c.a),s.a.axios.defaults.withCredentials=!0,s.a.axios.defaults.headers.common.platform="haoban",s.a.axios.defaults.timeout=5e5;var g=window.location.origin,h=JSON.parse(sessionStorage.getItem("userInfos")||"{}"),f="string"==typeof h.gicHost?h.gicHost.replace(/\/$/,""):"";console.log(f),g.indexOf("localhost")>=0&&(f=g);var v=[],w=[],S=s.a.axios.CancelToken,C=function(e){for(var t in w)w[t].u===e.url+"&"+e.method&&(w[t].f(),w.splice(t,1))};s.a.axios.interceptors.request.use(function(e){if(C(e),e.cancelToken=new S(function(t){w.push({u:e.url+"&"+e.method,f:t})}),e.cancelToken=new s.a.axios.CancelToken(function(e){v.push({cancel:e})}),sessionStorage.getItem("userInfoBrandId")){var t=sessionStorage.getItem("userInfoBrandId");t&&(e.headers.enterpriseId=t)}return e},function(e){return m.Message.error({message:"请求超时!"}),n.a.resolve(e)}),s.a.axios.interceptors.response.use(function(e){if(C(e.config),e.status&&200==e.status&&1!=e.data.errorCode&&0!=e.data.code){if(4==e.data.errorCode){if(-1!=window.location.href.indexOf("gic-error"))return!1;window.location.href=f+"/gic-web/#/login?ishb=1"}return 10!=e.data.errorCode&&7!=e.data.errorCode||(window.location.href=f+"/haoban-3/#/index"),e}return e},function(e){return 502==e.response.status&&(window.location.href=f+"/gic-web/#/login?ishb=1",m.Message.error({message:"服务异常⊙﹏⊙∥"})),403!=e.response.status&&(window.location.href=f+"/gic-web/#/login?ishb=1",m.Message.error({message:"登录失效!"})),n.a.resolve(e)});var D=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"get",url:""+g+e,data:{},params:t,headers:{"Content-type":"application/x-www-form-urlencoded"}})},k=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"delete",url:""+g+e,data:{},params:t,headers:{"Content-type":"application/x-www-form-urlencoded"}})},b=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:u.a.stringify(t),headers:{"Content-type":"application/x-www-form-urlencoded"}})},x=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:t,headers:{"Content-Type":"application/json;charset=UTF-8"}})},y=function(e,t){return s.a.axios({method:"post",url:""+g+e,data:t,params:{requestProject:"haoban-manage-web"},headers:{"Content-Type":"application/json;charset=UTF-8"}})},A=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:t,headers:{}})},T=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:u.a.stringify(t),responseType:"blob",headers:{"content-type":"application/x-www-form-urlencoded"}})}},Q0Ca:function(e,t,a){"use strict";t.a={dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var a=new Date(e),o={"M+":a.getMonth()+1,"D+":a.getDate(),W:"日一二三四五六".charAt(a.getDay()),"h+":a.getHours(),"m+":a.getMinutes(),"s+":a.getSeconds(),"q+":Math.floor((a.getMonth()+3)/3),S:a.getMilliseconds()};for(var n in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(a.getFullYear()+"").substr(4-RegExp.$1.length))),o)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?o[n]:("00"+o[n]).substr((""+o[n]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a,r=t.getHours()<10?"0"+t.getHours():t.getHours(),s=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+n+"-"+o+" "+r+":"+s+":"+i}},timeStampToYm:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=a<10?"0"+a:a;return t.getFullYear()+"-"+o}},timeStampToYmd:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a;return t.getFullYear()+"-"+n+"-"+o}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a,r=t.getHours()<10?"0"+t.getHours():t.getHours(),s=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+n+"."+o+" "+r+":"+s+":"+i}},formatPhoneNum:function(e){return e?(e=e.toString()).substr(0,3)+"****"+e.substr(7,11):""},timeStampToYmd2:function(e){if(e){var t=new Date(e-864e5),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a;return t.getFullYear()+"-"+n+"-"+o}},formatName:function(e){return e?"**"+(e=e.toString()).substr(e.length-1,e.length):""},timeStampSpace:function(e){if(e){var t=new Date,a=new Date(Number(e)).getTime()-t.getTime();if(a<0)return"";var o=a%864e5,n=o%36e5;return Math.floor(a/864e5)+"天"+Math.floor(o/36e5)+"小时"+Math.floor(n/6e4)+"分"}},formatTime:function(e){if(!e)return"00:00:00";var t=e/1e3,a=Math.floor(t/60/60/24);return(24*a+Math.floor(t/60/60)%24<10?"0"+(24*a+Math.floor(t/60/60)%24):24*a+Math.floor(t/60/60)%24)+":"+(Math.floor(t/60)%60<10?"0"+Math.floor(t/60)%60:Math.floor(t/60)%60)+":"+(Math.floor(t)%60<10?"0"+Math.floor(t)%60:Math.floor(t)%60)},formatInvalidStatus:function(e){var t="--";return 1==e?t="未失效":2==e&&(t="已失效"),t}}},SJI6:function(e,t){e.exports=Vuex},dKGT:function(e,t){},l6IN:function(e,t){e.exports=ELEMENT},lRwf:function(e,t){e.exports=Vue},"mF/g":function(e,t){},pRNm:function(e,t){e.exports=VueRouter},pc4g:function(e,t){},xtVA:function(e,t){}},[0]); webpackJsonp([126],{"/wAz":function(e,t){},0:function(e,t,a){a("j1ja"),e.exports=a("NHnr")},"0xDb":function(e,t,a){"use strict";t.a=function(){var e=new Date((new Date).getTime()-864e5),t=e.getTime()-7776e6,a=e.getFullYear(),o=e.getMonth()+1,n=e.getDate()<10?"0"+e.getDate():e.getDate(),r=o<10?"0"+o:o,s=new Date(t),i=s.getFullYear(),p=s.getMonth()+1,d=s.getDate()<10?"0"+s.getDate():s.getDate();return[i+"-"+(p<10?"0"+p:p)+"-"+d,a+"-"+r+"-"+n]};var o=a("woOf"),n=(a.n(o),a("fZjL")),r=(a.n(n),a("pFYg"));a.n(r),new Date},"4qCZ":function(e,t){},"5tgt":function(e,t,a){e.exports=function(e,t){return function(o){a("Opzk")("./"+e+"/"+t+".vue").then(function(e){o(e)})}}},"Ch4/":function(e,t,a){"use strict";var o=a("l6IN"),n=(a.n(o),JSON.parse(sessionStorage.getItem("userInfos")||"{}")),r="string"==typeof n.gicHost?n.gicHost.replace(/\/$/,""):"";location.origin.indexOf("localhost")>=0&&(r=location.origin),t.a={errorMsg:function(e){if(1!=e.errorCode){if(4==e.errorCode)return window.location.href=r+"/gic-web/#/login?ishb=1",!1;if(10==e.errorCode)return window.location.href=r+"/haoban-3/#/index",!1;o.Message.error({duration:2e3,message:e.message||"接口异常"})}}}},FHfR:function(e,t){e.exports={multipleAssign:"multipleAssign",assign:"assign",willSyncTag:"willSyncTag",breakSyncTag:"breakSyncTag",addShowRules:"addShowRules",editShowRules:"editShowRules",delShowRules:"delShowRules",groupExpire:"groupExpire",syncGroup:"syncGroup",addGroupTemp:"addGroupTemp",editGroupTemp:"editGroupTemp",setStoreArea:"setStoreArea",delGroupTemp:"delGroupTemp",searchSetSave:"searchSetSave",saveTrafficTaskSet:"saveTrafficTaskSet",addCard:"addCard",editCard:"editCard",delCard:"delCard",sendCardLog:"sendCardLog",getCardLog:"getCardLog",saveEvaluateSet:"saveEvaluateSet",addMaterialGroup:"addMaterialGroup",editMaterialGroup:"editMaterialGroup",delMaterialGroup:"delMaterialGroup",multipleDelAssets:"multipleDelAssets",multipleMoveAssets:"multipleMoveAssets",addText:"addText",editText:"editText",delText:"delText",textAssignStore:"textAssignStore",addImage:"addImage",editImage:"editImage",delImage:"delImage",imageAssignStore:"imageAssignStore",addWeb:"addWeb",editWeb:"editWeb",delWeb:"delWeb",webAssignStore:"webAssignStore",addVideo:"addVideo",editVideo:"editVideo",delVideo:"delVideo",videoAssignStore:"videoAssignStore",addFile:"addFile",editFile:"editFile",delFile:"delFile",fileAssignStore:"fileAssignStore",addApps:"addApps",editApps:"editApps",delApps:"delApps",appsAssignStore:"appsAssignStore",saveGoodsSet:"saveGoodsSet",exportActiveUser:"exportActiveUser",exportLoginUser:"exportLoginUser",exportAreaLoginUser:"exportAreaLoginUser",multipleDelReport:"multipleDelReport",exportReport:"exportReport",reportDetail:"reportDetail",multipleDelReportDetail:"multipleDelReportDetail",delReportDetail:"delReportDetail",showReportDetail:"showReportDetail",multipleExportReport:"multipleExportReport",saveTaskSet:"saveTaskSet",settingSystemReport:"settingSystemReport",saveSystemReport:"saveSystemReport",addCustomReport:"addCustomReport",copyCustomReport:"copyCustomReport",editCustomReport:"editCustomReport",delCustomReport:"delCustomReport",monthTarget:"monthTarget",dayTarget:"dayTarget",exportMonthTask:"exportMonthTask",checkMonthTask:"checkMonthTask",multipleDelTask:"multipleDelTask",delTask:"delTask",exportStoreList:"exportStoreList",checkStoreList:"checkStoreList",exportStoreDetail:"exportStoreDetail",checkStoreDetail:"checkStoreDetail",exportStoreDetailPop:"exportStoreDetailPop",previewStoreDetail:"previewStoreDetail",exportGrTaskList:"exportGrTaskList",checkGrTaskList:"checkGrTaskList",exportTaskRecord:"exportTaskRecord",multipleDelTaskRecord:"multipleDelTaskRecord",checkTaskRecord:"checkTaskRecord",exportTaskDetail:"exportTaskDetail",multipleDelTaskDetail:"multipleDelTaskDetail",delTaskDetail:"delTaskDetail",resolveTaskDetail:"resolveTaskDetail",previewTaskDetail:"previewTaskDetail",exportTaskView:"exportTaskView",multipleDelTaskView:"multipleDelTaskView",checkTaskView:"checkTaskView",exportTaskViewDetail:"exportTaskViewDetail",multipleDelTaskViewDetail:"multipleDelTaskViewDetail",checkTaskDetail:"checkTaskDetail",addSalutatory:"addSalutatory",editSalutatory:"editSalutatory",delSalutatory:"delSalutatory",multipleResolve:"multipleResolve",singleResolve:"singleResolve",singleReject:"singleReject",saveApplySetting:"saveApplySetting",refreshStoreMember:"refreshStoreMember",exportContact:"exportContact",checkContactDetail:"checkContactDetail",checkContactMemberDetail:"checkContactMemberDetail",checkLog:"checkLog",saveGuideSetting:"saveGuideSetting",saveAppsVisible:"saveAppsVisible",refreshStoreInfo:"refreshStoreInfo",saveMemberSecret:"saveMemberSecret",addMemberAppsSecret:"addMemberAppsSecret",editMemberAppsSecret:"editMemberAppsSecret",delMemberAppsSecret:"delMemberAppsSecret",addAppsSecret:"addAppsSecret",getAppsSecret:"getAppsSecret",editAppsSecret:"editAppsSecret",delAppsSecret:"delAppsSecret",checkAuth:"checkAuth",bindStoreList:"bindStoreList",refreshStore:"refreshStore",refreshAdminList:"refreshAdminList",addActCode:"addActCode",batchActCode:"batchActCode",batchGroup:"batchGroup",dataActCode:"dataActCode",infoActCode:"infoActCode",editActCode:"editActCode",downActCode:"downActCode",delActCode:"delActCode",recordCode:"recordCode",addLink:"addLink",dataLink:"dataLink",infoLink:"infoLink",editLink:"editLink",downLink:"downLink",recordLink:"recordLink"}},MtkU:function(e,t){},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),r=(a("j1ja"),a("hKoQ")),s=a.n(r),i=a("mvHQ"),p=a.n(i),d=a("//Fk"),c=a.n(d),l=a("lRwf"),u=a.n(l),m=a("Ch4/"),g=a("P9l9"),h=a("Gu7T"),f=a.n(h),v=a("pRNm"),w=a.n(v),S=a("5tgt"),C=a.n(S),D=[{path:"/staffActCode",name:"员工活码",component:C()("salesleads/actCodeManage/staffActCode","index"),meta:{componentName:"staffActCode",fromPath:["/actCodeEdit","/actCodeBatch","/actCodeDetail","/actCodeDetails"]}},{path:"/actCodeRecord",name:"查看记录",component:C()("salesleads/actCodeManage/staffActCode","actCodeRecord")},{path:"/actCodeDetail",name:"活码详情-数据",component:C()("salesleads/actCodeManage/staffActCode","actCodeDetail")},{path:"/actCodeDetails",name:"活码详情-详情",component:C()("salesleads/actCodeManage/staffActCode","actCodeDetail"),meta:{componentName:"actCodeDetail",fromPath:["/actCodeRecord"]}},{path:"/actCodeAdd",name:"新增活码",component:C()("salesleads/actCodeManage/staffActCode/views","setActCode")},{path:"/actCodeEdit",name:"编辑活码",component:C()("salesleads/actCodeManage/staffActCode/views","setActCode")},{path:"/actCodeBatch",name:"批量创建活码",component:C()("salesleads/actCodeManage/staffActCode/views","batchAddCode")}],k=[{path:"/attractFlowLink",name:"引流链接",component:C()("salesleads/actCodeManage/attractFlowLink","index"),meta:{componentName:"attractFlowLink",fromPath:["/attractFlowLinkEdit/:id","/attractFlowLinkInfo/:id","/attractFlowLinkInfos/:id"]}},{path:"/attractFlowLinkAdd",name:"新增引流链接",meta:{type:"add"},component:C()("salesleads/actCodeManage/attractFlowLink","detail")},{path:"/attractFlowLinkEdit/:id",name:"编辑引流链接",meta:{type:"edit"},component:C()("salesleads/actCodeManage/attractFlowLink","detail")},{path:"/attractFlowLinkInfo/:id",name:"详情引流链接",meta:{type:"info"},component:C()("salesleads/actCodeManage/attractFlowLink","info")},{path:"/attractFlowLinkInfos/:id",name:"详情引流链接",meta:{type:"info"},component:C()("salesleads/actCodeManage/attractFlowLink","info")},{path:"/attLinkRecord",name:"查看记录",component:C()("salesleads/actCodeManage/staffActCode","actCodeRecord")},{path:"/ladingPageList",name:"落地页列表",component:C()("salesleads/actCodeManage/attractFlowLink/landingPage","list"),meta:{componentName:"ladingPageList",fromPath:["/ladingPageEdit/:id"]}},{path:"/ladingPageAdd",name:"新建落地页",meta:{type:"add"},component:C()("salesleads/actCodeManage/attractFlowLink/landingPage","detail")},{path:"/ladingPageEdit/:id",name:"编辑落地页",meta:{type:"edit"},component:C()("salesleads/actCodeManage/attractFlowLink/landingPage","detail")},{path:"/operationLog",name:"操作日志",component:C()("salesleads/actCodeManage","operateLog")}],b=[].concat(f()(D),f()(k));u.a.use(w.a);var x=function(e){a.e(1).then(a.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var y=[{path:"/loginMore",name:"登录",component:C()("login","login-more")},{path:"/refresh",name:"刷新",component:C()("errorPage","refresh")},{path:"/",redirect:"/index",component:function(){return Promise.all([a.e(0),a.e(6)]).then(a.bind(null,"xW93"))},children:[{path:"/contactsList",name:"通讯录",component:C()("business","contacts")},{path:"/syncLog",name:"通讯录日志",component:C()("business","syncLog")},{path:"/authMerchant",name:"授权商户",component:C()("business","authMerchant")},{path:"/authMerchantForm",name:"新建授权商户",component:C()("business","authMerchant-form")},{path:"/merchantStoreList",name:"绑定门店列表",component:C()("business","storeList")},{path:"/enterpriseSet",name:"企业信息",component:C()("enterprise","enterpriseSet")},{path:"/adminList",name:"企业信息",component:C()("enterprise","adminList")},{path:"/material",name:"素材库",component:C()("enterprise","material")},{path:"/salutatory",name:"欢迎语",component:C()("enterprise","salutatoryIndex"),meta:{componentName:"salutatoryIndex",fromPath:["/editSalutatorySet"]}},{path:"/salutatorySet",name:"新建欢迎语",component:C()("enterprise","salutatorySet")},{path:"/editSalutatorySet",name:"编辑欢迎语",component:C()("enterprise","salutatorySet")},{path:"/guide-setting",name:"导购设置",component:C()("enterprise","guide-setting")},{path:"/setting",name:"操作设置",component:C()("setting","index")},{path:"/unreview",name:"未审核",component:C()("reviewCenter","unreview")},{path:"/reviewed",name:"已审核",component:C()("reviewCenter","reviewed")},{path:"/reviewSet",name:"审核设置",component:C()("reviewCenter","reviewSet")},{path:"/taskRecord",name:"话务任务记录",component:C()("salesleads/trafficTask","taskRecord"),meta:{componentName:"TaskRecord",fromPath:["/taskDetail"]}},{path:"/taskView",name:"话务任务记录",component:C()("salesleads/trafficTask","taskView")},{path:"/taskDetail",name:"话务任务详情",component:C()("salesleads/trafficTask","taskDetail")},{path:"/taskViewDetail",name:"话务任务详情",component:C()("salesleads/trafficTask","taskViewDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:C()("salesleads/trafficTask","trafficTaskSet")},{path:"/grStoreList",name:"门店视图",component:C()("salesleads/groupSend","grStoreList"),meta:{componentName:"grStoreList",fromPath:["/grStoreDetail/:id"]}},{path:"/grStoreDetail/:id",name:"门店视图",component:C()("salesleads/groupSend","grStoreDetail")},{path:"/grTaskList",name:"计划视图",component:C()("salesleads/groupSend","grTaskList")},{path:"/enterpriseUseData",name:"好办使用详情",component:C()("enterpriseData","enterpriseUseData")},{path:"/activeDetail",name:"激活人员明细",component:C()("enterpriseData","activeDetail")},{path:"/loginDetail",name:"登录人员明细",component:C()("enterpriseData","loginDetail")},{path:"/areaLoginDetail",name:"区域登录人员明细",component:C()("enterpriseData","areaLoginDetail")},{path:"/overStoreList",name:"溢出门店",component:C()("overstore","overStoreList")},{path:"/memberShowSet",name:"客户展示设置",component:C()("apps/customerApp","memberShowSet")},{path:"/addMemberShowRules",name:"新增特殊策略",component:C()("apps/customerApp","add-member-show-rules")},{path:"/editMemberShowRules",name:"编辑特殊策略",component:C()("apps/customerApp","add-member-show-rules")},{path:"/memberGroupSet",name:"客户分组设置",component:C()("apps/customerApp","memberGroupSet"),meta:{componentName:"memberGroupSet",fromPath:["/addGroupTemplate","/editGroupTemplate","/storeRangeSet"]}},{path:"/memberSearchSet",name:"客户搜索设置",component:C()("apps/customerApp","memberSearchSet")},{path:"/memberTagSet",name:"客户标签设置",component:C()("apps/customerApp","memberTagSet")},{path:"/syncHistory",name:"同步历史",component:C()("apps/customerApp","syncHistory")},{path:"/myCustomerList",name:"我的客户列表",component:C()("apps/customerApp","myCustomerList")},{path:"/addGroupTemplate",name:"添加模板",component:C()("apps/customerApp","addGroupTemplate")},{path:"/editGroupTemplate",name:"编辑模板",component:C()("apps/customerApp","addGroupTemplate")},{path:"/storeRangeSet",name:"门店范围设置",component:C()("apps/customerApp","storeRangeSet")},{path:"/dailyRecord",name:"云日报记录",component:C()("apps/cloudDaily","dailyRecord")},{path:"/dailyExport",name:"云日报导出",component:C()("apps/cloudDaily","dailyExport")},{path:"/dailyDetail",name:"日报详情",component:C()("apps/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:C()("apps/cloudDaily","taskAssign")},{path:"/daily-setting",name:"系统报表",component:C()("apps/cloudDaily","daily-setting")},{path:"/customReportSet",name:"新增自定义报表设置",component:C()("apps/cloudDaily","customReportSet")},{path:"/customReportCopy",name:"复制自定义报表设置",component:C()("apps/cloudDaily","customReportSet")},{path:"/customReportEdit",name:"编辑自定义报表设置",component:C()("apps/cloudDaily","customReportSet")},{path:"/monthList",name:"月指标列表",component:C()("apps/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:C()("apps/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:C()("apps/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:C()("apps/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:C()("apps/quota","monthTask"),meta:{componentName:"monthTask",fromPath:["/monthTaskDetail"]}},{path:"/monthTaskDetail",name:"月指标任务详情",component:C()("apps/quota","monthTaskDetail")},{path:"/cardList",name:"卡券列表",component:C()("apps/card","cardList")},{path:"/cardRecord",name:"卡券记录",component:C()("apps/card","cardRecord")},{path:"/newCard",name:"新建卡券",component:C()("apps/card","newCard")},{path:"/editCard",name:"编辑卡券",component:C()("apps/card","newCard")},{path:"/cardTemplate",name:"卡券模板",component:C()("apps/protectCard","cardTemplate")},{path:"/newCardTemp",name:"新建模板",component:C()("apps/protectCard","newCardTemp")},{path:"/cardStrategy",name:"卡券策略",component:C()("apps/protectCard","cardStrategy")},{path:"/newCardStrategy",name:"新建策略",component:C()("apps/protectCard","newCardStrategy")},{path:"/cardPut",name:"内购券投放",component:C()("apps/protectCard","cardPut")},{path:"/newCardPut",name:"新建补发",component:C()("apps/protectCard","newCardPut")},{path:"/cardPutRecord",name:"投放记录",component:C()("apps/protectCard","cardPutRecord")},{path:"/cardGetRecord",name:"领取记录",component:C()("apps/protectCard","cardGetRecord")},{path:"/goodsShowSet",name:"商品展示设置",component:C()("apps/shoppingCenter","goodsShowSet")},{path:"/evaluate-set",name:"订单评价",component:C()("apps/order-evaluate","evaluate-set")}].concat(f()(b),[{path:"/403",name:"无权访问",component:x},{path:"/404",name:"error404",component:x},{path:"/500",name:"error500",component:x}])},{path:"/gic-error",name:"gic跳转失败页",component:C()("errorPage","gic-error")}],A=new w.a({routes:y,scrollBehavior:function(){return{y:0}}}),T=["/login","/loginMore"],M="",R="";A.beforeEach(function(e,t,a){M=e.path,R=t.path,sessionStorage.getItem("hbReload")?sessionStorage.removeItem("hbReload"):T.includes(R)&&(sessionStorage.setItem("hbReload",1),setTimeout(function(){location.reload()},50)),a()});var L={name:"App",data:function(){return{loading:!0,menuList:[],pageRight:[]}},beforeDestroy:function(){document.removeEventListener("visibilitychange",this.checkUser)},created:function(){var e=this;document.addEventListener("visibilitychange",this.checkUser),this.getUserInfo().then(function(){T.includes(M)||T.includes(R)?e.loading=!1:c.a.all([e.getRight(),e.getMenuList()]).finally(function(){setTimeout(function(){return e.loading=!1},200)})})},methods:{checkUser:function(){var e=this;if(!document.hidden){var t=JSON.parse(sessionStorage.getItem("userInfos"));this.getUserInfo().then(function(){JSON.parse(sessionStorage.getItem("userInfos")).clerkId!=t.clerkId&&e.$router.push("/refresh")})}},getUserInfo:function(){return Object(g.g)("/haoban-manage3-web/get-login-info",{}).then(function(e){var t=e.data||{},a=t.errorCode,o=t.result;1==a?(sessionStorage.setItem("userInfos",p()(o)),o.enterpriseId&&(u.a.axios.defaults.headers.common.enterpriseId=o.enterpriseId)):m.a.errorMsg(e.data)})},getMenuList:function(){var e=this;return Object(g.b)("/haoban-manage3-web/get-haoban-menu",{}).then(function(t){var a=t.data||[],o=a.errorCode,n=a.result;1==o?Array.isArray(n)&&(e.menuList=n,e.setIndexRoute(n)):m.a.errorMsg(t.data)})},getRight:function(){var e=this;return Object(g.b)("/haoban-manage3-web/get-haoban-right",{}).then(function(t){var a=t.data||{},o=a.errorCode,n=a.result;1==o?(e.pageRight=e.getPageRight(n.menu),e.checkButtonRight(n.button),e.checkPageRight(e.pageRight,function(e){return function(e,t){e&&e.menuCode&&console.log(t.filter(function(t){return t.parentCode==e.menuCode}))}(e,n.button)})):m.a.errorMsg(t.data)})},getPageRight:function(e){return e.filter(function(e){return"string"==typeof e.menuUrl&&e.menuUrl.length>0}).map(function(e){for(var t=e.menuUrl,a=/(:.*)(\/?)/;a.test(t);)t=t.replace(a,"([\\d\\w]+[\\-]*[\\d\\w]*)$2");for(a=/(\/\*)(\/?)/;a.test(t);)t=t.replace(a,"([\\d\\w]+[\\-]*[\\d\\w]*)$2");return e.regexp=new RegExp("^/"+t+"$"),e})},checkButtonRight:function(e){u.a.prototype.$getButtonLimit=function(t){return 1==(e.find(function(e){return e.menuCode==t})||{}).hasRight}},checkPageRight:function(e,t){var a=e.find(function(e){return e.regexp.test(M)});if(a&&0==a.hasRight){var o=sessionStorage.getItem("hbReloadPath")||"";a.menuUrl==o.substr(1)?(this.$router.push("/index"),sessionStorage.removeItem("hbReloadPath")):this.$router.push({path:"/403"})}t(a),A.beforeEach(function(a,o,n){var r=e.find(function(e){return e.regexp.test(a.path)});if(t(r),r&&0==r.hasRight)return n({path:"/403"});n()})},setIndexRoute:function(e){var t="",a=[{path:"*",redirect:"/404"}];e.some(function(e){return e.hasRight&&e.isShow&&Array.isArray(e.childList)&&e.childList.some(function(e){return e.hasRight&&e.isShow&&Array.isArray(e.childList)&&e.childList.some(function(e){return e.hasRight&&e.isShow&&(t=e.menuUrl),e.hasRight&&e.isShow}),t}),t}),t&&a.push({path:"/index",redirect:"/"+t}),this.$router.addRoutes(a)}}},E={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{directives:[{name:"loading",rawName:"v-loading",value:this.loading,expression:"loading"}],staticStyle:{"min-height":"100vh"},attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[this.loading?this._e():t("router-view",{attrs:{"menu-list":this.menuList,"page-right":this.pageRight}})],1)],1)},staticRenderFns:[]};var I,P=a("VU/8")(L,E,!1,function(e){a("MtkU")},null,null).exports,F=a("bOdI"),G=a.n(F),V=a("SJI6"),j=a.n(V),q=a("0xDb");u.a.use(j.a);var N=new j.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px",addDepartment:[],editDepartment:[],delDepartment:[],wxEnterpriseType:0,salesDate:Object(q.a)()},mutations:(I={},G()(I,"login",function(e,t){sessionStorage.token=t,e.token=t}),G()(I,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),G()(I,"title",function(e,t){e.title=t}),G()(I,"show",function(e,t){e.show=t}),G()(I,"saveAdd",function(e,t){e.addDepartment.push(t)}),G()(I,"saveEdit",function(e,t){e.editDepartment.push(t)}),G()(I,"saveDel",function(e,t){e.delDepartment.push(t)}),G()(I,"clearAdd",function(e){e.addDepartment=[]}),G()(I,"clearEdit",function(e){e.editDepartment=[]}),G()(I,"clearData",function(e){e.addDepartment=[],e.editDepartment=[],e.delDepartment=[]}),G()(I,"changeWxEntertype",function(e,t){e.wxEnterpriseType=t}),G()(I,"changeSalesDate",function(e,t){e.salesDate=t}),I),actions:{saveAddInfo:function(e,t){e.commit("saveAdd",t)},saveEditInfo:function(e,t){e.commit("saveEdit",t)},saveDelInfo:function(e,t){e.commit("saveDel",t)},clearAddData:function(e,t){e.commit("clearAdd")},clearEditData:function(e,t){e.commit("clearEdit")},clearTreeData:function(e,t){e.commit("clearData")},changeWxEntertypeData:function(e,t){e.commit("changeWxEntertype",t)},changeSales:function(e,t){e.commit("changeSalesDate",t)}}}),U={codeList:"https://www.yuque.com/exnmlu/oo64hg/thm172#WRdju",codeGl:"https://www.yuque.com/exnmlu/oo64hg/thm172#ADEzt",codeCkmx:"https://www.yuque.com/exnmlu/oo64hg/thm172#mDlza",linkList:"https://www.yuque.com/exnmlu/oo64hg/lggf7q#WRdju",linkGl:"https://www.yuque.com/exnmlu/oo64hg/lggf7q#ADEzt",linkCkmx:"https://www.yuque.com/exnmlu/oo64hg/lggf7q#mDlza"},H={clipboard:{bind:function(e,t,a,o){e.val=t.value,e.handler=function(){var t=e.val,a=document.createElement("input");e.appendChild(a),a.value=t,a.select(),document.execCommand("Copy"),u.a.prototype.$message({type:"success",message:"复制成功"}),a.parentNode.removeChild(a)},e.addEventListener("click",e.handler)},update:function(e,t,a,o){e.val=t.value},unbind:function(e){e.removeEventListener("click",e.handler)}},jumpLink:{bind:function(e,t){var a=t.arg;e.handler=function(){window.open(U[a])},e.addEventListener("click",e.handler)},unbind:function(e){e.removeEventListener("click",e.handler)}}},O=(a("/wAz"),a("pc4g"),a("4qCZ"),a("xtVA"),a("Q0Ca")),Y={props:{size:{type:[Number,String],default:20},iconname:{type:String,default:""}},computed:{ClassStyle:function(){return"width:"+parseInt(this.size)+";height:"+parseInt(this.size)+";"},IconName:function(){return"#"+this.iconname}}},z={render:function(){var e=this.$createElement,t=this._self._c||e;return t("svg",{staticClass:"icon svg-icon svg-iconfont-hb3",style:this.ClassStyle,attrs:{"aria-hidden":"true"}},[t("use",{attrs:{"xlink:href":this.IconName}})])},staticRenderFns:[]};var W=a("VU/8")(Y,z,!1,function(e){a("mF/g")},"data-v-aa28dd00",null).exports,$=a("TUaa"),J=a.n($),B=a("tyqE"),X=a.n(B),Q=a("pRVe"),K=a.n(Q),Z=a("XsK6"),_=a.n(Z),ee=a("QRL9"),te=a.n(ee),ae=a("eMjc"),oe=a.n(ae),ne=a("l9mu"),re=a.n(ne),se={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;oe()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var a=t.width,o=t.height,n=a/592.28*841.89,r=o,s=0,i=592.28/a*o,p=t.toDataURL("image/jpeg",1),d=new re.a("","pt","a4");if(r<n)d.addImage(p,"JPEG",0,0,595.28,i);else for(;r>0;)d.addImage(p,"JPEG",0,s,595.28,i),s-=841.89,(r-=n)>0&&d.addPage();d.save(e+".pdf")})}}},ie=a("/IwO"),pe=a.n(ie),de=a("FHfR"),ce=a.n(de),le={name:"HbFormBottom",inject:["layoutVm"],props:{horizontal:{type:String,default:"center"}},data:function(){return{width:"0px"}},mounted:function(){this.width=this.$parent.$el.offsetWidth+"px",this.layoutVm.pagePaddingBottom=this.$el.offsetHeight+"px"},beforeDestroy:function(){this.layoutVm.pagePaddingBottom=null}},ue={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"hb-form-bottom",style:{width:this.width,"justify-content":"left"==this.horizontal?"flex-start":"right"==this.horizontal?"flex-end":"center"}},[this._t("default")],2)},staticRenderFns:[]};var me=a("VU/8")(le,ue,!1,function(e){a("dKGT")},"data-v-87d7ea0c",null).exports;s.a.polyfill(),u.a.component("svg-icon",W),n()(H).map(function(e){return u.a.directive(e,H[e])}),u.a.use(pe.a),pe.a.initAMapApiLoader({key:"d53a58848be368a7398dc56d5670fe9c",plugin:["Autocomplete","PlaceSearch","Scale","OverView","Geocoder","ToolBar","MapType","PolyEditor","AMap.CircleEditor"],v:"1.4.4"}),window.ELEMENT.Dialog.props.closeOnClickModal.default=!1,u.a.use(se),u.a.use(_.a),u.a.use(te.a),u.a.use(K.a),u.a.use(X.a),u.a.use(J.a),u.a.component("hb-form-bottom",me),u.a.config.productionTip=!1,n()(O.a).forEach(function(e){u.a.filter(e,O.a[e])}),A.beforeEach(function(e,t,a){window.axiosPromiseArr&&axiosPromiseArr.forEach(function(e,t){e.cancel(),delete axiosPromiseArr[t]});var o=window.location.origin;o.indexOf("localhost"),a()}),u.a.prototype.$buttonCode=ce.a,new u.a({el:"#app",router:A,store:N,components:{App:P},template:"<App/>"})},OMN4:function(e,t){e.exports=axios},Opzk:function(e,t,a){var o={"./apps/badEvaluate/badEvaluateDetail.vue":["Yz8m",0,78],"./apps/badEvaluate/badEvaluateRecord.vue":["DCIc",0,98],"./apps/badEvaluate/badEvaluateSet.vue":["moBL",0,87],"./apps/badEvaluate/index.vue":["AG22",0,39],"./apps/card/cardList.vue":["X5LE",0,101],"./apps/card/cardRecord.vue":["xDJN",0,29],"./apps/card/index.vue":["nV1L",0,68],"./apps/card/newCard.vue":["7/Zw",0,22],"./apps/cloudDaily/customReport.vue":["ak3k",0,64],"./apps/cloudDaily/customReportSet.vue":["LTPC",0,7],"./apps/cloudDaily/daily-setting.vue":["RnLd",0,8],"./apps/cloudDaily/dailyDetail.vue":["JwJ7",0,30],"./apps/cloudDaily/dailyExport.vue":["H3Dc",0,40],"./apps/cloudDaily/dailyRecord.vue":["IuWw",0,66],"./apps/cloudDaily/index.vue":["4QyY",0,88],"./apps/cloudDaily/systemReport.vue":["J/6z",0,9],"./apps/cloudDaily/taskAssign.vue":["Hb/M",0,53],"./apps/cloudDaily/template/block.vue":["O3gZ",95],"./apps/cloudDaily/template/date-range.vue":["2WGr",90],"./apps/cloudDaily/template/image.vue":["8dpP",55],"./apps/cloudDaily/template/input.vue":["zHtI",119],"./apps/cloudDaily/template/select.vue":["rYZf",103],"./apps/customerApp/add-member-show-rules.vue":["SUcx",58],"./apps/customerApp/addGroupTemplate.vue":["vIlm",0,42],"./apps/customerApp/index.vue":["QHTa",0,62],"./apps/customerApp/memberDetailSet.vue":["F1Rz",0,54],"./apps/customerApp/memberGroupList.vue":["scn4",0,69],"./apps/customerApp/memberGroupSet.vue":["JuNN",0,18],"./apps/customerApp/memberGroupSetList.vue":["8fbE",0,114],"./apps/customerApp/memberSearchSet.vue":["Z3Aa",0,122],"./apps/customerApp/memberShowSet.vue":["odfG",99],"./apps/customerApp/memberTagSet.vue":["HmLC",51],"./apps/customerApp/myCustomerList.vue":["9CCr",0,12],"./apps/customerApp/storeRangeSet.vue":["z3jf",0,85],"./apps/customerApp/syncHistory.vue":["T435",52],"./apps/index.vue":["K1Vb",0,100],"./apps/order-evaluate/bad-evaluate-set.vue":["z2RJ",0,77],"./apps/order-evaluate/evaluate-set.vue":["RvMj",94],"./apps/order-evaluate/index.vue":["NUSj",0,61],"./apps/protectCard/cardGetRecord.vue":["5GE8",0,118],"./apps/protectCard/cardPut.vue":["cD4x",0,76],"./apps/protectCard/cardPutRecord.vue":["dhLd",0,106],"./apps/protectCard/cardStrategy.vue":["rUvh",0,45],"./apps/protectCard/cardTemplate.vue":["c7iB",0,102],"./apps/protectCard/index.vue":["aWmL",0,104],"./apps/protectCard/newCardPut.vue":["9db3",0,15],"./apps/protectCard/newCardStrategy.vue":["8Rwt",0,16],"./apps/protectCard/newCardTemp.vue":["tF0P",0,81],"./apps/quota/companyDaySet.vue":["NiGE",0,91],"./apps/quota/index.vue":["qSX4",0,96],"./apps/quota/monthList.vue":["fAFA",0,97],"./apps/quota/monthTask.vue":["NpHY",0,67],"./apps/quota/monthTaskDetail.vue":["YKf6",0,80],"./apps/quota/salerMonthDetail.vue":["+qr5",0,121],"./apps/quota/storeMonthTask.vue":["qWC+",0,70],"./apps/shoppingCenter/goodsShowSet.vue":["XrL3",0,93],"./apps/shoppingCenter/index.vue":["FIFf",0,110],"./business/authMerchant-dailog.vue":["/cEq",0,33],"./business/authMerchant-form.vue":["2xxS",0,10],"./business/authMerchant.vue":["mjMK",123],"./business/contacts.vue":["/W60",0,4],"./business/index.vue":["jPcV",0,72],"./business/not-manager.vue":["9F6+",0],"./business/orgStructSet.vue":["OI5V",0,3],"./business/recycle.vue":["K8Yn",0,75],"./business/storeList.vue":["QZxC",0,112],"./business/syncLog.vue":["20P3",0,46],"./enterprise/adminList.vue":["zYBJ",0,120],"./enterprise/app-visible-setting.vue":["w5vQ",73],"./enterprise/enterpriseSet.vue":["x5Fx",0,21],"./enterprise/guide-auth-setting.vue":["i0rV",117],"./enterprise/guide-setting.vue":["tPY2",24],"./enterprise/index.vue":["m9dW",0,109],"./enterprise/material.vue":["q+Sm",0,2],"./enterprise/relationDialog.vue":["+hGG",0],"./enterprise/salutatory.vue":["xWf4",0,74],"./enterprise/salutatoryIndex.vue":["nExe",0,27],"./enterprise/salutatorySet.vue":["vqCN",0,19],"./enterpriseData/activeDetail.vue":["h9Ca",0,32],"./enterpriseData/areaLoginDetail.vue":["TLd+",0,26],"./enterpriseData/enterpriseUseData.vue":["i4c9",0,5],"./enterpriseData/index.vue":["CTf4",0,89],"./enterpriseData/loginDetail.vue":["kX6v",0,11],"./errorPage/403.vue":["6XGN",35],"./errorPage/404.vue":["AejC",43],"./errorPage/500.vue":["FskK",34],"./errorPage/gic-error.vue":["Q3j/",71],"./errorPage/index.vue":["ODjX",1],"./errorPage/refresh.vue":["0/JE",124],"./index/index.vue":["JXTs",0,38],"./login/index.vue":["T+/8",0,36],"./login/login-more.vue":["AVFt",0,50],"./overstore/index.vue":["Y55K",0,79],"./overstore/overStoreList.vue":["vuAV",0,57],"./reviewCenter/index.vue":["+lem",111],"./reviewCenter/reviewSet.vue":["6j9f",0,105],"./reviewCenter/reviewed.vue":["CLYF",0,31],"./reviewCenter/unreview.vue":["xCEU",0,17],"./salesleads/actCodeManage/attractFlowLink/detail.vue":["ATNk",0,47],"./salesleads/actCodeManage/attractFlowLink/index.vue":["7m4r",0,107],"./salesleads/actCodeManage/attractFlowLink/info.vue":["phd8",0,23],"./salesleads/actCodeManage/attractFlowLink/landingPage/cardView.vue":["4KYo",48],"./salesleads/actCodeManage/attractFlowLink/landingPage/detail.vue":["t/sc",0,113],"./salesleads/actCodeManage/attractFlowLink/landingPage/list.vue":["fjEt",0,14],"./salesleads/actCodeManage/attractFlowLink/landingPage/relationDialog.vue":["GdW8",0,108],"./salesleads/actCodeManage/attractFlowLink/newAddChart.vue":["tqu3",0,115],"./salesleads/actCodeManage/components/select-clerk/index.vue":["znzC",0],"./salesleads/actCodeManage/components/select-clerk/select-clerk.vue":["1Am8",0],"./salesleads/actCodeManage/components/select-clerk/selected-clerk-item.vue":["jMsE",0],"./salesleads/actCodeManage/operateLog.vue":["EzCA",0,86],"./salesleads/actCodeManage/staffActCode/actCodeDetail.vue":["DWsn",0,28],"./salesleads/actCodeManage/staffActCode/actCodeDetailStatistics.vue":["YQXN",0,84],"./salesleads/actCodeManage/staffActCode/actCodeRecord.vue":["jx8Q",0,37],"./salesleads/actCodeManage/staffActCode/index.vue":["tVK0",0,13],"./salesleads/actCodeManage/staffActCode/newAddChart.vue":["eaYI",0],"./salesleads/actCodeManage/staffActCode/views/act-code-table.vue":["XZyq",0,41],"./salesleads/actCodeManage/staffActCode/views/batchAddCode.vue":["/pg7",0,56],"./salesleads/actCodeManage/staffActCode/views/group-list.vue":["t6Nl",0,116],"./salesleads/actCodeManage/staffActCode/views/setActCode.vue":["txZy",0,83],"./salesleads/components/act-code-set.vue":["1fzb",0],"./salesleads/components/actCodeDetailInfo.vue":["DvcT",0],"./salesleads/components/dataDetail.vue":["/p6h",0],"./salesleads/components/welcomesItem.vue":["42hH",0],"./salesleads/groupSend/grStoreDetail.vue":["XF7X",0,20],"./salesleads/groupSend/grStoreList.vue":["w4UW",0,92],"./salesleads/groupSend/grTaskList.vue":["Uvr8",0,65],"./salesleads/index.vue":["owWS",0,44],"./salesleads/trafficTask/taskDetail.vue":["wRTX",0,25],"./salesleads/trafficTask/taskRecord.vue":["Wj0m",0,60],"./salesleads/trafficTask/taskView.vue":["TsS9",0,49],"./salesleads/trafficTask/taskViewDetail.vue":["f1qT",0,63],"./salesleads/trafficTask/trafficTaskSet.vue":["3Qek",0,59],"./setting/index.vue":["VlR1",0,82]};function n(e){var t=o[e];return t?Promise.all(t.slice(1).map(a.e)).then(function(){return a(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}n.keys=function(){return Object.keys(o)},n.id="Opzk",e.exports=n},P9l9:function(e,t,a){"use strict";a.d(t,"b",function(){return D}),a.d(t,"a",function(){return k}),a.d(t,"g",function(){return b}),a.d(t,"f",function(){return x}),a.d(t,"e",function(){return y}),a.d(t,"d",function(){return A}),a.d(t,"c",function(){return T});var o=a("//Fk"),n=a.n(o),r=a("lRwf"),s=a.n(r),i=a("Rf8U"),p=a.n(i),d=a("OMN4"),c=a.n(d),l=a("mw3O"),u=a.n(l),m=a("l6IN");a.n(m);s.a.use(p.a,c.a),s.a.axios.defaults.withCredentials=!0,s.a.axios.defaults.headers.common.platform="haoban",s.a.axios.defaults.timeout=5e5;var g=window.location.origin,h=JSON.parse(sessionStorage.getItem("userInfos")||"{}"),f="string"==typeof h.gicHost?h.gicHost.replace(/\/$/,""):"";console.log(f),g.indexOf("localhost")>=0&&(f=g);var v=[],w=[],S=s.a.axios.CancelToken,C=function(e){for(var t in w)w[t].u===e.url+"&"+e.method&&(w[t].f(),w.splice(t,1))};s.a.axios.interceptors.request.use(function(e){if(C(e),e.cancelToken=new S(function(t){w.push({u:e.url+"&"+e.method,f:t})}),e.cancelToken=new s.a.axios.CancelToken(function(e){v.push({cancel:e})}),sessionStorage.getItem("userInfoBrandId")){var t=sessionStorage.getItem("userInfoBrandId");t&&(e.headers.enterpriseId=t)}return e},function(e){return m.Message.error({message:"请求超时!"}),n.a.resolve(e)}),s.a.axios.interceptors.response.use(function(e){if(C(e.config),e.status&&200==e.status&&1!=e.data.errorCode&&0!=e.data.code){if(4==e.data.errorCode){if(-1!=window.location.href.indexOf("gic-error"))return!1;window.location.href=f+"/gic-web/#/login?ishb=1"}return 10!=e.data.errorCode&&7!=e.data.errorCode||(window.location.href=f+"/haoban-3/#/index"),e}return e},function(e){return 502==e.response.status&&(window.location.href=f+"/gic-web/#/login?ishb=1",m.Message.error({message:"服务异常⊙﹏⊙∥"})),403!=e.response.status&&(window.location.href=f+"/gic-web/#/login?ishb=1",m.Message.error({message:"登录失效!"})),n.a.resolve(e)});var D=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"get",url:""+g+e,data:{},params:t,headers:{"Content-type":"application/x-www-form-urlencoded"}})},k=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"delete",url:""+g+e,data:{},params:t,headers:{"Content-type":"application/x-www-form-urlencoded"}})},b=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:u.a.stringify(t),headers:{"Content-type":"application/x-www-form-urlencoded"}})},x=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:t,headers:{"Content-Type":"application/json;charset=UTF-8"}})},y=function(e,t){return s.a.axios({method:"post",url:""+g+e,data:t,params:{requestProject:"haoban-manage-web"},headers:{"Content-Type":"application/json;charset=UTF-8"}})},A=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:t,headers:{}})},T=function(e,t){return t.requestProject="haoban-manage-web",s.a.axios({method:"post",url:""+g+e,data:u.a.stringify(t),responseType:"blob",headers:{"content-type":"application/x-www-form-urlencoded"}})}},Q0Ca:function(e,t,a){"use strict";t.a={dateFormat:function(e,t){if(e){e=10===e.toString().length?1e3*e:e;var a=new Date(e),o={"M+":a.getMonth()+1,"D+":a.getDate(),W:"日一二三四五六".charAt(a.getDay()),"h+":a.getHours(),"m+":a.getMinutes(),"s+":a.getSeconds(),"q+":Math.floor((a.getMonth()+3)/3),S:a.getMilliseconds()};for(var n in/(Y+)/.test(t)&&(t=t.replace(RegExp.$1,(a.getFullYear()+"").substr(4-RegExp.$1.length))),o)new RegExp("("+n+")").test(t)&&(t=t.replace(RegExp.$1,1===RegExp.$1.length?o[n]:("00"+o[n]).substr((""+o[n]).length)));return t}},formatTimeStamp:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a,r=t.getHours()<10?"0"+t.getHours():t.getHours(),s=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"-"+n+"-"+o+" "+r+":"+s+":"+i}},timeStampToYm:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=a<10?"0"+a:a;return t.getFullYear()+"-"+o}},timeStampToYmd:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a;return t.getFullYear()+"-"+n+"-"+o}},timeStampToHms:function(e){if(e){var t=new Date(e);return(t.getHours()<10?"0"+t.getHours():t.getHours())+":"+(t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes())+":"+(t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds())}},formatTimeYmdHms:function(e){if(e){var t=new Date(e),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a,r=t.getHours()<10?"0"+t.getHours():t.getHours(),s=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),i=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds();return t.getFullYear()+"."+n+"."+o+" "+r+":"+s+":"+i}},formatPhoneNum:function(e){return e?(e=e.toString()).substr(0,3)+"****"+e.substr(7,11):""},timeStampToYmd2:function(e){if(e){var t=new Date(e-864e5),a=t.getMonth()+1,o=t.getDate()<10?"0"+t.getDate():t.getDate(),n=a<10?"0"+a:a;return t.getFullYear()+"-"+n+"-"+o}},formatName:function(e){return e?"**"+(e=e.toString()).substr(e.length-1,e.length):""},timeStampSpace:function(e){if(e){var t=new Date,a=new Date(Number(e)).getTime()-t.getTime();if(a<0)return"";var o=a%864e5,n=o%36e5;return Math.floor(a/864e5)+"天"+Math.floor(o/36e5)+"小时"+Math.floor(n/6e4)+"分"}},formatTime:function(e){if(!e)return"00:00:00";var t=e/1e3,a=Math.floor(t/60/60/24);return(24*a+Math.floor(t/60/60)%24<10?"0"+(24*a+Math.floor(t/60/60)%24):24*a+Math.floor(t/60/60)%24)+":"+(Math.floor(t/60)%60<10?"0"+Math.floor(t/60)%60:Math.floor(t/60)%60)+":"+(Math.floor(t)%60<10?"0"+Math.floor(t)%60:Math.floor(t)%60)},formatInvalidStatus:function(e){var t="--";return 1==e?t="未失效":2==e&&(t="已失效"),t}}},SJI6:function(e,t){e.exports=Vuex},dKGT:function(e,t){},l6IN:function(e,t){e.exports=ELEMENT},lRwf:function(e,t){e.exports=Vue},"mF/g":function(e,t){},pRNm:function(e,t){e.exports=VueRouter},pc4g:function(e,t){},xtVA:function(e,t){}},[0]);
\ No newline at end of file \ No newline at end of file
!function(e){var f=window.webpackJsonp;window.webpackJsonp=function(c,d,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[i],a[t]&&u.push(a[t][0]),a[t]=0;for(r in d)Object.prototype.hasOwnProperty.call(d,r)&&(e[r]=d[r]);for(f&&f(c,d,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=b(b.s=n[i]);return o};var c={},a={127:0};function b(f){if(c[f])return c[f].exports;var a=c[f]={i:f,l:!1,exports:{}};return e[f].call(a.exports,a,a.exports,b),a.l=!0,a.exports}b.e=function(e){var f=a[e];if(0===f)return new Promise(function(e){e()});if(f)return f[2];var c=new Promise(function(c,b){f=a[e]=[c,b]});f[2]=c;var d=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,b.nc&&n.setAttribute("nonce",b.nc),n.src=b.p+"static/js/"+e+"."+{0:"6c5302b812605061205b",1:"fd15a7f381f3fc4a55fe",2:"3962e0bd47407b70a464",3:"39bfdc083bc82ef037bb",4:"ea9ede8a7544c3adee66",5:"50f5fe512adc19c155f1",6:"55e49406303ffbbe00f6",7:"b2c411ff7264c981ee7b",8:"0969402a59af3f0f211f",9:"d1e8e5604cbe5d7e16b9",10:"0c309eceb04d492e8695",11:"c6b47ca46378b23a7dda",12:"1009f3971b7f468943f7",13:"d095fa43f95bdfe4a8f4",14:"0c4e168a7bffcf48441b",15:"9d0d587ff1c54fd27ed2",16:"03efbc3fd86def29dffe",17:"d9ddcd42678248204f81",18:"efeaa9d9c1963270db70",19:"5d6c250590f251df916d",20:"b2063783bda9d1a2361e",21:"11826617f80c3d124999",22:"ed2d87a3b61cb1bcd405",23:"cac612596fd63741b945",24:"209ce4766cd8f14c65b0",25:"f0488296b7e86a8c6ef0",26:"91abd00c5c82c9b5326f",27:"aeef277e50f51aee1062",28:"9761aaa4091b404ec72b",29:"de009f2b0d63edea642f",30:"060b9cefa8769c93002d",31:"f831c34cfed019396376",32:"b7fca09a0092234fe48e",33:"7905d75f9175f609d621",34:"97a4c2aa8b717546cfba",35:"f2bec3e39e1538cd6f31",36:"b26f1fa4037daf7abd44",37:"53633b876160218a0f0d",38:"28e20b46172ebb1ee5d9",39:"74f54851a1a6aef882fb",40:"6fc2c79a76d2032c1978",41:"33b81080c1024faf25a5",42:"d19aea441051b6e48574",43:"fea2f74d73fef865abc5",44:"6b085ba5eccd8e026fb4",45:"3a265bff3cd7b07c7900",46:"9c3a9e815a32eb92356e",47:"32bba029bd6b58bee9d3",48:"9f17d9a314a70880c83b",49:"ac24cf5c4d1231450939",50:"480dab4ae9e1e775459c",51:"cb35a36da37fff01aebf",52:"d011bbf6eb68b0afe482",53:"5eb6577a05917a822fa5",54:"000e875fc44a37d1bffa",55:"b6e727b20fb3f6b2db14",56:"97ccee7ced4746e51568",57:"f65318474f9d86cf98a3",58:"7eb9b5cd2237002868a5",59:"7f512eb01d2e429c2476",60:"e6b9c65ce37c1929ba43",61:"e4069c16ebc689b0dc37",62:"08c93fc8b5cec569384e",63:"0cc4b18a26aae449bca8",64:"8d2437cad744ac931b05",65:"807b32a0e187bc68743c",66:"42ecbbf6090788a9d10d",67:"572d8b732614d518f107",68:"44822454622411cfd9f8",69:"1622f95dd0bd80d9068f",70:"086f4ec313fce4f71106",71:"3f8796f29c6c5094745f",72:"982ebbee80d12d884a61",73:"e27a1e3dfbefc95f93f7",74:"d2df8a125f082781388a",75:"2c7a9137991f6fac666f",76:"6fa5a4895a9b645af850",77:"3755e506e2e6ccb2f4e0",78:"e4261d251a8566c89c9e",79:"848013c1c47cf18e2068",80:"467ffd9e01fa57b6e14b",81:"c74d80962a1a81695d82",82:"f1f0b8be9fe8c0a48f49",83:"c298352267668f8595b9",84:"a90400e8ffd6ab957550",85:"e5439abe451416c8a344",86:"20cd7c44d2dce9b99ead",87:"3406472bbdb16e57c8d8",88:"6370bc1d598bbd93ef7e",89:"f558f43eff906e67634b",90:"c580546f4c76d22b03b1",91:"cb219ccb86704f454c6c",92:"dfdd34dff7ab57b8eb9d",93:"527fae0b341867534fcb",94:"b17e42293b65c7831e31",95:"c1d089e96f3f39a8f930",96:"a08e2073928c0e6c83c6",97:"286de4a55de4f21aefa4",98:"f395537903ef38a74302",99:"56bd214ee9e9f47d1319",100:"865546ba9576dd38c90a",101:"e9b064951e0bd2ac4fc1",102:"6266585ead51278628b3",103:"bf3271c7c2a2e2595645",104:"fbf8f7757c815bd29f87",105:"a6ec2f20981d7b73244b",106:"bc8af3d6ea53d2eb4793",107:"b2afc54bb67c37efe1ea",108:"0ada5de38456bcc43a44",109:"8600f3a6bbffe3da575c",110:"575e081904c33fdaceb3",111:"9b98441d0d1d959de366",112:"080a4eafa46f0d98bc85",113:"f029a6dbfc70878a901a",114:"7895085bfda09db0ff00",115:"5f546b34f22fe04cc127",116:"2e9f2f406a8a3c456b1d",117:"5e0ad0ee12992fccd7dd",118:"845d0e356a26d78e20fc",119:"af7ccd96980e01fc1c35",120:"0ac1488d9887507081c1",121:"f9c22454583484889d19",122:"f198a229d799225c8247",123:"e04284f495f670fd6bd7",124:"29147952d0ffef007ae9"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var f=a[e];0!==f&&(f&&f[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return n.onerror=n.onload=t,d.appendChild(n),c},b.m=e,b.c=c,b.d=function(e,f,c){b.o(e,f)||Object.defineProperty(e,f,{configurable:!1,enumerable:!0,get:c})},b.n=function(e){var f=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(f,"a",f),f},b.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)},b.p="./",b.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var f=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[i],a[t]&&u.push(a[t][0]),a[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(f&&f(c,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var c={},a={127:0};function d(f){if(c[f])return c[f].exports;var a=c[f]={i:f,l:!1,exports:{}};return e[f].call(a.exports,a,a.exports,d),a.l=!0,a.exports}d.e=function(e){var f=a[e];if(0===f)return new Promise(function(e){e()});if(f)return f[2];var c=new Promise(function(c,d){f=a[e]=[c,d]});f[2]=c;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"999abf7a9bf1cf3f3996",1:"fd15a7f381f3fc4a55fe",2:"d94a4d394c954567977d",3:"cf88d56554ebd1b98880",4:"f48e99bcbd5757fd7f21",5:"9caf2662daa480edc216",6:"55e49406303ffbbe00f6",7:"04b6a76259d8e9d97f6f",8:"be237471513036d2ca07",9:"ccdd5ef4287324da425a",10:"0c309eceb04d492e8695",11:"942b57cc80d45478b004",12:"62aacaf39a18c9d0c559",13:"af8dbda8aead2733f959",14:"34ac983117b5d6440647",15:"9d0d587ff1c54fd27ed2",16:"03efbc3fd86def29dffe",17:"bea90e10f3e91e59fb36",18:"edc7a426bdab510f497a",19:"5d6c250590f251df916d",20:"b2063783bda9d1a2361e",21:"11826617f80c3d124999",22:"ed2d87a3b61cb1bcd405",23:"33ace7a5fc24922ae259",24:"f4f5fbc8a0755d988763",25:"f0488296b7e86a8c6ef0",26:"9bcaea2d90c17205d28d",27:"49a63cd5713087b37324",28:"9761aaa4091b404ec72b",29:"de009f2b0d63edea642f",30:"060b9cefa8769c93002d",31:"f831c34cfed019396376",32:"43cb44570ca4705a8e71",33:"7905d75f9175f609d621",34:"6bc9f5faa99efb8fd2e9",35:"46083964a212c678907a",36:"3a5599a16aac7937e555",37:"850afd86dcf45b00c297",38:"01bc0f8f23d0731dda44",39:"c77317bde6a560f384ce",40:"a21604896caab2ce2991",41:"5aaff40d52d018b1d342",42:"4c5c6fb596a3a580d5e6",43:"8fd4c4cc5cbfefdef418",44:"6b085ba5eccd8e026fb4",45:"ccba0860f1d79740cbfe",46:"8c5af0d05d98b6e7f672",47:"32bba029bd6b58bee9d3",48:"9f17d9a314a70880c83b",49:"ac24cf5c4d1231450939",50:"480dab4ae9e1e775459c",51:"cb35a36da37fff01aebf",52:"d011bbf6eb68b0afe482",53:"5eb6577a05917a822fa5",54:"000e875fc44a37d1bffa",55:"b6e727b20fb3f6b2db14",56:"97ccee7ced4746e51568",57:"f65318474f9d86cf98a3",58:"7eb9b5cd2237002868a5",59:"7f512eb01d2e429c2476",60:"e6b9c65ce37c1929ba43",61:"e4069c16ebc689b0dc37",62:"08c93fc8b5cec569384e",63:"0cc4b18a26aae449bca8",64:"8d2437cad744ac931b05",65:"eba6f55d8e9a3f5f1556",66:"4ff9b01f9f65e8d72911",67:"2ad7878ba5300bbb2075",68:"6ede6fc15f1a70e4d43e",69:"d94655bd1519e3531e92",70:"808db550f342fbfe1d67",71:"766bab0863a53aeb3841",72:"44f1e5c579e6a918563f",73:"7039961251ed7d629bb7",74:"c884af2dec5e08af0cd2",75:"7a4d01e46c83a23cc281",76:"1898057c255763776a04",77:"5fe1089948cad2f73adf",78:"f9f633b0110073618c51",79:"d4442b6b149ba7767c8d",80:"1fc8518538ae82357f14",81:"682025cfd603234ee193",82:"42bf4cb67fb35d1fcd32",83:"507a9073cd1259c8461b",84:"a90400e8ffd6ab957550",85:"e5439abe451416c8a344",86:"20cd7c44d2dce9b99ead",87:"c168a76e32bf6449fedb",88:"14fe0fab15433b4cde0f",89:"f57a97e9db4579af197d",90:"1563292e4aeb4451bb57",91:"cb219ccb86704f454c6c",92:"b8b28f280177a918217c",93:"c2f6f864a42a2ba094b6",94:"c42e61e21bb25d9e0150",95:"b077046d25021e946208",96:"168bdc512c663b26a069",97:"56e642d412b2fc947deb",98:"236e110d8120c6acfd7d",99:"51d3d25be9a7fc9ed94d",100:"8cd690fd2c3b369ca997",101:"e9b064951e0bd2ac4fc1",102:"6266585ead51278628b3",103:"f365ce110e2febef23d2",104:"7ddd6d683f54c5c651e4",105:"dd7cffff77160083ac84",106:"360b805cc2bdec5f62f8",107:"666d576bb039b61dfed5",108:"26497aa6b68d1990d2b5",109:"9d53d6f7cda3a99ed217",110:"7f2acc61341dfb31cc16",111:"f904f0da7f8b566254f2",112:"8de9fb6d574ec5e1563a",113:"327231106e788fa15be9",114:"ff12a943c23c0f590d98",115:"ce4969a4fb2eec09fb34",116:"876d6cbfd9ba3b20e6a3",117:"579a3852194611d7f74f",118:"21e29512096ca553a970",119:"b3a1ae7697da88feebe9",120:"88735ccd1c5ad39b0619",121:"e6c2472082fd34715888",122:"f198a229d799225c8247",123:"e04284f495f670fd6bd7",124:"29147952d0ffef007ae9"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var f=a[e];0!==f&&(f&&f[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},d.m=e,d.c=c,d.d=function(e,f,c){d.o(e,f)||Object.defineProperty(e,f,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var f=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(f,"a",f),f},d.o=function(e,f){return Object.prototype.hasOwnProperty.call(e,f)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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