1 line
4.8 KiB
JavaScript
1 line
4.8 KiB
JavaScript
require('../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/crm/customerManagement/customerManagement"],{"040b":function(t,e,n){"use strict";n.r(e);var i=n("ef52"),s=n("a2c6");for(var a in s)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return s[t]}))}(a);n("88d6");var o=n("f0c5"),c=Object(o["a"])(s["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=c.exports},"3d09":function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=i(n("9523")),a=n("9a6f"),o=n("0c59"),c=n("fef2"),r=n("76dd"),u=n("db68");function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}var f={mixins:[c.customerPageJumps],data:function(){return{BASE_IMG_URL:o.BASE_IMG_URL,sort:!1,screen:!1,date:"",show:!1,sortData:a.customerSortDatas,screenData:[],taskShow:!1,telShow:!1,description:"",taskActions:[{name:"普通任务",color:"#03aa96"},{name:"跟进任务",color:"#03aa96"}],queryObj:{},page:1,totalPage:1,limit:10,list:[],de_type:0,de_starttime:"",de_endtime:"",cusStatus:null,de_staffid:null,tipNumber:null,isAdd:!0}},components:{selectTemp:function(){n.e("components/content/selectTemp/selectTemp").then(function(){return resolve(n("8d60"))}.bind(null,n)).catch(n.oe)},uniTabbar:function(){n.e("components/tabbar/tabbar").then(function(){return resolve(n("c4bc"))}.bind(null,n)).catch(n.oe)},selectLink:function(){n.e("components/selectLink").then(function(){return resolve(n("4c35"))}.bind(null,n)).catch(n.oe)}},onLoad:function(t){if(t.type){var e=t.type;this.de_type=0==e?1:1==e?0:null,this.de_starttime=t.startTime,this.de_endtime=t.endTime,this.de_staffid=t.staffid}t.status&&(this.de_type=t.status,this.de_starttime=t.stime,this.de_endtime=t.etime),t.cusStatus&&(this.cusStatus=t.cusStatus,this.de_starttime=t.stime,this.de_endtime=t.etime)},onShow:function(){this.getTip()},onReachBottom:function(){this.page>=this.totalPage||(this.page++,this.getList())},methods:{changeFirTab:function(t){this.de_type=t,this.init()},init:function(){this.list=[],this.page=1,this.getList()},getTip:function(){var e=this;(0,u.netAgentList)().then((function(n){t.setStorageSync("token",n.data.userinfo.token),t.setStorageSync("roleType",n.data.userinfo.role_type),t.setStorageSync("rules",n.data.userinfo.rules),e.tipNumber=n.data.total,e.init()}))},queryData:function(t){this.queryObj=t,this.init()},getList:function(){var t=this,e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){(0,s.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({page:this.page,limit:this.limit,createtime:this.de_starttime&&this.de_endtime?this.de_starttime+","+this.de_endtime:"",type:this.de_type,staff_id:this.de_staffid,contract_status:this.cusStatus},this.queryObj);(0,r.netKehuList)(e).then((function(e){e=e.data,t.list=t.list.concat(e.data),t.page=e.current_page,t.totalPage=e.last_page}))},sortClick:function(t){this.sort=t,this.screen=!1},screenClick:function(t){this.screen=t,this.sort=!1},switchover:function(t){this.screenData=t},taskClick:function(){this.taskShow=!0},telClick:function(t){this.$refs.linkChild.init(t.id)},linkInfo:function(e){t.makePhoneCall({phoneNumber:e.mobile})},selectPhone:function(e){t.makePhoneCall({phoneNumber:e.detail.phone})},onCancel:function(){this.taskShow=!1,this.telShow=!1}}};e.default=f}).call(this,n("543d")["default"])},"88d6":function(t,e,n){"use strict";var i=n("c646"),s=n.n(i);s.a},a2c6:function(t,e,n){"use strict";n.r(e);var i=n("3d09"),s=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);e["default"]=s.a},c33c:function(t,e,n){"use strict";(function(t,e){var i=n("4ea4");n("8886");i(n("66fd"));var s=i(n("040b"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(s.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},c646:function(t,e,n){},ef52:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return i}));var i={uRate:function(){return n.e("uview-ui/components/u-rate/u-rate").then(n.bind(null,"71b2"))},uEmpty:function(){return n.e("uview-ui/components/u-empty/u-empty").then(n.bind(null,"38b8"))},uActionSheet:function(){return n.e("uview-ui/components/u-action-sheet/u-action-sheet").then(n.bind(null,"b13b"))}},s=function(){var t=this.$createElement,e=(this._self._c,this.list.length);this.$mp.data=Object.assign({},{$root:{g0:e}})},a=[]}},[["c33c","common/runtime","common/vendor"]]]); |