webpackJsonp([20],{PJ3F:function(t,e){},W3kD:function(t,e,a){"use strict";var s=a("mvHQ"),i=a.n(s),n=a("Gu7T"),r=a.n(n),l=a("Dd8w"),o=a.n(l),_=a("fGUm"),c=a("xcuB"),d=a("gzej"),u=a("sazF"),p=a("UOPL"),g=a("cHmb"),m=a("M4fF"),f=a.n(m),h=a("la//"),v=a("erru"),y=a("2Uyi"),C={components:{selfCustomerservice:_.a,datePicker:d.a,enterpriseTag:u.a,editCon:p.a,screenPay:g.a,selfChannel:v.a,customerServiceCorpV2:c.a},props:["title","rule_id","is_copy","sysMsgCorpid"],data:function(){return{pickerOptions:{disabledDate:function(t){return t0&&(t.is_for_all=0),t.customer_filter=e.rst.customer_filter,1==t.customer_filter&&(1==e.rst.is_customize_time?(t.timeline=-1,t.afferent_time=e.rst.add_time_start&&e.rst.add_time_end?[e.rst.add_time_start,e.rst.add_time_end]:[]):t.timeline=e.rst.timeline),t.isLookCount=!1,t.gender=e.rst.gender?e.rst.gender.split(","):[],t.isTagName=2==e.rst.operate_type,t.afferent_tag_obj={tag_name_list:e.rst.tag_list?e.rst.tag_list.split(","):[],tag_id_list:e.rst.tag_list?e.rst.tag_list.split(","):[],tag:e.rst.tag_screen_type},t.afferent_exclude_tag_obj.tag_id_list=e.rst.exclude_tag_list?e.rst.exclude_tag_list.split(","):[],t.afferent_exclude_tag_obj.tag_name_list=e.rst.exclude_tag_list?e.rst.exclude_tag_list.split(","):[],t.tag_info=o()({},f.a.cloneDeep(t.afferent_tag_obj),{tag_type:t.afferent_tag_obj.tag}),t.exclude_tag_info=t.afferent_exclude_tag_obj,t.isTagName&&(e.rst.tag_list||e.rst.exclude_tag_list)?t.handleSetTagIdInfo():t.isTagName||!e.rst.tag_list&&!e.rst.exclude_tag_list||t.handleSetTagNameInfo(),t.send_type=e.rst.send_type,2==t.send_type&&(t.send_time={date:e.rst.send_time.split(" ")[0],time:e.rst.send_time.split(" ")[1]}),t.attachments=e.rst.attachments&&""!=e.rst.attachments&&"null"!=e.rst.attachments?JSON.parse(e.rst.attachments):[],t.content=e.rst.content,t.name=e.rst.name,t.payInfo={pay_status:e.rst.pay_status,pay_num_min:e.rst.pay_num_min,pay_num_max:e.rst.pay_num_max},t.operate_type=e.rst.operate_type?e.rst.operate_type:1,t.is_operation=e.rst.is_operation||0===e.rst.is_operation?e.rst.is_operation:1,t.operator_group_id=e.rst.operator_group_id?e.rst.operator_group_id:"",t.add_days_later=e.rst.add_days_later||0===e.rst.add_days_later?e.rst.add_days_later:"",2==t.operate_type&&0==t.is_operation&&Array.isArray(e.rst.multiple_senders)){t.multiple_senders=[].concat(r()(e.rst.multiple_senders));var a=[];e.rst.multiple_senders.forEach(function(t){t&&t.user_list&&Array.isArray(t.user_list)&&t.user_list.forEach(function(e){a.push({user_id:e,corpid:t.corpid})})}),t.afferent_multiple_senders=[].concat(a)}t.is_copy?(t.editFlag=!0,t.send_type=2,t.send_time={date:"",time:""}):1==t.dataInfo.enable?t.editFlag=!0:t.editFlag=!1,3==t.dataInfo.enable?t.msg_count=e.rst.estimated_user:(t.isLookCount=!0,t.massMsg_customerMatchCount())}else 4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})},getAttachment:function(t){this.attachments=t},massMsg_set:function(){var t=this;if(1!=this.operate_type||0!=this.is_for_all||this.user_id_list&&0!=this.user_id_list.length){if(2==this.operate_type){if(1==this.is_operation&&!this.operator_group_id)return void this.$message.warning("请选择运营组");if(!(0!=this.is_operation||this.multiple_senders&&this.multiple_senders.length))return void this.$message.warning("请选择成员")}if(""!=this.name){var e="";if(1==this.send_type)e=this.$getDay(0,!0).now;else{if(""==this.send_time.date)return void this.$message({message:"请选择定时发送的日期!",type:"warning"});if(""==this.send_time.time)return void this.$message({message:"请选择定时发送的时间!",type:"warning"});e=this.send_time.date+" "+this.send_time.time}if(""!=this.content||this.attachments&&""!=this.attachments&&0!=this.attachments.length)if(""!=this.content&&this.$getStrBytes(this.content)>4e3)this.$message({message:"请检查消息文本内容,最多4000个字节,已超出!",type:"error"});else if(this.attachments&&this.attachments.length&&this.attachments.length>9)this.$message({message:"最多支持添加9个附件",type:"warning"});else{var a={rule_id:this.is_copy?"":this.rule_id?this.rule_id:"",name:this.name,send_type:this.send_type,send_time:e,chat_type:1,customer_filter:this.customer_filter,gender:this.gender&&this.gender.join(","),content:this.content,attachments:""==this.attachments||0==this.attachments.length?"":i()(this.attachments),senders:1==this.operate_type&&0==this.is_for_all?this.user_id_list.join(","):"",pay_status:this.payInfo.pay_status||0==this.payInfo.pay_status?this.payInfo.pay_status:"",pay_num_min:this.payInfo.pay_num_min||0==this.payInfo.pay_num_min?this.payInfo.pay_num_min:"",pay_num_max:this.payInfo.pay_num_max||0==this.payInfo.pay_num_max?this.payInfo.pay_num_max:"",operate_type:this.operate_type,is_operation:1==this.operate_type?0:this.is_operation,operator_group_id:2==this.operate_type&&1==this.is_operation?this.operator_group_id:"",multiple_senders:2==this.operate_type&&0==this.is_operation&&this.multiple_senders.length?i()(this.multiple_senders):"",add_days_later:this.add_days_later};-1!=this.timeline?(a.is_customize_time=0,a.timeline=this.timeline):(a.is_customize_time=1,a.add_time_start=this.afferent_time&&this.afferent_time.length>1?this.afferent_time[0]:"",a.add_time_end=this.afferent_time&&this.afferent_time.length>1?this.afferent_time[1]:""),1==this.operate_type?(a.tag_screen_type=this.tag_info&&this.tag_info.tag_type?this.tag_info.tag_type:0,a.tag_list=this.tag_info&&this.tag_info.tag_id_list?this.tag_info.tag_id_list.join(","):"",a.exclude_tag_list=this.exclude_tag_info&&this.exclude_tag_info.tag_id_list?this.exclude_tag_info.tag_id_list.join(","):""):2==this.operate_type&&(a.tag_screen_type=this.tag_info&&this.tag_info.tag_type?this.tag_info.tag_type:0,a.tag_list=this.tag_info&&this.tag_info.tag_name_list?this.tag_info.tag_name_list.join(","):"",a.exclude_tag_list=this.exclude_tag_info&&this.exclude_tag_info.tag_name_list?this.exclude_tag_info.tag_name_list.join(","):""),this.$loading(this.$loadingConfig),this.$axios.post(this.URL.BASEURL+this.URL.massMsg_set,a).then(function(e){e=e.data;t.$loading(t.$loadingConfig).close(),e&&0==e.errno?(t.is_copy||!t.rule_id?t.$emit("close","update_new"):t.$emit("close","update"),t.handleClearRoute()):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.$loading(t.$loadingConfig).close()})}else this.$message({message:"请输入群发内容!",type:"warning"})}else this.$message({message:"请输入群发标题!",type:"warning"})}else this.$message({message:"请选择使用员工!",type:"warning"})},changeTime:function(t){this.isLookCount=!0,!t||t&&0==t.length?this.afferent_time=[]:this.afferent_time=t},tagDefine:function(t){this.isLookCount=!0,1==t.tag||2==t.tag?t.tag_id_list&&0!=t.tag_id_list.length?this.tag_info={tag_name_list:t.tag_name_list,tag_id_list:t.tag_id_list,tag_type:t.tag}:this.tag_info={tag_name_list:[],tag_id_list:[],tag_type:0}:this.tag_info={tag_name_list:[],tag_id_list:[],tag_type:t.tag}},exclude_tagDefine:function(t){this.isLookCount=!0,1==t.tag||2==t.tag?t.tag_id_list&&0!=t.tag_id_list.length?this.exclude_tag_info={tag_name_list:t.tag_name_list,tag_id_list:t.tag_id_list,tag_type:t.tag}:this.exclude_tag_info={tag_name_list:[],tag_id_list:[],tag_type:0}:this.exclude_tag_info={tag_name_list:[],tag_id_list:[],tag_type:t.tag}},massMsg_customerMatchCount:function(){var t=this;if(!this.customerMatchCountLoading){if(2==this.operate_type){if(1==this.is_operation&&!this.operator_group_id)return void this.$message.warning("请选择运营组");if(!(0!=this.is_operation||this.multiple_senders&&this.multiple_senders.length))return void this.$message.warning("请选择成员")}this.customerMatchCountLoading=!0;var e={senders:1==this.operate_type&&0==this.is_for_all?this.user_id_list.join(","):"",customer_filter:this.customer_filter,operate_type:this.operate_type,is_operation:1==this.operate_type?0:this.is_operation,operator_group_id:2==this.operate_type&&1==this.is_operation?this.operator_group_id:"",multiple_senders:2==this.operate_type&&0==this.is_operation&&this.multiple_senders.length?i()(this.multiple_senders):""};1==this.customer_filter&&(e.gender=this.gender&&this.gender.join(","),1==this.operate_type?(e.tag_screen_type=this.tag_info&&this.tag_info.tag_type?this.tag_info.tag_type:0,e.tag_list=this.tag_info&&this.tag_info.tag_id_list?this.tag_info.tag_id_list.join(","):"",e.exclude_tag_list=this.exclude_tag_info&&this.exclude_tag_info.tag_id_list?this.exclude_tag_info.tag_id_list.join(","):""):2==this.operate_type&&(e.tag_screen_type=this.tag_info&&this.tag_info.tag_type?this.tag_info.tag_type:0,e.tag_list=this.tag_info&&this.tag_info.tag_name_list?this.tag_info.tag_name_list.join(","):"",e.exclude_tag_list=this.exclude_tag_info&&this.exclude_tag_info.tag_name_list?this.exclude_tag_info.tag_name_list.join(","):""),e.pay_status=this.payInfo.pay_status||0==this.payInfo.pay_status?this.payInfo.pay_status:"",e.pay_num_min=this.payInfo.pay_num_min||0==this.payInfo.pay_num_min?this.payInfo.pay_num_min:"",e.pay_num_max=this.payInfo.pay_num_max||0==this.payInfo.pay_num_max?this.payInfo.pay_num_max:"",-1!=this.timeline?(e.is_customize_time=0,e.timeline=this.timeline):(e.is_customize_time=1,e.add_time_start=this.afferent_time&&this.afferent_time.length>1?this.afferent_time[0]:"",e.add_time_end=this.afferent_time&&this.afferent_time.length>1?this.afferent_time[1]:""),e.add_days_later=this.add_days_later),this.$axios.get(this.URL.BASEURL+this.URL.massMsg_customerMatchCount,{params:e}).then(function(e){e=e.data;t.customerMatchCountLoading=!1,t.isLookCount=!1,e&&0==e.errno?t.msg_count=e.rst.total:4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.customerMatchCountLoading=!1})}},handleClearRoute:function(){var t=this.$route.query.from;t&&t===h.E.PLAYLET_LINK_MINIAPP?this.$router.replace({query:{}}):t&&t===h.E.PLAYLET_LINK_H5?this.$router.replace({query:{}}):t&&t===h.E.PLAYLET_LINK_MULTI&&(this.$router.replace({query:{}}),localStorage.removeItem(h.E.PLAYLET_LINK_MULTI))},onChangeOperatorGroupId:function(t){this.operator_group_id=t,this.changeEvent()},onChangeMultiCorpUsers:function(t){var e=t.res_format_2;e&&e.length?this.multiple_senders=e.map(function(t){return{corpid:t.corpid,user_list:t.user_list.map(function(t){return t.user_id})}}):this.multiple_senders=[],this.changeEvent()},onInputAddDaysLater:function(t){this.add_days_later=Object(y.k)(t),this.changeEvent()},onChangeAddDaysLater:function(t){this.changeEvent()},handleSetTagIdInfo:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.tagList,{}).then(function(e){if((e=e.data)&&0==e.errno){var a=[],s=[];e.rst.forEach(function(e){e.tag_list.forEach(function(e){t.tag_info.tag_name_list.find(function(t){return t===e.tag_name})&&a.push(e.tag_id),t.exclude_tag_info.tag_name_list.find(function(t){return t===e.tag_name})&&s.push(e.tag_id)})}),t.tag_info.tag_id_list=[].concat(a),t.exclude_tag_info.tag_id_list=[].concat(s)}else 4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(t){})},handleSetTagNameInfo:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.tagList,{}).then(function(e){if((e=e.data)&&0==e.errno){var a=[],s=[];e.rst.forEach(function(e){e.tag_list.forEach(function(e){t.tag_info.tag_id_list.find(function(t){return t===e.tag_id})&&a.push(e.tag_name),t.exclude_tag_info.tag_id_list.find(function(t){return t===e.tag_id})&&s.push(e.tag_name)})}),t.tag_info.tag_name_list=[].concat(a),t.exclude_tag_info.tag_name_list=[].concat(s)}else 4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(t){})}}},x={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"createMassMsg"},[s("div",{staticClass:"self_drawer_title"},[s("div",{staticClass:"flex"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),s("div",{staticClass:"flex-align-center"},[s("i",{staticClass:"el-icon-close pointer",on:{click:function(e){return t.$emit("close")}}})])]),t._v(" "),t.loading?t._e():s("div",{staticClass:"bg-ffffff",staticStyle:{padding:"15px 30px"}},[s("h3",{staticClass:"bigTitle"},[t._v("基础信息\n "),t.rule_id&&!t.is_copy?[-2==t.dataInfo.enable?s("span",{staticClass:"detail_status status_del"},[t._v("已删除")]):t._e(),t._v(" "),-1==t.dataInfo.enable?s("span",{staticClass:"detail_status status_fail"},[t._v("发送失败")]):t._e(),t._v(" "),0==t.dataInfo.enable?s("span",{staticClass:"detail_status status_del"},[t._v("禁用")]):t._e(),t._v(" "),1==t.dataInfo.enable?s("span",{staticClass:"detail_status status_wait"},[t._v("待发送")]):t._e(),t._v(" "),2==t.dataInfo.enable?s("span",{staticClass:"detail_status status_ing"},[t._v("正在发送中")]):t._e(),t._v(" "),3==t.dataInfo.enable?s("span",{staticClass:"detail_status status_success"},[t._v("发送完成")]):t._e()]:t._e()],2),t._v(" "),s("div",{staticClass:"regulations"},[t._m(0),t._v(" "),s("div",{staticStyle:{display:"flex"}},[s("el-radio",{attrs:{disabled:!t.editFlag,label:1},on:{input:t.changeEvent},model:{value:t.operate_type,callback:function(e){t.operate_type=e},expression:"operate_type"}},[t._v("单个企微主体")]),t._v(" "),s("el-radio",{attrs:{disabled:!t.editFlag,label:2},on:{input:t.changeEvent},model:{value:t.operate_type,callback:function(e){t.operate_type=e},expression:"operate_type"}},[t._v("多个企微主体")])],1)]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:1==t.operate_type,expression:"operate_type == 1"}],staticClass:"regulations"},[t._m(1),t._v(" "),s("div",[s("div",{staticStyle:{display:"flex"}},[s("el-radio",{attrs:{disabled:!t.editFlag,label:1},on:{input:t.changeEvent},model:{value:t.is_for_all,callback:function(e){t.is_for_all=e},expression:"is_for_all"}},[t._v("全部员工")]),t._v(" "),s("el-radio",{attrs:{disabled:!t.editFlag,label:0},on:{input:t.changeEvent},model:{value:t.is_for_all,callback:function(e){t.is_for_all=e},expression:"is_for_all"}},[t._v("部分员工")])],1),t._v(" "),0==t.is_for_all?s("self-customerservice",{attrs:{disabled:!t.editFlag,title:"",width:"300px",afferent_users:t.user_id_list},on:{customerDefine:function(e){t.user_id_list=e,t.changeEvent()}}}):t._e()],1)]),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:2==t.operate_type,expression:"operate_type == 2"}],staticClass:"regulations"},[t._m(2),t._v(" "),s("div",[s("div",{staticStyle:{display:"flex"}},[s("el-radio",{attrs:{disabled:!t.editFlag,label:1},on:{input:t.changeEvent},model:{value:t.is_operation,callback:function(e){t.is_operation=e},expression:"is_operation"}},[t._v("运营组")]),t._v(" "),s("el-radio",{attrs:{disabled:!t.editFlag,label:0},on:{input:t.changeEvent},model:{value:t.is_operation,callback:function(e){t.is_operation=e},expression:"is_operation"}},[t._v("选择成员")])],1),t._v(" "),s("selfChannel",{directives:[{name:"show",rawName:"v-show",value:1==t.is_operation,expression:"is_operation == 1"}],ref:"operatorIdEl",attrs:{disabled:!t.editFlag,afferent_value:t.operator_group_id,title:"",type:"operatorGroup",width:"300px"},on:{channelDefine:t.onChangeOperatorGroupId}}),t._v(" "),s("customerServiceCorpV2",{directives:[{name:"show",rawName:"v-show",value:0==t.is_operation,expression:"is_operation == 0"}],attrs:{disabled:!t.editFlag,title:"",width:"300px",afferent_users:t.afferent_multiple_senders},on:{customerDefine:t.onChangeMultiCorpUsers}})],1)]),t._v(" "),s("div",{staticClass:"regulations"},[t._m(3),t._v(" "),s("div",[s("div",[s("el-radio",{attrs:{disabled:!t.editFlag,label:0},on:{change:t.changeEvent},model:{value:t.customer_filter,callback:function(e){t.customer_filter=e},expression:"customer_filter"}},[t._v("全部客户")]),t._v(" "),s("el-radio",{attrs:{disabled:!t.editFlag,label:1},on:{change:t.changeEvent},model:{value:t.customer_filter,callback:function(e){t.customer_filter=e},expression:"customer_filter"}},[t._v("筛选客户")])],1),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:1==t.customer_filter,expression:"customer_filter == 1"}],staticClass:"screeningCustomers"},[s("div",{staticClass:"screeningItem"},[s("label",[t._v("性别:")]),t._v(" "),s("el-checkbox-group",{staticClass:"checkboxGroup",attrs:{disabled:!t.editFlag},on:{change:t.changeEvent},model:{value:t.gender,callback:function(e){t.gender=e},expression:"gender"}},[s("el-checkbox",{attrs:{label:"1"}},[t._v("男性")]),t._v(" "),s("el-checkbox",{attrs:{label:"2"}},[t._v("女性")]),t._v(" "),s("el-checkbox",{attrs:{label:"0"}},[t._v("未知性别")])],1)],1),t._v(" "),s("div",{staticClass:"screeningItem"},[s("label",[t._v("付费情况:")]),t._v(" "),s("screen-pay",{staticStyle:{margin:"0"},attrs:{title:"",width:"355px",reset:t.resetFlag,afferent_obj:t.payInfo},on:{payChange:t.payChange}})],1),t._v(" "),s("div",{staticClass:"screeningItem",staticStyle:{"align-items":"flex-start"}},[s("label",[t._v("添加时间:")]),t._v(" "),s("div",{staticClass:"timeLineBox"},[s("el-radio",{attrs:{disabled:!t.editFlag,label:24},on:{change:t.changeEvent},model:{value:t.timeline,callback:function(e){t.timeline=e},expression:"timeline"}},[t._v("24小时")]),t._v(" "),s("el-radio",{attrs:{disabled:!t.editFlag,label:168},on:{change:t.changeEvent},model:{value:t.timeline,callback:function(e){t.timeline=e},expression:"timeline"}},[t._v("7天")]),t._v(" "),s("el-radio",{attrs:{disabled:!t.editFlag,label:360},on:{change:t.changeEvent},model:{value:t.timeline,callback:function(e){t.timeline=e},expression:"timeline"}},[t._v("15天")]),t._v(" "),s("el-radio",{attrs:{disabled:!t.editFlag,label:-1},on:{change:t.changeEvent},model:{value:t.timeline,callback:function(e){t.timeline=e},expression:"timeline"}},[t._v("自定义")]),t._v(" "),-1==t.timeline?s("date-picker",{staticStyle:{margin:"6px 0 8px 0"},attrs:{title:"",width:"355px",disabled:!t.editFlag,timeFlag:!0,afferent_time:t.afferent_time,pickerOptions:{},reset:t.resetFlag,defaultTime:["00:00:00","23:59:59"]},on:{changeTime:t.changeTime}}):t._e()],1)]),t._v(" "),s("div",{staticClass:"screeningItem"},[s("label",[t._v("快捷筛选:")]),t._v(" "),s("div",{staticClass:"add-days-wrap"},[s("span",[t._v("添加客服")]),t._v(" "),s("el-input",{attrs:{size:"mini",placeholder:"请输入",maxlength:"5",clearable:"",disabled:!t.editFlag},on:{input:t.onInputAddDaysLater,change:t.onChangeAddDaysLater},model:{value:t.add_days_later,callback:function(e){t.add_days_later="string"==typeof e?e.trim():e},expression:"add_days_later"}}),t._v(" "),s("span",[t._v("天后")]),t._v(" "),s("span",{staticClass:"tips"},[t._v("X天后,“X”不包含")])],1)]),t._v(" "),s("div",{staticClass:"screeningItem"},[s("label",[t._v("标签:")]),t._v(" "),s("enterprise-tag",{staticStyle:{margin:"0"},attrs:{isTagName:t.isTagName,title:"",width:"355px",disabled:!t.editFlag,afferent_obj:t.afferent_tag_obj,reset:t.resetFlag},on:{tagDefine:t.tagDefine}})],1),t._v(" "),s("div",{staticClass:"screeningItem",staticStyle:{"align-items":"flex-start"}},[s("label",[t._v("排除客户:")]),t._v(" "),s("div",{staticStyle:{flex:"1"}},[s("enterprise-tag",{staticStyle:{margin:"0"},attrs:{isTagName:t.isTagName,title:"",width:"355px",disabled:!t.editFlag,afferent_obj:t.afferent_exclude_tag_obj,excludeFlag:!0,reset:t.resetFlag},on:{tagDefine:t.exclude_tagDefine}}),t._v(" "),s("p",{staticClass:"screening-hint"},[t._v("可根据标签选择客户,群发时将不会发送给该标签内的客户。若选择了排除的客户,需要较长时间创建本条群发消息哦~")])],1)])]),t._v(" "),s("div",{staticClass:"customer_all"},[t._v("将群发消息给"+t._s(0==t.customer_filter?"全部客户的":1==t.customer_filter?"筛选客户的":"")+"\n "),t.isLookCount?s("span",{staticClass:"pointer",on:{click:t.massMsg_customerMatchCount}},[t.customerMatchCountLoading?s("i",{staticClass:"el-icon-loading"}):t._e(),t._v(" "+t._s(t.customerMatchCountLoading?"":"查看"))]):s("span",[t._v(t._s(t.msg_count))]),t._v("\n 个客户\n ")])])]),t._v(" "),s("div",{staticClass:"line"}),t._v(" "),s("h3",{staticClass:"bigTitle"},[t._v("编辑群发消息")]),t._v(" "),s("div",{staticClass:"regulations regulations2"},[t._m(4),t._v(" "),s("el-input",{staticStyle:{width:"300px"},attrs:{placeholder:"例:活动推送/拉新等",disabled:!t.editFlag,clearable:"",size:"small"},model:{value:t.name,callback:function(e){t.name="string"==typeof e?e.trim():e},expression:"name"}}),t._v(" "),s("p",{staticStyle:{"font-size":"13px","line-height":"30px",color:"#f9a527","margin-left":"10px"}},[t._v("*仅作为企业内部人员记录群发摘要,不会推送给客户")])],1),t._v(" "),s("div",{staticClass:"regulations regulations2"},[t._m(5),t._v(" "),s("editCon",{ref:"editCon",attrs:{afferent_content:t.content,afferent_attachments:t.attachments,disabled:!t.editFlag,isKHQF:!0,isShowAddPlaylet:!0},on:{editContent:function(e){t.content=e},changeAttachment:t.getAttachment}})],1),t._v(" "),s("div",{staticClass:"regulations regulations2"},[t._m(6),t._v(" "),s("div",[s("el-radio",{attrs:{disabled:!t.editFlag,label:1},model:{value:t.send_type,callback:function(e){t.send_type=e},expression:"send_type"}},[t._v("立即发送")]),t._v(" "),s("el-radio",{attrs:{disabled:!t.editFlag,label:2},model:{value:t.send_type,callback:function(e){t.send_type=e},expression:"send_type"}},[t._v("定时发送")]),t._v(" "),2==t.send_type?s("div",{staticStyle:{"margin-top":"15px"}},[s("el-date-picker",{staticStyle:{width:"160px"},attrs:{"picker-options":t.pickerOptions,disabled:!t.editFlag,size:"small","value-format":"yyyy-MM-dd",type:"date",placeholder:"选择日期"},model:{value:t.send_time.date,callback:function(e){t.$set(t.send_time,"date",e)},expression:"send_time.date"}}),t._v(" "),s("el-time-picker",{staticStyle:{width:"130px"},attrs:{disabled:!t.editFlag,size:"small",format:"HH:mm","value-format":"HH:mm:ss",placeholder:"请输入时间"},model:{value:t.send_time.time,callback:function(e){t.$set(t.send_time,"time",e)},expression:"send_time.time"}})],1):t._e()],1)]),t._v(" "),s("div",{staticClass:"regulations regulations2"},[s("label"),t._v(" "),s("div",{staticClass:"operationProcess"},[s("div",{staticClass:"process-title"},[s("h3",[t._v("企业群发的操作流程")]),t._v(" "),s("div",{staticClass:"zhankai",on:{click:function(e){t.processFlag=!t.processFlag}}},[t._v("展开 "),s("i",{class:["el-icon-arrow-down",t.processFlag?"reversalAnimation":""]})])]),t._v(" "),s("p",{staticClass:"process-hint"},[t._v("1、创建完群发任务后,员工将在企业微信上收到【客户联系】新消息通知")]),t._v(" "),s("p",{staticClass:"process-hint"},[t._v("2、员工点击【客户联系】,打开待发送的企业消息,可一键将消息发送给客户")]),t._v(" "),t.processFlag?s("img",{staticClass:"img",attrs:{src:a("fgle"),alt:""}}):t._e()])]),t._v(" "),t.sysMsgCorpid?t._e():s("div",{staticClass:"button_box"},[t.editFlag?s("button",{staticClass:"button",on:{click:t.massMsg_set}},[t._v("通知成员发送")]):t._e()])])])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("em",[this._v("*")]),this._v("选择模式:")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("em",[this._v("*")]),this._v("使用员工:")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("em",[this._v("*")]),this._v("使用员工:")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("em",[this._v("*")]),this._v("选择客户")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("em",[this._v("*")]),this._v("群发标题")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",{staticStyle:{"margin-top":"4px"}},[e("em",[this._v("*")]),this._v("群发内容")])},function(){var t=this.$createElement,e=this._self._c||t;return e("label",[e("em",[this._v("*")]),this._v("群发时间")])}]};var b=a("VU/8")(C,x,!1,function(t){a("oR68")},"data-v-1a493a42",null);e.a=b.exports},Z53l:function(t,e){},c7xQ:function(t,e,a){"use strict";var s=a("//Fk"),i=a.n(s),n=a("Xxa5"),r=a.n(n),l=a("exGp"),o=a.n(l),_=a("bEx1"),c={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"modular"},[a("div",{staticClass:"big_title flex-align-center"},[t._v("数据统计 ")]),t._v(" "),a("div",{staticClass:"flex"},[a("div",{staticClass:"member_total"},[a("div",{staticClass:"member_total_item"},[a("div",{staticClass:"num"},[t._v(t._s(t.dataInfo.executed_sender_count||0==t.dataInfo.executed_sender_count?t.$formatNum(t.dataInfo.executed_sender_count):"-")),a("span",[t._v("人")])]),t._v(" "),a("div",{staticClass:"txt"},[t._v("已发送成员")])]),t._v(" "),a("div",{staticClass:"splitLine_small"}),t._v(" "),a("div",{staticClass:"member_total_item"},[a("div",{staticClass:"num"},[t._v(t._s(t.dataInfo.receive_customer_count||0==t.dataInfo.receive_customer_count?t.$formatNum(t.dataInfo.receive_customer_count):"-")),a("span",[t._v("人")])]),t._v(" "),a("div",{staticClass:"txt"},[t._v("送达用户")])])]),t._v(" "),a("div",{staticClass:"member_total"},[a("div",{staticClass:"member_total_item"},[a("div",{staticClass:"num"},[t._v(t._s(t.dataInfo.un_execute_sender_count||0==t.dataInfo.un_execute_sender_count?t.$formatNum(t.dataInfo.un_execute_sender_count):"-")),a("span",[t._v("人")])]),t._v(" "),a("div",{staticClass:"txt"},[t._v("未发送成员")])]),t._v(" "),a("div",{staticClass:"splitLine_small"}),t._v(" "),a("div",{staticClass:"member_total_item"},[a("div",{staticClass:"num"},[t._v(t._s(t.dataInfo.un_receive_customer_count||0==t.dataInfo.un_receive_customer_count?t.$formatNum(t.dataInfo.un_receive_customer_count):"-")),a("span",[t._v("人")])]),t._v(" "),a("div",{staticClass:"txt"},[t._v("未送达客户")])])]),t._v(" "),a("div",{staticClass:"member_total"},[a("div",{staticClass:"member_total_item"},[a("div",{staticClass:"num"},[t._v(t._s(t.dataInfo.receive_fail_with_limit||0==t.dataInfo.receive_fail_with_limit?t.$formatNum(t.dataInfo.receive_fail_with_limit):"-")),a("span",[t._v("人")])]),t._v(" "),a("div",{staticClass:"txt flex-align-jus-center"},[t._v("客户接收已达上限")])]),t._v(" "),a("div",{staticClass:"splitLine_small"}),t._v(" "),a("div",{staticClass:"member_total_item"},[a("div",{staticClass:"num"},[t._v(t._s(t.dataInfo.receive_fail_with_not_friend||0==t.dataInfo.receive_fail_with_not_friend?t.$formatNum(t.dataInfo.receive_fail_with_not_friend):"-")),a("span",[t._v("人")])]),t._v(" "),a("div",{staticClass:"txt"},[t._v("因不是好友发送失败")])])])])])},staticRenderFns:[]};var d=a("VU/8")({props:["rule_id"],data:function(){return{loading:!1,dataInfo:{}}},created:function(){this.data_overview()},methods:{data_overview:function(){var t=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.massMsg_data_overview,{params:{rule_id:this.rule_id}}).then(function(e){e=e.data,t.loading=!1,e&&0==e.errno?t.dataInfo=e.rst:4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})}}},c,!1,function(t){a("jPCu")},"data-v-08da5296",null).exports,u=a("d7EF"),p=a.n(u),g=a("McOJ"),m={components:{noData:a("YLOf").a,selfInput:g.a},props:["rule_id","operate_type"],data:function(){return{memberType:"all",memberTypeList:[{id:"all",name:"全部成员"},{id:"sent",name:"已发送成员"},{id:"unsent",name:"未发送成员"},{id:"fail",name:"发送失败"}],massType:0,massTypeList:[{id:0,name:"全部"},{id:1,name:"已送达"},{id:2,name:"未送达"},{id:3,name:"接收已达上限"},{id:4,name:"已不是好友"}],input_keyword:"",loading:!1,page:1,page_size:20,total:0,pages:0,senderList:[],massSendCustList:[],cy_page:1,cy_total:0,cy_pages:0,cy_loading:!1,input_mass_keyword:"",allMemberOptions:[],user_id:"",sender_corpid:"",multiCorpUserInfo:"",exportHref:"",corpid:"",exportHref_send:""}},created:function(){sessionStorage.getItem("company_session_defaultCorp")&&"undefined"!=sessionStorage.getItem("company_session_defaultCorp")?this.corpid=JSON.parse(sessionStorage.getItem("company_session_defaultCorp")).corpid:this.corpid=this.$localSelfStore.getLocal("defaultCorp")&&"undefined"!=this.$localSelfStore.getLocal("defaultCorp")?JSON.parse(this.$localSelfStore.getLocal("defaultCorp")).corpid:"",this.sender_list_change(),this.get_allMemberOptions(),this.sendCustList_change()},methods:{onChangeMassKeyword:function(t){this.input_mass_keyword=t||"",this.sendCustList_change()},onChangeMultiCorpUser:function(t){if(t){var e=t.split("&&&"),a=p()(e,2),s=a[0],i=a[1];this.user_id=s||"",this.sender_corpid=i||""}else this.user_id="",this.sender_corpid="";this.sendCustList_change()},sender_list_change:function(){this.exportHref=this.URL.BASEURL+this.URL.sender_list_export+"?admin_id="+this.$cookie.getCookie("admin_id")+"&ttl="+Number(this.$cookie.getCookie("ttl"))+"&sign="+this.$cookie.getCookie("sign")+"&corpid="+this.corpid+"&rule_id="+this.rule_id+"&type="+this.memberType+"&keyword="+this.input_keyword,this.get_sender_list(1)},sendCustList_change:function(){this.exportHref_send=this.URL.BASEURL+this.URL.massSendCustList_export+"?admin_id="+this.$cookie.getCookie("admin_id")+"&ttl="+Number(this.$cookie.getCookie("ttl"))+"&sign="+this.$cookie.getCookie("sign")+"&corpid="+this.corpid+"&rule_id="+this.rule_id+"&type="+this.massType+"&name="+this.input_mass_keyword+"&sender="+this.user_id,2==this.operate_type&&(this.exportHref_send=this.exportHref_send+"&sender_corpid="+(this.sender_corpid||"")),this.get_mass_SendCustList(1)},get_allMemberOptions:function(){var t=this;this.$axios.get(this.URL.BASEURL+this.URL.massMsg_data_sender_list,{params:{rule_id:this.rule_id,page:1,page_size:500,type:"all"}}).then(function(e){(e=e.data)&&0==e.errno?t.allMemberOptions=e.rst.data:4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(t){})},get_sender_list:function(t){var e=this;this.page=t||this.page,this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.massMsg_data_sender_list,{params:{rule_id:this.rule_id,page:this.page,page_size:this.page_size,type:this.memberType,keyword:this.input_keyword}}).then(function(t){t=t.data;e.loading=!1,t&&0==t.errno?(e.senderList=t.rst.data,"all"==e.memberType&&e.allMemberOptions,e.total=t.rst.pageInfo.total,e.pages=t.rst.pageInfo.pages,document.getElementsByClassName("senderSccrollBox")[0].scrollTop=0):4002!=t.errno&&e.$message({message:t.err,type:"warning"})}).catch(function(t){e.loading=!1})},handleCurrentChange:function(t){this.get_sender_list(t)},get_mass_SendCustList:function(t){var e=this;this.cy_page=t||this.cy_page,this.cy_loading=!0;var a={rule_id:this.rule_id,page:this.cy_page,page_size:this.page_size,type:this.massType,name:this.input_mass_keyword,sender:this.user_id};2==this.operate_type&&(a.sender_corpid=this.sender_corpid||""),this.$axios.get(this.URL.BASEURL+this.URL.massMsg_massSendCustList,{params:a}).then(function(t){t=t.data;e.cy_loading=!1,t&&0==t.errno?(e.massSendCustList=t.rst.data,e.cy_total=t.rst.pageInfo.total,e.cy_pages=t.rst.pageInfo.pages,document.getElementsByClassName("massSendScroll")[0].scrollTop=0):4002!=t.errno&&e.$message({message:t.err,type:"warning"})}).catch(function(t){e.cy_loading=!1})},cy_handleCurrentChange:function(t){this.get_mass_SendCustList(t)}}},f={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"modular"},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"modularItem"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"big_title flex-align-center"},[t._v("成员详情")]),t._v(" "),a("a",{staticClass:"selfBtn_detial",attrs:{href:t.exportHref}},[t._v("导出")])]),t._v(" "),a("div",{staticClass:"tabBox"},t._l(t.memberTypeList,function(e){return a("div",{key:e.id+"memberTypeList",class:["tabItem",t.memberType==e.id?"active":""],on:{click:function(a){t.memberType=e.id,t.sender_list_change()}}},[t._v(t._s(e.name))])}),0),t._v(" "),a("div",{staticClass:"flex"},[a("div",{staticClass:"totalCustom"},[a("i",{staticClass:"el-icon-user-solid"}),t._v(" 共"),a("span",[t._v(t._s(t.total))]),t._v("人")]),t._v(" "),a("self-input",{attrs:{label_name:"成员昵称",hasLabel:!1},on:{inputChange:function(e){t.input_keyword=e,t.sender_list_change()}}})],1),t._v(" "),a("div",{staticClass:"userListBox self-scrollbar-3 senderSccrollBox"},[t._l(t.senderList,function(e,s){return a("div",{key:e.corpid+e.user_id+"sender"+s,staticClass:"userItem"},[a("div",{staticClass:"time"},[t._v("群发时间:"+t._s(e.send_time?e.send_time:"-"))]),t._v(" "),a("div",{staticClass:"userBox"},[a("img",{staticClass:"userImg",attrs:{src:e.avatar,alt:""}}),t._v(" "),a("div",[a("div",{staticClass:"userName"},[t._v(t._s(e.name))]),t._v(" "),2==t.operate_type?a("div",{staticClass:"corpName"},[t._v(t._s(e.corp_name))]):t._e(),t._v(" "),a("div",{staticClass:"other"},[t._v("共"+t._s(t.$formatNum(e.customer_num))+"个好友,已发送"+t._s(t.$formatNum(e.send_success))+"人")])])])])}),t._v(" "),t.senderList&&t.senderList.length<=0&&!t.loading?a("noData"):t._e()],2),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.total>t.page_size,expression:"total>page_size"}],staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next","page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange}})],1)]),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.cy_loading,expression:"cy_loading"}],staticClass:"modularItem"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"big_title flex-align-center"},[t._v("客户详情")]),t._v(" "),a("div",{staticClass:"flex-align-center"},[1==t.operate_type?[a("el-select",{attrs:{size:"mini",clearable:"",placeholder:"请选择客服"},on:{change:function(e){return t.sendCustList_change()}},model:{value:t.user_id,callback:function(e){t.user_id=e},expression:"user_id"}},t._l(t.allMemberOptions,function(t){return a("el-option",{key:t.user_id,attrs:{label:t.name,value:t.user_id}})}),1)]:2==t.operate_type?[a("el-select",{attrs:{size:"mini",clearable:"",placeholder:"请选择客服",filterable:""},on:{change:t.onChangeMultiCorpUser},model:{value:t.multiCorpUserInfo,callback:function(e){t.multiCorpUserInfo=e},expression:"multiCorpUserInfo"}},t._l(t.allMemberOptions,function(t){return a("el-option",{key:t.user_id+t.corpid,attrs:{label:t.name+"("+t.corp_name+")",value:t.user_id+"&&&"+t.corpid}})}),1)]:t._e(),t._v(" "),a("a",{staticClass:"selfBtn_detial",staticStyle:{"margin-left":"20px"},attrs:{href:t.exportHref_send}},[t._v("导出")])],2)]),t._v(" "),a("div",{staticClass:"tabBox"},t._l(t.massTypeList,function(e){return a("div",{key:e.id+"massTypeList",class:["tabItem",t.massType==e.id?"active":""],on:{click:function(a){t.massType=e.id,t.sendCustList_change()}}},[t._v(t._s(e.name))])}),0),t._v(" "),a("div",{staticClass:"flex"},[a("div",{staticClass:"totalCustom"},[a("i",{staticClass:"el-icon-user-solid"}),t._v(" 共"),a("span",[t._v(t._s(t.$formatNum(t.cy_total)))]),t._v("人")]),t._v(" "),a("self-input",{attrs:{label_name:"客户昵称",hasLabel:!1},on:{inputChange:t.onChangeMassKeyword}})],1),t._v(" "),a("div",{staticClass:"userListBox self-scrollbar-3 massSendScroll"},[t._l(t.massSendCustList,function(e,s){return a("div",{key:s+"massSend",staticClass:"userItem massList"},[a("div",{staticClass:"userBox"},[a("img",{staticClass:"userImg",attrs:{src:e.external_avatar,alt:""}}),t._v(" "),a("div",[a("div",{staticClass:"userName"},[t._v(t._s(e.external_username))]),t._v(" "),a("div",{class:["statusBox",1!=e.status?"statusBox2":""]},[t._v(t._s(0==e.status?"未发送":1==e.status?"已发送":2==e.status?"已不是好友":3==e.status?"接收已达上限":e.status_description))])])]),t._v(" "),a("div",{staticClass:"userRight"},[t._v("通过 "+t._s(e.sender_name)),2==t.operate_type&&e.corp_name?a("span",{staticStyle:{"font-size":"12px"}},[t._v("("+t._s(e.corp_name)+")")]):t._e(),t._v(" 发送")])])}),t._v(" "),t.massSendCustList&&t.massSendCustList.length<=0&&!t.cy_loading?a("noData"):t._e()],2),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.cy_total>t.page_size,expression:"cy_total>page_size"}],staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":t.cy_page,layout:"prev, pager, next","page-count":Number(t.cy_pages)},on:{"current-change":t.cy_handleCurrentChange}})],1)])])},staticRenderFns:[]};var h=a("VU/8")(m,f,!1,function(t){a("Z53l")},"data-v-1f871fd3",null).exports,v={0:"未知性别",1:"男性",2:"女性"},y={24:"24小时",168:"7天",360:"15天"},C={0:"未设置标签筛选",1:"以下标签满足其中之一",2:"以下标签同时满足",3:"无任何标签"},x={components:{phonePreview:_.a,dataTranslate:d,userDetail:h},props:["title","rule_id","sysMsgCorpid"],data:function(){return{loading:!1,dataInfo:{},attachments:[],gender:"",pay:"",tagInfo:{},addTime:"",add_days_later:""}},created:function(){this.detail()},methods:{detail:function(){var t=this;this.loading=!0;var e,a={rule_id:this.rule_id};this.sysMsgCorpid&&(a.corpid=this.sysMsgCorpid),this.$axios.get(this.URL.BASEURL+this.URL.massMsg_detail,{params:a}).then((e=o()(r.a.mark(function e(a){var s,i,n,l,o,_,c,d,u,p,g,m,f;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=a.data,t.loading=!1,!a||0!=a.errno){e.next=16;break}if(t.dataInfo=a.rst,t.attachments=a.rst.attachments&&""!=a.rst.attachments?JSON.parse(a.rst.attachments):[],1!=a.rst.customer_filter){e.next=14;break}return s=a.rst,i=s.gender,n=s.pay_status,l=s.pay_num_min,o=s.pay_num_max,_=s.is_customize_time,c=s.timeline,d=s.add_time_start,u=s.add_time_end,p=s.add_days_later,g=s.tag_screen_type,m=s.tag_list,f=s.exclude_tag_list,i&&(t.gender=i.split(",").map(function(t){return v[t]}).join("、")),t.pay=n||"0"===n||0===n?0==n?"未付费":l||o?l||""==o?""==l||o?"已付费("+l+" ~ "+o+"次)":"已付费("+l+"次)以上":"已付费("+o+"次)以下":"已付费":"",t.addTime=1==_?d&&u?"自定义("+d+"~"+u+")":"":y[c]||"",(p||0===p)&&(t.add_days_later="添加客服"+p+"天后"),e.next=13,t.handleGetTagInfo({tag_screen_type:g,tag_list:m,exclude_tag_list:f});case 13:t.tagInfo=e.sent;case 14:e.next=17;break;case 16:4002!=a.errno&&t.$message({message:a.err,type:"warning"});case 17:case"end":return e.stop()}},e,t)})),function(t){return e.apply(this,arguments)})).catch(function(e){console.log("err => ",e),t.loading=!1})},handleGetTagInfo:function(t){var e=this,a=t.tag_screen_type,s=t.tag_list,n=t.exclude_tag_list;return o()(r.a.mark(function t(){return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new i.a(function(){var t=o()(r.a.mark(function t(i,l){var o,_,c,d,u;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(1!=(o=e.dataInfo.operate_type)){t.next=14;break}return t.next=4,e.handleGetTagOptions();case 4:_=t.sent,c=[],_.forEach(function(t){t.tag_list.forEach(function(t){c.push(t)})}),d=[],s&&s.length&&s.split(",").forEach(function(t){var e=c.find(function(e){return e.tag_id===t});e&&d.push(e.tag_name)}),u=[],n&&n&&n.split(",").forEach(function(t){var e=c.find(function(e){return e.tag_id===t});e&&u.push(e.tag_name)}),i({tag_screen_type:C[a],tag_list:d,exclude_tag_list:u}),t.next=15;break;case 14:2==o&&i({tag_screen_type:C[a],tag_list:s&&s.length?s.split(","):[],exclude_tag_list:n&&n.length?n.split(","):[]});case 15:case"end":return t.stop()}},t,e)}));return function(e,a){return t.apply(this,arguments)}}()));case 1:case"end":return t.stop()}},t,e)}))()},handleGetTagOptions:function(){var t=this;return new i.a(function(e,a){var s={};t.sysMsgCorpid&&(s.corpid=t.sysMsgCorpid),t.$axios.get(t.URL.BASEURL+t.URL.tagList,{params:s}).then(function(s){(s=s.data)&&0==s.errno?e(s.rst):4002!=s.errno&&(t.$message({message:s.err,type:"warning"}),a(!1))}).catch(function(t){a(!1)})})}}},b={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{staticClass:"self_drawer_title"},[a("div",{staticClass:"flex"},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),a("div",{staticClass:"flex-align-center"},[a("i",{staticClass:"el-icon-close pointer",on:{click:function(e){return t.$emit("close")}}})])]),t._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"modular"},[a("h3",{staticClass:"bigTitle"},[t._v("基础信息\n "),t.rule_id?[-2==t.dataInfo.enable?a("span",{staticClass:"detail_status status_del"},[t._v("已删除")]):t._e(),t._v(" "),-1==t.dataInfo.enable?a("span",{staticClass:"detail_status status_fail"},[t._v("发送失败")]):t._e(),t._v(" "),0==t.dataInfo.enable?a("span",{staticClass:"detail_status status_del"},[t._v("禁用")]):t._e(),t._v(" "),1==t.dataInfo.enable?a("span",{staticClass:"detail_status status_wait"},[t._v("待发送")]):t._e(),t._v(" "),2==t.dataInfo.enable?a("span",{staticClass:"detail_status status_ing"},[t._v("正在发送中")]):t._e(),t._v(" "),3==t.dataInfo.enable?a("span",{staticClass:"detail_status status_success"},[t._v("发送完成")]):t._e()]:t._e()],2),t._v(" "),a("div",{staticClass:"flex-start"},[a("div",{staticClass:"dataInfoBox"},[a("div",{staticClass:"tMar20 flex-align-center"},[a("span",{staticClass:"lable"},[t._v("创建人:")]),t._v(" "),a("div",{staticClass:"customerServiceTagBox"},[a("div",{staticClass:"customerServiceTag"},[a("i",{staticClass:"el-icon-user-solid"}),t._v(" "+t._s(t.dataInfo.creator))])])]),t._v(" "),a("div",{staticClass:"tMar20 flex-align-center"},[a("span",{staticClass:"lable"},[t._v("群发标题:")]),t._v(" "),a("span",{staticClass:"txt"},[t._v(t._s(t.dataInfo.name))])]),t._v(" "),a("div",{staticClass:"tMar20 flex-start"},[a("span",{staticClass:"lable"},[t._v("群发内容:")]),t._v(" "),a("div",[a("span",{staticClass:"txt"},[t._v(t._s(t.dataInfo.content))]),t._v(" "),a("div",{staticClass:"syllable_ul"},t._l(t.attachments,function(e,s){return a("div",{key:s,staticClass:"fujianItem"},[a("div",{staticClass:"left"},["image"==e.msgtype?a("span",{staticClass:"flex-align-center"},[t._v("【图片】:"),a("img",{staticStyle:{width:"16px",height:"16px"},attrs:{src:e.image.pic_url,alt:""}})]):t._e(),t._v(" "),"link"==e.msgtype?a("span",[t._v("【链接】:"+t._s(e.link.title))]):t._e(),t._v(" "),"miniprogram"==e.msgtype?a("span",[t._v("【小程序】:"+t._s(e.miniprogram.title))]):t._e(),t._v(" "),"radar"==e.msgtype?a("span",[t._v("【智能雷达】:"+t._s(e.radar.title))]):t._e(),t._v(" "),"promote"==e.msgtype?a("span",[t._v("【H5推广】:"+t._s(e.promote.title))]):t._e()])])}),0)])]),t._v(" "),a("div",{staticClass:"tMar20 flex-align-center"},[a("span",{staticClass:"lable"},[t._v("使用员工:")]),t._v(" "),2==t.dataInfo.operate_type&&1==t.dataInfo.is_operation&&t.dataInfo.sender_group?[a("div",{staticClass:"flexWrap"},[a("div",{staticClass:"customerServiceTagBox"},[a("div",{staticClass:"customerServiceTag",staticStyle:{background:"transparent",color:"#00b38a"}},[t._v("运营组【"+t._s(t.dataInfo.sender_group)+"】")])])])]:[t.dataInfo.sender_name&&t.dataInfo.sender_name.length>0?a("div",{staticClass:"flexWrap"},t._l(t.dataInfo.sender_name,function(e,s){return a("div",{key:s,staticClass:"customerServiceTagBox"},[a("div",{staticClass:"customerServiceTag",staticStyle:{background:"transparent",color:"#00b38a"}},[t._v(t._s(e))])])}),0):a("div",{staticClass:"txt"},[t._v("-")])]],2),t._v(" "),a("div",{staticClass:"tMar20 flex-align-center"},[a("span",{staticClass:"lable"},[t._v("选择客户:")]),t._v(" "),a("div",{staticClass:"customer_all"},[t._v("\n 将群发消息给"+t._s(0==t.dataInfo.customer_filter?"全部客户的":1==t.dataInfo.customer_filter?"筛选客户的":"")+"\n "),a("span",[t._v(t._s(t.dataInfo.estimated_user))]),t._v("\n 个客户\n ")])]),t._v(" "),1==t.dataInfo.customer_filter?a("div",{staticClass:"tMar20 flex-start"},[a("span",{staticClass:"lable"},[t._v("筛选客户:")]),t._v(" "),a("div",[t.gender?a("div",{staticClass:"txt mb-4"},[t._v("性别:"+t._s(t.gender)+";")]):t._e(),t._v(" "),t.pay?a("div",{staticClass:"txt mb-4"},[t._v("付费情况:"+t._s(t.pay)+";")]):t._e(),t._v(" "),t.addTime?a("div",{staticClass:"txt mb-4"},[t._v("添加时间:"+t._s(t.addTime)+";")]):t._e(),t._v(" "),t.add_days_later?a("div",{staticClass:"txt mb-4"},[t._v("快捷筛选:"+t._s(t.add_days_later)+";")]):t._e(),t._v(" "),t.tagInfo.tag_screen_type?a("div",{staticClass:"txt mb-4"},[t._v(t._s(t.tagInfo.tag_screen_type)),t.tagInfo.tag_list&&t.tagInfo.tag_list.length?a("span",[t._v(":"+t._s(t.tagInfo.tag_list.join("、"))+";")]):t._e()]):t._e(),t._v(" "),t.tagInfo.exclude_tag_list&&t.tagInfo.exclude_tag_list.length?a("div",{staticClass:"txt mb-4"},[t._v("排除客户标签:"+t._s(t.tagInfo.exclude_tag_list.join("、"))+";")]):t._e()])]):t._e(),t._v(" "),a("div",{staticClass:"tMar20 flex-align-center"},[a("span",{staticClass:"lable"},[t._v("发送类型:")]),t._v(" "),a("span",{staticClass:"txt"},[t._v(t._s(1==t.dataInfo.send_type?"立即发送":2==t.dataInfo.send_type?"定时发送":"-"))])]),t._v(" "),a("div",{staticClass:"tMar20 flex-align-center"},[a("span",{staticClass:"lable"},[t._v("发送时间:")]),t._v(" "),a("span",{staticClass:"txt"},[t._v(t._s(t.dataInfo.send_time))])])]),t._v(" "),a("phonePreview",{staticStyle:{"margin-top":"-30px"},attrs:{phone_width:"260px",position_top:"0px",content:t.dataInfo.content,attachments:t.attachments}})],1)]),t._v(" "),a("div",{staticClass:"splitLine"}),t._v(" "),a("dataTranslate",{attrs:{rule_id:t.rule_id}}),t._v(" "),a("div",{staticClass:"splitLine"}),t._v(" "),a("userDetail",{attrs:{rule_id:t.rule_id,operate_type:t.dataInfo.operate_type}})],1)},staticRenderFns:[]};var w=a("VU/8")(x,b,!1,function(t){a("PJ3F")},"data-v-f4799b02",null);e.a=w.exports},jPCu:function(t,e){},oR68:function(t,e){},xDBy:function(t,e){},zDL6:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("bOdI"),i=a.n(s),n=a("Xxa5"),r=a.n(n),l=a("exGp"),o=a.n(l),_=a("gzej"),c=a("W3kD"),d=a("c7xQ"),u=a("erru"),p=a("la//"),g=a("McOJ"),m=a("bqGD"),f={components:{selfInput:g.a,datePicker:_.a,createMassMsg:c.a,massMsgDetail:d.a,selfChannel:u.a,cancelSendListDialog:m.a},data:function(){return{detialFlag:!1,massMsgFlag:!1,loading:!1,page:1,pages:0,total:0,page_size:20,pageOptionValue:2,tableData:[],user_id_list:[],add_date_start:"",add_date_end:"",resetFlag:!1,height:"",detail_rule_id:"",is_copy:!1,sort_field:"send_time",circleCreate_val:"",cancelSendDialogVisible:!1,cancelSendListType:1}},created:function(){this.height=document.documentElement.clientHeight-260>400?document.documentElement.clientHeight-260:400,this.init(1)},mounted:function(){this.handleAutoCreateMsg()},methods:{handleAutoCreateMsg:function(){var t=this;return o()(r.a.mark(function e(){var a,s,i,n,l,o,_,c,d,u,g,m,f,h,v;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=t.$route.query,s=a.from,i=a.miniProAppId,n=a.miniProPath,l=a.miniProDesc,o=a.miniProCover,_=a.h5Path,c=a.h5Desc,d=a.h5Cover,!s||s!==p.E.PLAYLET_LINK_MINIAPP){e.next=16;break}return e.prev=2,t.createdMassMsg(),e.next=6,t.$nextTick();case 6:u=t.$refs.createMassMsg,(g=u.$refs.editCon)&&(g.fileEvent("miniprogram"),g.miniprogram.appid=decodeURIComponent(i),g.miniprogram.page=decodeURIComponent(n),g.miniprogram.title=decodeURIComponent(l),g.miniprogram.pic_url=decodeURIComponent(o)),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(2),console.log("error => ",e.t0);case 14:e.next=44;break;case 16:if(!s||s!==p.E.PLAYLET_LINK_H5){e.next=31;break}return e.prev=17,t.createdMassMsg(),e.next=21,t.$nextTick();case 21:m=t.$refs.createMassMsg,(f=m.$refs.editCon)&&(f.fileEvent("linkExtend"),f.linkExtend.jump_url=decodeURIComponent(_),f.linkExtend.title=decodeURIComponent(c),f.linkExtend.picurl=decodeURIComponent(d)),e.next=29;break;case 26:e.prev=26,e.t1=e.catch(17),console.log("error => ",e.t1);case 29:e.next=44;break;case 31:if(!s||s!==p.E.PLAYLET_LINK_MULTI){e.next=44;break}return e.prev=32,t.createdMassMsg(),e.next=36,t.$nextTick();case 36:h=t.$refs.createMassMsg,(v=h.$refs.editCon)&&v.handleShowMultipleLinkEdit(),e.next=44;break;case 41:e.prev=41,e.t2=e.catch(32),console.log("error => ",e.t2);case 44:case"end":return e.stop()}},e,t,[[2,11],[17,26],[32,41]])}))()},sortFieldEvent:function(t){t!=this.sort_field&&(this.sort_field=t,this.init(1))},detailClose:function(t){"update"==t?this.init(this.page):"update_new"==t&&(this.sort_field="created_at",this.init(1),this.$refs.multipleTable.bodyWrapper.scrollTop=0),this.massMsgFlag=!1,this.detialFlag=!1},createdMassMsg:function(){this.detail_rule_id="",this.massMsgFlag=!0},remind_send:function(t){var e=this;this.$loading(this.$loadingConfig),this.$axios.get(this.URL.BASEURL+this.URL.massMsg_noticeUser,{params:{rule_id:t.rule_id}}).then(function(t){t=t.data;e.$loading(e.$loadingConfig).close(),t&&0==t.errno?e.$message({message:"操作成功!",type:"success"}):e.$message({message:t.err,type:"warning"})}).catch(function(){e.$loading(e.$loadingConfig).close()})},goDetail:function(t){this.detail_rule_id=t.rule_id,this.is_copy=!1,1==t.enable?this.massMsgFlag=!0:this.detialFlag=!0},copyDetail:function(t){this.massMsgFlag=!0,this.is_copy=!0,this.detail_rule_id=t.rule_id},welcomeMsg_del:function(t){var e=this;1!=t.enable&&0!=t.enable||this.$confirm("确定"+(1==t.enable?"禁用":"启用")+"【"+t.name+"】?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){e.$loading(e.$loadingConfig),e.$axios.get(e.URL.BASEURL+e.URL.massMsg_updateStatus,{params:{rule_id:t.rule_id,status:1==t.enable?0:1}}).then(function(t){t=t.data;e.$loading(e.$loadingConfig).close(),t&&0==t.errno?(e.$message({message:"操作成功!",type:"success"}),e.init(1)):e.$message({message:t.err,type:"warning"})}).catch(function(){e.$loading(e.$loadingConfig).close()})}).catch(function(){})},changeTime:function(t){!t||t&&0==t.length?(this.add_date_start="",this.add_date_end=""):(this.add_date_start=t[0],this.add_date_end=t[1]),this.init(1)},init:function(t,e){var a,s=this;if("export"!=e)this.page=t||this.page;else if(0==this.total)return void this.$message({message:"暂无数据可导出",type:"warning"});this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.massMsg_lists,{params:(a={creator_id:this.user_id_list,send_time_start:this.add_date_start?this.add_date_start+" 00:00:00":"",send_time_end:this.add_date_end?this.$day_format(this.$date_compatible(this.add_date_end+" 24:00:00")):"",page:"export"==e?1:this.page,page_size:"export"==e?this.$store.state.exportNumber:this.page_size,sort_column:this.sort_field},i()(a,"creator_id",this.circleCreate_val),i()(a,"keyword",this.keyword),a)}).then(function(t){t=t.data;s.loading=!1,t&&0==t.errno?(t.rst.data&&Array.isArray(t.rst.data)&&t.rst.data.forEach(function(t){t.err_msg&&!Array.isArray(t.err_msg)&&(t.err_msg=[t.err_msg])}),"export"==e?s.exportEvent(t.rst.data):(s.tableData=t.rst.data,s.total=t.rst.pageInfo.total,s.pages=t.rst.pageInfo.pages)):4002!=t.errno&&s.$message({message:t.err,type:"warning"})}).catch(function(t){s.loading=!1})},handleCurrentChange:function(t){this.init(t)},exportEvent:function(t){var e=t;e.forEach(function(t){t.send_type_name=1==t.send_type?"立即发送":2==t.send_type?"定时发送":"",t.enable_name=-2==t.enable?"已删除":-1==t.enable?"发送失败":1==t.enable?"待发送":2==t.enable?"正在发送中":3==t.enable?"发送完成":"",Array.isArray(t.err_msg)?t.err_msg_str=t.err_msg.join(";"):t.err_msg_str=t.err_msg||"",t.operate_type_info=(1==t.operate_type?"单":2==t.operate_type?"多":"")+"企微主体("+t.corp_name.join(";")+")"});var a=[{tHeader:["企业ID","群发标题","发送类型","发送时间","消息文本内容","附件信息","消息内容总数","创建人","消息送达数","消息发送失败数","总发送数","发送状态","发送失败原因","模式"],filterVal:["corpid","name","send_type_name","send_time","content","attachments","msg_count","creator","send_success","send_fail","send_total","enable_name","err_msg_str","operate_type_info"],tableDatas:e,sheetName:""}];this.$exportOrder({excelDatas:a,name:"员工群发消息(导出时间:"+this.$getDay(0)+")"})},onClickCancelSend:function(t){var e=this,a=t.name,s=t.rule_id;return o()(r.a.mark(function t(){return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.$confirm("确定停止当前群发任务吗?",""+a,{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:e.handleCancelSend(s),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),console.log("error => ",t.t0);case 9:case"end":return t.stop()}},t,e,[[0,6]])}))()},handleCancelSend:function(t){var e=this;return o()(r.a.mark(function a(){var s,i,n,l,o;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,e.loading=!0,s=""+e.URL.BASEURL+e.URL.massMsgCancel_setConfig,i={rule_id:t,type:e.cancelSendListType},a.next=6,e.$axios.post(s,i);case 6:n=a.sent,l=n.data,(o=void 0===l?{}:l)&&0==o.errno?(e.$message.success("操作成功"),e.init(e.page)):4002!=o.errno&&e.$message.warning(o.err),a.next=15;break;case 12:a.prev=12,a.t0=a.catch(0),console.log(a.t0);case 15:return a.prev=15,e.loading=!1,a.finish(15);case 18:case"end":return a.stop()}},a,e,[[0,12,15,18]])}))()},onClickCancelSendList:function(){this.cancelSendDialogVisible=!0},onCloseCancelSendDialog:function(){this.cancelSendDialogVisible=!1}}},h={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[a("div",{staticClass:"screenBox",staticStyle:{"align-items":"center","padding-right":"16px"}},[a("div",{staticClass:"flex-align-center",staticStyle:{flex:"1"}},[a("self-input",{attrs:{label_name:"群发标题"},on:{inputChange:function(e){t.keyword=e,t.init(1)}}}),t._v(" "),a("date-picker",{attrs:{title:"发送时间",reset:t.resetFlag},on:{changeTime:t.changeTime}}),t._v(" "),a("self-channel",{attrs:{title:"创建人",type:"circleCreate",labelWidth:!0},on:{channelDefine:function(e){t.circleCreate_val=e,t.init(1)}}})],1),t._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.createdMassMsg}},[t._v("新建群发")])],1),t._v(" "),a("div",{staticClass:"tableInfo"},[a("div",[a("div",{staticClass:"flex"},[a("div",{staticClass:"totalCustom"},[t._v("共有"),a("span",[t._v(t._s(t.total))]),t._v("条群发内容")])])]),t._v(" "),a("div",{staticClass:"flex"},[a("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:t.onClickCancelSendList}},[t._v("停止群发记录")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(e){return t.init(1,"export")}}},[t._v("导出Excel")]),t._v(" "),a("instructions",{staticStyle:{"margin-left":"20px"},attrs:{doc:"employee_bulk_messaging_log"}})],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{height:t.height,data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"name",label:"群发标题","show-overflow-tooltip":"",align:"center","min-width":"140",fixed:"left"}}),t._v(" "),a("el-table-column",{attrs:{label:"消息类型",align:"center","min-width":"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(t._s(1==e.row.send_type?"立即发送":2==e.row.send_type?"定时发送":""))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建人",align:"center","min-width":"140"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"customerServiceTagBox"},[a("div",{staticClass:"customerServiceTag"},[a("i",{staticClass:"el-icon-user-solid"}),t._v(" "+t._s(e.row.creator))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"模式",align:"center","min-width":"140"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[a("div",[1==s.operate_type?a("span",[t._v("单企微主体")]):2==s.operate_type?a("el-popover",{attrs:{placement:"right",width:"300",trigger:"hover"}},[s.corp_name&&s.corp_name.length?a("div",t._l(s.corp_name,function(e,s){return a("p",{key:s},[t._v(t._s(e))])}),0):t._e(),t._v(" "),a("span",{staticClass:"c-00B38A pointer",attrs:{slot:"reference"},slot:"reference"},[t._v("多企微主体")])]):t._e()],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"send_time","min-width":"160",label:"发送时间","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"header",fn:function(){return[a("div",{class:["flex-align-jus-center","pointer","send_time"==t.sort_field?"sortFieldStyle":""],on:{click:function(e){return t.sortFieldEvent("send_time")}}},[t._v("\n 发送时间\n "),a("i",{staticClass:"el-icon-caret-bottom"})])]},proxy:!0},{key:"default",fn:function(e){return[a("div",{class:"send_time"==t.sort_field?"sortFieldStyle":""},[t._v(t._s(e.row.send_time))])]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"创建时间","min-width":"160","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"header",fn:function(){return[a("div",{class:["flex-align-jus-center","pointer","created_at"==t.sort_field?"sortFieldStyle":""],on:{click:function(e){return t.sortFieldEvent("created_at")}}},[t._v("\n 创建时间\n "),a("i",{staticClass:"el-icon-caret-bottom"})])]},proxy:!0},{key:"default",fn:function(e){return[a("div",{class:"created_at"==t.sort_field?"sortFieldStyle":""},[t._v("\n "+t._s(e.row.created_at)+"\n ")])]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"estimated_user",label:"预计送达人数","show-overflow-tooltip":"",align:"center","min-width":"140"}}),t._v(" "),a("el-table-column",{attrs:{prop:"send_success",label:"送达客户数","show-overflow-tooltip":"",align:"center","min-width":"140"}}),t._v(" "),a("el-table-column",{attrs:{prop:"send_fail",label:"失败客户数","show-overflow-tooltip":"",align:"center","min-width":"140"}}),t._v(" "),a("el-table-column",{attrs:{label:"发送状态",align:"center",width:"140"},scopedSlots:t._u([{key:"default",fn:function(e){var s=e.row;return[a("div",{staticClass:"status-wrap"},[-2==s.enable?a("span",{staticClass:"c-F03F5C"},[t._v("已删除")]):-1==s.enable?a("span",{class:[s.err_msg&&s.err_msg.length?"c-F03F5C":"c-666"]},[t._v("发送失败")]):0==s.enable?a("span",{staticClass:"c-F03F5C"},[t._v("禁用")]):1==s.enable?a("span",{staticClass:"c-FFB055"},[t._v("待发送")]):2==s.enable?a("span",{staticClass:"c-448AFF"},[t._v("正在发送中")]):3==s.enable?a("span",{class:[s.err_msg&&s.err_msg.length?"c-F03F5C":"c-58BCA6"]},[t._v("发送完成")]):t._e(),t._v(" "),s.err_msg&&s.err_msg.length?[t._l(s.err_msg,function(e){return[e.length>9?a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"left",content:e}},[a("div",{staticClass:"c-666 reason"},[t._v(t._s(e))])]):a("div",{staticClass:"c-666",attrs:{title:e}},[t._v(t._s(e))])]})]:t._e()],2)]}}])}),t._v(" "),a("el-table-column",{attrs:{"min-width":"150",label:"操作",align:"center",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"flex",staticStyle:{"justify-content":"center","flex-wrap":"wrap"}},[a("el-popconfirm",{attrs:{disabled:1!=e.row.enable&&2!=e.row.enable,title:"猎羽将提醒未发送的客户发送消息,是否确认提醒 ?"},on:{confirm:function(a){return t.remind_send(e.row)}}},[1==e.row.enable||2==e.row.enable?a("div",{staticClass:"table_button",class:1==e.row.enable||2==e.row.enable?"c-00B38A pointer":"pointer-drop c-999",attrs:{slot:"reference"},slot:"reference"},[t._v("提醒")]):t._e()]),t._v(" "),1==e.row.enable||0==e.row.enable?a("div",{class:["pointer","table_button",1==e.row.enable?"c-FF604D":"c-007AFF"],on:{click:function(a){return t.welcomeMsg_del(e.row)}}},[t._v("\n "+t._s(1==e.row.enable?"禁用":0==e.row.enable?"启用":"")+"\n ")]):t._e(),t._v(" "),a("div",{staticClass:"c-00B38A pointer table_button",on:{click:function(a){return t.goDetail(e.row)}}},[t._v("详情")]),t._v(" "),a("el-popconfirm",{attrs:{title:"确定复制【"+e.row.name+"】群发消息?"},on:{confirm:function(a){return t.copyDetail(e.row)}}},[a("div",{staticClass:"c-00B38A pointer table_button",attrs:{slot:"reference"},slot:"reference"},[t._v("复制")])]),t._v(" "),3==e.row.enable?a("div",{staticClass:"pointer table_button c-FF604D",on:{click:function(a){return t.onClickCancelSend(e.row)}}},[t._v("\n 停止群发\n ")]):t._e()],1)]}}])})],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":t.page,layout:"prev, pager, next","page-count":Number(t.pages)},on:{"current-change":t.handleCurrentChange}})],1),t._v(" "),a("el-drawer",{attrs:{size:"1200px",visible:t.massMsgFlag,"with-header":!1},on:{"update:visible":function(e){t.massMsgFlag=e}}},[t.massMsgFlag?a("createMassMsg",{ref:"createMassMsg",attrs:{is_copy:t.is_copy,title:t.detail_rule_id?"群发详情":"新建群发",rule_id:t.detail_rule_id},on:{close:t.detailClose}}):t._e()],1),t._v(" "),a("el-drawer",{attrs:{size:"1200px",visible:t.detialFlag,"with-header":!1},on:{"update:visible":function(e){t.detialFlag=e}}},[t.detialFlag?a("massMsgDetail",{attrs:{title:"群发详情",rule_id:t.detail_rule_id},on:{close:t.detailClose}}):t._e()],1),t._v(" "),a("cancelSendListDialog",{attrs:{dialogVisible:t.cancelSendDialogVisible,listType:t.cancelSendListType},on:{close:t.onCloseCancelSendDialog}})],1)},staticRenderFns:[]};var v=a("VU/8")(f,h,!1,function(t){a("xDBy")},"data-v-0659c752",null);e.default=v.exports}});