(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/agent/recommend/list"],{"00b8":function(e,t,n){},2266:function(e,t,n){"use strict";(function(e,a){var r=n("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n("9523")),u=r(n("448a")),i=r(n("1bf8"));function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function s(e){for(var t=1;t0&&(l.filterData[1]["submenu"]=t.map((function(e,t){return{name:e.estate_name,value:e.estate_id}})),l.filterData[1]["submenu"].unshift({value:999,name:"全部"}))})),a.api.estate.apireportgroupcount({page_size:100}).then((function(e){var t=e.report_state_count||[],a=e.report_step_count||[],r=(0,u.default)(n.filterData);t.forEach((function(e,n){1==e.report_state&&(r[2].submenu[1].name="有效(".concat(t[n].total,")")),2==e.report_state&&(r[2].submenu[2].name="审核中(".concat(t[n].total,")")),3==e.report_state&&(r[2].submenu[3].name="无效(".concat(t[n].total,")"))})),a.forEach((function(e,t){1==e.report_step&&(r[3].submenu[1].name="未到访(".concat(a[t].total,")")),2==e.report_step&&(r[3].submenu[2].name="已到访(".concat(a[t].total,")")),3==e.report_step&&(r[3].submenu[3].name="已认购(".concat(a[t].total,")")),4==e.report_step&&(r[3].submenu[4].name="已签约(".concat(a[t].total,")")),5==e.report_step&&(r[3].submenu[5].name="已结佣(".concat(a[t].total,")"))})),n.filterData=(0,u.default)(r)})),this.getDataList(),this.userInfo2=a.getStorageSync("MD_userInfo2"),this.curRoles=a.getStorageSync("MD_userInfo2")?a.getStorageSync("MD_userInfo2").roles:""},onReachBottom:function(){"nomore"!=l.loadmore.status&&(l.loadmore.currnetPage++,this.getDataList())},onPullDownRefresh:function(){},methods:{dial:function(e){a.makePhoneCall({phoneNumber:e})},listItemHandle:function(e){2==e.report_state?1==this.curRoles||5==this.curRoles||7==this.curRoles||10==this.curRoles?a.$msgConfirm("当前客户报备审核中,是否前往审核?",(function(){a.navigateTo({url:"/pages/agent/recommend/check?id=".concat(e.id,"&name=").concat(e.name,"&phone=").concat(e.phone,"&eid=").concat(e.estate_id)})})):a.$msgConfirm("当前客户报备审核中~"):a.navigateTo({url:"/pages/agent/recommend/detail?id="+e.id})},copyTextHandle:function(e){(0,i.default)({content:"项目:".concat(e.estate_name,"\n客户姓名:").concat(e.name).concat("male"==e.sex?"先生":"女士","\n客户电话:").concat(e.phone,"\n经纪人姓名:").concat(e.create_user.nickname,"\n经纪人电话:").concat(e.create_user.phone,"\n预计到访时间:尽快"),success:function(e){a.showToast({title:e,icon:"none"})},error:function(e){a.showToast({title:e,icon:"none",duration:3e3})}})},getDataList:function(e){var t=this,n=this,r=s({},this.searchFormData);if(n.filterHours>0){var o=+new Date;r.start_at=parseInt((o-36e5*n.filterHours)/1e3),r.end_at=parseInt(o/1e3)}n.filterVerifyStatus<999&&(r.report_state=n.filterVerifyStatus),n.filterStepStatus<999&&(r.report_step=n.filterStepStatus),n.filterPropertyId<999&&(r.estate_id=n.filterPropertyId),n.orderMethod>0&&(1===n.orderMethod&&(r.order_by=JSON.stringify([{field:"create_at",sort:"desc"}])),2===n.orderMethod&&(r.order_by=JSON.stringify([{field:"create_at",sort:"asc"}]))),a.api.estate.apireportlist(s({page:n.loadmore.currnetPage},r)).then((function(r){t.curTotal=r.total||0;var o=r.list||[];o.length<10&&(n.loadmore.status="nomore"),1===r.current_page?(0===o.length&&a.$msg("无搜索结果","none"),n.customerList=(0,u.default)(o)):n.customerList=n.customerList.concat(o),e&&e()}))},customBack:function(){a.reLaunch({url:"/pages/index/index"})},pageTo:function(e,t){a.navigateTo({url:e,events:{update:function(e){}},success:function(e){e.eventChannel.emit("data",t)}})},searchHandle:function(){var e=this;this.loadmore.currnetPage=1,this.getDataList((function(){e.searchPopupShow=!1}))},confirmFilter:function(e){null!==e["value"][0][0]&&(l.filterHours=e["value"][0][0]),null!==e["value"][1][0]&&(l.filterPropertyId=e["value"][1][0]),null!==e["value"][2][0]&&(l.filterVerifyStatus=e["value"][2][0]),null!==e["value"][3][0]&&(l.filterStepStatus=e["value"][3][0]),null!==e["value"][4][0]&&(l.orderMethod=e["value"][4][0]),l.loadmore.currnetPage=1,this.getDataList()},getTime:function(e){var t=e?new Date(e):new Date,n=t.getFullYear(),a=t.getMonth()+1;a=a>9?a:"0"+a;var r=t.getDate();r=r>9?r:"0"+r;var o=t.getHours();o=o>9?o:"0"+o;var u=t.getMinutes();u=u>9?u:"0"+u;var i=t.getSeconds();return i=i>9?i:"0"+i,"".concat(n,"-").concat(a,"-").concat(r," ").concat(o,":").concat(u,":").concat(i)}}};t.default=m}).call(this,n("bc2e")["default"],n("543d")["default"])},"283d":function(e,t,n){"use strict";var a=n("00b8"),r=n.n(a);r.a},"296b":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a}));var a={wmWatermark:function(){return n.e("components/wm-watermark/wm-watermark").then(n.bind(null,"e144"))},uNavbar:function(){return n.e("uni_modules/vk-uview-ui/components/u-navbar/u-navbar").then(n.bind(null,"5c7c"))},HMFilterDropdown:function(){return n.e("uni_modules/HM-filterDropdown/components/HM-filterDropdown/HM-filterDropdown").then(n.bind(null,"9be1"))},uEmpty:function(){return n.e("uni_modules/vk-uview-ui/components/u-empty/u-empty").then(n.bind(null,"078a"))},uIcon:function(){return n.e("uni_modules/vk-uview-ui/components/u-icon/u-icon").then(n.bind(null,"ccaa"))},uTag:function(){return n.e("uni_modules/vk-uview-ui/components/u-tag/u-tag").then(n.bind(null,"e7ff"))},uPopup:function(){return n.e("uni_modules/vk-uview-ui/components/u-popup/u-popup").then(n.bind(null,"7401"))},uInput:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/vk-uview-ui/components/u-input/u-input")]).then(n.bind(null,"830c"))},uDivider:function(){return n.e("uni_modules/vk-uview-ui/components/u-divider/u-divider").then(n.bind(null,"9569"))},uButton:function(){return n.e("uni_modules/vk-uview-ui/components/u-button/u-button").then(n.bind(null,"51b1b"))},uLoadmore:function(){return n.e("uni_modules/vk-uview-ui/components/u-loadmore/u-loadmore").then(n.bind(null,"8b52"))}},r=function(){var e=this,t=e.$createElement,n=(e._self._c,e.customerList.length),a=e.__map(e.customerList,(function(t,n){var a=e.__get_orig(t),r=1==t.report_state?Number(t.report_step):null;return{$orig:a,m0:r}})),r=e.customerList.length;e._isMounted||(e.e0=function(t){e.searchPopupShow=!0},e.e1=function(t){e.searchPopupShow=!1}),e.$mp.data=Object.assign({},{$root:{g0:n,l0:a,g1:r}})},o=[]},"2e93":function(e,t,n){"use strict";n.r(t);var a=n("296b"),r=n("88fe");for(var o in r)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);n("283d");var u=n("f0c5"),i=Object(u["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);t["default"]=i.exports},"88fe":function(e,t,n){"use strict";n.r(t);var a=n("2266"),r=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);t["default"]=r.a},"8a8c":function(e,t,n){"use strict";(function(e,t){var a=n("4ea4");n("2ab2");a(n("66fd"));var r=a(n("2e93"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(r.default)}).call(this,n("bc2e")["default"],n("543d")["createPage"])}},[["8a8c","common/runtime","common/vendor"]]]);