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

  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/mine/reception/consultant"],{184:function(e,n,t){"use strict";var o;t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return c})),t.d(n,"a",(function(){return o}));try{o={uModal:function(){return t.e("uview-ui/components/u-modal/u-modal").then(t.bind(null,587))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.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 e=this,n=e.$createElement,t=(e._self._c,e.__map(e.freeList,(function(n,t){var o=e.__get_orig(n),i=n.name.slice(0,1);return{$orig:o,g0:i}})));e.$mp.data=Object.assign({},{$root:{l0:t}})},c=[];i._withStripped=!0},338:function(e,n,t){"use strict";(function(e){t(3);o(t(2));var n=o(t(339));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=t,e(n.default)}).call(this,t(0)["createPage"])},339:function(e,n,t){"use strict";t.r(n);var o=t(184),i=t(73);for(var c in i)"default"!==c&&function(e){t.d(n,e,(function(){return i[e]}))}(c);t(340);var a,s=t(1),r=Object(s["a"])(i["default"],o["b"],o["c"],!1,null,"1170a44e",null,!1,o["a"],a);r.options.__file="pages/mine/reception/consultant.vue",n["default"]=r.exports},340:function(e,n,t){"use strict";var o=t(75),i=t.n(o);i.a},73:function(e,n,t){"use strict";t.r(n);var o=t(74),i=t.n(o);for(var c in o)"default"!==c&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=i.a},74:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{customerId:"",buildingID:"",freeList:[],current:null,chosedAgentId:"",textcdhSKJ:"",show:!1,content:"东临碣石,以观沧海",confirmtext:"1",canceltext:"2",daitiReceptionobj:{},replaceReception:0}},onLoad:function(e){this.customerId=e.id},onShow:function(){this.buildingID=e.getStorageSync("buildingID").id,this.getFreeList()},methods:{confirmA:function(){null!=this.daitiReceptionobj.assign?this.baochunfun():e.showToast({icon:"none",title:"【"+this.daitiReceptionobj.owner.name+"】正在接待中"})},confirmB:function(){this.replaceReception=1,this.baochunfun()},save:function(){if(console.log(this.chosedAgentId),this.chosedAgentId){var n=this;this.$u.post("customer/daitiReception",{agentId:n.chosedAgentId,id:n.customerId,projectId:this.buildingID}).then((function(e){0==e.unchecked||0==e.zs||null==e.assign&&null==e.replacement?n.baochunfun():null==e.assign?(n.daitiReceptionobj=e,n.content="此客户的顾问为【"+e.owner.name+"】,确认让【"+e.replacement.name+"】代接待吗?",n.confirmtext=e.replacement.name+"代接代",n.canceltext=e.owner.name+"接待",n.show=!0):(n.daitiReceptionobj=e,n.content="此客户的顾问为【"+e.owner.name+"】,确认让【"+e.replacement.name+"】代接待吗?",n.confirmtext=e.replacement.name+"代接代",n.canceltext=e.assign.name+"接待",n.show=!0)}))}else e.showToast({icon:"none",title:"未选择指派顾问"})},baochunfun:function(){e.showLoading({title:"保存中",mask:!0});var n=this;this.$u.post("customer/assign",{agentId:n.chosedAgentId,id:n.customerId,replaceReception:this.replaceReception}).then((function(n){e.showToast({icon:"none",title:"分配成功"}),e.navigateBack(),e.hideLoading()}))},getFreeList:function(){var e=this;this.$u.get("/zkAgentPool/freeList?itemId="+this.buildingID).then((function(n){0==n.length?e.freeList=[]:(e.freeList=n,e.textcdhSKJ=n[0].name)}))},radioChange:function(e){this.chosedAgentId="",this.chosedAgentId=e.detail.value}}};n.default=t}).call(this,t(0)["default"])},75:function(e,n,t){}},[[338,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../../.sourcemap/mp-weixin/pages/mine/reception/consultant.js.map