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
6.3 KiB

  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/center/consumer/consumerDetail"],{152:function(t,e,n){"use strict";n.r(e);var o=n(153),i=n.n(o);for(var s in o)"default"!==s&&function(t){n.d(e,t,(function(){return o[t]}))}(s);e["default"]=i.a},153:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{activeTotal:0,customerId:"",tipshow:!1,customerInfo:{name:"",createTime:"",agentName:""},Thevisitingrecords:[],totalRate:[],ratelist:[],fllowList:[],userInfo:{},buttonisshow:!1}},onLoad:function(t){this.customerId=t.id},onShow:function(){this.userInfo=t.getStorageSync("weapp_session_userInfo_data"),6==this.userInfo.dataCode?this.buttonisshow=!0:this.buttonisshow=!1,this.getCustomerInfo(),this.tabtimetap(0)},methods:{getVisitList:function(){var t=this;this.$u.get("/customer/findByPhoneAndProject?id="+this.customerId).then((function(e){t.Thevisitingrecords=e}))},getCustomerInfo:function(){var t=this;this.$u.get("/customer/findById",{id:this.customerId}).then((function(e){null==e.fraction&&(e.fraction="0"),null!=e.demand.cusSemanticWordsList&&(e.demand.cusSemanticWords=e.demand.cusSemanticWordsList,e.demand.cusSemanticWordsList.forEach((function(t){0==t.isInterval&&(t.name=t.name+t.unit+"-"+t.endName+t.unit)})),e.demand.cusSemanticWordsList=e.demand.cusSemanticWordsList.slice(0,3)),t.customerInfo=e}))},tabtimetap:function(t){this.activeTotal=t,0==t?this.getVisitList():1==t?this.getFollowList():this.getRatelist()},tapThevisiting:function(e){if(console.log("11111111111111"),t.showLoading({title:"加载中",mask:!0}),0!=e.yon)return setTimeout((function(){t.hideLoading()}),2e3),void t.showToast({icon:"none",title:"暂无录音",duration:2e3});var n={pageNum:1,pageSize:100,query:{customerId:e.id}};e={bg:0,customerId:e.id,id:""};t.setStorageSync("entrance",1),t.setStorageSync("searchobj",e),this.$u.post("/corpus/findByPage",n).then((function(e){if(setTimeout((function(){t.hideLoading()}),2e3),null!=e)if(0==e[0].merge){var n=e[0];t.navigateTo({url:"/pages/mine/details2?customerId=".concat(n.customerId,"&status=").concat(n.status,"&stateisshow=","2")})}else{var o=e[0];t.navigateTo({url:"/pages/mine/details?customerId=".concat(o.customerId,"&status=").concat(o.status,"&stateisshow=","1")})}else t.showToast({icon:"none",title:"暂无音频"})}))},getFollowList:function(){var t=this;this.fllowList=[],this.$u.post("/customer/getCusStage",{customerId:this.customerId}).then((function(e){e.forEach((function(e){e.agentName=t.customerInfo.agentName})),t.fllowList=e}))},followRecordAdd:function(){t.navigateTo({url:"/pages/center/consumer/newFollowup/newFollowup?id=".concat(this.customerId)})},goedit:function(){var e=t.getStorageSync("weapp_session_Menu_data");1==e.khgl_bj&&t.navigateTo({url:"/pages/center/consumer/edit?id=".concat(this.customerId)})},goRemind:function(){t.navigateTo({url:"/pages/center/consumer/remind?str=".concat(this.customerInfo.name+"/"+this.customerInfo.phone,"&customerId=").concat(this.customerId)})},clickaudeopal:function(e){0==e.selected&&t.navigateTo({url:"/pages/mine/ScoringPlaylist?customerId="+this.customerId+"&id="+e.marketingId+"&type=0"})},tipupon:function(){this.customerInfo.demand.cusSemanticWordsList&&(this.tipshow=!0)},changeshow:function(t,e){t.show=!t.show},changeshow2:function(t,e){t.show=!t.show},getRatelist:function(){var t=this;this.$u.get("/customer/findzkMByCusId",{cusId:this.customerId}).then((function(e){if(e.length){var n=[];e.forEach((function(t){0==t.pid&&n.push({id:t.marketingId,rate:t.fraction,name:t.name,sort:t.sort,show:!1,ratepercent:0,children:[]})})),e.forEach((function(t){var e=t.pid;n.forEach((function(n){e==n.id&&(0==t.selected&&(n.ratepercent+=t.fraction),n.children.push({id:t.id,rate:t.fraction,selected:t.selected,name:t.name,show:!1,marketingId:t.marketingId,children:[]}))}))})),e.forEach((function(t){var e=t.pid;n.forEach((function(n){n.children.forEach((function(n){e==n.marketingId&&n.children.push({id:t.id,rate:t.fraction,selected:t.selected,name:t.name,marketingId:t.marketingId})}))}))})),n[0].show=!0,n[0].children[0].show=!0,t.ratelist=n}}))}}};e.default=n}).call(this,n(0)["default"])},154:function(t,e,n){},211:function(t,e,n){"use strict";var o;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return o}));try{o={uCircleProgress:function(){return n.e("uview-ui/components/u-circle-progress/u-circle-progress").then(n.bind(null,595))},uPopup:function(){return n.e("uview-ui/components/u-popup/u-popup").then(n.bind(null,593))}}}catch(c){if(-1===c.message.indexOf("Cannot find module")||-1===c.message.indexOf(".vue"))throw c;console.error(c.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var i=function(){var t=this,e=t.$createElement,n=(t._self._c,t.customerInfo.phone&&1==t.customerInfo.isShow&&11==t.customerInfo.phone.length?t.customerInfo.phone.substr(0,3):null),o=t.customerInfo.phone&&1==t.customerInfo.isShow&&11==t.customerInfo.phone.length?t.customerInfo.phone.substr(7):null,i=1==t.activeTotal?t.__map(t.fllowList,(function(e,n){var o=t.__get_orig(e),i=0!=t.fllowList.length?e.agentName.slice(0,1):null;return{$orig:o,g2:i}})):null,s=2==t.activeTotal?t.__map(t.ratelist,(function(e,n){var o=t.__get_orig(e),i=0!=t.ratelist.length?(100*(e.ratepercent/e.rate).toFixed(2)).toFixed():null;return{$orig:o,g3:i}})):null;t.$mp.data=Object.assign({},{$root:{g0:n,g1:o,l0:i,l1:s}})},s=[];i._withStripped=!0},419:function(t,e,n){"use strict";(function(t){n(3);o(n(2));var e=o(n(420));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n(0)["createPage"])},420:function(t,e,n){"use strict";n.r(e);var o=n(211),i=n(152);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n(421);var c,r=n(1),a=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"5b27c1c2",null,!1,o["a"],c);a.options.__file="pages/center/consumer/consumerDetail.vue",e["default"]=a.exports},421:function(t,e,n){"use strict";var o=n(154),i=n.n(o);i.a}},[[419,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/center/consumer/consumerDetail.js.map