webpackJsonp([66],{erGX:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("3Xzz"),s=a("P9l9"),l=a("Ch4/"),r={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(t){this.$router.push(t)},submitForm:function(){var t=this;if(!0===t.loading)return!1;t.loading=!0,t.$confirm("是否确认保存该设置?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var e={enterpriseId:localStorage.getItem("userInfoBrandId"),qywxEnterpriseId:JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId};t.callType.length?e.callType=t.callType.join(","):e.callType="0",Object(s.d)("/haoban-task-manage-web/market/clue/web/setting-update",e).then(function(e){var a=e.data;if(1==a.errorCode)return t.$message.success({duration:1e3,message:"保存成功！"}),t.loading=!1,t.getDeatil(),!1;t.loading=!1,l.a.errorMsg(a)}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})}).catch(function(){t.loading=!1})},getDeatil:function(){var t=this,e={enterpriseId:localStorage.getItem("userInfoBrandId"),qywxEnterpriseId:JSON.parse(localStorage.getItem("userInfos")).wxEnterpriseId};Object(s.d)("/haoban-task-manage-web/market/clue/web/get-setting",e).then(function(e){var a=e.data;1!=a.errorCode?l.a.errorMsg(a):a.result&&"0"!==a.result.callType?t.callType=a.result.callType.split(","):t.callType=[]}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){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}},o={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;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"},[t._v("电话方式选择：")]),t._v(" "),a("div",[a("el-checkbox-group",{model:{value:t.callType,callback:function(e){t.callType=e},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"},[t._v("公司电话")]),t._v(" "),a("p",{staticClass:"tip"},[t._v("1.对接第三方呼叫中心，外呼显示第三方号码，可监控通话状态。费用结算及通话记录存储于GIC计费中心")]),t._v(" "),a("p",{staticClass:"tip"},[t._v("2.若任务创建时无双向呼叫权限，此项设置勾选也不生效")])])]),t._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"},[t._v("私人电话")]),t._v(" "),a("p",{staticClass:"tip"},[t._v("导购手机呼叫，无法监控通话状态。呼叫结算费用由导购手机自费")])])])],1),t._v(" "),a("p",[a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:t.submitForm}},[t._v("保存")]),a("span",{staticClass:"font-14 color-909399 m-l-12"},[t._v("保存后立即生效，历史数据不变，后续下达的任务按新设置运行")])],1)],1)])])])},staticRenderFns:[]};var i=a("VU/8")(r,o,!1,function(t){a("gOtx")},"data-v-63877e5c",null);e.default=i.exports},gOtx:function(t,e){}});