Files
PropertyDeployment/resources/Web/MicroCommunityMallWeb/html/js/chunk-5ca72924.0b81855a.js
Anfioo adfd019d2d 江门
1
2026-02-01 15:37:55 +08:00

2 lines
4.0 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ca72924"],{7441:function(e,t,s){"use strict";s("e551")},c19b:function(e,t,s){"use strict";s.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.sellingCostManageInfo.conditions}},[t("el-form-item",[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择开始时间","value-format":"yyyy-MM-dd"},model:{value:e.sellingCostManageInfo.conditions.beginTime,callback:function(t){e.$set(e.sellingCostManageInfo.conditions,"beginTime",t)},expression:"sellingCostManageInfo.conditions.beginTime"}})],1),t("el-form-item",[t("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"date",placeholder:"选择结束时间","value-format":"yyyy-MM-dd"},model:{value:e.sellingCostManageInfo.conditions.endTime,callback:function(t){e.$set(e.sellingCostManageInfo.conditions,"endTime",t)},expression:"sellingCostManageInfo.conditions.endTime"}})],1),t("el-form-item",[t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e._querySellingCostMethod}},[t("i",{staticClass:"el-icon-search"}),e._v(" 查询 ")]),t("el-button",{attrs:{type:"primary",size:"small"},on:{click:e._resetSellingCostMethod}},[t("i",{staticClass:"el-icon-refresh"}),e._v(" 重置 ")])],1)],1)],1)]),t("el-card",{staticClass:"margin-top-sm"},[t("div",{staticClass:"flex justify-between",attrs:{slot:"header"},slot:"header"},[t("div",[e._v("销售成本表")])]),t("div",{},[t("el-table",{staticStyle:{width:"100%"},attrs:{data:e.sellingCostManageInfo.sellingCosts,border:""}},[t("el-table-column",{attrs:{prop:"dataTime",label:"日期",align:"center"}}),t("el-table-column",{attrs:{prop:"salesRevenue",label:"销售收入",align:"center"}}),t("el-table-column",{attrs:{prop:"salesCost",label:"销售成本",align:"center"}}),t("el-table-column",{attrs:{prop:"grossMargin",label:"销售毛利",align:"center"}}),t("el-table-column",{attrs:{prop:"lossMoney",label:"亏损金额",align:"center"}}),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.sellingCostManageInfo.conditions.page,"page-size":e.sellingCostManageInfo.conditions.row,layout:"total, prev, pager, next",total:e.sellingCostManageInfo.total},on:{"current-change":e.handleCurrentChange}})],1)])],1)},l=[],i=s("b775");function a(e){return new Promise((t,s)=>{Object(i["a"])({url:"/mallReport/sellingCost",method:"get",params:e}).then(e=>{const s=e.data;t(s)}).catch(e=>{s(e)})})}var o=s("7323"),r={name:"SellingCostManage",data(){return{DEFAULT_PAGE:1,DEFAULT_ROWS:10,sellingCostManageInfo:{sellingCosts:[],total:0,records:1,moreCondition:!1,conditions:{beginTime:"",endTime:"",shopId:"",page:1,row:10}}}},created(){this.sellingCostManageInfo.conditions.shopId=Object(o["f"])(),console.log(this.sellingCostManageInfo.records),this._listSellingCosts(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},methods:{handleCurrentChange(e){this._listSellingCosts(e,this.DEFAULT_ROWS)},async _listSellingCosts(e,t){this.sellingCostManageInfo.conditions.page=e,this.sellingCostManageInfo.conditions.row=t;try{const e=await a(this.sellingCostManageInfo.conditions);this.sellingCostManageInfo.total=e.total,this.sellingCostManageInfo.records=e.records,this.sellingCostManageInfo.sellingCosts=e.data}catch(s){console.error("请求失败:",s)}},_querySellingCostMethod(){this._listSellingCosts(this.DEFAULT_PAGE,this.DEFAULT_ROWS)},_resetSellingCostMethod(){this.sellingCostManageInfo.conditions.beginTime="",this.sellingCostManageInfo.conditions.endTime="",this._listSellingCosts(this.DEFAULT_PAGE,this.DEFAULT_ROWS)}}},c=r,g=(s("7441"),s("2877")),d=Object(g["a"])(c,n,l,!1,null,"9689d450",null);t["default"]=d.exports},e551:function(e,t,s){}}]);
//# sourceMappingURL=chunk-5ca72924.0b81855a.js.map