webpackJsonp([64],{"/DSl":function(e,t){},erGX:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("3Xzz"),s=a("P9l9"),r=a("Ch4/"),l={name:"authMerchant",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{bgHeight:window.screen.availHeight-104+"px",callType:[],loading:!1}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},submitForm:function(){var e=this;if(!0===e.loading)return!1;e.loading=!0,e.$confirm("是否确认保存该设置?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var t={enterpriseId:sessionStorage.getItem("userInfoBrandId"),qywxEnterpriseId:JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId};e.callType.length?t.callType=e.callType.join(","):t.callType="0",Object(s.d)("/haoban-task-manage-web/market/clue/web/setting-update",t).then(function(t){var a=t.data;if(1==a.errorCode)return e.$message.success({duration:1e3,message:"保存成功！"}),e.loading=!1,e.getDeatil(),!1;e.loading=!1,r.a.errorMsg(a)}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.message})})}).catch(function(){e.loading=!1})},getDeatil:function(){var e=this,t={enterpriseId:sessionStorage.getItem("userInfoBrandId"),qywxEnterpriseId:JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId};Object(s.d)("/haoban-task-manage-web/market/clue/web/get-setting",t).then(function(t){var a=t.data;1!=a.errorCode?r.a.errorMsg(a):a.result&&"0"!==a.result.callType?e.callType=a.result.callType.split(","):e.callType=[]}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(e,t){this.getDeatil()}},mounted:function(){this.$emit("showTab",3),this.getDeatil(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{navCrumb:n.a}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{staticClass:"flex"},[a("p",{staticClass:"m-r-11 font-14 color-606266"},[e._v("电话方式选择：")]),e._v(" "),a("div",[a("el-checkbox-group",{model:{value:e.callType,callback:function(t){e.callType=t},expression:"callType"}},[a("el-checkbox",{attrs:{label:"1"}},[a("div",{staticClass:"m-b-21",staticStyle:{display:"inline-block","vertical-align":"top"}},[a("p",{staticClass:"l-h-1 m-b-5"},[e._v("公司电话")]),e._v(" "),a("p",{staticClass:"tip"},[e._v("1.对接第三方呼叫中心，外呼显示第三方号码，可监控通话状态。费用结算及通话记录存储于GIC计费中心")]),e._v(" "),a("p",{staticClass:"tip"},[e._v("2.若任务创建时无双向呼叫权限，此项设置勾选也不生效")])])]),e._v(" "),a("el-checkbox",{staticClass:"m-b-24",attrs:{label:"2"}},[a("div",{staticClass:"m-b-21",staticStyle:{display:"inline-block","vertical-align":"top"}},[a("p",{staticClass:"l-h-1 m-b-5"},[e._v("私人电话")]),e._v(" "),a("p",{staticClass:"tip"},[e._v("导购手机呼叫，无法监控通话状态。呼叫结算费用由导购手机自费")])])])],1),e._v(" "),a("p",[a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.submitForm}},[e._v("保存")]),a("span",{staticClass:"font-14 color-909399 m-l-12"},[e._v("保存后立即生效，历史数据不变，后续下达的任务按新设置运行")])],1)],1)])])])},staticRenderFns:[]};var o=a("VU/8")(l,i,!1,function(e){a("/DSl")},"data-v-7096f63c",null);t.default=o.exports}});