1 |
- webpackJsonp([17],{"/bbr":function(t,e){},"2SWO":function(t,e){},EWGf:function(t,e){},VGot:function(t,e){},bOLW:function(t,e){},fgle:function(t,e,s){t.exports=s.p+"static/img/exterprise-mass-send.ee20127.png"},zDL6:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=s("bOdI"),i=s.n(a),n=s("Xxa5"),l=s.n(n),r=s("exGp"),o=s.n(r),_=s("gzej"),c=s("mvHQ"),d=s.n(c),u=s("Dd8w"),m=s.n(u),g=s("fGUm"),v=s("sazF"),p=s("UOPL"),f=s("cHmb"),h=s("M4fF"),C=s.n(h),y=s("la//"),b={components:{selfCustomerservice:g.a,datePicker:_.a,enterpriseTag:v.a,editCon:p.a,screenPay:f.a},props:["title","rule_id","is_copy"],data:function(){return{pickerOptions:{disabledDate:function(t){return t<Date.now()-864e5},shortcuts:[{text:"今天",onClick:function(t){t.$emit("pick",new Date)}},{text:"明天",onClick:function(t){var e=new Date;e.setTime(e.getTime()+864e5),t.$emit("pick",e)}},{text:"一周后",onClick:function(t){var e=new Date;e.setTime(e.getTime()+6048e5),t.$emit("pick",e)}}]},loading:!0,customer_filter:0,gender:[],resetFlag:!1,afferent_time:[],send_type:1,send_time:{date:"",time:""},processFlag:!1,dataInfo:{},editFlag:!1,afferent_tag_obj:{tag_id_list:[],tag:1},afferent_exclude_tag_obj:{tag_id_list:[],tag:1},msg_count:"",attachments:[],content:"",name:"",tag_info:{},exclude_tag_info:{},is_for_all:1,user_id_list:[],customerMatchCountLoading:!1,isLookCount:!0,payInfo:{},timeline:-1}},created:function(){this.rule_id?this.detail():(this.editFlag=!0,this.loading=!1)},methods:{payChange:function(t){this.payInfo={pay_status:t.radio,pay_num_min:t.minValue,pay_num_max:t.maxValue},this.isLookCount=!0},changeEvent:function(){this.isLookCount=!0},detail:function(){var t=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.massMsg_detail,{params:{rule_id:this.rule_id}}).then(function(e){e=e.data;t.loading=!1,e&&0==e.errno?(t.dataInfo=e.rst,t.user_id_list=e.rst.senders?e.rst.senders.split(","):[],e.rst.senders&&e.rst.senders.length>0&&(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.afferent_tag_obj={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.tag_info=m()({},C.a.cloneDeep(t.afferent_tag_obj),{tag_type:t.afferent_tag_obj.tag}),t.exclude_tag_info=t.afferent_exclude_tag_obj,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.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())):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(0!=this.is_for_all||this.user_id_list&&0!=this.user_id_list.length)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{this.$loading(this.$loadingConfig);var s={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(","),tag_screen_type:this.tag_info&&this.tag_info.tag_type?this.tag_info.tag_type:0,tag_list:this.tag_info&&this.tag_info.tag_id_list?this.tag_info.tag_id_list.join(","):"",exclude_tag_list:this.exclude_tag_info&&this.exclude_tag_info.tag_id_list?this.exclude_tag_info.tag_id_list.join(","):"",content:this.content,attachments:""==this.attachments||0==this.attachments.length?"":d()(this.attachments),senders: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:""};console.log(this.afferent_time),-1!=this.timeline?(s.is_customize_time=0,s.timeline=this.timeline):(s.is_customize_time=1,s.add_time_start=this.afferent_time&&this.afferent_time.length>1?this.afferent_time[0]:"",s.add_time_end=this.afferent_time&&this.afferent_time.length>1?this.afferent_time[1]:""),this.$axios.post(this.URL.BASEURL+this.URL.massMsg_set,s).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_id_list:t.tag_id_list,tag_type:t.tag}:this.tag_info={tag_id_list:[],tag_type:0}:this.tag_info={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_id_list:t.tag_id_list,tag_type:t.tag}:this.exclude_tag_info={tag_id_list:[],tag_type:0}:this.exclude_tag_info={tag_id_list:[],tag_type:t.tag}},massMsg_customerMatchCount:function(){var t=this;if(!this.customerMatchCountLoading){this.customerMatchCountLoading=!0;var e={senders:0==this.is_for_all?this.user_id_list.join(","):"",customer_filter:this.customer_filter};1==this.customer_filter&&(e.gender=this.gender&&this.gender.join(","),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(","):"",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]:"")),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===y.d.PLAYLET_LINK_MINIAPP?this.$router.replace({query:{}}):t&&t===y.d.PLAYLET_LINK_H5&&this.$router.replace({query:{}})}}},x={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:"createMassMsg"},[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(" "),t.loading?t._e():a("div",{staticClass:"bg-ffffff",staticStyle:{padding:"15px 30px"}},[a("h3",{staticClass:"bigTitle"},[t._v("\n 基础信息\n "),t.rule_id&&!t.is_copy?[-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:"regulations"},[t._m(0),t._v(" "),a("div",[a("div",{staticStyle:{display:"flex"}},[a("el-radio",{attrs:{disabled:!t.editFlag,label:1},model:{value:t.is_for_all,callback:function(e){t.is_for_all=e},expression:"is_for_all"}},[t._v("全部员工")]),t._v(" "),a("el-radio",{attrs:{disabled:!t.editFlag,label:0},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?a("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._e()],1)]),t._v(" "),a("div",{staticClass:"regulations"},[t._m(1),t._v(" "),a("div",[a("div",[a("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(" "),a("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(" "),1==t.customer_filter?a("div",{staticClass:"screeningCustomers"},[a("div",{staticClass:"screeningItem"},[a("label",[t._v("性别:")]),t._v(" "),a("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"}},[a("el-checkbox",{attrs:{label:"1"}},[t._v("男性")]),t._v(" "),a("el-checkbox",{attrs:{label:"2"}},[t._v("女性")]),t._v(" "),a("el-checkbox",{attrs:{label:"0"}},[t._v("未知性别")])],1)],1),t._v(" "),a("div",{staticClass:"screeningItem"},[a("label",[t._v("付费情况:")]),t._v(" "),a("screen-pay",{staticStyle:{margin:"0"},attrs:{title:"",width:"355px",reset:t.resetFlag,afferent_obj:t.payInfo},on:{payChange:t.payChange}})],1),t._v(" "),a("div",{staticClass:"screeningItem",staticStyle:{"align-items":"flex-start"}},[a("label",[t._v("添加时间:")]),t._v(" "),a("div",{staticClass:"timeLineBox"},[a("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(" "),a("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(" "),a("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(" "),a("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?a("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},on:{changeTime:t.changeTime}}):t._e()],1)]),t._v(" "),a("div",{staticClass:"screeningItem"},[a("label",[t._v("标签:")]),t._v(" "),a("enterprise-tag",{staticStyle:{margin:"0"},attrs:{title:"",width:"355px",disabled:!t.editFlag,afferent_obj:t.afferent_tag_obj,reset:t.resetFlag},on:{tagDefine:t.tagDefine}})],1),t._v(" "),a("div",{staticClass:"screeningItem",staticStyle:{"align-items":"flex-start"}},[a("label",[t._v("排除客户:")]),t._v(" "),a("div",{staticStyle:{flex:"1"}},[a("enterprise-tag",{staticStyle:{margin:"0"},attrs:{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(" "),a("p",{staticClass:"screening-hint"},[t._v("\n 可根据标签选择客户,群发时将不会发送给该标签内的客户。若选择了排除的客户,需要较长时间创建本条群发消息哦~\n ")])],1)])]):t._e(),t._v(" "),a("div",{staticClass:"customer_all"},[t._v("\n 将群发消息给"+t._s(0==t.customer_filter?"全部客户的":1==t.customer_filter?"筛选客户的":"")+"\n "),t.isLookCount?a("span",{staticClass:"pointer",on:{click:t.massMsg_customerMatchCount}},[t.customerMatchCountLoading?a("i",{staticClass:"el-icon-loading"}):t._e(),t._v("\n "+t._s(t.customerMatchCountLoading?"":"查看"))]):a("span",[t._v(t._s(t.msg_count))]),t._v("\n 个客户\n ")])])]),t._v(" "),a("div",{staticClass:"line"}),t._v(" "),a("h3",{staticClass:"bigTitle"},[t._v("编辑群发消息")]),t._v(" "),a("div",{staticClass:"regulations regulations2"},[t._m(2),t._v(" "),a("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(" "),a("p",{staticStyle:{"font-size":"13px","line-height":"30px",color:"#f9a527","margin-left":"10px"}},[t._v("\n *仅作为企业内部人员记录群发摘要,不会推送给客户\n ")])],1),t._v(" "),a("div",{staticClass:"regulations regulations2"},[t._m(3),t._v(" "),a("edit-con",{ref:"editCon",attrs:{afferent_content:t.content,afferent_attachments:t.attachments,disabled:!t.editFlag},on:{editContent:function(e){t.content=e},changeAttachment:t.getAttachment}})],1),t._v(" "),a("div",{staticClass:"regulations regulations2"},[t._m(4),t._v(" "),a("div",[a("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(" "),a("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?a("div",{staticStyle:{"margin-top":"15px"}},[a("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(" "),a("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(" "),a("div",{staticClass:"regulations regulations2"},[a("label"),t._v(" "),a("div",{staticClass:"operationProcess"},[a("div",{staticClass:"process-title"},[a("h3",[t._v("企业群发的操作流程")]),t._v(" "),a("div",{staticClass:"zhankai",on:{click:function(e){t.processFlag=!t.processFlag}}},[t._v("\n 展开\n "),a("i",{class:["el-icon-arrow-down",t.processFlag?"reversalAnimation":""]})])]),t._v(" "),a("p",{staticClass:"process-hint"},[t._v("\n 1、创建完群发任务后,员工将在企业微信上收到【客户联系】新消息通知\n ")]),t._v(" "),a("p",{staticClass:"process-hint"},[t._v("\n 2、员工点击【客户联系】,打开待发送的企业消息,可一键将消息发送给客户\n ")]),t._v(" "),t.processFlag?a("img",{staticClass:"img",attrs:{src:s("fgle"),alt:""}}):t._e()])]),t._v(" "),a("div",{staticClass:"button_box"},[t.editFlag?a("button",{staticClass:"button",on:{click:t.massMsg_set}},[t._v("\n 通知成员发送\n ")]):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",{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 w=s("VU/8")(b,x,!1,function(t){s("EWGf")},"data-v-eb0fce60",null).exports,k=s("bEx1"),I={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:"modular"},[s("div",{staticClass:"big_title flex-align-center"},[t._v("数据统计")]),t._v(" "),s("div",{staticClass:"flex"},[s("div",{staticClass:"member_total"},[s("div",{staticClass:"member_total_item"},[s("div",{staticClass:"num"},[t._v("\n "+t._s(t.dataInfo.executed_sender_count||0==t.dataInfo.executed_sender_count?t.$formatNum(t.dataInfo.executed_sender_count):"-")),s("span",[t._v("人")])]),t._v(" "),s("div",{staticClass:"txt"},[t._v("已发送成员")])]),t._v(" "),s("div",{staticClass:"splitLine_small"}),t._v(" "),s("div",{staticClass:"member_total_item"},[s("div",{staticClass:"num"},[t._v("\n "+t._s(t.dataInfo.receive_customer_count||0==t.dataInfo.receive_customer_count?t.$formatNum(t.dataInfo.receive_customer_count):"-")),s("span",[t._v("人")])]),t._v(" "),s("div",{staticClass:"txt"},[t._v("送达用户")])])]),t._v(" "),s("div",{staticClass:"member_total"},[s("div",{staticClass:"member_total_item"},[s("div",{staticClass:"num"},[t._v("\n "+t._s(t.dataInfo.un_execute_sender_count||0==t.dataInfo.un_execute_sender_count?t.$formatNum(t.dataInfo.un_execute_sender_count):"-")),s("span",[t._v("人")])]),t._v(" "),s("div",{staticClass:"txt"},[t._v("未发送成员")])]),t._v(" "),s("div",{staticClass:"splitLine_small"}),t._v(" "),s("div",{staticClass:"member_total_item"},[s("div",{staticClass:"num"},[t._v("\n "+t._s(t.dataInfo.un_receive_customer_count||0==t.dataInfo.un_receive_customer_count?t.$formatNum(t.dataInfo.un_receive_customer_count):"-")),s("span",[t._v("人")])]),t._v(" "),s("div",{staticClass:"txt"},[t._v("未送达客户")])])]),t._v(" "),s("div",{staticClass:"member_total"},[s("div",{staticClass:"member_total_item"},[s("div",{staticClass:"num"},[t._v("\n "+t._s(t.dataInfo.receive_fail_with_limit||0==t.dataInfo.receive_fail_with_limit?t.$formatNum(t.dataInfo.receive_fail_with_limit):"-")),s("span",[t._v("人")])]),t._v(" "),s("div",{staticClass:"txt flex-align-jus-center"},[t._v("\n 客户接收已达上限\n "),s("el-tooltip",{attrs:{placement:"top"}},[s("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 每位客户每天可以接收1条群发消息,不限企业发布的群发和个人发布的群发。"),s("br"),t._v("如果超出则发送不成功,记为客户接收已达上限\n ")]),t._v(" "),s("div",[s("i",{staticClass:"el-icon-question c-999"})])])],1)]),t._v(" "),s("div",{staticClass:"splitLine_small"}),t._v(" "),s("div",{staticClass:"member_total_item"},[s("div",{staticClass:"num"},[t._v("\n "+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):"-")),s("span",[t._v("人")])]),t._v(" "),s("div",{staticClass:"txt"},[t._v("因不是好友发送失败")])])])])])},staticRenderFns:[]};var L=s("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})}}},I,!1,function(t){s("/bbr")},"data-v-c803e8c0",null).exports,$=s("McOJ"),S={components:{noData:s("YLOf").a,selfInput:$.a},props:["rule_id"],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:"",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:{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,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,this.$axios.get(this.URL.BASEURL+this.URL.massMsg_massSendCustList,{params:{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}}).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)}}},M={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"modular"},[s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"modularItem"},[s("div",{staticClass:"flex"},[s("div",{staticClass:"big_title flex-align-center"},[t._v("成员详情")]),t._v(" "),s("a",{staticClass:"selfBtn_detial",attrs:{href:t.exportHref}},[t._v("导出")])]),t._v(" "),s("div",{staticClass:"tabBox"},t._l(t.memberTypeList,function(e){return s("div",{key:e.id+"memberTypeList",class:["tabItem",t.memberType==e.id?"active":""],on:{click:function(s){t.memberType=e.id,t.sender_list_change()}}},[t._v(t._s(e.name))])}),0),t._v(" "),s("div",{staticClass:"flex"},[s("div",{staticClass:"totalCustom"},[s("i",{staticClass:"el-icon-user-solid"}),t._v(" 共"),s("span",[t._v(t._s(t.total))]),t._v("人")]),t._v(" "),s("self-input",{attrs:{label_name:"成员昵称",hasLabel:!1},on:{inputChange:function(e){t.input_keyword=e,t.sender_list_change()}}})],1),t._v(" "),s("div",{staticClass:"userListBox self-scrollbar-3 senderSccrollBox"},[t._l(t.senderList,function(e){return s("div",{key:e.user_id+"sender",staticClass:"userItem"},[s("div",{staticClass:"time"},[t._v("群发时间:"+t._s(e.send_time?e.send_time:"-"))]),t._v(" "),s("div",{staticClass:"userBox"},[s("img",{staticClass:"userImg",attrs:{src:e.avatar,alt:""}}),t._v(" "),s("div",[s("div",{staticClass:"userName"},[t._v(t._s(e.name))]),t._v(" "),s("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?s("noData"):t._e()],2),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.total>t.page_size,expression:"total>page_size"}],staticClass:"pagination"},[s("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(" "),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.cy_loading,expression:"cy_loading"}],staticClass:"modularItem"},[s("div",{staticClass:"flex"},[s("div",{staticClass:"big_title flex-align-center"},[t._v("客户详情")]),t._v(" "),s("div",{staticClass:"flex-align-center"},[s("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 s("el-option",{key:t.user_id,attrs:{label:t.name,value:t.user_id}})}),1),t._v(" "),s("a",{staticClass:"selfBtn_detial",staticStyle:{"margin-left":"20px"},attrs:{href:t.exportHref_send}},[t._v("导出")])],1)]),t._v(" "),s("div",{staticClass:"tabBox"},t._l(t.massTypeList,function(e){return s("div",{key:e.id+"massTypeList",class:["tabItem",t.massType==e.id?"active":""],on:{click:function(s){t.massType=e.id,t.sendCustList_change()}}},[t._v(t._s(e.name))])}),0),t._v(" "),s("div",{staticClass:"flex"},[s("div",{staticClass:"totalCustom"},[s("i",{staticClass:"el-icon-user-solid"}),t._v(" 共"),s("span",[t._v(t._s(t.$formatNum(t.cy_total)))]),t._v("人")]),t._v(" "),s("self-input",{attrs:{label_name:"客户昵称",hasLabel:!1},on:{inputChange:function(e){t.input_mass_keyword=e,t.sendCustList_change()}}})],1),t._v(" "),s("div",{staticClass:"userListBox self-scrollbar-3 massSendScroll"},[t._l(t.massSendCustList,function(e,a){return s("div",{key:a+"massSend",staticClass:"userItem massList"},[s("div",{staticClass:"userBox"},[s("img",{staticClass:"userImg",attrs:{src:e.external_avatar,alt:""}}),t._v(" "),s("div",[s("div",{staticClass:"userName"},[t._v(t._s(e.external_username))]),t._v(" "),s("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(" "),s("div",{staticClass:"userRight"},[t._v("通过 "+t._s(e.sender_name)+" 发送")])])}),t._v(" "),t.massSendCustList&&t.massSendCustList.length<=0&&!t.cy_loading?s("noData"):t._e()],2),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.cy_total>t.page_size,expression:"cy_total>page_size"}],staticClass:"pagination"},[s("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 F=s("VU/8")(S,M,!1,function(t){s("bOLW")},"data-v-4ee9bc10",null).exports,E={components:{phonePreview:k.a,dataTranslate:L,userDetail:F},props:["title","rule_id"],data:function(){return{loading:!1,dataInfo:{},attachments:[]}},created:function(){this.detail()},methods:{detail:function(){var t=this;this.loading=!0,this.$axios.get(this.URL.BASEURL+this.URL.massMsg_detail,{params:{rule_id:this.rule_id}}).then(function(e){e=e.data;t.loading=!1,e&&0==e.errno?(t.dataInfo=e.rst,t.attachments=e.rst.attachments&&""!=e.rst.attachments?JSON.parse(e.rst.attachments):[]):4002!=e.errno&&t.$message({message:e.err,type:"warning"})}).catch(function(e){t.loading=!1})}}},R={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[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(" "),s("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"modular"},[s("h3",{staticClass:"bigTitle"},[t._v("基础信息\n "),t.rule_id?[-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:"flex-start"},[s("div",{staticClass:"dataInfoBox"},[s("div",{staticClass:"tMar20 flex-align-center"},[s("span",{staticClass:"lable"},[t._v("创建人:")]),t._v(" "),s("div",{staticClass:"customerServiceTagBox"},[s("div",{staticClass:"customerServiceTag"},[s("i",{staticClass:"el-icon-user-solid"}),t._v(" "+t._s(t.dataInfo.creator))])])]),t._v(" "),s("div",{staticClass:"tMar20 flex-align-center"},[s("span",{staticClass:"lable"},[t._v("群发标题:")]),t._v(" "),s("span",{staticClass:"txt"},[t._v(t._s(t.dataInfo.name))])]),t._v(" "),s("div",{staticClass:"tMar20 flex-start"},[s("span",{staticClass:"lable"},[t._v("群发内容:")]),t._v(" "),s("div",[s("span",{staticClass:"txt"},[t._v(t._s(t.dataInfo.content))]),t._v(" "),s("div",{staticClass:"syllable_ul"},t._l(t.attachments,function(e,a){return s("div",{key:a,staticClass:"fujianItem"},[s("div",{staticClass:"left"},["image"==e.msgtype?s("span",{staticClass:"flex-align-center"},[t._v("【图片】:"),s("img",{staticStyle:{width:"16px",height:"16px"},attrs:{src:e.image.pic_url,alt:""}})]):t._e(),t._v(" "),"link"==e.msgtype?s("span",[t._v("【链接】:"+t._s(e.link.title))]):t._e(),t._v(" "),"miniprogram"==e.msgtype?s("span",[t._v("【小程序】:"+t._s(e.miniprogram.title))]):t._e(),t._v(" "),"radar"==e.msgtype?s("span",[t._v("【智能雷达】:"+t._s(e.radar.title))]):t._e(),t._v(" "),"promote"==e.msgtype?s("span",[t._v("【H5推广】:"+t._s(e.promote.title))]):t._e()])])}),0)])]),t._v(" "),s("div",{staticClass:"tMar20 flex-align-center"},[s("span",{staticClass:"lable"},[t._v("使用员工:")]),t._v(" "),t.dataInfo.sender_name&&t.dataInfo.sender_name.length>0?s("div",{staticClass:"flexWrap"},t._l(t.dataInfo.sender_name,function(e,a){return s("div",{key:a,staticClass:"customerServiceTagBox"},[s("div",{staticClass:"customerServiceTag",staticStyle:{background:"transparent",color:"#ff4040"}},[t._v(t._s(e))])])}),0):s("div",{staticClass:"txt"},[t._v("-")])]),t._v(" "),s("div",{staticClass:"tMar20 flex-align-center"},[s("span",{staticClass:"lable"},[t._v("选择客户:")]),t._v(" "),s("div",{staticClass:"customer_all"},[t._v("\n 将群发消息给"+t._s(0==t.dataInfo.customer_filter?"全部客户的":1==t.dataInfo.customer_filter?"筛选客户的":"")+"\n "),s("span",[t._v(t._s(t.dataInfo.estimated_user))]),t._v("\n 个客户\n ")])]),t._v(" "),s("div",{staticClass:"tMar20 flex-align-center"},[s("span",{staticClass:"lable"},[t._v("发送类型:")]),t._v(" "),s("span",{staticClass:"txt"},[t._v(t._s(1==t.dataInfo.send_type?"立即发送":2==t.dataInfo.send_type?"定时发送":"-"))])]),t._v(" "),s("div",{staticClass:"tMar20 flex-align-center"},[s("span",{staticClass:"lable"},[t._v("发送时间:")]),t._v(" "),s("span",{staticClass:"txt"},[t._v(t._s(t.dataInfo.send_time))])])]),t._v(" "),s("phonePreview",{staticStyle:{"margin-top":"-30px"},attrs:{phone_width:"260px",position_top:"0px",content:t.dataInfo.content,attachments:t.attachments}})],1)]),t._v(" "),s("div",{staticClass:"splitLine"}),t._v(" "),s("dataTranslate",{attrs:{rule_id:t.rule_id}}),t._v(" "),s("div",{staticClass:"splitLine"}),t._v(" "),s("userDetail",{attrs:{rule_id:t.rule_id}})],1)},staticRenderFns:[]};var U=s("VU/8")(E,R,!1,function(t){s("VGot")},"data-v-38c5e217",null).exports,T=s("erru"),B={components:{datePicker:_.a,createMassMsg:w,massMsgDetail:U,selfChannel:T.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:""}},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()(l.a.mark(function e(){var s,a,i,n,r,o,_,c,d,u,m,g,v;return l.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=t.$route.query,a=s.from,i=s.miniProAppId,n=s.miniProPath,r=s.miniProDesc,o=s.miniProCover,_=s.h5Path,c=s.h5Desc,d=s.h5Cover,!a||a!==y.d.PLAYLET_LINK_MINIAPP){e.next=16;break}return e.prev=2,t.createdMassMsg(),e.next=6,t.$nextTick();case 6:u=t.$refs.createMassMsg,(m=u.$refs.editCon)&&(m.fileEvent("miniprogram"),m.miniprogram.appid=decodeURIComponent(i),m.miniprogram.page=decodeURIComponent(n),m.miniprogram.title=decodeURIComponent(r),m.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=29;break;case 16:if(!a||a!==y.d.PLAYLET_LINK_H5){e.next=29;break}return e.prev=17,t.createdMassMsg(),e.next=21,t.$nextTick();case 21:g=t.$refs.createMassMsg,(v=g.$refs.editCon)&&(v.fileEvent("linkExtend"),v.linkExtend.jump_url=decodeURIComponent(_),v.linkExtend.title=decodeURIComponent(c),v.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:case"end":return e.stop()}},e,t,[[2,11],[17,26]])}))()},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 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:i()({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},"creator_id",this.circleCreate_val)}).then(function(t){t=t.data;s.loading=!1,t&&0==t.errno?"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?"发送完成":""});var s=[{tHeader:["企业ID","群发标题","发送类型","发送时间","消息文本内容","附件信息","发送状态","消息内容总数","创建人","消息送达数","消息发送失败数","总发送数"],filterVal:["corpid","name","send_type_name","send_time","content","attachments","enable_name","msg_count","creator","send_success","send_fail","send_total"],tableDatas:e,sheetName:""}];this.$exportOrder({excelDatas:s,name:"员工群发消息(导出时间:"+this.$getDay(0)+")"})}}},N={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"}]},[s("div",{staticClass:"screenBox",staticStyle:{"align-items":"center","padding-right":"16px"}},[s("div",{staticClass:"flex-align-center",staticStyle:{flex:"1"}},[s("date-picker",{attrs:{title:"发送时间",reset:t.resetFlag},on:{changeTime:t.changeTime}}),t._v(" "),s("self-channel",{attrs:{title:"创建人",type:"circleCreate",labelWidth:!0},on:{channelDefine:function(e){t.circleCreate_val=e,t.init(1)}}})],1),t._v(" "),s("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.createdMassMsg}},[t._v("新建群发")])],1),t._v(" "),s("div",{staticClass:"tableInfo"},[s("div",[s("div",{staticClass:"flex"},[s("div",{staticClass:"totalCustom"},[t._v("\n 共有"),s("span",[t._v(t._s(t.total))]),t._v("条群发内容\n ")])])]),t._v(" "),s("div",{staticClass:"flex"},[s("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:function(e){return t.init(1,"export")}}},[t._v("导出Excel")])],1)]),t._v(" "),s("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{height:t.height,data:t.tableData,"tooltip-effect":"dark"}},[s("el-table-column",{attrs:{prop:"name",label:"群发标题","show-overflow-tooltip":"",align:"center"}}),t._v(" "),s("el-table-column",{attrs:{label:"消息类型",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",[t._v("\n "+t._s(1==e.row.send_type?"立即发送":2==e.row.send_type?"定时发送":"")+"\n ")])]}}])}),t._v(" "),s("el-table-column",{attrs:{label:"创建人",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"customerServiceTagBox"},[s("div",{staticClass:"creator"},[t._v("\n "+t._s(e.row.creator)+"\n ")])])]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"send_time","min-width":"120",label:"发送时间","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"header",fn:function(){return[s("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 "),s("i",{staticClass:"el-icon-caret-bottom"})])]},proxy:!0},{key:"default",fn:function(e){return[s("div",{class:"send_time"==t.sort_field?"sortFieldStyle":""},[t._v("\n "+t._s(e.row.send_time)+"\n ")])]}}])}),t._v(" "),s("el-table-column",{attrs:{label:"创建时间","min-width":"120","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"header",fn:function(){return[s("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 "),s("i",{staticClass:"el-icon-caret-bottom"})])]},proxy:!0},{key:"default",fn:function(e){return[s("div",{class:"created_at"==t.sort_field?"sortFieldStyle":""},[t._v("\n "+t._s(e.row.created_at)+"\n ")])]}}])}),t._v(" "),s("el-table-column",{attrs:{prop:"estimated_user",label:"预计送达人数","show-overflow-tooltip":"",align:"center"}}),t._v(" "),s("el-table-column",{attrs:{prop:"send_success",label:"送达客户数","show-overflow-tooltip":"",align:"center"}}),t._v(" "),s("el-table-column",{attrs:{prop:"send_fail",label:"","show-overflow-tooltip":"",align:"center"}},[s("template",{slot:"header"},[s("div",[t._v("失败客户数")])])],2),t._v(" "),s("el-table-column",{attrs:{label:"发送状态","show-overflow-tooltip":"",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[-2==e.row.enable?s("span",{staticClass:"c-F03F5C"},[t._v("已删除")]):t._e(),t._v(" "),-1==e.row.enable?s("span",{staticClass:"c-666"},[t._v("发送失败")]):t._e(),t._v(" "),0==e.row.enable?s("span",{staticClass:"c-F03F5C"},[t._v("禁用")]):t._e(),t._v(" "),1==e.row.enable?s("span",{staticClass:"c-FFB055"},[t._v("待发送")]):t._e(),t._v(" "),2==e.row.enable?s("span",{staticClass:"c-448AFF"},[t._v("正在发送中")]):t._e(),t._v(" "),3==e.row.enable?s("span",{staticClass:"c-58BCA6"},[t._v("发送完成")]):t._e()]}}])}),t._v(" "),s("el-table-column",{attrs:{"min-width":"120",label:"操作",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[s("div",{staticClass:"flex",staticStyle:{"justify-content":"center"}},[s("el-popconfirm",{attrs:{disabled:1!=e.row.enable&&2!=e.row.enable,title:"猎户助手将提醒未发送的客户发送消息,是否确认提醒 ?"},on:{confirm:function(s){return t.remind_send(e.row)}}},[1==e.row.enable||2==e.row.enable?s("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("\n 提醒\n ")]):t._e()]),t._v(" "),1==e.row.enable||0==e.row.enable?s("div",{class:["pointer","table_button",1==e.row.enable?"c-FF604D":"c-007AFF"],on:{click:function(s){return t.welcomeMsg_del(e.row)}}},[t._v("\n "+t._s(1==e.row.enable?"禁用":0==e.row.enable?"启用":"")+"\n ")]):t._e(),t._v(" "),s("div",{staticClass:"c-00B38A pointer table_button",on:{click:function(s){return t.goDetail(e.row)}}},[t._v("\n 详情\n ")]),t._v(" "),s("el-popconfirm",{attrs:{title:"确定复制【"+e.row.name+"】群发消息?"},on:{confirm:function(s){return t.copyDetail(e.row)}}},[s("div",{staticClass:"c-00B38A pointer table_button",attrs:{slot:"reference"},slot:"reference"},[t._v("\n 复制\n ")])])],1)]}}])})],1),t._v(" "),s("div",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total > 0"}],staticClass:"pagination"},[s("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(" "),s("el-drawer",{attrs:{size:"1200px",visible:t.massMsgFlag,"with-header":!1},on:{"update:visible":function(e){t.massMsgFlag=e}}},[t.massMsgFlag?s("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(" "),s("el-drawer",{attrs:{size:"1200px",visible:t.detialFlag,"with-header":!1},on:{"update:visible":function(e){t.detialFlag=e}}},[t.detialFlag?s("massMsgDetail",{attrs:{title:"群发详情",rule_id:t.detail_rule_id},on:{close:t.detailClose}}):t._e()],1)],1)},staticRenderFns:[]};var D=s("VU/8")(B,N,!1,function(t){s("2SWO")},"data-v-59ee6ec4",null);e.default=D.exports}});
|