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

1 line
57 KiB

3 years ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-6907","chunk-a3e9"],{"/Qhs":function(t,e,i){"use strict";var s=i("7F5A");i.n(s).a},"0H8t":function(t,e,i){"use strict";var s=i("QVgs");i.n(s).a},"1q41":function(t,e,i){},"31UX":function(t,e,i){"use strict";var s=i("QbLZ"),a=i.n(s),n=i("4d7F"),o=i.n(n),l=i("CMIa"),c=i("ehos"),r=i("7Qib");e.a={data:function(){return{chartObj:null,chartOtherObj:null,chartColors:["#6CA2FF","#6AC9D7","#72DCA2","#48E78D","#FECD51","#DBB375","#FF7474","#F59561","#A3AEBC","#4C84FF","#0DBEB4","#00DEDE","#FFAA00","#C7C116","#F7A57C","#F661AC","#8652EE"],chartXAxisStyle:{axisTick:{alignWithLabel:!0,lineStyle:{width:0}},axisLabel:{color:"#333"},axisLine:{lineStyle:{color:"#333"}},splitLine:{show:!1}},chartYAxisStyle:{axisTick:{alignWithLabel:!0,lineStyle:{width:0}},axisLabel:{color:"#333"},axisLine:{lineStyle:{color:"#333"}},splitLine:{show:!1}},currentPage:1,pageSizes:[15,30,45,60],pageSize:0,total:0,toolbox:{showTitle:!1,feature:{saveAsImage:{show:!0,pixelRatio:2}}}}},components:{FiltrateHandleView:l.a},props:{},computed:{},watch:{},mounted:function(){var t=this;this.debouncedResize=Object(c.debounce)(300,this.resizeFn),this.$nextTick(function(){window.addEventListener("resize",t.debouncedResize)})},beforeDestroy:function(){window.removeEventListener("resize",this.debouncedResize)},methods:{resizeFn:function(){this.chartObj&&this.chartObj.resize(),this.chartOtherObj&&this.chartOtherObj.resize()},handleSizeChange:function(t){this.pageData.limit=t,this.getList(this.pageData)},handleCurrentChange:function(t){this.pageData.page=t,this.getList(this.pageData)},requestExportInfo:function(t,e,i){return new o.a(function(s,n){t(a()({},e,{excel_types:i,excel_type:1})).then(function(t){Object(r.c)(t),s&&s(t)}).catch(function(t){n&&n(t)})})}},deactivated:function(){}}},"3ojK":function(t,e,i){"use strict";var s=i("c2Co"),a=i("4XAY"),n=i("Ew9n"),o=i("raay"),l=i("eOwn"),c=i("BzA1"),r=i("w4ZA"),u=i("3gPr"),d=i("CjUg"),h=i("8OTK"),p=i("f6dm"),m={name:"LeadsDetail",components:{SlideView:n.a,CRMDetailHead:o.a,Activity:l.a,CRMEditBaseInfo:r.a,RelativeFiles:u.a,RelativeHandle:d.a,ImportInfo:c.a,CRMAllCreate:h.default},mixins:[p.a],props:{id:[String,Number],listenerIDs:{type:Array,default:function(){return["crm-main-container"]}},noListenerIDs:{type:Array,default:function(){return[]}},noListenerClass:{type:Array,default:function(){return["el-table__body"]}}},data:function(){return{loading:!1,crmType:"leads",headDetails:[{title:"姓名",value:""},{title:"线索来源",value:""},{title:"手机",value:""},{title:"负责人",value:""},{title:"创建时间",value:""}],tabCurrentName:"Activity",isCreate:!1,showImportInfo:!0,importList:[]}},computed:{activityHandle:function(){var t=[];return this.canCreateFollowRecord&&(t=[{type:"log",label:"写跟进"}]),t},tabNames:function(){return[{label:"活动",name:"Activity"},{label:"详细资料",name:"CRMEditBaseInfo"},{label:this.getTabName("附件",this.tabsNumber.fileCount),name:"RelativeFiles"},{label:"操作记录",name:"RelativeHandle"}]}},mounted:function(){},methods:{getDetial:function(){var t=this;this.loading=!0,Object(s.i)({id:this.id}).then(function(e){t.detailData=e.data,0!==t.detailData.dataAuth&&(t.headDetails[0].value=e.data.name,t.headDetails[1].value=e.data.source,t.headDetails[2].value=e.data.mobile,t.headDetails[3].value=e.data.owner_user_id_info.realname||"",t.headDetails[4].value=e.data.create_time,t.loading=!1)}).catch(function(){t.loading=!1,t.hideView()}),this.getBaseInfo()},getBaseInfo:function(){var t=this;this.loading=!0,Object(a.y)({id:this.id,types:"crm_"+this.crmType,action_id:this.id,module:"crm",controller:this.crmType,action:"read",system:1}).then(function(e){t.importList=e.data,t.loading=!1}).catch(function(){t.loading=!1})},hideView:function(){this.$emit("hide-view")}}},f=(i("/Qhs"),i("KHd+")),y=Object(f.a)(m,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("slide-view",{directives:[{name:"empty",rawName:"v-empty",value:!t.canShowDetail,expression:"!canShowDetail"}],attrs:{"listener-ids":t.listenerIDs,"no-listener-ids":t.