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-418b.bd6b5ff5.js

1 line
62 KiB

4 years ago
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-418b","chunk-7a7a","chunk-1409","chunk-4ee5","chunk-4ee54","chunk-4ee54a","chunk-4ee54a4","chunk-7d53","chunk-e3ec"],{"0H8t":function(t,e,i){"use strict";var s=i("QVgs");i.n(s).a},"1F+2":function(t,e,i){},"2MCj":function(t,e,i){"use strict";var s=i("1F+2");i.n(s).a},"3z7q":function(t,e,i){"use strict";i.r(e);var s=i("7Qib"),n=i("3ojK"),a=i("1bNe"),o=i("gwiD"),l=i("vV2+"),c=i("mVxz"),r=i("tMlD"),d=i("ALhW"),u=i("slnp"),p=i("pKm3"),h=i("QbLZ"),m=i.n(h),f=i("VmBU"),v=i("Ir+r"),_=i("Ew9n"),y=i("MdnP"),g=i("hwzM"),b=i("/407"),w=i("BsgX"),C=i("KmSi"),k=i("dPzk"),T=i("z7oh"),D=i("L2JU"),L=i("jHPx"),x={name:"LogDetail",components:{SlideView:_.a,PictureListView:y.a,FileCell:g.a,RelatedBusinessCell:b.a,ReportMenu:w.a,ReportList:C.a,ReplyComment:k.a,CommentList:T.a,CRMFullScreenDetail:function(){return Promise.resolve().then(i.bind(null,"3z7q"))}},props:{id:[String,Number],noListenerClass:{type:Array,default:function(){return["el-table__body"]}}},data:function(){return{loading:!1,detail:null,relatedID:"",relatedCRMType:"",showRelatedDetail:!1,reportList:[{type:"customer",key:"customerNum",info:"今日新增客户",name:"今日新增客户 0"},{type:"business",key:"businessNum",info:"今日新增商机",name:"今日新增商机 0"},{type:"contract",key:"contractNum",info:"今日新增合同",name:"今日新增合同 0"},{type:"receivables",key:"receivablesMoneyNum",info:"今日新增回款",name:"今日新增回款 0"},{type:"record",key:"recordNum",info:"今日新增跟进记录",name:"今日新增跟进记录 0"}],reportListShow:!1,fieldReportList:null,reportData:{title:"",placeholder:"",crmType:"",request:null,recordRequest:f.h,params:null,paging:!0,sortable:!1},commentLoading:!1,replyList:[]}},computed:m()({},Object(D.b)(["userInfo"]),{relatedListData:function(){for(var t={},e=["contacts","customer","business","contract"],i=0;i<e.length;i++){var s=e[i],n=this.detail[s+"List"]||[];n.length>0&&(t[s]=n)}return t}}),watch:{id:function(){this.viewAfterEnter()}},mounted:function(){},beforeDestroy:function(){},methods:{viewAfterEnter:function(){this.detail=null,this.getDetail()},getDetail:function(){var t=this;this.loading=!0,Object(f.i)({log_id:this.id}).then(function(e){if(t.detail=e.data.list,t.replyList=t.detail.replyList,t.detail.bulletin){var i=t.detail.bulletin||{};t.reportList=t.reportList.map(function(t){return"receivablesMoney"==t.key&&(i.receivablesMoney=Object(L.h)(Math.floor(i.receivablesMoney||0))),t.name=t.info+" "+i[t.key],t})}t.loading=!1}).catch(function(){t.loading=!1,t.hideView()})},checkRelatedDetail:function(t,e){this.relatedID=e[t+"_id"],this.relatedCRMType=t,this.showRelatedDetail=!0},hideView:function(){this.$emit("close"),this.$emit("hide-view")},reportSelect:function(t,e){e=this.detail,t.type&&(this.reportData.title="销售简报-"+t.info,this.reportData.placeholder={customer:"请输入客户名称",business:"请输入商机名称",contract:"请输入合同名称",receivables:"请输入回款编号",record:""}[t.type],this.reportData.crmType=t.type,this.reportData.params=e?{log_id:e.log_id}:{today:1},this.reportData.params.type={customer:1,business:2,contract:3,receivables:4,record:5}[t.type],"record"==t.type?(this.fieldReportList=[{label:"模块",prop:"crmType",width:300},{label:"新增跟进记录数",prop:"count"}],this.reportData.request=f.j,this.reportData.paging=!1,this.reportData.sortable=!1):(this.fieldReportList=this.getReportFieldList(t.type),this.reportData.request=f.h,this.reportData.paging=!0,this.reportData.sortable="custom"),this.reportListShow=!0)},getReportFieldList:function(t){return{customer:[{label:"客户名称",prop:"name"},{label:"成交状态",prop:"deal_status"},{label:"最后跟进时间",prop:"last_time"},{label:"创建时间",prop:"create_time"},{label:"负责人",prop:"owner_user_name"}],business:[{label:"商机名称",prop:"name"},{label:"商机阶段",prop:"status_name"},{label:"最后跟进时间",prop:"last_time"},{label:"创建时间",prop:"create_time"},{label:"负责人",prop:"owner_user_name"}],contract:[{label:"