"use strict";(self["webpackChunkvoghion_vue_admin"]=self["webpackChunkvoghion_vue_admin"]||[]).push([[68453],{68453:function(e,t,a){a.r(t),a.d(t,{default:function(){return u}});var n=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{background:"white"}},[t("el-form",{ref:"form",staticClass:"g-pa-xl",attrs:{inline:!0,model:e.form,"label-width":"auto"},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-form-item",[t("el-date-picker",{attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separtor":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.payDate,callback:function(t){e.$set(e.form,"payDate",t)},expression:"form.payDate"}})],1),t("el-form-item",{attrs:{label:"国家"}},[t("el-select",{model:{value:e.form.country,callback:function(t){e.$set(e.form,"country",t)},expression:"form.country"}},e._l(e.countryList,(function(e){return t("el-option",{key:e.code,attrs:{label:e.name,value:e.name}})})),1)],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.fetchPayInfoList(1)}}},[e._v("查询")]),t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.exportExcel()}}},[e._v("下载")])],1)],1),t("div",{staticClass:"g-relative-position"},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.dataSource.records},on:{"selection-change":function(t){e.selectedRows=t}}},[t("el-table-column",{attrs:{fixed:"","header-align":"center",align:"center",prop:"showOrderId",label:"父订单号",width:"200"}}),t("el-table-column",{attrs:{fixed:"","header-align":"center",align:"center",prop:"payId",label:"支付渠道单号",width:"190"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"orderCount",label:"子订单数"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"countryName",label:"国家",width:"150"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"orderCreateTime",label:"订单创建时间",width:"150"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"paySuccessTime",label:"支付成功时间",width:"150"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"payment",label:"支付渠道"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"amount",label:"实付金额"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"deliveryMoney",label:"普通运费"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"sevenDayMoney",label:"7日达运费"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"tenDayMoney",label:"10日达运费"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"twelveDayMoney",label:"12日达运费"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"discountAmount",label:"优惠金额"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"subsidyAmount",label:"商家优惠"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"totalAmount",label:"商品总金额"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"commission",label:"平台佣金"}})],1),t("div",{staticClass:"g-pagination-container"},[t("el-pagination",{attrs:{"current-page":e.dataSource.pageNow,"page-sizes":[20,50,100],"page-size":e.dataSource.pageSize,layout:"sizes, prev, pager, next, jumper",background:"",total:e.dataSource.rowCount},on:{"size-change":function(t){return e.fetchDataSource(null,t)},"current-change":function(t){return e.fetchDataSource(t)}}})],1)],1)],1)},r=[],l=a(7896),o={data(){return{form:{},loading:!1,dataSource:{records:[],pageNow:1,pageSize:20}}},computed:{countryList(){return this.$store.state.user.countryList}},methods:{fetchPayInfoList(e){this.fetchDataSource(e)},async fetchDataSource(e,t){this.loading=!0;const a={pageNow:e||this.dataSource.pageNow,pageSize:t||this.dataSource.pageSize,...this.handleParams()},n=await this.$store.dispatch({type:"financeReport/queryPayInfo",payload:a});n&&(this.dataSource=n),this.loading=!1},exportExcel(){(0,l.Ne)("/buss-finance/detailStatistics/pay/export",{...this.handleParams()})},handleParams(){const e={...this.form},{payDate:t}=e;return t&&t.length>0&&(e.startDate=t[0],e.endDate=t[1],delete e.payDate),e}}},i=o,c=a(81656),s=(0,c.A)(i,n,r,!1,null,null,null),u=s.exports}}]);