2 lines
5.7 KiB
JavaScript
2 lines
5.7 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e3af7356"],{"1ab4":function(e,n,t){},"48e9":function(e,n,t){"use strict";t.r(n);var a=function(){var e=this,n=e._self._c;return n("div",[n("el-card",{staticClass:"ibox"},[n("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[n("div",[e._v("查询条件")])]),n("div",{},[n("el-form",{staticClass:"flex justify-start",attrs:{inline:!0,model:e.getSalesRankingInfoManageInfo.conditions}},[n("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[n("span",[e._v("查询条件")])]),n("el-form-item",[n("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:"选择开始时间","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.getSalesRankingInfoManageInfo.conditions.beginTime,callback:function(n){e.$set(e.getSalesRankingInfoManageInfo.conditions,"beginTime",n)},expression:"getSalesRankingInfoManageInfo.conditions.beginTime"}})],1),n("el-form-item",[n("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:"选择开始时间","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.getSalesRankingInfoManageInfo.conditions.beginTime,callback:function(n){e.$set(e.getSalesRankingInfoManageInfo.conditions,"beginTime",n)},expression:"getSalesRankingInfoManageInfo.conditions.beginTime"}})],1),n("el-form-item",[n("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"datetime",placeholder:"选择结束时间","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:e.getSalesRankingInfoManageInfo.conditions.endTime,callback:function(n){e.$set(e.getSalesRankingInfoManageInfo.conditions,"endTime",n)},expression:"getSalesRankingInfoManageInfo.conditions.endTime"}})],1),n("el-form-item",[n("el-input",{attrs:{placeholder:"请输入商品名称",clearable:""},model:{value:e.getSalesRankingInfoManageInfo.conditions.prodNameLike,callback:function(n){e.$set(e.getSalesRankingInfoManageInfo.conditions,"prodNameLike",n)},expression:"getSalesRankingInfoManageInfo.conditions.prodNameLike"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:e._queryGetSalesRankingInfoMethod}},[n("i",{staticClass:"el-icon-search"}),e._v(" 查询 ")]),n("el-button",{on:{click:e._resetGetSalesRankingInfoMethod}},[n("i",{staticClass:"el-icon-refresh"}),e._v(" 重置 ")])],1)],1)],1)]),n("el-row",{staticStyle:{"margin-top":"20px"}},[n("el-col",{attrs:{span:24}},[n("el-card",{staticClass:"box-card"},[n("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[n("span",[e._v("销售排行")])]),n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.getSalesRankingInfoManageInfo.getSalesRankingInfos,border:""}},[n("el-table-column",{attrs:{prop:"productId",label:"商品编号",align:"center"}}),n("el-table-column",{attrs:{prop:"prodName",label:"商品名称",align:"center"}}),n("el-table-column",{attrs:{prop:"cartNum",label:"销量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(n){return[e._v(" "+e._s(n.row.cartNum||0)+" ")]}}])}),n("el-table-column",{attrs:{prop:"payPrice",label:"销售金额",align:"center"},scopedSlots:e._u([{key:"default",fn:function(n){return[e._v(" "+e._s(n.row.payPrice||0)+" ")]}}])}),n("el-table-column",{attrs:{prop:"returnCartNum",label:"退货数量",align:"center"},scopedSlots:e._u([{key:"default",fn:function(n){return[e._v(" "+e._s(n.row.returnCartNum||0)+" ")]}}])}),n("el-table-column",{attrs:{prop:"returnPayPrice",label:"退货金额",align:"center"},scopedSlots:e._u([{key:"default",fn:function(n){return[e._v(" "+e._s(n.row.returnPayPrice||0)+" ")]}}])}),n("el-table-column",{attrs:{prop:"createTime",label:"创建时间",align:"center"}})],1),n("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.getSalesRankingInfoManageInfo.total},on:{"current-change":e.handleCurrentChange}})],1)],1)],1)],1)},i=[],o=t("b775"),s=t("7323");function l(e){return new Promise((n,t)=>{Object(o["a"])({url:"/mallReport/getSalesRankingInfo",method:"get",params:{...e,shopId:Object(s["f"])()}}).then(e=>{const t=e.data;n(t)}).catch(e=>{t(e)})})}var r={name:"GetSalesRankingInfoManage",data(){return{currentPage:1,pageSize:10,getSalesRankingInfoManageInfo:{getSalesRankingInfos:[],total:0,records:1,conditions:{beginTime:"",endTime:"",prodNameLike:"",shopId:""}}}},created(){this.getSalesRankingInfoManageInfo.conditions.shopId=Object(s["f"])(),this._listGetSalesRankingInfokings(this.currentPage,this.pageSize)},methods:{handleCurrentChange(e){this.currentPage=e,this._listGetSalesRankingInfokings(this.currentPage,this.pageSize)},async _listGetSalesRankingInfokings(e,n){this.getSalesRankingInfoManageInfo.conditions.page=e,this.getSalesRankingInfoManageInfo.conditions.row=n;const t={...this.getSalesRankingInfoManageInfo.conditions,prodNameLike:this.getSalesRankingInfoManageInfo.conditions.prodNameLike.trim()};try{const e=await l(t);this.getSalesRankingInfoManageInfo.total=e.total,this.getSalesRankingInfoManageInfo.records=e.records,this.getSalesRankingInfoManageInfo.getSalesRankingInfos=e.data}catch(a){console.error("请求失败:",a)}},_queryGetSalesRankingInfoMethod(){this.currentPage=1,this._listGetSalesRankingInfokings(this.currentPage,this.pageSize)},_resetGetSalesRankingInfoMethod(){this.getSalesRankingInfoManageInfo.conditions.beginTime="",this.getSalesRankingInfoManageInfo.conditions.endTime="",this.getSalesRankingInfoManageInfo.conditions.prodNameLike="",this._queryGetSalesRankingInfoMethod()}}},g=r,c=(t("e34d"),t("2877")),f=Object(c["a"])(g,a,i,!1,null,"270ac500",null);n["default"]=f.exports},e34d:function(e,n,t){"use strict";t("1ab4")}}]);
|
|
//# sourceMappingURL=chunk-e3af7356.c8a0566b.js.map
|