(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["TransactionIndex"],{5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,a){var n=a("1d80"),i=a("5899"),s="["+i+"]",o=RegExp("^"+s+s+"*"),r=RegExp(s+s+"*$"),c=function(t){return function(e){var a=String(n(e));return 1&t&&(a=a.replace(o,"")),2&t&&(a=a.replace(r,"")),a}};t.exports={start:c(1),end:c(2),trim:c(3)}},"6ffe":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"pagination"},[a("a-pagination",{attrs:{"page-size-options":t.pageSizeOptions,total:t.count,"show-total":function(t,e){return"总共"+t+"条"},"page-size":t.pageSize,showQuickJumper:"",showSizeChanger:t.showSizeChanger},on:{showSizeChange:t.onShowSizeChange,change:t.onchange},scopedSlots:t._u([{key:"buildOptionText",fn:function(e){return["99"!==e.value?a("span",[t._v(t._s(e.value)+"条/页")]):t._e()]}}]),model:{value:t.current,callback:function(e){t.current=e},expression:"current"}})],1)},i=[],s=(a("a9e3"),{props:{count:{type:Number,defaule:0},pageNo:{type:Number,default:1},showSizeChanger:{type:Boolean,default:!0}},data:function(){return{pageSizeOptions:["20","30","40","50","100","200"],current:1,pageSize:20}},watch:{pageNo:function(t){this.current=t}},created:function(){this.current=this.pageNo},methods:{onShowSizeChange:function(t,e){this.current=1,this.$emit("showSizeChangeFn",t,e),this.pageSize=e},onchange:function(t,e){this.$emit("showSizeChangeFn",t,e)}}}),o=s,r=(a("ae61"),a("2877")),c=Object(r["a"])(o,n,i,!1,null,"ae5bacaa",null);e["a"]=c.exports},7156:function(t,e,a){var n=a("861d"),i=a("d2bb");t.exports=function(t,e,a){var s,o;return i&&"function"==typeof(s=e.constructor)&&s!==a&&n(o=s.prototype)&&o!==a.prototype&&i(t,o),t}},"82af":function(t,e,a){},"96b4":function(t,e,a){},a9e3:function(t,e,a){"use strict";var n=a("83ab"),i=a("da84"),s=a("94ca"),o=a("6eeb"),r=a("5135"),c=a("c6b6"),u=a("7156"),d=a("c04e"),l=a("d039"),f=a("7c73"),p=a("241c").f,h=a("06cf").f,g=a("9bf2").f,m=a("58a8").trim,b="Number",v=i[b],S=v.prototype,_=c(f(S))==b,w=function(t){var e,a,n,i,s,o,r,c,u=d(t,!1);if("string"==typeof u&&u.length>2)if(u=m(u),e=u.charCodeAt(0),43===e||45===e){if(a=u.charCodeAt(2),88===a||120===a)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+u}for(s=u.slice(2),o=s.length,r=0;ri)return NaN;return parseInt(s,n)}return+u};if(s(b,!v(" 0o1")||!v("0b1")||v("+0x1"))){for(var C,k=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof k&&(_?l((function(){S.valueOf.call(a)})):c(a)!=b)?u(new v(w(e)),a,k):w(e)},y=n?p(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),N=0;y.length>N;N++)r(v,C=y[N])&&!r(k,C)&&g(k,C,h(v,C));k.prototype=S,S.constructor=k,o(i,b,k)}},ae61:function(t,e,a){"use strict";a("96b4")},c0fb:function(t,e,a){"use strict";a.d(e,"d",(function(){return i})),a.d(e,"a",(function(){return s})),a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return r})),a.d(e,"e",(function(){return c})),a.d(e,"f",(function(){return u}));var n=a("284b"),i=function(t){return n["a"].post("/adminv2/statistics/GetStatisticsList",t)},s=function(t){return n["a"].post("/adminv2/statistics/AddStatistics",t)},o=function(t){return n["a"].post("/adminv2/statistics/GetClassPlayCount",t)},r=function(t){return n["a"].post("/adminv2/statistics/GetClassPlayLists",t)},c=function(t){return n["a"].post("/adminv2/statistics/getSalesCount",t)},u=function(t){return n["a"].post("/adminv2/statistics/performaceList",t)}},c9ee:function(t,e,a){"use strict";a("82af")},d7ad:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"ant-card",attrs:{id:"course_category"}},[t.$route.meta.isShow?a("a-spin",{attrs:{spinning:t.spinning,size:"large"}},[a("div",{staticClass:"ant-card-body"},[a("div",{staticClass:"head-box"},[a("div",{staticClass:"table-operator"},[a("span",{staticClass:"item"},[a("a-range-picker",{staticStyle:{width:"300px"},attrs:{"disabled-date":t.disabledDate,placeholder:["当期订单起始日期","当期订单结束日期"]},on:{change:t.registerChange},model:{value:t.form.datePicker,callback:function(e){t.$set(t.form,"datePicker",e)},expression:"form.datePicker"}})],1),a("span",{staticClass:"item"},[a("a-button",{staticClass:"margin_right10",attrs:{type:"primary"},on:{click:t.searchClick}},[t._v("添加查询任务")])],1)])]),a("div",{staticClass:"contant-box"},[a("p",{staticClass:"title"},[t._v("导出报表表头展示")]),a("div",{staticClass:"tabShow"},[a("table",{attrs:{border:"1"}},[a("tr",[a("th",[t._v("时间周期")]),a("th",{attrs:{colspan:"9"}},[t._v("抖音-申怡旗舰店/视频号-领读人申怡/APP")])]),a("tr",[a("th",[t._v("课程/商品名称")]),a("th",[t._v("当期订单数")]),a("th",[t._v("当期GMV")]),a("th",[t._v("当期用户数")]),a("th",[t._v("其中首购用户数")]),a("th",[t._v("其中首购用户消费GMV")]),a("th",[t._v("首购用户中7日复购用户数")]),a("th",[t._v("首购用户中7日复购GMV")]),a("th",[t._v("首购用户中30日复购用户")]),a("th",[t._v("首购用户中30日复购GMV")])])])]),a("a-table",{ref:"table",attrs:{columns:t.columns,"data-source":t.tableList,"row-key":function(t){return t.taskId},loading:t.tableLoading,pagination:!1},scopedSlots:t._u([{key:"Status",fn:function(e,n){return a("span",{},[a("span",[t._v(t._s(1==n.Status?"未开始":2==n.Status?"进行中":3==n.Status?"已完成":"--"))])])}},{key:"action",fn:function(e,n){return a("span",{},[3==n.Status?a("a",{on:{click:function(e){return t.isDownloadClick(n)}}},[t._v("下载")]):a("a",[t._v("--")])])}}],null,!1,2203991764)})],1),a("MyPagination",{directives:[{name:"show",rawName:"v-show",value:!t.tableLoading,expression:"!tableLoading"}],attrs:{count:t.count,pageNo:t.pageNo},on:{showSizeChangeFn:t.showSizeChangeFn}})],1)]):t._e(),a("router-view")],1)},i=[],s=(a("d3b7"),a("3ca3"),a("ddb0"),a("2b3d"),a("b0c0"),a("6ffe")),o=a("c0fb"),r=a("f121"),c=a("bc3a"),u=a.n(c),d={components:{MyPagination:s["a"]},created:function(){this.getTagList()},data:function(){return{form:{courseName:void 0,registerDate:"",registerEndDate:"",status:0,datePicker:[]},spinning:!1,tableLoading:!1,columns:[{title:"报表名称",dataIndex:"name",key:"name"},{title:"系统生成时间",dataIndex:"create_time",key:"create_time"},{title:"进度",dataIndex:"Status",key:"Status",scopedSlots:{customRender:"Status"}},{title:"操作",dataIndex:"action",key:"action",width:"130px",scopedSlots:{customRender:"action"}}],tableList:[],pageNo:1,pageSize:20,count:0,options:[],isDateShow:!0,columnsShow:[{title:"报表名称",dataIndex:"userName",key:"userName"},{title:"系统生成时间",dataIndex:"nickName",key:"nickName",scopedSlots:{customRender:"nickName"}},{title:"进度",dataIndex:"vipStatus",key:"vipStatus",scopedSlots:{customRender:"vipStatus"}}],tableListShow:[]}},watch:{$route:function(t){"/reportFormManage/transactionIndex"===t.path&&this.getTagList()}},methods:{disabledDate:function(t){return t&&t>Date.now()},searchClick:function(){var t=this;if(!this.form.registerDate)return this.$message.error("请选择时间范围!"),!1;this.tableLoading=!0,Object(o["a"])({begin_time:this.form.registerDate,end_time:this.form.registerEndDate}).then((function(e){200===e.code&&(t.pageNo=1,t.getTagList()),t.tableLoading=!1}))},resetClick:function(){this.pageNo=1,this.getTagList()},registerChange:function(t,e){""!=e[0]?(this.form.registerDate=e[0],this.form.registerEndDate=e[1]):(this.form.registerDate="",this.form.registerEndDate="")},showSizeChangeFn:function(t,e){this.pageNo=t,this.pageSize=e,this.getTagList()},getTagList:function(){var t=this;this.tableLoading=!0,Object(o["d"])({status:this.form.status,pageNo:this.pageNo,pageSize:this.pageSize}).then((function(e){200===e.code&&(t.tableList=e.data.data,t.count=e.data.count),t.tableLoading=!1}))},isDownloadClick:function(t){var e=this,a=localStorage.getItem("token");this.tableLoading=!0;var n=r["a"];"https://test.shenyiedu.com/"!=n&&(n="https://admin.shenyiedu.com/");var i="".concat(n,"/adminv2/statistics/DownStatistics"),s={task_id:t.taskId};u.a.post(i,s,{responseType:"blob",headers:{accesstoken:a,authorization:a,"Content-Type":"application/json"}}).then((function(a){var n=a.data,i=document.createElement("a");n=new Blob([n],{type:"application/x-excel"}),i.style.display="none",i.href=URL.createObjectURL(n),i.download="".concat(t.name,".xlsx"),document.body.appendChild(i),i.click(),document.body.removeChild(i),e.tableLoading=!1}))},targetFn:function(){return document.querySelector("#course")}}},l=d,f=(a("c9ee"),a("2877")),p=Object(f["a"])(l,n,i,!1,null,"b3f44aac",null);e["default"]=p.exports}}]); //# sourceMappingURL=TransactionIndex.94dcd97e.js.map