"use strict";(self["webpackChunkvoghion_vue_admin"]=self["webpackChunkvoghion_vue_admin"]||[]).push([[93500],{93500:function(e,t,a){a.r(t),a.d(t,{default:function(){return d}});var r=function(){var e=this,t=e._self._c;return t("div",[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",{attrs:{label:"物流单号"}},[t("el-input",{staticStyle:{width:"256px"},attrs:{clearable:""},model:{value:e.form.trackingNo,callback:function(t){e.$set(e.form,"trackingNo",t)},expression:"form.trackingNo"}})],1),t("el-form-item",{attrs:{label:"创建日期"}},[t("el-date-picker",{attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd",clearable:""},model:{value:e.form.createTime,callback:function(t){e.$set(e.form,"createTime",t)},expression:"form.createTime"}})],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onSearch(1)}}},[e._v("查询")])],1),t("el-form-item",[t("VUpload",{attrs:{action:`${e.domain}/buss-finance/logisticsCostDetail/importData`,accept:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel","show-file-list":!1,"on-success":e.batchImportLogisticsSuccess}},[t("el-button",{staticClass:"g-ml-md",attrs:{type:"primary"}},[e._v("批量导入")])],1)],1),t("el-form-item",[t("el-button",{attrs:{type:"default"},on:{click:function(t){return e.exportTemplate()}}},[e._v("导入模版下载")])],1)],1),t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.dataSource.records}},[t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"trackingNo",label:"物流单号"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"logisticsProvider",label:"物流商"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"orderWeight",label:"子单重量"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"packageWeight",label:"包裹重量kg"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"orderBear",label:"承担物流费用"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"logisticsCost",label:"包裹物流费"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"createTime",label:"创建日期"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"bussTypeText",label:"物流业务类型"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"transactionTypeText",label:"费用收支类型"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"showDetailId",label:"子单号"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"payTime",label:"订单支付时间"}}),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:"bussModelText",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:"total, 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)])},l=[],n=a(17422),o=a.n(n),i=a(7896),c={data(){return{domain:i.bl,form:{},loading:!1,dataSource:{records:[],pageNow:1,pageSize:20}}},mounted(){this.fetchDataSource()},methods:{onSearch(){this.fetchDataSource()},batchImportLogisticsSuccess(){this.fetchDataSource()},async fetchDataSource(e,t){this.loading=!0;const a={pageNow:e||this.dataSource.pageNow,pageSize:t||this.dataSource.pageSize,...this.handleParam()},r=await this.$store.dispatch({type:"finance/queryLogisticsCostPage",payload:{...a}});r&&(this.dataSource=r),this.loading=!1},handleParam(){const e={...this.form},{createTime:t}=e;return t&&t.length>0&&(e.createDateStart=o()(t[0]).format("YYYY-MM-DD HH:mm:ss"),e.createDateEnd=o()(t[1]).hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss"),delete e.createTime),e},exportTemplate(){(0,i.Ne)("/buss-finance/logisticsCostDetail/downloadTemplate")}}},s=c,p=a(81656),u=(0,p.A)(s,r,l,!1,null,null,null),d=u.exports}}]);