crm_second_opening_mini/pagesA/crm/cluesManagement/cluesManagement.js

1 line
4.3 KiB
JavaScript

require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/crm/cluesManagement/cluesManagement"],{"2e05":function(t,e,i){"use strict";i.r(e);var n=i("ea41"),a=i("8873");for(var s in a)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(s);i("31d0");var u=i("f0c5"),c=Object(u["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=c.exports},"31d0":function(t,e,i){"use strict";var n=i("c873"),a=i.n(n);a.a},4209:function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("db68"),a=(i("76dd"),i("0c59")),s={components:{selectStaff:function(){Promise.all([i.e("common/vendor"),i.e("components/selectStaff")]).then(function(){return resolve(i("16c8"))}.bind(null,i)).catch(i.oe)}},data:function(){return{page:1,limit:10,totalPage:1,list:[],BASE_IMG_URL:a.BASE_IMG_URL,showSearch:!1,name:"",type:"",typeList:["全部客户","我的客户","下属负责的客户"],typeIndex:null,start_time:"",end_time:"",staffObj:null,ascripIndex:null,tabList:["全部","我负责的","下属负责的","今日待跟进","今日已联系","从未跟进的"],status:0}},onLoad:function(t){t.startTime&&(this.typeIndex=0==t.type?1:1==t.type?0:null,this.type=this.typeList[this.typeIndex],this.start_time=t.startTime,this.end_time=t.endTime,this.ascripId=t.staffid),t.stime&&(this.status=t.status,this.start_time=t.stime,this.end_time=t.etime)},onShow:function(){this.init()},onReachBottom:function(){this.page>=this.totalPage||(this.page++,this.getList())},methods:{toSelectStaff:function(){this.$refs.staffChild.init()},sureStaff:function(t){this.staffObj=t},changeTab:function(t){this.status=t,this.init()},init:function(){var t=this;this.page=1,this.totalPage=1,this.list=[],setTimeout((function(){t.getList()}),200)},doSearch:function(){this.showSearch=!1,this.init()},newFollowClick:function(e,i){t.navigateTo({url:"/pagesA/crm/customerManagement/newFllow/newFllow?id="+e+"&type="+i})},getaddCustomer:function(e){t.navigateTo({url:"/pagesA/crm/createCustomer/createCustomer?leads_id="+e})},moreClick:function(e){t.navigateTo({url:"/pagesA/crm/cluesManagement/cluesMore/cluesMore?id="+e.id})},newCluesClick:function(){t.navigateTo({url:"/pagesA/crm/cluesManagement/newClues/newClues"})},changeType:function(t){this.typeIndex=t.detail.value,this.type=this.typeList[t.detail.value]},changeStartTime:function(t){this.start_time=t.detail.value,this.end_time||(this.end_time=t.detail.value)},changeEndTime:function(t){this.end_time=t.detail.value,this.start_time||(this.start_time=t.detail.value)},reset:function(){this.name="",this.type="",this.typeIndex=null,this.start_time="",this.end_time="",this.ascripId=null,this.ascripIndex=null,this.staffObj=null},sureQuery:function(){this.showSearch=!1,this.init()},searchName:function(t){this.name=t.detail,this.init()},getList:function(){var t=this,e={page:this.page,limit:this.limit,name:this.name,createtime:this.start_time&&this.end_time?this.start_time+","+this.end_time:"",staff_id:this.staffObj?this.staffObj.id:"",type:this.typeIndex,team:this.status};(0,n.netCluesList)(e).then((function(e){t.list=t.list.concat(e.data.data),t.totalPage=e.data.last_page}))},toCall:function(e){t.makePhoneCall({phoneNumber:e})}}};e.default=s}).call(this,i("543d")["default"])},8873:function(t,e,i){"use strict";i.r(e);var n=i("4209"),a=i.n(n);for(var s in n)["default"].indexOf(s)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(s);e["default"]=a.a},c873:function(t,e,i){},cadc:function(t,e,i){"use strict";(function(t,e){var n=i("4ea4");i("8886");n(i("66fd"));var a=n(i("2e05"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(a.default)}).call(this,i("bc2e")["default"],i("543d")["createPage"])},ea41:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return s})),i.d(e,"a",(function(){return n}));var n={uRate:function(){return i.e("uview-ui/components/u-rate/u-rate").then(i.bind(null,"71b2"))},uEmpty:function(){return i.e("uview-ui/components/u-empty/u-empty").then(i.bind(null,"38b8"))}},a=function(){var t=this,e=t.$createElement,i=(t._self._c,t.list.length);t._isMounted||(t.e0=function(e){t.showSearch=!0},t.e1=function(e){e.stopPropagation(),t.showSearch=!1}),t.$mp.data=Object.assign({},{$root:{g0:i}})},s=[]}},[["cadc","common/runtime","common/vendor"]]]);