(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2fd76010"],{"290c":function(t,e,i){"use strict";i("68c4")},"68c4":function(t,e,i){},ca26:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"app-container"},[e("div",{staticClass:"app-container--hd pb-20"},[e("h3",[t._v(t._s(t.report_name))])]),e("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"app-container--bd",attrs:{"element-loading-text":"报表生成中"}},[e("el-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleTabsClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},t._l(t.tabList,(function(t){return e("el-tab-pane",{key:t.value,attrs:{label:t.label,name:t.value}})})),1),e("div",{staticClass:"reports-container"},[e("ReportFilter",{attrs:{"form-filter-option":t.formFilterOption,"form-filter":t.formFilter},on:{"update:formFilter":function(e){t.formFilter=e},"update:form-filter":function(e){t.formFilter=e},search:t.handleSearch,getRealData:t.handleGetRealData}}),e("ReportTable",{attrs:{prop:t.tableObj}})],1)],1)])},r=[],s=(i("caad"),i("e9f5"),i("910d"),i("7d54"),i("9ab4")),l=i("60a3"),o=i("57bc"),n=i("f6d5"),c=i("c24d"),d=i("da00");let p=class extends l["f"]{constructor(){super(...arguments),this.tabList=[],this.activeName="1",this.tabKey="",this.formFilterOption=[],this.formFilter={},this.tableObj={},this.loading=!1}mounted(){const{reportConfig:t}=Object(n["a"])();Object.prototype.hasOwnProperty.call(t,this.report_code)&&(this.tabList=t[this.report_code].tabList,this.activeName=this.tabList[0].value,this.tabKey=t[this.report_code].tabKey,this.$set(this.formFilter,this.tabKey,this.tabList[0].value),this.getTable())}get report_api_path(){return this.config.report_api_path||""}get report_code(){return this.config.report_code||""}get report_name(){return this.config.report_name||"统计"}get report_sum_api(){return this.config.report_sum_api||""}handleTabsClick(){this.formFilter[this.tabKey]=this.activeName,Object.keys(this.formFilter).forEach(t=>{this.formFilterOption.includes(t)&&(this.formFilter[t]="")}),this.getTable()}handleSearch(){this.getTable()}handleGetRealData(){}async getTable(){try{this.loading=!0;const{data:t}=await Object(d["i"])(this.formFilter,this.report_api_path);if(!t||Array.isArray(t))return void(this.tableObj={table:[]});this.tableObj=t,this.formFilterOption=t.filter}finally{this.loading=!1}}};Object(s["a"])([Object(l["c"])({type:Object,default:()=>({})})],p.prototype,"config",void 0),p=Object(s["a"])([Object(l["a"])({components:{ReportFilter:o["default"],ReportTable:c["default"]}})],p);var u=p,b=u,_=(i("290c"),i("2877")),m=Object(_["a"])(b,a,r,!1,null,"54a905ee",null);e["default"]=m.exports},f6d5:function(t,e,i){"use strict";const a=()=>{const t={operatingStatement:{tabList:[{label:"经营业务日报",value:"1"},{label:"经营业务月报",value:"2"},{label:"经营业务年报",value:"3"}],filter:[{key:"product_id",is_required:!1},{key:"sales_id",is_required:!1},{key:"stadium_id",is_required:!1},{key:"order_cate",is_required:!1},{key:"sport_tag_id",is_required:!1}],exportTaskName:"operatingStatement",dayJump:"integralDetailIndex"},ticketStatisticsReport:{tabList:[{label:"门票统计日报",value:"1"},{label:"门票统计月报",value:"2"},{label:"门票统计年报",value:"3"}],filter:[{key:"stadium_id",is_required:!1},{key:"sport_tag_id",is_required:!1},{key:"ticket_id",is_required:!1}],exportTaskName:"ticketStatisticsReport",dayJump:"cashDealDetailIndex"},visitorStatisticsReport:{tabList:[{label:"人次统计日报",value:"1"},{label:"人次统计月报",value:"2"},{label:"人次统计年报",value:"3"}],filter:[{key:"stadium_id",is_required:!1},{key:"sport_tag_id",is_required:!1}],exportTaskName:"visitorStatisticsReport",dayJump:"memberListIndex"},fieldStatisticsReport:{tabList:[{label:"场地统计日报",value:"1"},{label:"场地统计月报",value:"2"},{label:"场地统计年报",value:"3"}],filter:[{key:"stadium_id",is_required:!1},{key:"sport_tag_id",is_required:!1},{key:"ground_id",is_required:!1}],exportTaskName:"visitorStatisticsReport",dayJump:"memberListIndex"},trainingIncomeStatistics:{tabList:[{label:"培训收入日报",value:"1"},{label:"培训收入月报",value:"2"}],filter:[{key:"sales_id",is_required:!1},{key:"sport_tag_id",is_required:!1},{key:"course_id",is_required:!1}],exportTaskName:"trainingIncomeStatistics"},paidCouponStatisticsReport:{tabList:[{label:"优惠券",value:"1"},{label:"券包",value:"2"}],tabKey:"paid_coupon_type",type:"1"}},e=["paidCouponStatisticsReport"],i=t=>t;return{reportConfig:t,paramCallBack:i,reportcommonFilter:e}};e["a"]=a}}]);
//# sourceMappingURL=chunk-2fd76010.958ad57e.js.map