"use strict";(self["webpackChunkvoghion_vue_admin"]=self["webpackChunkvoghion_vue_admin"]||[]).push([[88230],{88230: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.refundDate,callback:function(t){e.$set(e.form,"refundDate",t)},expression:"form.refundDate"}})],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.fetchRefundInfoList(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:"orderId",label:"子订单号",width:"210"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"tradeNo",label:"退款单号",width:"210"}}),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:"qualityTypeDesc",label:"是否质量问题",width:"150"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"refundReason",label:"退款原因",width:"180"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"refundTime",label:"退款时间",width:"150"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"refundMoney",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:{fetchRefundInfoList(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/queryRefundInfo",payload:a});n&&(this.dataSource=n),this.loading=!1},exportExcel(){(0,l.Ne)("/buss-finance/detailStatistics/refund/export",{...this.handleParams()})},handleParams(){const e={...this.form},{refundDate:t}=e;return t&&t.length>0&&(e.startDate=t[0],e.endDate=t[1],delete e.refundDate),e}}},i=o,c=a(81656),s=(0,c.A)(i,n,r,!1,null,null,null),u=s.exports}}]);