chunk-775d4dbd.eb23b86c.js 12 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-775d4dbd"],{"09f4":function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),Math.easeInOutQuad=function(t,e,r,n){return t/=n/2,t<1?r/2*t*t+e:(t--,-r/2*(t*(t-2)-1)+e)};var n=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 o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(t,e,r){var i=o(),s=t-i,c=20,u=0;e="undefined"===typeof e?500:e;var l=function t(){u+=c;var o=Math.easeInOutQuad(u,i,s,e);a(o),u<e?n(t):r&&"function"===typeof r&&r()};l()}},"9d64":function(t,e,r){t.exports=r.p+"static/img/logo.ae7b11a3.png"},adb21:function(t,e,r){"use strict";r.d(e,"a",(function(){return u}));var n=r("bc3a"),a=r.n(n),o=(r("4328"),r("5f87")),i=r("3908"),s=r("e3eb"),c=r.n(s),u=function(t,e,r,n){var s=e.url,u={method:e.method?e.method:"get",headers:{Authorization:Object(o["b"])(),tenantId:Object(o["a"])()},url:s,responseType:"blob"};"post"==u.method?u.data=e.params:u.params=e.params,t.$confirm(r||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i["a"].startLoading(),a()(c()(u)).then((function(r){var a=new Blob([r.data],{type:"application/vnd.ms-excel;charset=utf-8"}),o=new Response(a).text();o.then((function(r){if(-1!=r.indexOf("code")){var o=JSON.parse(r);if(403==o.code)return t.$message.error("登录过期,请重新登录!"),void setTimeout((function(){t.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==o.code?t.$message.success(o.msg):t.$message.error(o.msg),n&&n()}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(),n&&n()}})),i["a"].endLoading()})).catch((function(e){console.log(e),t.$message.error("下载失败,请联系管理员"),i["a"].endLoading()}))})).catch((function(){}))}},c104:function(t,e,r){"use strict";r.d(e,"d",(function(){return a})),r.d(e,"g",(function(){return o})),r.d(e,"e",(function(){return i})),r.d(e,"f",(function(){return s})),r.d(e,"b",(function(){return c})),r.d(e,"a",(function(){return u})),r.d(e,"c",(function(){return l}));var n=r("829b");function a(t){return Object(n["a"])({url:"/api-web/marketActivity/add",method:"post",data:t,requestType:"form"})}function o(t){return Object(n["a"])({url:"/api-web/marketActivity/update",method:"post",data:t,requestType:"form"})}function i(t){return Object(n["a"])({url:"/api-web/marketActivity/get",method:"get",params:t})}function s(t){return Object(n["a"])({url:"/api-web/marketActivity/queryPage",method:"get",params:t})}function c(t){return Object(n["a"])({url:"/api-web/vipGroupActivity/organDoubleEleven2021Statis",method:"get",params:t})}function u(t){return Object(n["a"])({url:"/api-web/vipGroupActivity/doubleEleven2021OrderDetail",method:"get",params:t})}function l(t){return Object(n["a"])({url:"/api-web/vipGroupActivity/organDoubleEleven2022Statis",method:"get",params:t})}},ca84:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"m-container"},[r("el-page-header",{staticStyle:{"margin-bottom":"20px"},attrs:{content:"2021"===t.year?"2021双十一活动":"2022双十一活动"},on:{back:t.onCancel}}),t._v(" "),r("div",{staticClass:"m-core"},[r("save-form",{attrs:{inline:!0,model:t.searchForm},on:{submit:t.search,reset:t.onReSet}},[r("el-form-item",{attrs:{prop:"organId"}},[r("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 r("el-option",{key:e,attrs:{label:t.name,value:t.id}})})),1)],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{"native-type":"submit",type:"primary"}},[t._v("搜索")]),t._v(" "),r("el-button",{attrs:{"native-type":"reset",type:"danger"}},[t._v("重置")])],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:t.onCreateQRCode}},[t._v("H5统计链接")])],1),t._v(" "),"2022"===t.year?r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:t.onCreateQRCode2}},[t._v("杭州H5统计链接")])],1):t._e(),t._v(" "),r("el-form-item",[r("auth",{attrs:{auths:"export/organDoubleEleven2021Statis"}},[r("el-button",{attrs:{type:"primary"},on:{click:t.onExport}},[t._v("导出")])],1)],1),t._v(" "),r("el-form-item",[r("auth",{attrs:{auths:"export/doubleEleven2021OrderDetail"}},[r("el-button",{attrs:{type:"primary"},on:{click:t.onExport2}},[t._v("学员明细导出")])],1)],1)],1),t._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#EDEEF0",color:"#444"},data:t.tableList,"default-sort":{prop:"totalBuyAmount",order:"descending"}},on:{"sort-change":t.sortChang}},[r("el-table-column",{attrs:{align:"center",label:"排名",type:"index",width:"50"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部",width:"170px"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"totalBuyAmount",label:"总成交金额",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v(t._s(t._f("moneyFormat")(e.row.totalBuyAmount))+"元")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"avgBuyAmount",label:"人均购买金额",sortable:"custom"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v(t._s(t._f("moneyFormat")(e.row.avgBuyAmount))+"元")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"targetAmount",label:"20节1v1成交金额/人数",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.vip1V120Amount))+"元/"+t._s(e.row.vip1V120Num)+"人\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"targetAmount",label:"40节1v1成交金额/人数",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.vip1V140Amount))+"元/"+t._s(e.row.vip1V140Num)+"人\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"targetAmount",label:"20节1v2成交金额/人数",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.vip1V220Amount))+"元/"+t._s(e.row.vip1V220Num)+"人\n ")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"targetAmount",label:"40节1v2成交金额/人数",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.vip1V240Amount))+"元/"+t._s(e.row.vip1V240Num)+"人\n ")])]}}])}),t._v(" "),"2021"===t.year?r("el-table-column",{attrs:{align:"center",prop:"targetAmount",label:"乐理课成交金额/人数",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[t._v("\n "+t._s(t._f("moneyFormat")(e.row.musicTheoryAmount))+"元/"+t._s(e.row.musicTheoryNum)+"人\n ")])]}}],null,!1,1854180858)}):t._e(),t._v(" "),r("el-table-column",{attrs:{label:"详情",align:"left"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.gotoDetail(e.row)}}},[t._v("详情")])],1)]}}])})],1)],1),t._v(" "),r("qr-code",{attrs:{title:"统计二维码",codeUrl:t.codeUrl},model:{value:t.qrcodeStatus,callback:function(e){t.qrcodeStatus=e},expression:"qrcodeStatus"}})],1)],1)},a=[],o=(r("386d"),r("db72")),i=r("c80c"),s=(r("96cf"),r("3b8d")),c=(r("bc3a"),r("5f87"),r("333d")),u=r("641c"),l=r("61f7"),d=r("c104"),p=r("adb21"),m=r("e3eb"),f=r.n(m),h=r("4328"),b=r.n(h),v={components:{pagination:c["a"],QrCode:u["a"]},data:function(){return{searchForm:{organId:null},searchList:{sort:"totalBuyAmount",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:"",qrcodeStatus2:!1,codeUrl2:"",year:"2021"}},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.year=this.$route.query.year||"2021",this.init();case 4: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:if(t.prev=0,e=null,"2021"!==this.year){t.next=8;break}return t.next=5,Object(d["b"])(Object(o["a"])({organId:this.searchForm.organId},this.searchList));case 5:e=t.sent,t.next=11;break;case 8:return t.next=10,Object(d["c"])(Object(o["a"])({organId:this.searchForm.organId},this.searchList));case 10:e=t.sent;case 11:this.tableList=e.data,t.next=17;break;case 14:t.prev=14,t.t0=t["catch"](0),console.log(t.t0);case 17:case"end":return t.stop()}}),t,this,[[0,14]])})));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,"2022"===this.year?this.codeUrl=Object(l["f"])()+"/#/statistic-20221111":this.codeUrl=Object(l["f"])()+"/#/statistic-20211111"},onCreateQRCode2:function(t){this.qrcodeStatus=!0,this.codeUrl=Object(l["f"])()+"/#/statistic-20221111?type=hz"},gotoDetail:function(t){"2022"===this.year?this.$router.push({path:"/operateManager/2021doubleDetail",query:{organId:t.organId,organName:t.organName,year:"2022"}}):this.$router.push({path:"/operateManager/2021doubleDetail",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(o["a"])({organId:this.searchForm.organId},this.searchList),t.next=3,Object(p["a"])(this,{url:"2021"===this.year?"/api-web/export/organDoubleEleven2021Statis":"/api-web/export/organDoubleEleven2022Statis",fileName:(this.year,"双十一活动.xls"),method:"post",params:b.a.stringify(f()(e))},"您确定导出双十一活动列表?");case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),onExport2: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(o["a"])(Object(o["a"])({organId:this.searchForm.organId},this.searchList),{},{year:this.year}),t.next=3,Object(p["a"])(this,{url:"/api-web/export/doubleEleven2021OrderDetail",fileName:(this.$route.query.year,"学员购买详情.xls"),method:"post",params:b.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=v,y=(r("df85"),r("2877")),_=Object(y["a"])(g,n,a,!1,null,"6ffba6c6",null);e["default"]=_.exports},cd0f:function(t,e,r){},df85:function(t,e,r){"use strict";r("cd0f")}}]);