This commit is contained in:
2024-07-08 16:21:32 +08:00
35 changed files with 3601 additions and 121 deletions

View File

@@ -61,11 +61,16 @@
<div class="head-container">
<el-table :data="tableData.data" v-loading="tableData.loading" v-if="orderType == 1">
<el-table-column label="日期" prop="tradeDay"></el-table-column>
<el-table-column label="总金额" prop="total">
<el-table-column label="营业额" prop="total">
<template v-slot="scope">
{{ scope.row.total }}
</template>
</el-table-column>
<el-table-column label="销售额" prop="total">
<template v-slot="scope">
{{ scope.row.total | totalfilter(scope.row.refund) }}
</template>
</el-table-column>
<el-table-column label="微信小程序支付" prop="wxLite">
<template v-slot="scope">
{{ scope.row.wxLite }}
@@ -91,6 +96,12 @@
{{ scope.row.deposit }}
</template>
</el-table-column>
<!-- <el-table-column label="充值金额" prop="cash">
<template v-slot="scope">
{{ scope.row.recharge }}
</template>
</el-table-column> -->
<el-table-column label="退款金额" prop="cash">
<template v-slot="scope">
{{ scope.row.refund }}
@@ -101,6 +112,7 @@
<el-table-column label="商品名称" prop="productName"></el-table-column>
<el-table-column label="商品分类" prop="cateName"></el-table-column>
<el-table-column label="商品描述" prop="productSkuName"></el-table-column>
<el-table-column label="单价" prop="price"></el-table-column>
<el-table-column label="销量" prop="salesNum"></el-table-column>
<el-table-column label="退单量" prop="refNum"></el-table-column>
<el-table-column label="销售金额" prop="salesAmount">
@@ -156,6 +168,10 @@ export default {
filters: {
timeFilter(time) {
return dayjs(time).format("YYYY-MM-DD HH:mm:ss");
},
totalfilter(item,d) {
let num = item + d
return num.toFixed(2)
}
},
mounted() {