1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1828670a"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),Math.easeInOutQuad=function(t,e,n,o){return t/=o/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var o=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function a(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(t,e,n){var i=r(),s=t-i,c=20,l=0;e="undefined"===typeof e?500:e;var u=function t(){l+=c;var r=Math.easeInOutQuad(l,i,s,e);a(r),l<e?o(t):n&&"function"===typeof n&&n()};u()}},8836:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return s}));var o=n("b775"),a=(n("4328"),"/api-web");function r(t){return Object(o["a"])({url:a+"/studentManage/countCloudTeacherActive",method:"get",params:t})}function i(t){return Object(o["a"])({url:a+"/studentManage/countCloudTeacherActiveDetail",method:"get",params:t})}function s(t){return Object(o["a"])({url:a+"/organization/getGradeList",method:"get",params:t})}},"9c91":function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[n("el-page-header",{attrs:{content:"2021十一会员活动"},on:{back:t.onCancel}}),t._v(" "),n("div",{staticClass:"m-core"},[n("save-form",{attrs:{inline:!0,model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[n("el-form-item",{attrs:{prop:"organId"}},[n("el-select",{staticClass:"multiple",staticStyle:{width:"180px !important"},attrs:{filterable:"",clearable:"",placeholder:"请选择分部"},model:{value:t.searchForm.organId,callback:function(e){t.$set(t.searchForm,"organId","string"===typeof e?e.trim():e)},expression:"searchForm.organId"}},t._l(t.selects.branchs,(function(t,e){return n("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{"native-type":"submit",type:"primary"}},[t._v("搜索")]),t._v(" "),n("el-button",{attrs:{"native-type":"reset",type:"danger"}},[t._v("重置")])],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:t.onCreateQRCode}},[t._v("H5统计链接")])],1),t._v(" "),n("el-form-item",[n("auth",{attrs:{auths:"export/countCloudTeacherActive"}},[n("el-button",{attrs:{type:"primary"},on:{click:t.onExport}},[t._v("导出")])],1)],1)],1),t._v(" "),n("div",{staticStyle:{"font-size":"14px",color:"#f85043","padding-bottom":"10px"}},[t._v("\n 总金额:"+t._s(t._f("moneyFormat")(t.head.buyAmount))+"元"),n("i",{staticStyle:{width:"10px",display:"inline-block"}}),t._v("\n 目标总金额:"+t._s(t._f("moneyFormat")(t.head.targetAmount))+"元"),n("i",{staticStyle:{width:"10px",display:"inline-block"}}),t._v("\n 目标金额达成率:"+t._s(t.head.targetAmountFinishScale)+"%"),n("i",{staticStyle:{width:"10px",display:"inline-block"}}),t._v("\n\n 购买人数:"+t._s(t.head.buyNum)+"人"),n("i",{staticStyle:{width:"10px",display:"inline-block"}}),t._v("\n 人均购买金额:"+t._s(t._f("moneyFormat")(t.head.avgBuyAmount))+"元"),n("i",{staticStyle:{width:"10px",display:"inline-block"}}),t._v("\n 目标人数:"+t._s(t.head.targetNum)+"人"),n("i",{staticStyle:{width:"10px",display:"inline-block"}}),t._v("\n 目标达成率:"+t._s(t.head.targetFinishScale)+"%"),n("i",{staticStyle:{width:"10px",display:"inline-block"}})]),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList,"default-sort":{prop:"targetFinishScale",order:"descending"}},on:{"sort-change":t.sortChang}},[n("el-table-column",{attrs:{align:"center",label:"排名",type:"index",width:"50"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部",width:"170px"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"buyAmount",label:"总金额"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(t._f("moneyFormat")(e.row.buyAmount))+"元")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"targetAmount",sortable:"custom",label:"目标金额",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[t._v(t._s(t._f("moneyFormat")(e.row.targetAmount))+"元")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"targetAmountFinishScale",sortable:"custom",width:"170px"},scopedSlots:t._u([{key:"header",fn:function(e){return[n("div",{staticClass:"titleCell"},[n("span",[t._v("目标金额达成率")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("总成交额/目标总额*100%")]),t._v(" "),n("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)]}},{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.targetAmountFinishScale)+"%")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"buyNum",sortable:"custom",width:"150px"},scopedSlots:t._u([{key:"header",fn:function(e){return[n("div",{staticClass:"titleCell"},[n("span",[t._v("购买人数")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("本次活动交易成功总人数(去重)")]),t._v(" "),n("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)]}},{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.buyNum)+"人")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"avgBuyAmount",sortable:"custom",width:"150px"},scopedSlots:t._u([{key:"header",fn:function(e){return[n("div",{staticClass:"titleCell"},[n("span",[t._v("人均购买金额")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("总金额 / 购买人数")]),t._v(" "),n("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)]}},{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.avgBuyAmount)+"元")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"targetNum",sortable:"custom",width:"150px"},scopedSlots:t._u([{key:"header",fn:function(e){return[n("div",{staticClass:"titleCell"},[n("span",[t._v("目标人数")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 进行中非会员乐团-已上乐团课小于等于4节学员-非本活动购买会员-弦乐声部学员\n ")]),t._v(" "),n("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)]}},{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.targetNum)+"人")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"targetFinishScale",sortable:"custom",width:"150px"},scopedSlots:t._u([{key:"header",fn:function(e){return[n("div",{staticClass:"titleCell"},[n("span",[t._v("目标达成率")]),t._v(" "),n("el-tooltip",{attrs:{placement:"top","popper-class":"mTooltip"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 该分部实际交易成功人数 / 目标人数*100%\n ")]),t._v(" "),n("i",{staticClass:"el-icon-question micon el-tooltip",staticStyle:{"font-size":"18px",color:"#f56c6c",top:"2px",position:"relative"}})])],1)]}},{key:"default",fn:function(e){return[n("div",[t._v(t._s(e.row.targetFinishScale)+"%")])]}}])}),t._v(" "),n("el-table-column",{attrs:{label:"详情",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.gotoDetail(e.row)}}},[t._v("详情")])],1)]}}])})],1)],1)],1),t._v(" "),n("qr-code",{attrs:{title:"统计二维码",codeUrl:t.codeUrl},model:{value:t.qrcodeStatus,callback:function(e){t.qrcodeStatus=e},expression:"qrcodeStatus"}})],1)},a=[],r=(n("386d"),n("db72")),i=n("c80c"),s=(n("96cf"),n("3b8d")),c=(n("bc3a"),n("5f87"),n("333d")),l=n("641c"),u=n("61f7"),d=n("8836"),p=n("adb21"),m=n("e3eb"),f=n.n(m),h=n("4328"),v=n.n(h),b={components:{pagination:c["a"],QrCode:l["a"]},data:function(){return{searchForm:{organId:null},searchList:{sort:"targetFinishScale",order:"DESC"},head:{avgBuyAmount:null,buyAmount:null,buyNum:null,buyScale:null,targetAmount:null,targetFinishScale:null,targetNum:null,totalNum:null},tableList:[],organList:[],rules:{limit:10,page:1,total:0,page_size:[10,20,40,50]},qrcodeStatus:!1,codeUrl:""}},created:function(){},mounted:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch("setBranchs");case 2:this.init();case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{init:function(){this.getList()},getList:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Object(d["b"])(Object(r["a"])({organIds:this.searchForm.organId},this.searchList));case 3:e=t.sent,this.tableList=e.data.resultList,this.head=e.data.head,t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](0),console.log(t.t0);case 11:case"end":return t.stop()}}),t,this,[[0,8]])})));function e(){return t.apply(this,arguments)}return e}(),search:function(){this.rules.page=1,this.getList()},onReSet:function(){this.searchForm.organId=null,this.searchList={sort:"targetFinishScale",order:"DESC"},this.search()},sortChang:function(t){var e={ascending:"ASC",descending:"DESC"};this.searchList={},t.prop&&t.order&&(this.searchList={sort:t.prop,order:e[t.order]}),this.rules.page=1,this.getList()},onCreateQRCode:function(t){this.qrcodeStatus=!0,this.codeUrl=Object(u["f"])()+"/#/statisticOctober1st"},gotoDetail:function(t){this.$router.push({path:"/operateManager/memberActiveDetail",query:{organId:t.organId,organName:t.organName}})},onExport:function(){var t=Object(s["a"])(Object(i["a"])().mark((function t(){var e;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=Object(r["a"])({organIds:this.searchForm.organId},this.searchList),t.next=3,Object(p["a"])(this,{url:"/api-web/export/countCloudTeacherActive",fileName:"2021十一会员活动.xls",method:"post",params:v.a.stringify(f()(e))},"您确定导出会员活动列表?");case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onCancel:function(){this.$store.dispatch("delVisitedViews",this.$route),this.$router.push("/activeMarketing")}}},g=b,_=(n("ef23"),n("2877")),y=Object(_["a"])(g,o,a,!1,null,"59f46f44",null);e["default"]=y.exports},"9d64":function(t,e,n){t.exports=n.p+"static/img/logo.ae7b11a3.png"},adb21:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var o=n("bc3a"),a=n.n(o),r=(n("4328"),n("5f87")),i=n("3908"),s=n("e3eb"),c=n.n(s),l=function(t,e,n,o){var s=e.url,l={method:e.method?e.method:"get",headers:{Authorization:Object(r["b"])(),tenantId:Object(r["a"])()},url:s,responseType:"blob"};"post"==l.method?l.data=e.params:l.params=e.params,t.$confirm(n||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i["a"].startLoading(),a()(c()(l)).then((function(n){var a=new Blob([n.data],{type:"application/vnd.ms-excel;charset=utf-8"}),r=new Response(a).text();r.then((function(n){if(-1!=n.indexOf("code")){var r=JSON.parse(n);if(403==r.code)return t.$message.error("登录过期,请重新登录!"),void setTimeout((function(){t.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==r.code?t.$message.success(r.msg):t.$message.error(r.msg),o&&o()}else{var i=URL.createObjectURL(a),s=document.createElement("a"),c=e.fileName||"导出文件.xls";s.href=i,s.setAttribute("download",c),document.body.appendChild(s),s.click(),o&&o()}})),i["a"].endLoading()})).catch((function(e){console.log(e),t.$message.error("下载失败,请联系管理员"),i["a"].endLoading()}))})).catch((function(){}))}},d55d:function(t,e,n){},ef23:function(t,e,n){"use strict";n("d55d")}}]);
|