"use strict";(self["webpackChunkvoghion_vue_admin"]=self["webpackChunkvoghion_vue_admin"]||[]).push([[17536],{17536:function(e,t,l){l.r(t),l.d(t,{default:function(){return u}});var a=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-date-picker",{attrs:{type:"datetimerange","start-placeholder":"开始日期","end-placeholder":"结束日期","value-format":"yyyy-MM-dd HH:mm:ss",clearable:""},model:{value:e.form.settleTime,callback:function(t){e.$set(e.form,"settleTime",t)},expression:"form.settleTime"}})],1),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onSearch()}}},[e._v("查询")])],1)],1),t("p",{staticStyle:{"padding-left":"16px"}},[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.exportOnClick()}}},[e._v("下载明细")])],1),t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.list},on:{"selection-change":function(t){e.selectedRows=t}}},[t("el-table-column",{attrs:{"header-align":"center",align:"center",type:"selection"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"settleTime",label:"结算日期"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"shopLoseNums",label:"商家丢件单数"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"shopLoseAmount",label:"总赔偿€"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"scmLoseNums",label:"供应商丢件单数"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",prop:"scmLoseAmount",label:"总赔偿¥"}}),t("el-table-column",{attrs:{"header-align":"center",align:"center",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(l){return[t("el-button",{attrs:{type:"text"},on:{click:function(t){return e.exportOnClick(l.row)}}},[e._v("下载明细")])]}}])})],1)],1)])},n=[],r=(l(81454),l(7896)),o={components:{},data(){return{selectedRows:[],form:{},list:[],dataSource:{records:[],pageNow:1,pageSize:20},loading:!1}},mounted(){this.fetchDataSource()},methods:{exportOnClick(e){let t=[];if(e)t=[e.settleTime];else{if(!(this.selectedRows.length>0))return void this.$message.error("请选择要导出的行");t=this.selectedRows.map((e=>e.settleTime))}const l={settleTimeArr:t};(0,r.zK)("/api/warehouse_return_item/downloadLoseDetail",l)},handleParam(){const e={...this.form};return e},onSearch(){this.fetchDataSource()},async fetchDataSource(e,t){this.loading=!0;const l={...this.handleParam()},a=await this.$store.dispatch({type:"settlementManager/lostItemBillList",payload:{...l}});a&&(this.list=a),this.loading=!1}}},i=o,s=l(81656),c=(0,s.A)(i,a,n,!1,null,null,null),u=c.exports}}]);