No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

2 líneas
6.5 KiB

  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/center/consumer/consumerDetail"],{516:function(t,e,n){"use strict";(function(t){n(5),n(6);o(n(4));var e=o(n(517));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n(1)["createPage"])},517:function(t,e,n){"use strict";n.r(e);var o=n(518),i=n(520);for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n(522);var r,c=n(17),u=Object(c["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,"5b27c1c2",null,!1,o["components"],r);u.options.__file="pages/center/consumer/consumerDetail.vue",e["default"]=u.exports},518:function(t,e,n){"use strict";n.r(e);var o=n(519);n.d(e,"render",(function(){return o["render"]})),n.d(e,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(e,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(e,"components",(function(){return o["components"]}))},519:function(t,e,n){"use strict";var o;n.r(e),n.d(e,"render",(function(){return i})),n.d(e,"staticRenderFns",(function(){return r})),n.d(e,"recyclableRender",(function(){return s})),n.d(e,"components",(function(){return o}));try{o={uCircleProgress:function(){return n.e("uview-ui/components/u-circle-progress/u-circle-progress").then(n.bind(null,727))},uPopup:function(){return n.e("uview-ui/components/u-popup/u-popup").then(n.bind(null,688))}}}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?t.customerInfo.phone.substr(0,3):null),o=t.customerInfo.phone&&1==t.customerInfo.isShow?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=!1,r=[];i._withStripped=!0},520:function(t,e,n){"use strict";n.r(e);var o=n(521),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},521: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(0==e.yon){var n={pageNum:1,pageSize:100,query:{customerId:e.id}};e={bg:0,customerId:e.id,id:""};this.$u.post("/corpus/findByPage",n).then((function(n){if(null!=n)if(0==n[0].merge){var o=n[0];t.navigateTo({url:"/pages/mine/details2?customerId=".concat(o.customerId,"&status=").concat(o.status,"&itemobj=").concat(JSON.stringify(e),"&stateisshow=","2")})}else{var i=n[0];t.navigateTo({url:"/pages/mine/details?customerId=".concat(i.customerId,"&status=").concat(i.status,"&itemobj=").concat(JSON.stringify(e),"&stateisshow=","1")})}else t.showToast({icon:"none",title:"暂无音频"})}))}else t.showToast({icon:"none",title:"暂无录音",duration:2e3})},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(){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})},tipupon:function(){this.customerInfo.demand.cusSemanticWordsList&&(this.tipshow=!0)},changeshow:function(t,e){t.show=1==e},changeshow2:function(t,e){t.show=1==e},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(1)["default"])},522:function(t,e,n){"use strict";n.r(e);var o=n(523),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},523:function(t,e,n){}},[[516,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/center/consumer/consumerDetail.js.map