|
|
@@ -69,12 +69,12 @@ export default {
|
|
|
return this.$service.stat.getClassProfit({searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime}).then((res) => {
|
|
|
let list = [
|
|
|
...res.list,
|
|
|
- {className:'物流打包费',income:0,expend:res.packFreight,profit:-res.packFreight},
|
|
|
- {className:'采购仅退款',income:res.onlyRefundCg,expend:0,profit:res.onlyRefundCg},
|
|
|
- {className:'销售仅退款',income:0,expend:res.onlyRefund,profit:-res.onlyRefund},
|
|
|
- {className:'附加人工费',income:res.totalLabourCost,expend:0,profit:res.totalLabourCost},
|
|
|
- {className:'优惠金额',income:-res.totalDiscountAmount,expend:0,profit:-res.totalDiscountAmount},
|
|
|
- {className:'【汇总金额】',income:res.totalIncome,expend:res.totalExpend,profit:res.totalProfit}
|
|
|
+ {className:'物流打包费',income:0,expend:res.packFreight,profit:-res.packFreight,saleNum:0,cgNum:0},
|
|
|
+ {className:'采购仅退款',income:res.onlyRefundCg,expend:0,profit:res.onlyRefundCg,saleNum:0,cgNum:0},
|
|
|
+ {className:'销售仅退款',income:0,expend:res.onlyRefund,profit:-res.onlyRefund,saleNum:0,cgNum:0},
|
|
|
+ {className:'附加人工费',income:res.totalLabourCost,expend:0,profit:res.totalLabourCost,saleNum:0,cgNum:0},
|
|
|
+ {className:'优惠金额',income:-res.totalDiscountAmount,expend:0,profit:-res.totalDiscountAmount,saleNum:0,cgNum:0},
|
|
|
+ {className:'【汇总金额】',income:res.totalIncome,expend:res.totalExpend,profit:res.totalProfit,saleNum:0,cgNum:0}
|
|
|
]
|
|
|
return {
|
|
|
list: list
|
|
|
@@ -89,11 +89,21 @@ export default {
|
|
|
prop: 'className',
|
|
|
align: 'center',
|
|
|
},
|
|
|
+ {
|
|
|
+ label: '销售数量',
|
|
|
+ prop: 'saleNum',
|
|
|
+ align: 'center',
|
|
|
+ },
|
|
|
{
|
|
|
label: '销售收入',
|
|
|
prop: 'income',
|
|
|
align: 'center',
|
|
|
},
|
|
|
+ {
|
|
|
+ label: '采购数量',
|
|
|
+ prop: 'cgNum',
|
|
|
+ align: 'center',
|
|
|
+ },
|
|
|
{
|
|
|
label: '采购成本',
|
|
|
prop: 'expend',
|