jufubao-admin-library 1.1.46 → 1.1.48

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.
@@ -67,41 +67,14 @@
67
67
  XdDialog
68
68
  },
69
69
  data(){
70
- let purchase_price_name = this.$setting['system'] === 'supplier' ? '供货商' : '进货价';
71
70
  return {
72
- uiSkusHeaders: [
73
- {"type": "normal", "prop": "stands", "align": "left", "min-width": 200, "label": "规格"},
74
- {"type": "price", "prop": "purchase_price", "align": "center", "min-width": 80, "label": purchase_price_name},
75
- {"type": "price", "prop": "jfb_price", "align": "center", "min-width": 80, "label": "建议零售价"},
76
- {"type": "price", "prop": "jfb_price_ratio", "align": "left", "min-width": 120, "label": "建议售价折扣"},
77
- {"type": "price", "prop": "market_price", "align": "center", "min-width": 80, "label": "市场价"},
78
- {"type": "price", "prop": "market_price_ratio", "align": "left", "min-width": 120, "label": "市场价折扣"},
79
- {"type": "normal", "prop": "init_num", "align": "left", "min-width": 80, "label": "库存"},
80
- {"type": "normal", "prop": "weight", "align": "left", "min-width": 80, "label": "重量"},
81
- {"type": "normal", "prop": "volume", "align": "left", "min-width": 80, "label": "体积"},
82
- {"type": "normal", "prop": "product_code", "align": "left", "min-width": 80, "label": "商品编码"},
83
- {"type": "normal", "prop": "product_bar_code", "align": "left", "min-width": 80, "label": "商品条码"},
84
- {
85
- type: "operate",
86
- align: "center",
87
- width: 100,
88
- label: "价格日历",
89
- values: [
90
- {
91
- ui: "text-button",
92
- target: "_blank",
93
- name: "查看",
94
- type: "text",
95
- event: "look",
96
- },]
97
- }
98
- ],
99
71
  //价格日历
100
72
  dialogSetPrices:false,
101
73
  setPricesTables:[],
102
74
  setPricesTablesKey:'setPricesTablesKey',
103
75
  datePricesRow:null,
104
76
  sku_name:'',
77
+ isShowPurchasePrice: false,
105
78
  }
106
79
  },
107
80
  computed:{
@@ -157,10 +130,42 @@
157
130
  label: "售价",
158
131
  },
159
132
  ].filter(i=>i)
133
+ },
134
+ uiSkusHeaders(){
135
+ let purchase_price_name = this.$setting['system'] === 'supplier' ? '供货商' : '进货价';
136
+ return [
137
+ {"type": "normal", "prop": "stands", "align": "left", "min-width": 200, "label": "规格"},
138
+ this.isShowPurchasePrice && {"type": "price", "prop": "purchase_price", "align": "center", "min-width": 80, "label": purchase_price_name},
139
+ {"type": "price", "prop": "jfb_price", "align": "center", "min-width": 80, "label": "建议零售价"},
140
+ {"type": "price", "prop": "jfb_price_ratio", "align": "left", "min-width": 120, "label": "建议售价折扣"},
141
+ {"type": "price", "prop": "market_price", "align": "center", "min-width": 80, "label": "市场价"},
142
+ {"type": "price", "prop": "market_price_ratio", "align": "left", "min-width": 120, "label": "市场价折扣"},
143
+ {"type": "normal", "prop": "init_num", "align": "left", "min-width": 80, "label": "库存"},
144
+ {"type": "normal", "prop": "weight", "align": "left", "min-width": 80, "label": "重量"},
145
+ {"type": "normal", "prop": "volume", "align": "left", "min-width": 80, "label": "体积"},
146
+ {"type": "normal", "prop": "product_code", "align": "left", "min-width": 80, "label": "商品编码"},
147
+ {"type": "normal", "prop": "product_bar_code", "align": "left", "min-width": 80, "label": "商品条码"},
148
+ {
149
+ type: "operate",
150
+ align: "center",
151
+ width: 100,
152
+ label: "价格日历",
153
+ values: [
154
+ {
155
+ ui: "text-button",
156
+ target: "_blank",
157
+ name: "查看",
158
+ type: "text",
159
+ event: "look",
160
+ },]
161
+ }
162
+ ]
160
163
  }
161
164
  },
162
165
  created(){
163
- console.log(this.uiSkusHeaders,'this.uiSkusHeaders')
166
+ if(this.productSkuList && this.productSkuList.length && this.productSkuList.length > 0) {
167
+ this.isShowPurchasePrice = this.productSkuList[0].specs.purchase_price > 0;
168
+ }
164
169
  },
165
170
  methods: {
166
171
  getTableDataFromResponseData(data = []) {
@@ -12,7 +12,7 @@
12
12
  <div class="stat_item">
13
13
  <p class="_title">
14
14
  商品总数
15
- <el-tooltip effect="light" content="总共商品数量,多规格商品计1个" placement="right">
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="总共商品规格数量,多规格商品计多个" placement="right">
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: 100,
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: 100,
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
- minWidth: 120,
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: 120,
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: 100,
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: 100,
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: 100,
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
- minWidth: 120,
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: 120,
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: 100,
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: 100,
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: 100,
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: 120,
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: 120,
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: 100,
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
 
@@ -38,7 +38,7 @@
38
38
  ></stat-all>
39
39
  <el-card v-if="has_tab&&site_id&&business_code&&status" style="margin-top: 20px">
40
40
  <el-tabs v-model="activeName">
41
- <el-tab-pane v-if="has_tab_supplier" label="商品" name="supplier">
41
+ <el-tab-pane v-if="has_tab_supplier" label="商品(线上客户订单)" name="supplier">
42
42
  <table-product
43
43
  :site_id="site_id"
44
44
  :business_code="business_code"
@@ -46,7 +46,7 @@
46
46
  v-if="has_tab_supplier && activeName == 'supplier'"
47
47
  ></table-product>
48
48
  </el-tab-pane>
49
- <el-tab-pane v-if="has_tab_product" label="商品品牌" name="product">
49
+ <el-tab-pane v-if="has_tab_product" label="商品品牌(线上客户订单)" name="product">
50
50
  <table-brand
51
51
  :site_id="site_id"
52
52
  :business_code="business_code"
@@ -54,7 +54,7 @@
54
54
  v-if="has_tab_product && activeName == 'product'"
55
55
  ></table-brand>
56
56
  </el-tab-pane>
57
- <el-tab-pane v-if="has_tab_category" label="商品分类" name="category">
57
+ <el-tab-pane v-if="has_tab_category" label="商品分类(线上客户订单)" name="category">
58
58
  <table-category
59
59
  :site_id="site_id"
60
60
  :business_code="business_code"
@@ -11,6 +11,9 @@
11
11
  >
12
12
  <i class="xdicon_question-circle xd_admin_iconfont"></i>
13
13
  </el-tooltip>
14
+ <span class="s_tit">
15
+ 截止到{{ last_updated_date_time }}
16
+ </span>
14
17
  </div>
15
18
  <div>
16
19
  <div>
@@ -77,14 +80,14 @@
77
80
  </div>
78
81
  </div>
79
82
  <div>
80
- 截止到{{ last_updated_date_time }},{{
83
+ {{
81
84
  channel_code
82
85
  ? channel_code !== "self"
83
86
  ? channel_code_text
84
87
  : supplier_text
85
88
  ? supplier_text
86
- : "自有"
87
- : "自有"
89
+ : "全部"
90
+ : "全部"
88
91
  }}-可售商品-按折扣统计数量为
89
92
  </div>
90
93
  </div>
@@ -296,6 +299,7 @@ export default {
296
299
 
297
300
  & > div:first-child {
298
301
  display: flex;
302
+ align-items: center;
299
303
  font-size: 20px;
300
304
  i {
301
305
  cursor: pointer;
@@ -312,6 +316,12 @@ export default {
312
316
  }
313
317
  }
314
318
  }
319
+ .s_tit{
320
+ font-size: 12px;
321
+ color: #A1A7B3;
322
+ margin-left: 10px;
323
+ vertical-align: bottom;
324
+ }
315
325
  .empty_data {
316
326
  display: flex;
317
327
  justify-content: center;
@@ -41,8 +41,8 @@
41
41
  </div>
42
42
  <div class="stat_item">
43
43
  <p class="_title">
44
- 商品总数
45
- <el-tooltip effect="light" content="总共商品数量,多规格商品计1" placement="right">
44
+ 货源商品总数
45
+ <el-tooltip effect="light" content="新增供应商按创建时间统计;关闭供应商按最近关闭时间统计,周期内多次关闭按1次计;" placement="right">
46
46
  <i class="xdicon_question-circle xd_admin_iconfont"></i>
47
47
  </el-tooltip>
48
48
  </p>
@@ -72,8 +72,8 @@
72
72
  </div>
73
73
  <div class="stat_item">
74
74
  <p class="_title">
75
- SKU总数
76
- <el-tooltip effect="light" content="总共商品规格数量,多规格商品计多个" placement="right">
75
+ 货源SKU总数
76
+ <el-tooltip effect="light" content="全部自有供应商的商品SKU数量,多规格商品计多个" placement="right">
77
77
  <i class="xdicon_question-circle xd_admin_iconfont"></i>
78
78
  </el-tooltip>
79
79
  </p>
@@ -3,7 +3,7 @@
3
3
  <div slot="header" class="card_header">
4
4
  <div class="card_tit">
5
5
  <span class="b_tit">商品数量</span>
6
- <el-tooltip effect="light" content="按商品最新创建时间和最终下架时间统计 仅统计人工上下架商品" placement="right">
6
+ <el-tooltip effect="light" content="仅统计人工添加的商品;上架商品按首次审核通过时间统计;下架商品按最近下架时间统计,周期内多次下架按1次计;" placement="right">
7
7
  <i class="xdicon_question-circle xd_admin_iconfont"></i>
8
8
  </el-tooltip>
9
9
  </div>
@@ -3,7 +3,7 @@
3
3
  <div slot="header" class="card_header">
4
4
  <div class="card_tit">
5
5
  <span class="b_tit">供应商数量</span>
6
- <el-tooltip effect="light" content="按供应商创建时间和最终关闭时间统计" placement="right">
6
+ <el-tooltip effect="light" content="新增供应商按创建时间统计;关闭供应商按最近关闭时间统计,周期内多次关闭按1次计;" placement="right">
7
7
  <i class="xdicon_question-circle xd_admin_iconfont"></i>
8
8
  </el-tooltip>
9
9
  </div>