webpackJsonp([37],{jOcJ:function(a,t){},owWS:function(a,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=e("Gu7T"),n=e.n(i),s=e("bzW+"),r=e("Qie6"),c=e("Z8ln"),o=e("NKg7"),h=e("Ch4/"),d=e("P9l9"),l=e("0xDb"),p={name:"salesleads",data:function(){return{bgHeight:window.screen.availHeight-288+"px",activeSelTab:"11",activeTab:"11",activeBrand:"",activeGroup:"",expiredFlag:!1,navpath:[{name:"首页",path:"/index"},{name:"营销任务",path:"/trafficTaskSet"}],defaultNavpath:[{name:"首页",path:"/index"},{name:"营销任务",path:"/trafficTaskSet"}],tabListData:[{tabId:"1",tabName:"话务任务",icon:"iconjichushezhi",children:[{tabId:"11",tabName:"话务任务设置",icon:"iconribaoshezhi"},{tabId:"12",tabName:"话务任务记录",icon:"iconribaoshezhi",children:[{tabId:"121",tabName:"门店视图"},{tabId:"122",tabName:"任务视图"}]}]},{tabId:"2",tabName:"群发任务",icon:"iconjichushezhi",children:[{tabId:"21",tabName:"群发任务记录",icon:"iconjichushezhi",children:[{tabId:"211",tabName:"门店视图"},{tabId:"212",tabName:"计划视图"}]}]}],navName:{11:"话务任务-话务任务设置",121:"话务任务-话务任务记录-门店视图",1211:"任务详情",122:"话务任务-话务任务记录-任务视图",1221:"任务门店详情",12211:"任务详情",211:"群发任务-群发任务记录-门店视图",2111:"任务详情",212:"群发任务-群发任务记录-计划视图",2121:"任务门店详情",21211:"任务详情"},navFrontPath:{11:"/trafficTaskSet",121:"/trafficTaskSet",1211:"/taskRecord",122:"/trafficTaskSet",1221:"/taskView",211:"/trafficTaskSet",2111:"/grStoreList",212:"/trafficTaskSet",2121:"/grTaskList"},enableDownloadCompleteData:0}},computed:{},methods:{toRouterView:function(a){this.$router.push({path:a.path})},changeRoute:function(a){this.$router.push(a)},setSelectTab:function(a){switch(this.activeTab=a.tabId,this.navpath[2]={name:this.navName[a.tabId],path:""},this.$store.dispatch("changeSales",Object(l.a)()),a.tabId){case"1":case"11":this.changeRoute("/trafficTaskSet");break;case"12":case"121":this.changeRoute("/taskRecord");break;case"122":this.changeRoute("/taskView");break;case"2":case"21":case"211":this.changeRoute("/grStoreList");break;case"212":this.changeRoute("/grTaskList")}},selectBrandId:function(a,t){this.activeBrand=a,this.activeGroup=t,this.getInfo(a),this.getExpired()},getInfo:function(a){var t=this;Object(d.a)("/haoban-app-tel-task-three-web/setting/find-enterprise-desensitization-setting",{gicEnterpriseId:a}).then(function(a){var e=a.data;1!=e.errorCode?h.a.errorMsg(e):t.enableDownloadCompleteData=e.result.enableDownloadCompleteData}).catch(function(a){t.$message.error({duration:1e3,message:a.message})})},getExpired:function(){var a=this,t={enterpriseId:a.activeBrand};Object(d.a)("/haoban-manage3-web/enterprise-is-over",t).then(function(t){var e=t.data;1!=e.errorCode?h.a.errorMsg(e):a.expiredFlag=e.result}).catch(function(t){a.$message.error({duration:1e3,message:t.message})})},showTab:function(a){var t=this,e=[].concat(Array.prototype.slice.call(arguments));this.activeTab=a,this.activeSelTab=a,this.navpath=[].concat(n()(this.defaultNavpath)),e.length&&e.map(function(a){t.navpath[t.navpath.length-1].path="21211"===a?"/grStoreList?ecmPlanId="+t.$route.query.ecmPlanId:"12211"===a?"/taskViewDetail?ecmId="+t.$route.query.ecmId:t.navFrontPath[a],t.navpath.push({name:t.navName[a],path:""})})}},watch:{$route:{handler:function(a,t){},deep:!0},activeGroup:function(a,t){this.activeGroup=a}},mounted:function(){this.activeBrand=JSON.parse(sessionStorage.getItem("userInfos")).enterpriseId,this.activeBrand&&this.getExpired()},components:{navCrumb:s.a,commonDetailLeft:r.a,vueOfficeHeader:o.a,expiredDialog:c.a,errMsg:h.a}},u={render:function(){var a=this,t=a.$createElement,e=a._self._c||t;return e("div",{staticClass:"my-customer-wrap common-set-wrap salesleads-wrap"},[e("vue-office-header",{attrs:{projectName:a.projectName},on:{collapseTag:a.collapseTag,toRouterView:a.toRouterView}}),a._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("nav-crumb",{attrs:{navpath:a.navpath},on:{selectBrandId:a.selectBrandId}}),a._v(" "),e("div",{staticClass:"content-body"},[e("div",{staticClass:"right-content border-box"},[e("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[e("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[e("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[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,enableDownloadCompleteData:a.enableDownloadCompleteData,activeGroupId:a.activeGroup,tabType:a.activeTab},on:{showTab:a.showTab,reNav:a.reNav}}):a._e()],1)],1)])])])])],1)]),a._v(" "),a.expiredFlag?e("expired-dialog"):a._e()],1)},staticRenderFns:[]};var b=e("VU/8")(p,u,!1,function(a){e("jOcJ"),e("xwr4")},"data-v-483a3707",null);t.default=b.exports},xwr4:function(a,t){}});