企微助手 ,仓库名 短剧

56.ceb4568c2d414d603740.js 18KB

1
  1. webpackJsonp([56],{Mx6E:function(e,t){},dLri:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("gzej"),i=a("erru"),s=a("pdUL"),r={components:{selfChannel:i.a,datePicker:n.a,selfInputV2:s.a},data:function(){return{loading:!1,default_time:[this.$getDay(-8,!1),this.$getDay(-1,!1)],pickerOptions:{disabledDate:function(e){return e>Date.now()-864e5}},height:"",creator_id:"",keyword:"",time:[],dataInfoArrs:[{prop:"send_total",label:"预计发送人数",icon:a("OTHY")},{prop:"send_success",label:"送达客户数",icon:a("V8HU")},{prop:"send_fail",label:"失败客户数",icon:a("8tyP")},{prop:"send_fail_user",label:"失败客服数",icon:a("8tyP")}],dataInfo:{},desCol:[{prop:"name",label:"群发标题",fixed:"left",min_width:"160"},{prop:"send_time",label:"发送时间",min_width:"160"},{prop:"creator",label:"创建人"},{prop:"send_total",label:"预计送达人数"},{prop:"send_success",label:"送达客户数"},{prop:"send_fail",label:"失败客户数"},{prop:"send_fail_user",label:"失败客服数"}],page:1,pages:0,total:0,page_size:20}},computed:{isCanExport:function(){return!!this.$store.state.dataBoardAuth.can_export}},created:function(){this.time=this.default_time,this.height=document.documentElement.clientHeight-400>400?document.documentElement.clientHeight-400:400,this.init(1)},methods:{changeTime:function(e){!e||e&&0==e.length?this.time=[]:this.time=e,this.init(1)},init:function(e,t){var a=this;if("export"!=t)this.page=e||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.sendData_massMsg,{params:{send_time_start:this.time[0],send_time_end:this.time[1],creator_id:this.creator_id,keyword:this.keyword,page:"export"==t?1:this.page,page_size:"export"==t?this.$store.state.exportNumber:this.page_size}}).then(function(e){e=e.data;a.loading=!1,e&&0==e.errno?(e.rst.data.total&&(a.dataInfo=e.rst.data.total),"export"==t?a.exportEvent(e.rst.data.list):(a.datas=e.rst.data.list,a.$refs.plxTable&&a.$refs.plxTable.reloadData(a.datas),a.total=e.rst.pageInfo.total,a.pages=e.rst.pageInfo.pages)):4002!=e.errno&&a.$message({message:e.err,type:"warning"})}).catch(function(e){a.loading=!1})},handleCurrentChange:function(e){this.init(e)},handleSizeChange:function(e){this.page_size=e,this.init(1)},exportEvent:function(e){var t=e,a=[{tHeader:this.desCol.map(function(e){return e.label}),filterVal:this.desCol.map(function(e){return e.prop}),tableDatas:t,sheetName:""}];this.$exportOrder({excelDatas:a,name:"送达数据-客户群发(导出时间:"+this.$getDay(0)+")"})},onChangeCreate:function(e){this.creator_id=e,this.init(1)},onChangeKeyword:function(e){this.keyword=e,this.init(1)}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("div",{staticClass:"screenBox flex-align-center"},[a("div",{staticClass:"flex-align-center",staticStyle:{flex:"1"}},[a("datePicker",{attrs:{title:"自定义",is_include_today:!1,pickerOptions:e.pickerOptions,quickFlag:!0,afferent_time:e.default_time,clearFlag:!1},on:{changeTime:e.changeTime}}),e._v(" "),a("selfChannel",{attrs:{title:"创建人",type:"circleCreate",labelWidth:!0},on:{channelDefine:e.onChangeCreate}}),e._v(" "),a("selfInputV2",{attrs:{label_name:"标题",placeholder:"请输入关键字",labelWidth:""},on:{change:e.onChangeKeyword},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}})],1),e._v(" "),a("div",{staticClass:"right"},[e.isCanExport?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.init(1,"export")}}},[e._v("导出Excel")]):e._e()],1)]),e._v(" "),a("div",{staticClass:"dataInfoBox"},e._l(e.dataInfoArrs,function(t,n){return a("div",{key:n,staticClass:"dataInfoItem"},[a("div",{staticClass:"dataItemTitle"},[a("img",{staticClass:"titleIcon",staticStyle:{height:"14px"},attrs:{src:t.icon}}),e._v(" "),a("span",[e._v(e._s(t.label))])]),e._v(" "),a("div",{staticClass:"dataItem-data"},[e._v("\n "+e._s(e.dataInfo&&(e.dataInfo[t.prop]||0==e.dataInfo[t.prop])?e.$formatNum(e.dataInfo[t.prop]):"-")+"\n "),a("span",{staticClass:"f15"},[e._v(e._s(t.brackets_prop?"("+(e.dataInfo&&(e.dataInfo[t.brackets_prop]||0==e.dataInfo[t.brackets_prop])?e.$formatNum(e.dataInfo[t.brackets_prop]):"-")+")":""))])])])}),0),e._v(" "),a("div",[a("ux-grid",{ref:"plxTable",attrs:{border:!1,"header-cell-style":function(){return{backgroundColor:"#FFFFFF !important",border:"none!important"}},height:e.height,"show-footer-overflow":"tooltip","show-overflow":"tooltip",size:"mini"},on:{"row-click":function(){}}},e._l(e.desCol,function(t){return t.excelShow?e._e():a("ux-table-column",{key:t.prop,attrs:{resizable:!0,field:t.prop,title:t.label,"min-width":t.min_width?t.min_width:120,fixed:t.fixed?t.fixed:"",align:"center"},scopedSlots:e._u([{key:"header",fn:function(){return[a("div",{class:["flex-align-jus-center"]},[e._v("\n "+e._s(t.label)+e._s(t.brackets_label?"("+t.brackets_label+")":"")+"\n "),t.notes?a("el-tooltip",{attrs:{content:t.notes,placement:"top"}},[a("div",[a("i",{staticClass:"el-icon-question"})])]):e._e()],1)]},proxy:!0},{key:"default",fn:function(n){var i=n.row;return[a("span",[e._v(e._s(""===i[t.prop]||!i[t.prop]&&0!==i[t.prop]&&"0"!==i[t.prop]?"-":e.$formatNum(i[t.prop])))]),e._v(" "),t.brackets_label?a("span",[e._v("("+e._s(""==i[t.brackets_prop]||!i[t.brackets_prop]&&0!=i[t.brackets_prop]?"-":e.$formatNum(i[t.brackets_prop]))+")")]):e._e()]}}],null,!0)})}),1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":e.page,layout:"prev, pager, next, sizes, jumper","page-sizes":[20,50,100],"page-count":Number(e.pages)},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)],1)])},staticRenderFns:[]};var l=a("VU/8")(r,o,!1,function(e){a("ttzI")},"data-v-c44535da",null).exports,p={components:{selfChannel:i.a,datePicker:n.a,selfInputV2:s.a},data:function(){return{loading:!1,default_time:[this.$getDay(-8,!1),this.$getDay(-1,!1)],pickerOptions:{disabledDate:function(e){return e>Date.now()-864e5}},height:"",creator_id:"",keyword:"",time:[],dataInfoArrs:[{prop:"send_user_success",label:"已发送群主数",icon:a("OTHY")},{prop:"send_user_fail",label:"未发送群主数",icon:a("8tyP")},{prop:"send_chat_success",label:"送达群聊数",icon:a("V8HU")},{prop:"send_chat_fail",label:"未送达群聊数",icon:a("8tyP")}],dataInfo:{},desCol:[{prop:"name",label:"群发标题",fixed:"left",min_width:"160"},{prop:"send_time",label:"发送时间",min_width:"160"},{prop:"creator",label:"创建人"},{prop:"send_user_success",label:"已发送群主数"},{prop:"send_user_fail",label:"未发送群主数"},{prop:"send_chat_success",label:"送达群聊数"},{prop:"send_chat_fail",label:"未送达群聊数"},{prop:"member_count",label:"送达群聊人数"}],page:1,pages:0,total:0,page_size:20}},computed:{isCanExport:function(){return!!this.$store.state.dataBoardAuth.can_export}},created:function(){this.time=this.default_time,this.height=document.documentElement.clientHeight-400>400?document.documentElement.clientHeight-400:400,this.init(1)},methods:{changeTime:function(e){!e||e&&0==e.length?this.time=[]:this.time=e,this.init(1)},init:function(e,t){var a=this;if("export"!=t)this.page=e||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.sendData_chatGroupMassMsg,{params:{send_time_start:this.time[0],send_time_end:this.time[1],creator_id:this.creator_id,keyword:this.keyword,page:"export"==t?1:this.page,page_size:"export"==t?this.$store.state.exportNumber:this.page_size}}).then(function(e){e=e.data;a.loading=!1,e&&0==e.errno?(e.rst.data.total&&(a.dataInfo=e.rst.data.total),"export"==t?a.exportEvent(e.rst.data.list):(a.datas=e.rst.data.list,a.$refs.plxTable&&a.$refs.plxTable.reloadData(a.datas),a.total=e.rst.pageInfo.total,a.pages=e.rst.pageInfo.pages)):4002!=e.errno&&a.$message({message:e.err,type:"warning"})}).catch(function(e){a.loading=!1})},handleCurrentChange:function(e){this.init(e)},handleSizeChange:function(e){this.page_size=e,this.init(1)},exportEvent:function(e){var t=e,a=[{tHeader:this.desCol.map(function(e){return e.label}),filterVal:this.desCol.map(function(e){return e.prop}),tableDatas:t,sheetName:""}];this.$exportOrder({excelDatas:a,name:"送达数据-客户群群发(导出时间:"+this.$getDay(0)+")"})},onChangeCreate:function(e){this.creator_id=e,this.init(1)},onChangeKeyword:function(e){this.keyword=e,this.init(1)}}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("div",{staticClass:"screenBox flex-align-center"},[a("div",{staticClass:"flex-align-center",staticStyle:{flex:"1"}},[a("datePicker",{attrs:{title:"自定义",is_include_today:!1,pickerOptions:e.pickerOptions,quickFlag:!0,afferent_time:e.default_time,clearFlag:!1},on:{changeTime:e.changeTime}}),e._v(" "),a("selfChannel",{attrs:{title:"创建人",type:"circleCreate",labelWidth:!0},on:{channelDefine:e.onChangeCreate}}),e._v(" "),a("selfInputV2",{attrs:{label_name:"标题",placeholder:"请输入关键字",labelWidth:""},on:{change:e.onChangeKeyword},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}})],1),e._v(" "),a("div",{staticClass:"right"},[e.isCanExport?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.init(1,"export")}}},[e._v("导出Excel")]):e._e()],1)]),e._v(" "),a("div",{staticClass:"dataInfoBox"},e._l(e.dataInfoArrs,function(t,n){return a("div",{key:n,staticClass:"dataInfoItem"},[a("div",{staticClass:"dataItemTitle"},[a("img",{staticClass:"titleIcon",staticStyle:{height:"14px"},attrs:{src:t.icon}}),e._v(" "),a("span",[e._v(e._s(t.label))])]),e._v(" "),a("div",{staticClass:"dataItem-data"},[e._v("\n "+e._s(e.dataInfo&&(e.dataInfo[t.prop]||0==e.dataInfo[t.prop])?e.$formatNum(e.dataInfo[t.prop]):"-")+"\n "),a("span",{staticClass:"f15"},[e._v(e._s(t.brackets_prop?"("+(e.dataInfo&&(e.dataInfo[t.brackets_prop]||0==e.dataInfo[t.brackets_prop])?e.$formatNum(e.dataInfo[t.brackets_prop]):"-")+")":""))])])])}),0),e._v(" "),a("div",[a("ux-grid",{ref:"plxTable",attrs:{border:!1,"header-cell-style":function(){return{backgroundColor:"#FFFFFF !important",border:"none!important"}},height:e.height,"show-footer-overflow":"tooltip","show-overflow":"tooltip",size:"mini"},on:{"row-click":function(){}}},e._l(e.desCol,function(t){return t.excelShow?e._e():a("ux-table-column",{key:t.prop,attrs:{resizable:!0,field:t.prop,title:t.label,"min-width":t.min_width?t.min_width:120,fixed:t.fixed?t.fixed:"",align:"center"},scopedSlots:e._u([{key:"header",fn:function(){return[a("div",{class:["flex-align-jus-center"]},[e._v("\n "+e._s(t.label)+e._s(t.brackets_label?"("+t.brackets_label+")":"")+"\n "),t.notes?a("el-tooltip",{attrs:{content:t.notes,placement:"top"}},[a("div",[a("i",{staticClass:"el-icon-question"})])]):e._e()],1)]},proxy:!0},{key:"default",fn:function(n){var i=n.row;return[a("span",[e._v(e._s(""===i[t.prop]||!i[t.prop]&&0!==i[t.prop]&&"0"!==i[t.prop]?"-":e.$formatNum(i[t.prop])))]),e._v(" "),t.brackets_label?a("span",[e._v("("+e._s(""==i[t.brackets_prop]||!i[t.brackets_prop]&&0!=i[t.brackets_prop]?"-":e.$formatNum(i[t.brackets_prop]))+")")]):e._e()]}}],null,!0)})}),1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":e.page,layout:"prev, pager, next, sizes, jumper","page-sizes":[20,50,100],"page-count":Number(e.pages)},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)],1)])},staticRenderFns:[]};var d=a("VU/8")(p,c,!1,function(e){a("x6qS")},"data-v-778e20ba",null).exports,h={components:{selfChannel:i.a,datePicker:n.a,selfInputV2:s.a},data:function(){return{loading:!1,default_time:[this.$getDay(-8,!1),this.$getDay(-1,!1)],pickerOptions:{disabledDate:function(e){return e>Date.now()-864e5}},height:"",creator_id:"",keyword:"",time:[],dataInfoArrs:[{prop:"send_success",label:"已送达客户数",icon:a("OTHY")},{prop:"send_fail",label:"失败客户数",icon:a("8tyP")}],dataInfo:{},desCol:[{prop:"group_name",label:"分组名称",fixed:"left",min_width:"160"},{prop:"name",label:"sop链接标题",min_width:"160"},{prop:"create_time",label:"发送时间",min_width:"160"},{prop:"creator",label:"创建人"},{prop:"send_success",label:"送达客户数"},{prop:"send_fail",label:"失败客户数"}],page:1,pages:0,total:0,page_size:20}},computed:{isCanExport:function(){return!!this.$store.state.dataBoardAuth.can_export}},created:function(){this.time=this.default_time,this.height=document.documentElement.clientHeight-400>400?document.documentElement.clientHeight-400:400,this.init(1)},methods:{changeTime:function(e){!e||e&&0==e.length?this.time=[]:this.time=e,this.init(1)},init:function(e,t){var a=this;if("export"!=t)this.page=e||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.sendData_PeriodMassMsg,{params:{send_time_start:this.time[0],send_time_end:this.time[1],creator_id:this.creator_id,keyword:this.keyword,page:"export"==t?1:this.page,page_size:"export"==t?this.$store.state.exportNumber:this.page_size}}).then(function(e){e=e.data;a.loading=!1,e&&0==e.errno?(e.rst.data.total&&(a.dataInfo=e.rst.data.total),"export"==t?a.exportEvent(e.rst.data.list):(a.datas=e.rst.data.list,a.$refs.plxTable&&a.$refs.plxTable.reloadData(a.datas),a.total=e.rst.pageInfo.total,a.pages=e.rst.pageInfo.pages)):4002!=e.errno&&a.$message({message:e.err,type:"warning"})}).catch(function(e){a.loading=!1})},handleCurrentChange:function(e){this.init(e)},handleSizeChange:function(e){this.page_size=e,this.init(1)},exportEvent:function(e){var t=e,a=[{tHeader:this.desCol.map(function(e){return e.label}),filterVal:this.desCol.map(function(e){return e.prop}),tableDatas:t,sheetName:""}];this.$exportOrder({excelDatas:a,name:"送达数据-智能群发(导出时间:"+this.$getDay(0)+")"})},onChangeCreate:function(e){this.creator_id=e,this.init(1)},onChangeKeyword:function(e){this.keyword=e,this.init(1)}}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}]},[a("div",{staticClass:"screenBox flex-align-center"},[a("div",{staticClass:"flex-align-center",staticStyle:{flex:"1"}},[a("datePicker",{attrs:{title:"自定义",is_include_today:!1,pickerOptions:e.pickerOptions,quickFlag:!0,afferent_time:e.default_time,clearFlag:!1},on:{changeTime:e.changeTime}}),e._v(" "),a("selfChannel",{attrs:{title:"创建人",type:"circleCreate",labelWidth:!0},on:{channelDefine:e.onChangeCreate}}),e._v(" "),a("selfInputV2",{attrs:{label_name:"标题",placeholder:"请输入关键字",labelWidth:""},on:{change:e.onChangeKeyword},model:{value:e.keyword,callback:function(t){e.keyword=t},expression:"keyword"}})],1),e._v(" "),a("div",{staticClass:"right"},[e.isCanExport?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(t){return e.init(1,"export")}}},[e._v("导出Excel")]):e._e()],1)]),e._v(" "),a("div",{staticClass:"dataInfoBox"},e._l(e.dataInfoArrs,function(t,n){return a("div",{key:n,staticClass:"dataInfoItem"},[a("div",{staticClass:"dataItemTitle"},[a("img",{staticClass:"titleIcon",staticStyle:{height:"14px"},attrs:{src:t.icon}}),e._v(" "),a("span",[e._v(e._s(t.label))])]),e._v(" "),a("div",{staticClass:"dataItem-data"},[e._v("\n "+e._s(e.dataInfo&&(e.dataInfo[t.prop]||0==e.dataInfo[t.prop])?e.$formatNum(e.dataInfo[t.prop]):"-")+"\n "),a("span",{staticClass:"f15"},[e._v(e._s(t.brackets_prop?"("+(e.dataInfo&&(e.dataInfo[t.brackets_prop]||0==e.dataInfo[t.brackets_prop])?e.$formatNum(e.dataInfo[t.brackets_prop]):"-")+")":""))])])])}),0),e._v(" "),a("div",[a("ux-grid",{ref:"plxTable",attrs:{border:!1,"header-cell-style":function(){return{backgroundColor:"#FFFFFF !important",border:"none!important"}},height:e.height,"show-footer-overflow":"tooltip","show-overflow":"tooltip",size:"mini"},on:{"row-click":function(){}}},e._l(e.desCol,function(t){return t.excelShow?e._e():a("ux-table-column",{key:t.prop,attrs:{resizable:!0,field:t.prop,title:t.label,"min-width":t.min_width?t.min_width:120,fixed:t.fixed?t.fixed:"",align:"center"},scopedSlots:e._u([{key:"header",fn:function(){return[a("div",{class:["flex-align-jus-center"]},[e._v("\n "+e._s(t.label)+e._s(t.brackets_label?"("+t.brackets_label+")":"")+"\n "),t.notes?a("el-tooltip",{attrs:{content:t.notes,placement:"top"}},[a("div",[a("i",{staticClass:"el-icon-question"})])]):e._e()],1)]},proxy:!0},{key:"default",fn:function(n){var i=n.row;return[a("span",[e._v(e._s(""===i[t.prop]||!i[t.prop]&&0!==i[t.prop]&&"0"!==i[t.prop]?"-":e.$formatNum(i[t.prop])))]),e._v(" "),t.brackets_label?a("span",[e._v("("+e._s(""==i[t.brackets_prop]||!i[t.brackets_prop]&&0!=i[t.brackets_prop]?"-":e.$formatNum(i[t.brackets_prop]))+")")]):e._e()]}}],null,!0)})}),1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total > 0"}],staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":e.page,layout:"prev, pager, next, sizes, jumper","page-sizes":[20,50,100],"page-count":Number(e.pages)},on:{"current-change":e.handleCurrentChange,"size-change":e.handleSizeChange}})],1)],1)])},staticRenderFns:[]};var f={components:{khqf:l,khqqf:d,znqf:a("VU/8")(h,u,!1,function(e){a("Mx6E")},"data-v-16a72ba4",null).exports},data:function(){return{type:"khqf"}},methods:{changeType:function(e){this.type=e}}},_={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"topTagBox flex"},[a("div",{staticClass:"left flex-align-center"},[a("div",{class:["tagItem","khqf"==e.type?"tagItem_active":""],on:{click:function(t){return e.changeType("khqf")}}},[e._v("\n 客户群发\n ")]),e._v(" "),a("div",{class:["tagItem","khqqf"==e.type?"tagItem_active":""],on:{click:function(t){return e.changeType("khqqf")}}},[e._v("\n 客户群群发\n ")]),e._v(" "),a("div",{class:["tagItem","znqf"==e.type?"tagItem_active":""],on:{click:function(t){return e.changeType("znqf")}}},[e._v("\n 智能群发\n ")])])]),e._v(" "),a("keep-alive",[a(e.type,{tag:"component"})],1)],1)},staticRenderFns:[]},g=a("VU/8")(f,_,!1,null,null,null);t.default=g.exports},ttzI:function(e,t){},x6qS:function(e,t){}});