require('../../../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/profile/staff/stafflist/staffDetail"],{"0315":function(t,e,n){"use strict";var i=n("338d"),a=n.n(i);a.a},"338d":function(t,e,n){},4203:function(t,e,n){"use strict";n.r(e);var i=n("5f70"),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},"5f70":function(t,e,n){"use strict";(function(t){var i=n("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("448a")),s=n("eec6"),o=n("0c59"),f=n("dc92"),c={components:{baseInfo:function(){n.e("pagesA/profile/staff/stafflist/baseInfo").then(function(){return resolve(n("f47f"))}.bind(null,n)).catch(n.oe)},customerList:function(){n.e("pagesA/profile/staff/stafflist/customerList").then(function(){return resolve(n("b6b1"))}.bind(null,n)).catch(n.oe)},achieveMent:function(){n.e("pagesA/profile/staff/stafflist/achievement").then(function(){return resolve(n("71f4"))}.bind(null,n)).catch(n.oe)}},data:function(){return{BASE_IMG_URL:o.BASE_IMG_URL,active:0,id:"",info:{},page:1,totalPage:1,limit:10,customerList:[],dataTime:"",achievementObj:{},current:0,list:[{name:"基本信息",status:0}]}},onLoad:function(t){this.id=t.id,this.customerList=[],this.page=1,this.totalPage=1,this.getCustomerList(),this.dataTime=(0,s.getNowData)().substr(0,7),this.getData()},onShow:function(){this.getInfo()},onReachBottom:function(){this.page>=this.totalPage||(this.page++,this.getCustomerList())},methods:{change:function(t){this.current=t},tabs_change:function(t){this.current=t,this.mescroll.resetUpScroll()},changeTab:function(t){this.active=t.detail.index},getInfo:function(){var t=this;(0,f.netStaffDetail)({id:this.id}).then((function(e){t.info=e.data}))},getCustomerList:function(){var t=this;this.id,this.limit,this.page;(0,f.netStaffofCustomerList)({id:this.id}).then((function(e){t.customerList=[].concat((0,a.default)(t.customerList),(0,a.default)(e.data.data)),t.totalPage=e.data.last_page}))},getData:function(){var t=this,e={id:this.id,date:this.dataTime};(0,f.netStaffAchievement)(e).then((function(e){t.achievementObj=e.data}))},changeDate:function(t){this.dataTime=t,this.getData()},jumpEdit:function(){t.navigateTo({url:"/pagesA/profile/staff/stafflist/editStaff?id="+this.id})},toCall:function(){t.makePhoneCall({phoneNumber:this.info.mobile})},DisabledAccount:function(){(0,f.netDisableAccount)({id:this.info.id}).then((function(e){t.showToast({title:e.msg,icon:"none"}),setTimeout((function(){t.navigateBack({delta:1})}),2e3)}))}}};e.default=c}).call(this,n("543d")["default"])},"81fa":function(t,e,n){"use strict";n.r(e);var i=n("a1f0"),a=n("4203");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("0315");var o=n("f0c5"),f=Object(o["a"])(a["default"],i["b"],i["c"],!1,null,"5ecf95de",null,!1,i["a"],void 0);e["default"]=f.exports},"8e83":function(t,e,n){"use strict";(function(t,e){var i=n("4ea4");n("8886");i(n("66fd"));var a=i(n("81fa"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])},a1f0:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var i={uTabs:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-tabs/u-tabs")]).then(n.bind(null,"5924"))}},a=function(){var t=this.$createElement,e=(this._self._c,1==this.current?0!=this.customerList.length&&1==this.active:null);this.$mp.data=Object.assign({},{$root:{g0:e}})},s=[]}},[["8e83","common/runtime","common/vendor"]]]);