(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-65260705"],{"0e20":function(e,t,a){"use strict";a("e0b7")},d148:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e._self._c;return t("div",[t("el-card",{staticClass:"ibox"},[t("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[t("div",[e._v("查询条件")])]),t("div",{},[t("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:e.getSalesInfoManageInfo.conditions}},[t("el-form-item",[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:"选择结束时间","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.getSalesInfoManageInfo.conditions.endTime,callback:function(t){e.$set(e.getSalesInfoManageInfo.conditions,"endTime",t)},expression:"getSalesInfoManageInfo.conditions.endTime"}})],1),t("el-form-item",[t("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入商品名称",clearable:""},model:{value:e.getSalesInfoManageInfo.conditions.prodNameLike,callback:function(t){e.$set(e.getSalesInfoManageInfo.conditions,"prodNameLike",t)},expression:"getSalesInfoManageInfo.conditions.prodNameLike"}})],1),t("el-form-item",[t("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:e._queryGetSalesInfoMethod}},[e._v("查询")]),t("el-button",{attrs:{icon:"el-icon-refresh"},on:{click:e._resetGetSalesInfoMethod}},[e._v("重置")])],1)],1)],1)]),t("el-card",{staticClass:"margin-top-sm"},[t("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[t("span",[e._v("销售明细")])]),t("div",{},[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{data:e.getSalesInfoManageInfo.getSalesInfos,border:""}},[t("el-table-column",{attrs:{prop:"orderId",label:"订单号",align:"center"}}),t("el-table-column",{attrs:{prop:"cartType",label:"类型",align:"center"}}),t("el-table-column",{attrs:{prop:"prodName",label:"名称",align:"center"}}),t("el-table-column",{attrs:{prop:"cartNum",label:"销售数量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.cartNum||0)+" ")]}}])}),t("el-table-column",{attrs:{prop:"personName",label:"用户名称",align:"center"}}),t("el-table-column",{attrs:{prop:"payPrice",label:"明细金额",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.payPrice||0)+" ")]}}])}),t("el-table-column",{attrs:{prop:"discountPrice",label:"商品优惠",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.discountPrice||0)+" ")]}}])}),t("el-table-column",{attrs:{prop:"orderDiscountPrice",label:"订单优惠",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.orderDiscountPrice||0)+" ")]}}])}),t("el-table-column",{attrs:{prop:"orderPayPrice",label:"订单金额",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.orderPayPrice||0)+" ")]}}])}),t("el-table-column",{attrs:{prop:"returnCartNum",label:"退货数量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.returnCartNum||0)+" ")]}}])}),t("el-table-column",{attrs:{prop:"returnPayPrice",label:"退货明细金额",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.returnPayPrice||0)+" ")]}}])}),t("el-table-column",{attrs:{prop:"dReturnPayPrice",label:"退货订单金额",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.dReturnPayPrice||0)+" ")]}}])}),t("el-table-column",{attrs:{prop:"createTime",label:"创建时间",align:"center"}})],1),t("el-pagination",{staticStyle:{"margin-top":"20px","text-align":"right"},attrs:{"current-page":e.currentPage,"page-size":e.pageSize,layout:"total, prev, pager, next, jumper",total:e.getSalesInfoManageInfo.total},on:{"current-change":e.handleCurrentChange}})],1)])],1)},o=[],l=a("b775"),r=a("7323");function s(e){return new Promise((t,a)=>{e.shopId=Object(r["f"])(),Object(l["a"])({url:"/mallReport/getSalesInfo",method:"get",params:e}).then(e=>{const a=e.data;t(a)}).catch(e=>{a(e)})})}var i={name:"GetSalesInfoManage",data(){return{loading:!1,currentPage:1,pageSize:10,getSalesInfoManageInfo:{getSalesInfos:[],total:0,conditions:{beginTime:"",endTime:"",prodNameLike:"",shopId:""}}}},created(){this.getSalesInfoManageInfo.conditions.shopId=Object(r["f"])(),this._listGetSalesInfos(this.currentPage,this.pageSize)},methods:{handleCurrentChange(e){this.currentPage=e,this._listGetSalesInfos(e,this.pageSize)},async _listGetSalesInfos(e,t){this.loading=!0;try{const a={...this.getSalesInfoManageInfo.conditions,page:e,row:t},n=await s(a);this.getSalesInfoManageInfo.getSalesInfos=n.data,this.getSalesInfoManageInfo.total=n.total}catch(a){console.error("获取销售明细失败:",a)}finally{this.loading=!1}},_queryGetSalesInfoMethod(){this.currentPage=1,this._listGetSalesInfos(this.currentPage,this.pageSize)},_resetGetSalesInfoMethod(){this.getSalesInfoManageInfo.conditions={beginTime:"",endTime:"",prodNameLike:"",shopId:Object(r["f"])()},this.currentPage=1,this._listGetSalesInfos(this.currentPage,this.pageSize)}}},c=i,u=(a("0e20"),a("2877")),d=Object(u["a"])(c,n,o,!1,null,"3cecb6b2",null);t["default"]=d.exports},e0b7:function(e,t,a){}}]); //# sourceMappingURL=chunk-65260705.c5efff38.js.map