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.
 
 
 

2 lines
7.6 KiB

  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/center/consumer/index"],{146:function(e,t,n){"use strict";n.r(t);var i=n(147),s=n.n(i);for(var o in i)"default"!==o&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=s.a},147:function(e,t,n){"use strict";(function(e){function n(e){return r(e)||o(e)||s(e)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function o(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function r(e){if(Array.isArray(e))return c(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u={data:function(){return{orderBylist:[{label:"全部",value:"0"},{label:"创建时间倒序",value:"1"},{label:"创建时间正序",value:"2"},{label:"接待时间倒序",value:"3"},{label:"接待时间正序",value:"4"},{label:"执行率正序",value:"5"},{label:"执行率倒序",value:"6"},{label:"接访次数正序",value:"7"},{label:"接访次数倒序",value:"8"}],value:"",screenShow:!1,selectshow:!1,selectTipshow:!1,buildingID:"",screen:{agentId:"",agentIdtext:"",visitRecord:"",record:null,cunsumerTips:"",cunsumerTipsid:""},stageList:["未知","到访","意向","定金","成交"],recordList:[],nextPage:1,totalRecord:"",freeList:[],userInfo:{},findKeywordsList:[],isnorefresh:"",activeTotal:5,activeTotal2:0,totalTimeShow:!1,timeshow:!1,timetushow:!1,soltishow:!1,staTime:"",endtime:"",orderBy:"",permissions:{commonly1:!1,commonly2:!1}}},onLoad:function(e){this.isnorefresh=e.refresh},onShow:function(){var t=e.getStorageSync("weapp_session_Menu_data");this.permissions.commonly1=t.khgl_ck,this.permissions.commonly2=t.khgl_gj,"refresh"==this.isnorefresh&&(this.buildingID=e.getStorageSync("buildingID").id,this.nextPage=1,this.recordList=[],this.getMyCustom(),this.getFreeList(),this.getfindKeywordsList(),this.isnorefresh="")},onReachBottom:function(){this.totalRecord!=this.nextPage?(this.nextPage+=1,this.getMyCustom()):e.showToast({icon:"none",title:"到底了",duration:2e3})},methods:{tapsoltishow:function(){this.soltishow=!0},taptimetuisshow:function(){this.timetushow=!0},taptimeisshow:function(){this.timeshow=!0},selectCallback2:function(e){this.orderBy=e[0].value,this.nextPage=1,this.recordList=[],this.getMyCustom()},timetap:function(e){this.timetushow=!1,this.activeTotal2=e,this.nextPage=1,this.recordList=[],this.getMyCustom()},tabtimetap:function(e){this.timeshow=!1,4==e?this.totalTimeShow=!0:(this.activeTotal=e,this.staTime="",this.endtime="",this.nextPage=1,this.recordList=[],this.getMyCustom())},totalTimeChange:function(e){this.staTime=e.startDate,this.endtime=e.endDate,this.activeTotal=4,this.nextPage=1,this.recordList=[],this.getMyCustom()},recordclick:function(e){this.screen.record==e?this.screen.record=null:this.screen.record=e},screenvisitRecord:function(e){this.screen.visitRecord==e?this.screen.visitRecord="":this.screen.visitRecord=e},gotoDetail:function(t){1==this.permissions.commonly1&&e.navigateTo({url:"/pages/center/consumer/consumerDetail?id=".concat(t)})},getMyCustom:function(){var e=this,t=0,i=0,s=0;t=5==this.activeTotal||4==this.activeTotal?null:this.activeTotal,i=0==this.activeTotal2?null:this.activeTotal2,s=0==this.orderBy?null:this.orderBy;var o={pageNum:this.nextPage,pageSize:10,query:{projectId:this.buildingID,keywordsId:this.screen.cunsumerTipsid,agentId:this.screen.agentId,dateType:t,staDate:this.staTime,endDate:this.endtime,recDurationInterval:i,orderBy:s}};this.screen.visitRecord>0&&(o.query.visitRecord=this.screen.visitRecord),0==this.screen.record?o.query.levels=["1"]:1==this.screen.record?o.query.levels=["2"]:2==this.screen.record?o.query.levels=["3"]:3==this.screen.record?o.query.levels=["4"]:o.query.levels=null,this.$u.post("/customer/customerManagement",o).then((function(t){var i=t.results||[];console.log(i),i.forEach((function(e){null!=e.demand.cusSemanticWordsList&&e.demand.cusSemanticWordsList.forEach((function(e){0==e.isInterval&&(e.name=e.name+e.unit+"-"+e.endName+e.unit)}))})),e.recordList=[].concat(n(e.recordList),n(i)),e.totalRecord=t.totalPage}))},getFreeList:function(){var e=this;this.freeList=[],this.$u.get("/zkAgentPool/freeList?itemId="+this.buildingID).then((function(t){e.freeList=t,e.freeList.forEach((function(e){e.label=e.name,e.value=e.agentId}))}))},getfindKeywordsList:function(){var e=this;this.findKeywordsList=[],this.$u.post("/customer/findKeywords",{houseId:this.buildingID}).then((function(t){t.forEach((function(e){0==e.isInterval?e.label=e.name+e.unit+"-"+e.endName+e.unit:e.label=e.name,e.value=e.id})),e.findKeywordsList=t}))},screenshow:function(){this.screenShow=!0},actionSelectCallback:function(e){this.screen.agentId=e[0].value,this.screen.agentIdtext=e[0].label},selectCallback:function(e){this.screen.cunsumerTips=e[0].label,this.screen.cunsumerTipsid=e[0].value},reset:function(){this.screen={agentId:"",agentIdtext:"",visitRecord:"",record:null,cunsumerTips:"",cunsumerTipsid:""},this.nextPage=1,this.recordList=[],this.screenShow=!1,this.getMyCustom()},screensure:function(){this.nextPage=1,this.recordList=[],this.screenShow=!1,this.getMyCustom()},goSearch:function(){e.navigateTo({url:"/pages/center/consumer/consumerSearch"})},gotoFollowUp:function(t){e.navigateTo({url:"/pages/center/consumer/newFollowup/newFollowup?id=".concat(t)})}}};t.default=u}).call(this,n(0)["default"])},148:function(e,t,n){},209:function(e,t,n){"use strict";var i;n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));try{i={uIcon:function(){return n.e("uview-ui/components/u-icon/u-icon").then(n.bind(null,584))},uPopup:function(){return n.e("uview-ui/components/u-popup/u-popup").then(n.bind(null,593))},uInput:function(){return Promise.all([n.e("common/vendor"),n.e("uview-ui/components/u-input/u-input")]).then(n.bind(null,594))},uSelect:function(){return n.e("uview-ui/components/u-select/u-select").then(n.bind(null,582))},uCalendar:function(){return n.e("uview-ui/components/u-calendar/u-calendar").then(n.bind(null,583))}}}catch(r){if(-1===r.message.indexOf("Cannot find module")||-1===r.message.indexOf(".vue"))throw r;console.error(r.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var s=function(){var e=this,t=e.$createElement;e._self._c;e._isMounted||(e.e0=function(t){e.selectshow=!0},e.e1=function(t){e.selectTipshow=!0})},o=[];s._withStripped=!0},413:function(e,t,n){"use strict";(function(e){n(3);i(n(2));var t=i(n(414));function i(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n(0)["createPage"])},414:function(e,t,n){"use strict";n.r(t);var i=n(209),s=n(146);for(var o in s)"default"!==o&&function(e){n.d(t,e,(function(){return s[e]}))}(o);n(415);var r,c=n(1),u=Object(c["a"])(s["default"],i["b"],i["c"],!1,null,"5b2a036c",null,!1,i["a"],r);u.options.__file="pages/center/consumer/index.vue",t["default"]=u.exports},415:function(e,t,n){"use strict";var i=n(148),s=n.n(i);s.a}},[[413,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/center/consumer/index.js.map