jufubao-admin-library 1.1.47 → 1.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library/viewModules/viewStat/schemas/product.stat.js +25 -0
- package/library/viewModules/viewStat/viewsStat/product/components/stat-all-gift.vue +264 -0
- package/library/viewModules/viewStat/viewsStat/product/components/stat-all.vue +2 -2
- package/library/viewModules/viewStat/viewsStat/product/components/table-brand.vue +35 -8
- package/library/viewModules/viewStat/viewsStat/product/components/table-category.vue +36 -9
- package/library/viewModules/viewStat/viewsStat/product/components/table-product.vue +33 -6
- package/library/viewModules/viewStat/viewsStat/product/index.vue +26 -7
- package/library/viewModules/viewStat/viewsStat/supplier/components/discount.vue +13 -3
- package/library/viewModules/viewStat/viewsStat/supplier/components/stat-all.vue +4 -4
- package/library/viewModules/viewStat/viewsStat/supplier/components/stat-product.vue +1 -1
- package/library/viewModules/viewStat/viewsStat/supplier/components/stat-supplier.vue +1 -1
- package/library/viewModules/viewStat/viewsStat/supplier/components/table-category.vue +145 -40
- package/library/viewModules/viewStat/viewsStat/supplier/components/table-product.vue +145 -40
- package/library/viewModules/viewStat/viewsStat/supplier/components/table-store.vue +28 -7
- package/library/viewModules/viewStat/viewsStat/supplier/components/table-supplier.vue +181 -71
- package/library/viewModules/viewStat/viewsStat/supplier/index.vue +4 -4
- package/library/viewModules/viewTask/schemas/tasks.js +2 -2
- package/library/viewModules/viewTask/viewTask/list.vue +5 -0
- package/library/viewModules/viewsEnterpriseBuy/schemas/enterprise_buy.js +8 -0
- package/library/viewModules/viewsEnterpriseBuy/viewsEnterpriseBuy/detail.vue +82 -1
- package/package.json +1 -1
|
@@ -108,5 +108,30 @@ module.exports = {
|
|
|
108
108
|
isPublic: true,
|
|
109
109
|
role: ""
|
|
110
110
|
},
|
|
111
|
+
{
|
|
112
|
+
title: "统计-礼包统计-累计统计",
|
|
113
|
+
mapFn: "getGiftTotalCounts",
|
|
114
|
+
path: "/stat-partner/v1/gift-stat/gift-total-counts",
|
|
115
|
+
isRule: false,
|
|
116
|
+
params: {
|
|
117
|
+
filter_site_id: ['filter_site_id', 'String', '必填'],
|
|
118
|
+
filter_business_code: ['filter_business_code', 'String', '必填'],
|
|
119
|
+
},
|
|
120
|
+
disabled: true,
|
|
121
|
+
role: ""
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
title: "统计-礼包统计-礼包利润率分布",
|
|
125
|
+
mapFn: "getGiftProfitRatios",
|
|
126
|
+
path: '/stat-partner/v1/gift-stat/gift-profit-ratios',
|
|
127
|
+
isRule: false,
|
|
128
|
+
params: {
|
|
129
|
+
filter_site_id: ['filter_site_id', 'String', '必填'],
|
|
130
|
+
filter_business_code: ['filter_business_code', 'String', '必填'],
|
|
131
|
+
},
|
|
132
|
+
disabled: true,
|
|
133
|
+
role: ""
|
|
134
|
+
},
|
|
135
|
+
|
|
111
136
|
]
|
|
112
137
|
}
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
|
|
2
|
+
<template>
|
|
3
|
+
<el-card class="stat_all_card">
|
|
4
|
+
<div slot="header" class="card_header">
|
|
5
|
+
<div>
|
|
6
|
+
<span class="b_tit">累计商品统计</span>
|
|
7
|
+
<span class="s_tit">数据更新:{{ statAll.last_updated_date_time }}</span>
|
|
8
|
+
</div>
|
|
9
|
+
<!-- <i class="el-icon-refresh" @click="toRefresh"></i> -->
|
|
10
|
+
</div>
|
|
11
|
+
<div class="stat_list">
|
|
12
|
+
<div class="stat_item">
|
|
13
|
+
<p class="_title">
|
|
14
|
+
礼包总数
|
|
15
|
+
<el-tooltip effect="light" content="礼包表中总的礼包数量" placement="right">
|
|
16
|
+
<i class="xdicon_question-circle xd_admin_iconfont"></i>
|
|
17
|
+
</el-tooltip>
|
|
18
|
+
</p>
|
|
19
|
+
<div class="_cont">
|
|
20
|
+
<div class="_left">{{ statAll.total_count }}</div>
|
|
21
|
+
<div class="_right">
|
|
22
|
+
<div class="right_i right_top">
|
|
23
|
+
<div class="one_line">
|
|
24
|
+
{{statAll.self_total_count}} (自组礼包 )
|
|
25
|
+
</div>
|
|
26
|
+
<div class="two_line">
|
|
27
|
+
<div>上架{{statAll.self_online_count}}</div>
|
|
28
|
+
<div>下架{{ statAll.self_offline_count }}</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
<!-- <div class="right_i right_middle">
|
|
32
|
+
<div class="one_line">
|
|
33
|
+
{{statAll.product_self_channel_count}} (自营-接口)
|
|
34
|
+
</div>
|
|
35
|
+
<div class="two_line">
|
|
36
|
+
<div>上架{{statAll.product_self_channel_online_count}}</div>
|
|
37
|
+
<div>下架{{ statAll.product_self_channel_offline_count }}</div>
|
|
38
|
+
</div>
|
|
39
|
+
</div> -->
|
|
40
|
+
<div class="right_i right_bottom">
|
|
41
|
+
<div class="one_line">
|
|
42
|
+
{{statAll.other_total_count}}(非自组礼包)
|
|
43
|
+
</div>
|
|
44
|
+
<div class="two_line">
|
|
45
|
+
<div>上架{{statAll.other_online_count}}</div>
|
|
46
|
+
<div>下架{{statAll.other_offline_count}}</div>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<div class="stat_item">
|
|
53
|
+
<p class="_title">
|
|
54
|
+
单品总数
|
|
55
|
+
<el-tooltip effect="light" content="总共商品数量,多规格商品计一个" placement="right">
|
|
56
|
+
<i class="xdicon_question-circle xd_admin_iconfont"></i>
|
|
57
|
+
</el-tooltip>
|
|
58
|
+
</p>
|
|
59
|
+
<div class="_cont">
|
|
60
|
+
<div class="_left">{{statAll.single_total_count}}</div>
|
|
61
|
+
<div class="_right">
|
|
62
|
+
<div class="right_i right_top">
|
|
63
|
+
<div class="one_line">
|
|
64
|
+
{{statAll.single_self_manual_total_count}} (自营-人工)
|
|
65
|
+
</div>
|
|
66
|
+
<div class="two_line">
|
|
67
|
+
<div>上架{{statAll.single_self_manual_on_count}}</div>
|
|
68
|
+
<div>下架{{statAll.single_self_manual_off_count}}</div>
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="right_i right_middle">
|
|
72
|
+
<div class="one_line">
|
|
73
|
+
{{statAll.single_self_channel_total_count}} (自营-接口)
|
|
74
|
+
</div>
|
|
75
|
+
<div class="two_line">
|
|
76
|
+
<div>上架{{statAll.single_self_channel_on_count}}</div>
|
|
77
|
+
<div>下架{{statAll.single_self_channel_off_count}}</div>
|
|
78
|
+
</div>
|
|
79
|
+
</div>
|
|
80
|
+
<div class="right_i right_bottom">
|
|
81
|
+
<div class="one_line">
|
|
82
|
+
{{statAll.single_other_total_count}}(非自营)
|
|
83
|
+
</div>
|
|
84
|
+
<div class="two_line">
|
|
85
|
+
<div>上架{{statAll.single_other_on_count}}</div>
|
|
86
|
+
<div>下架{{statAll.single_other_off_count}}</div>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
|
|
94
|
+
</el-card>
|
|
95
|
+
</template>
|
|
96
|
+
<script>
|
|
97
|
+
|
|
98
|
+
import {mapActions} from 'vuex';
|
|
99
|
+
|
|
100
|
+
export default {
|
|
101
|
+
data(){
|
|
102
|
+
return {
|
|
103
|
+
statAll: {}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
props: {
|
|
107
|
+
site_id: {
|
|
108
|
+
type: Number|String,
|
|
109
|
+
default: null
|
|
110
|
+
},
|
|
111
|
+
business_code: {
|
|
112
|
+
type: Number|String,
|
|
113
|
+
default: null
|
|
114
|
+
},
|
|
115
|
+
sub_business_code:{
|
|
116
|
+
type: Number|String,
|
|
117
|
+
default: null
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
watch: {
|
|
121
|
+
site_id(n,o) {
|
|
122
|
+
console.log(n,o,'askjdkasjdaksl');
|
|
123
|
+
this.p_totalCounts()
|
|
124
|
+
},
|
|
125
|
+
business_code(n,o) {
|
|
126
|
+
console.log(n,o,'askjdkasjdaksl');
|
|
127
|
+
this.p_totalCounts()
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
created(){
|
|
131
|
+
console.log('sub_business_codeStat',this.sub_business_code)
|
|
132
|
+
this.p_totalCounts();
|
|
133
|
+
},
|
|
134
|
+
methods: {
|
|
135
|
+
...mapActions("productStat", ["getGiftTotalCounts","totalProductCounts"]),
|
|
136
|
+
toRefresh(){
|
|
137
|
+
this.p_totalCounts();
|
|
138
|
+
},
|
|
139
|
+
p_totalCounts(){
|
|
140
|
+
let loading = this.$loading({});
|
|
141
|
+
this.getGiftTotalCounts({
|
|
142
|
+
filter_site_id: this.site_id?this.site_id:null,
|
|
143
|
+
filter_business_code: this.business_code?this.business_code:null,
|
|
144
|
+
}).then(res => {
|
|
145
|
+
this.statAll = res.data
|
|
146
|
+
loading.close();
|
|
147
|
+
}).catch(err => {
|
|
148
|
+
loading.close();
|
|
149
|
+
})
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
</script>
|
|
154
|
+
|
|
155
|
+
<style lang="less" scoped>
|
|
156
|
+
|
|
157
|
+
.stat_all_card{
|
|
158
|
+
/deep/ .el-card__body{
|
|
159
|
+
overflow: auto;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
.card_header{
|
|
163
|
+
display: flex;
|
|
164
|
+
align-items: center;
|
|
165
|
+
justify-content: space-between;
|
|
166
|
+
& > i{
|
|
167
|
+
font-size: 24px;
|
|
168
|
+
cursor: pointer;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
.b_tit{
|
|
172
|
+
font-size: 18px;
|
|
173
|
+
font-weight: 400;
|
|
174
|
+
color:#2E3033;
|
|
175
|
+
}
|
|
176
|
+
.s_tit{
|
|
177
|
+
font-size: 12px;
|
|
178
|
+
color: #A1A7B3;
|
|
179
|
+
margin-left: 10px;
|
|
180
|
+
vertical-align: bottom;
|
|
181
|
+
}
|
|
182
|
+
.stat_list{
|
|
183
|
+
display: flex;
|
|
184
|
+
justify-content: space-around;
|
|
185
|
+
min-width: 800px;
|
|
186
|
+
.stat_item{
|
|
187
|
+
margin-right: 30px;
|
|
188
|
+
._title{
|
|
189
|
+
margin: 0;
|
|
190
|
+
font-size: 14px;
|
|
191
|
+
font-weight: 400;
|
|
192
|
+
color: #2E3033;
|
|
193
|
+
display: flex;
|
|
194
|
+
margin-bottom: 10px;
|
|
195
|
+
|
|
196
|
+
i{
|
|
197
|
+
cursor: pointer;
|
|
198
|
+
margin-left: 4px;
|
|
199
|
+
color: #A1A7B3;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
._cont{
|
|
203
|
+
display: flex;
|
|
204
|
+
align-items: center;
|
|
205
|
+
color: #1A66FF;
|
|
206
|
+
font-weight: 500;
|
|
207
|
+
}
|
|
208
|
+
._left{
|
|
209
|
+
font-size: 32px;
|
|
210
|
+
font-weight: 500;
|
|
211
|
+
}
|
|
212
|
+
._right{
|
|
213
|
+
display: flex;
|
|
214
|
+
flex-direction: column;
|
|
215
|
+
&.one_level{
|
|
216
|
+
.right_i{
|
|
217
|
+
background: none !important;
|
|
218
|
+
padding-bottom: 0 !important;
|
|
219
|
+
padding-top: 0 !important;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.right_i{
|
|
224
|
+
display: flex;
|
|
225
|
+
align-items: center;
|
|
226
|
+
justify-content: space-between;
|
|
227
|
+
height: 50px;
|
|
228
|
+
font-size: 18px;
|
|
229
|
+
padding-left: 30px;
|
|
230
|
+
width: 280px;
|
|
231
|
+
|
|
232
|
+
&.right_top{
|
|
233
|
+
background: url("https://img5.jufubao.cn/uploads/20240125/7e6795baf598ae77ed7e03d06a8fe745.png?ver=1706170701199") no-repeat;
|
|
234
|
+
background-position: left 50%;
|
|
235
|
+
background-size: 28px auto;
|
|
236
|
+
padding-bottom: 10px;
|
|
237
|
+
|
|
238
|
+
}
|
|
239
|
+
&.right_middle {
|
|
240
|
+
background: url("https://img3.jufubao.cn/uploads/20240125/330e2d776b3bb9372cfaf4143b0e93d4.png?ver=1706170701199") no-repeat;
|
|
241
|
+
background-position: left 50%;
|
|
242
|
+
background-size: 30px auto;
|
|
243
|
+
}
|
|
244
|
+
&.right_bottom{
|
|
245
|
+
background: url("https://img.jufubao.cn/uploads/20240125/f68ca65ddff3a29522a7fecf180ed0e7.png?ver=1706170701199") no-repeat;
|
|
246
|
+
background-position: left 50%;
|
|
247
|
+
background-size: 28px auto;
|
|
248
|
+
padding-top: 10px;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
.two_line{
|
|
253
|
+
width: 80px;
|
|
254
|
+
& > div{
|
|
255
|
+
margin: 2px 0;
|
|
256
|
+
font-size: 12px;
|
|
257
|
+
text-align: left;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
</style>
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<div class="stat_item">
|
|
13
13
|
<p class="_title">
|
|
14
14
|
商品总数
|
|
15
|
-
<el-tooltip effect="light" content="
|
|
15
|
+
<el-tooltip effect="light" content="取对应业务线已选商品统计 同一商品多业务线选用按多次计" placement="right">
|
|
16
16
|
<i class="xdicon_question-circle xd_admin_iconfont"></i>
|
|
17
17
|
</el-tooltip>
|
|
18
18
|
</p>
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
<div class="stat_item">
|
|
53
53
|
<p class="_title">
|
|
54
54
|
SKU总数
|
|
55
|
-
<el-tooltip effect="light" content="
|
|
55
|
+
<el-tooltip effect="light" content="取对应业务线已选商品统计 同一商品多业务线选用按多次计 同一商品多规格按多次计" placement="right">
|
|
56
56
|
<i class="xdicon_question-circle xd_admin_iconfont"></i>
|
|
57
57
|
</el-tooltip>
|
|
58
58
|
</p>
|
|
@@ -127,22 +127,31 @@ export default {
|
|
|
127
127
|
minWidth: 200,
|
|
128
128
|
label: "品牌名称",
|
|
129
129
|
},
|
|
130
|
+
{ "type": "normal", "prop": "total_view", "align": "center", "width": 150, "label": "总访问量",notice: {
|
|
131
|
+
data: ["按查看时间统计用户查看商品详情的总次数 用户多次查看或刷新按多次计"],
|
|
132
|
+
}, },
|
|
130
133
|
{
|
|
131
134
|
type: "normal",
|
|
132
135
|
prop: "total_product_num",
|
|
133
136
|
align: "center",
|
|
134
|
-
width:
|
|
137
|
+
width: 150,
|
|
135
138
|
label: "销量",
|
|
136
139
|
sort: "custom",
|
|
140
|
+
notice: {
|
|
141
|
+
data: ["按支付时间统计已支付客户订单中商品的总件数 一个订单多件商品按多个计"],
|
|
142
|
+
},
|
|
137
143
|
},
|
|
138
144
|
{
|
|
139
145
|
type: "price",
|
|
140
146
|
prop: "total_sale_amount",
|
|
141
147
|
align: "center",
|
|
142
|
-
width:
|
|
148
|
+
width: 150,
|
|
143
149
|
label: "销售金额",
|
|
144
150
|
unit: "元",
|
|
145
151
|
sort: "custom",
|
|
152
|
+
notice: {
|
|
153
|
+
data: ["按支付时间统计已支付客户订单总金额 包含商品售价和运费"],
|
|
154
|
+
},
|
|
146
155
|
},
|
|
147
156
|
{
|
|
148
157
|
type: "price",
|
|
@@ -152,17 +161,20 @@ export default {
|
|
|
152
161
|
label: "进货价金额",
|
|
153
162
|
unit: "元",
|
|
154
163
|
sort: "custom",
|
|
155
|
-
notice:{
|
|
156
|
-
data: [
|
|
157
|
-
}
|
|
164
|
+
notice: {
|
|
165
|
+
data: ["按支付时间统计已支付客户订单进货价金额 包含商品进货价和运费 自有商品按货源进货价,非自有商品按平台进货价计"],
|
|
166
|
+
},
|
|
158
167
|
},
|
|
159
168
|
{
|
|
160
169
|
type: "normal",
|
|
161
170
|
prop: "total_real_product_num",
|
|
162
171
|
align: "center",
|
|
163
|
-
|
|
172
|
+
width: 150,
|
|
164
173
|
label: "实际销量",
|
|
165
174
|
sort: "custom",
|
|
175
|
+
notice: {
|
|
176
|
+
data: ["即总销量-售后次数"],
|
|
177
|
+
},
|
|
166
178
|
},
|
|
167
179
|
{
|
|
168
180
|
type: "price",
|
|
@@ -172,23 +184,32 @@ export default {
|
|
|
172
184
|
label: "实际销售金额",
|
|
173
185
|
unit: "元",
|
|
174
186
|
sort: "custom",
|
|
187
|
+
notice: {
|
|
188
|
+
data: ["即销售金额-售后金额"],
|
|
189
|
+
},
|
|
175
190
|
},
|
|
176
191
|
{
|
|
177
192
|
type: "normal",
|
|
178
193
|
prop: "total_aftersale_product_num",
|
|
179
194
|
align: "center",
|
|
180
|
-
minWidth:
|
|
195
|
+
minWidth: 150,
|
|
181
196
|
label: "售后次数",
|
|
182
197
|
sort: "custom",
|
|
198
|
+
notice: {
|
|
199
|
+
data: ["按审核时间统计客服对应业务线的售后订单中商品的总件数 同一订单售后多件商品按多次计 同一商品多次售后按多次计 仅统计线上订单且处理方式为退款、换购的售后订单"],
|
|
200
|
+
},
|
|
183
201
|
},
|
|
184
202
|
{
|
|
185
203
|
type: "price",
|
|
186
204
|
prop: "total_aftersale_amount",
|
|
187
205
|
align: "center",
|
|
188
|
-
width:
|
|
206
|
+
width: 150,
|
|
189
207
|
label: "售后金额",
|
|
190
208
|
unit: "元",
|
|
191
209
|
sort: "custom",
|
|
210
|
+
notice: {
|
|
211
|
+
data: ["按审核时间统计客服对应业务线的售后订单中商品退款金额 同一订单售后多件商品按多次计 同一商品多次售后按多次计 仅统计线上订单且处理方式为退款、换购的售后订单"],
|
|
212
|
+
},
|
|
192
213
|
},
|
|
193
214
|
],
|
|
194
215
|
channelList: [],
|
|
@@ -290,6 +311,8 @@ export default {
|
|
|
290
311
|
export: true,
|
|
291
312
|
file_ext: "xlsx",
|
|
292
313
|
file_name: value,
|
|
314
|
+
supplier_id:this.supplier_ids,
|
|
315
|
+
channel_code: this.channel_code,
|
|
293
316
|
channel_code_text: this.channel_code_text,
|
|
294
317
|
supplier_text: this.supplier_text,
|
|
295
318
|
};
|
|
@@ -319,6 +342,10 @@ export default {
|
|
|
319
342
|
let params = {
|
|
320
343
|
...this.getParams(),
|
|
321
344
|
};
|
|
345
|
+
if(!this.searchParams.time_range_start||!this.searchParams.time_range_end){
|
|
346
|
+
this.$message.error('请选择交易时间')
|
|
347
|
+
return
|
|
348
|
+
}
|
|
322
349
|
console.log(params);
|
|
323
350
|
let loading = this.$loading({});
|
|
324
351
|
this.brandCycSales(params)
|
|
@@ -122,22 +122,31 @@ export default {
|
|
|
122
122
|
headers: [
|
|
123
123
|
{ "type": "normal", "prop": "category_id", "align": "left", "width": 80, "label": "分类ID" },
|
|
124
124
|
{ "type": "normal", "prop": "category_name", "align": "center", "minWidth": 200, "label": "分类名称" },
|
|
125
|
-
{
|
|
125
|
+
{ "type": "normal", "prop": "total_view", "align": "center", "width": 150, "label": "总访问量",notice: {
|
|
126
|
+
data: ["按查看时间统计用户查看商品详情的总次数 用户多次查看或刷新按多次计"],
|
|
127
|
+
}, },
|
|
128
|
+
{
|
|
126
129
|
type: "normal",
|
|
127
130
|
prop: "total_product_num",
|
|
128
131
|
align: "center",
|
|
129
|
-
width:
|
|
132
|
+
width: 150,
|
|
130
133
|
label: "销量",
|
|
131
134
|
sort: "custom",
|
|
135
|
+
notice: {
|
|
136
|
+
data: ["按支付时间统计已支付客户订单中商品的总件数 一个订单多件商品按多个计"],
|
|
137
|
+
},
|
|
132
138
|
},
|
|
133
139
|
{
|
|
134
140
|
type: "price",
|
|
135
141
|
prop: "total_sale_amount",
|
|
136
142
|
align: "center",
|
|
137
|
-
width:
|
|
143
|
+
width: 150,
|
|
138
144
|
label: "销售金额",
|
|
139
145
|
unit: "元",
|
|
140
146
|
sort: "custom",
|
|
147
|
+
notice: {
|
|
148
|
+
data: ["按支付时间统计已支付客户订单总金额 包含商品售价和运费"],
|
|
149
|
+
},
|
|
141
150
|
},
|
|
142
151
|
{
|
|
143
152
|
type: "price",
|
|
@@ -147,17 +156,20 @@ export default {
|
|
|
147
156
|
label: "进货价金额",
|
|
148
157
|
unit: "元",
|
|
149
158
|
sort: "custom",
|
|
150
|
-
notice:{
|
|
151
|
-
data: [
|
|
152
|
-
}
|
|
159
|
+
notice: {
|
|
160
|
+
data: ["按支付时间统计已支付客户订单进货价金额 包含商品进货价和运费 自有商品按货源进货价,非自有商品按平台进货价计"],
|
|
161
|
+
},
|
|
153
162
|
},
|
|
154
163
|
{
|
|
155
164
|
type: "normal",
|
|
156
165
|
prop: "total_real_product_num",
|
|
157
166
|
align: "center",
|
|
158
|
-
|
|
167
|
+
width: 150,
|
|
159
168
|
label: "实际销量",
|
|
160
169
|
sort: "custom",
|
|
170
|
+
notice: {
|
|
171
|
+
data: ["即总销量-售后次数"],
|
|
172
|
+
},
|
|
161
173
|
},
|
|
162
174
|
{
|
|
163
175
|
type: "price",
|
|
@@ -167,23 +179,32 @@ export default {
|
|
|
167
179
|
label: "实际销售金额",
|
|
168
180
|
unit: "元",
|
|
169
181
|
sort: "custom",
|
|
182
|
+
notice: {
|
|
183
|
+
data: ["即销售金额-售后金额"],
|
|
184
|
+
},
|
|
170
185
|
},
|
|
171
186
|
{
|
|
172
187
|
type: "normal",
|
|
173
188
|
prop: "total_aftersale_product_num",
|
|
174
189
|
align: "center",
|
|
175
|
-
minWidth:
|
|
190
|
+
minWidth: 150,
|
|
176
191
|
label: "售后次数",
|
|
177
192
|
sort: "custom",
|
|
193
|
+
notice: {
|
|
194
|
+
data: ["按审核时间统计客服对应业务线的售后订单中商品的总件数 同一订单售后多件商品按多次计 同一商品多次售后按多次计 仅统计线上订单且处理方式为退款、换购的售后订单"],
|
|
195
|
+
},
|
|
178
196
|
},
|
|
179
197
|
{
|
|
180
198
|
type: "price",
|
|
181
199
|
prop: "total_aftersale_amount",
|
|
182
200
|
align: "center",
|
|
183
|
-
width:
|
|
201
|
+
width: 150,
|
|
184
202
|
label: "售后金额",
|
|
185
203
|
unit: "元",
|
|
186
204
|
sort: "custom",
|
|
205
|
+
notice: {
|
|
206
|
+
data: ["按审核时间统计客服对应业务线的售后订单中商品退款金额 同一订单售后多件商品按多次计 同一商品多次售后按多次计 仅统计线上订单且处理方式为退款、换购的售后订单"],
|
|
207
|
+
},
|
|
187
208
|
},
|
|
188
209
|
],
|
|
189
210
|
categoryProps: {
|
|
@@ -312,6 +333,8 @@ export default {
|
|
|
312
333
|
export: true,
|
|
313
334
|
file_ext: "xlsx",
|
|
314
335
|
file_name: value,
|
|
336
|
+
supplier_id:this.supplier_ids,
|
|
337
|
+
channel_code: this.channel_code,
|
|
315
338
|
channel_code_text: this.channel_code_text,
|
|
316
339
|
supplier_text: this.supplier_text,
|
|
317
340
|
};
|
|
@@ -335,6 +358,10 @@ export default {
|
|
|
335
358
|
let params = {
|
|
336
359
|
...this.getParams(),
|
|
337
360
|
};
|
|
361
|
+
if(!this.searchParams.time_range_start||!this.searchParams.time_range_end){
|
|
362
|
+
this.$message.error('请选择交易时间')
|
|
363
|
+
return
|
|
364
|
+
}
|
|
338
365
|
console.log(params)
|
|
339
366
|
let loading = this.$loading({});
|
|
340
367
|
this.categoryCycSales(params).then(res => {
|
|
@@ -147,22 +147,31 @@ export default {
|
|
|
147
147
|
minWidth: 200,
|
|
148
148
|
label: "所属供应商",
|
|
149
149
|
},
|
|
150
|
+
{ "type": "normal", "prop": "total_view", "align": "center", "width": 150, "label": "总访问量",notice: {
|
|
151
|
+
data: ["按查看时间统计用户查看商品详情的总次数 用户多次查看或刷新按多次计"],
|
|
152
|
+
}, },
|
|
150
153
|
{
|
|
151
154
|
type: "normal",
|
|
152
155
|
prop: "total_product_num",
|
|
153
156
|
align: "center",
|
|
154
|
-
width:
|
|
157
|
+
width: 150,
|
|
155
158
|
label: "销量",
|
|
156
159
|
sort: "custom",
|
|
160
|
+
notice: {
|
|
161
|
+
data: ["按支付时间统计已支付客户订单中商品的总件数 一个订单多件商品按多个计"],
|
|
162
|
+
},
|
|
157
163
|
},
|
|
158
164
|
{
|
|
159
165
|
type: "price",
|
|
160
166
|
prop: "total_sale_amount",
|
|
161
167
|
align: "center",
|
|
162
|
-
width:
|
|
168
|
+
width: 150,
|
|
163
169
|
label: "销售金额",
|
|
164
170
|
unit: "元",
|
|
165
171
|
sort: "custom",
|
|
172
|
+
notice: {
|
|
173
|
+
data: ["按支付时间统计已支付客户订单总金额 包含商品售价和运费"],
|
|
174
|
+
},
|
|
166
175
|
},
|
|
167
176
|
{
|
|
168
177
|
type: "price",
|
|
@@ -173,16 +182,19 @@ export default {
|
|
|
173
182
|
unit: "元",
|
|
174
183
|
sort: "custom",
|
|
175
184
|
notice: {
|
|
176
|
-
data: ["
|
|
185
|
+
data: ["按支付时间统计已支付客户订单进货价金额 包含商品进货价和运费 自有商品按货源进货价,非自有商品按平台进货价计"],
|
|
177
186
|
},
|
|
178
187
|
},
|
|
179
188
|
{
|
|
180
189
|
type: "normal",
|
|
181
190
|
prop: "total_real_product_num",
|
|
182
191
|
align: "center",
|
|
183
|
-
width:
|
|
192
|
+
width: 150,
|
|
184
193
|
label: "实际销量",
|
|
185
194
|
sort: "custom",
|
|
195
|
+
notice: {
|
|
196
|
+
data: ["即总销量-售后次数"],
|
|
197
|
+
},
|
|
186
198
|
},
|
|
187
199
|
{
|
|
188
200
|
type: "price",
|
|
@@ -192,23 +204,32 @@ export default {
|
|
|
192
204
|
label: "实际销售金额",
|
|
193
205
|
unit: "元",
|
|
194
206
|
sort: "custom",
|
|
207
|
+
notice: {
|
|
208
|
+
data: ["即销售金额-售后金额"],
|
|
209
|
+
},
|
|
195
210
|
},
|
|
196
211
|
{
|
|
197
212
|
type: "normal",
|
|
198
213
|
prop: "total_aftersale_product_num",
|
|
199
214
|
align: "center",
|
|
200
|
-
minWidth:
|
|
215
|
+
minWidth: 150,
|
|
201
216
|
label: "售后次数",
|
|
202
217
|
sort: "custom",
|
|
218
|
+
notice: {
|
|
219
|
+
data: ["按审核时间统计客服对应业务线的售后订单中商品的总件数 同一订单售后多件商品按多次计 同一商品多次售后按多次计 仅统计线上订单且处理方式为退款、换购的售后订单"],
|
|
220
|
+
},
|
|
203
221
|
},
|
|
204
222
|
{
|
|
205
223
|
type: "price",
|
|
206
224
|
prop: "total_aftersale_amount",
|
|
207
225
|
align: "center",
|
|
208
|
-
width:
|
|
226
|
+
width: 150,
|
|
209
227
|
label: "售后金额",
|
|
210
228
|
unit: "元",
|
|
211
229
|
sort: "custom",
|
|
230
|
+
notice: {
|
|
231
|
+
data: ["按审核时间统计客服对应业务线的售后订单中商品退款金额 同一订单售后多件商品按多次计 同一商品多次售后按多次计 仅统计线上订单且处理方式为退款、换购的售后订单"],
|
|
232
|
+
},
|
|
212
233
|
},
|
|
213
234
|
],
|
|
214
235
|
channelList: [],
|
|
@@ -313,6 +334,8 @@ export default {
|
|
|
313
334
|
export: true,
|
|
314
335
|
file_ext: "xlsx",
|
|
315
336
|
file_name: value,
|
|
337
|
+
supplier_id:this.supplier_ids,
|
|
338
|
+
channel_code: this.channel_code,
|
|
316
339
|
channel_code_text: this.channel_code_text,
|
|
317
340
|
supplier_text: this.supplier_text,
|
|
318
341
|
};
|
|
@@ -342,6 +365,10 @@ export default {
|
|
|
342
365
|
let params = {
|
|
343
366
|
...this.getParams(),
|
|
344
367
|
};
|
|
368
|
+
if(!this.searchParams.time_range_start||!this.searchParams.time_range_end){
|
|
369
|
+
this.$message.error('请选择交易时间')
|
|
370
|
+
return
|
|
371
|
+
}
|
|
345
372
|
console.log(params);
|
|
346
373
|
let loading = this.$loading({});
|
|
347
374
|
|