"use strict";(self["webpackChunkvoghion_vue_admin"]=self["webpackChunkvoghion_vue_admin"]||[]).push([[87069],{87069:function(e,t,a){a.r(t),a.d(t,{default:function(){return u}});var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"g-pa-md"},[t("el-form",{ref:"form",staticClass:"g-pt-xl g-bg-white g-mt-md",attrs:{inline:!0,model:e.form,"label-width":"100px"},nativeOn:{submit:function(e){e.preventDefault()}}},[t("el-form-item",{attrs:{label:"商家ID"}},[t("el-input",{staticStyle:{width:"256px"},attrs:{clearable:""},model:{value:e.form.shopId,callback:function(t){e.$set(e.form,"shopId",t)},expression:"form.shopId"}})],1),t("el-form-item",{attrs:{label:"商家名称"}},[t("el-input",{staticStyle:{width:"256px"},attrs:{clearable:""},model:{value:e.form.shopName,callback:function(t){e.$set(e.form,"shopName",t)},expression:"form.shopName"}})],1),t("el-form-item",{attrs:{label:"最新更新时间"}},[t("el-date-picker",{attrs:{type:"datetimerange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd HH:mm:ss",clearable:""},model:{value:e.form.returnTime,callback:function(t){e.$set(e.form,"returnTime",t)},expression:"form.returnTime"}})],1),t("el-form-item",{attrs:{label:"省"}},[t("el-select",{attrs:{clearable:""},model:{value:e.form.province,callback:function(t){e.$set(e.form,"province",t)},expression:"form.province"}},e._l(e.provinceList,(function(e){return t("el-option",{key:e,attrs:{label:e,value:e}})})),1)],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.fetchDataSource(1)}}},[e._v("搜索")])],1),t("el-form-item",[t("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"/merchant/returnAddress-export",expression:"'/merchant/returnAddress-export'"}],attrs:{type:"primary"},on:{click:function(t){return e.exportOnClick()}}},[e._v("导出")])],1)],1),t("el-table",{staticClass:"notranslate g-mt-md",staticStyle:{width:"100%"},attrs:{data:e.dataSource.records}},[t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"shopId",label:"商家ID"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"shopName",label:"商家名称"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"returnProvince",label:"省"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"returnCity",label:"市"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"returnCounty",label:"区"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"returnAddress",label:"退件地址"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"returnPerson",label:"联系人"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"returnPhone",label:"联系电话"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"returnTime",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)},n=[],l=(a(81454),a(7896)),o={data(){return{phpDomain:l.tP,form:{},dataSource:{records:[],pageNow:1,pageSize:20},loading:!1}},computed:{provinceList(){const e=this.$store.state.merchant.areaInfo||[];return e.map((e=>e.label))}},mounted(){this.fetchDataSource(),this.getAllAreaInfo()},methods:{handleParams(){const e={...this.form};return e},async fetchDataSource(e,t){this.loading=!0;const a={pageNow:e||this.dataSource.pageNow,pageSize:t||this.dataSource.pageSize,...this.handleParams()},r=await this.$store.dispatch({type:"merchant/returnAddress",payload:a});r&&(this.dataSource=r),this.loading=!1},exportOnClick(e){(0,l.zK)("/api/merchants/exportAddress",this.handleParams())},getAllAreaInfo(){this.$store.dispatch("merchant/getAllAreaInfo")}}},i=o,s=a(81656),c=(0,s.A)(i,r,n,!1,null,null,null),u=c.exports}}]);