jufubao-admin-library 1.1.71 → 1.1.72
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.
|
@@ -8,20 +8,20 @@ const productStatRouter = {
|
|
|
8
8
|
path: '/stat',
|
|
9
9
|
sort: 99,
|
|
10
10
|
component: Layout,
|
|
11
|
-
name: '
|
|
11
|
+
name: '在售商品销售统计',
|
|
12
12
|
redirect: '/stat/product',
|
|
13
13
|
meta: {
|
|
14
|
-
title: '
|
|
14
|
+
title: '在售商品销售统计',
|
|
15
15
|
icon: 'xdicon_rizhi',
|
|
16
16
|
iconSize: 22,
|
|
17
17
|
},
|
|
18
18
|
children: [
|
|
19
19
|
{
|
|
20
20
|
path: 'product',
|
|
21
|
-
name: '
|
|
21
|
+
name: '在售商品销售统计',
|
|
22
22
|
component: () => import ('@/viewsStat/product/index'),
|
|
23
23
|
meta: {
|
|
24
|
-
title: '
|
|
24
|
+
title: '在售商品销售统计',
|
|
25
25
|
icon: 'xdicon_rizhi',
|
|
26
26
|
iconSize: 22,
|
|
27
27
|
role: ['STAT-PARTNER.PRODUCT_STAT_MENUS',role.totalProductCounts,role.productSalesCyc,role.categoryCycSales,role.brandCycSales]
|
|
@@ -147,6 +147,13 @@ export default {
|
|
|
147
147
|
width: 80,
|
|
148
148
|
label: "商品类型",
|
|
149
149
|
},
|
|
150
|
+
{
|
|
151
|
+
type: "normal",
|
|
152
|
+
prop: "supplier_belong_text",
|
|
153
|
+
align: "center",
|
|
154
|
+
width: 100,
|
|
155
|
+
label: "供应商归属",
|
|
156
|
+
},
|
|
150
157
|
{
|
|
151
158
|
type: "normal",
|
|
152
159
|
prop: "supplier_name",
|
|
@@ -528,6 +535,17 @@ export default {
|
|
|
528
535
|
ele: "slot", //package 名称
|
|
529
536
|
slot: "time",
|
|
530
537
|
},
|
|
538
|
+
{
|
|
539
|
+
label: "供应商归属",
|
|
540
|
+
ele: "xd-select-list",
|
|
541
|
+
valueKey: "supplier_belong",
|
|
542
|
+
value: "",
|
|
543
|
+
placeholder: "请选择供应商归属",
|
|
544
|
+
list: [
|
|
545
|
+
{ label: "自有", value: "self" },
|
|
546
|
+
{ label: "他人", value: "others" },
|
|
547
|
+
],
|
|
548
|
+
},
|
|
531
549
|
].filter((i) => i);
|
|
532
550
|
this.renderFormKey = Date.now();
|
|
533
551
|
});
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<i class="xdicon_question-circle xd_admin_iconfont"></i>
|
|
13
13
|
</el-tooltip>
|
|
14
14
|
<span class="s_tit">
|
|
15
|
-
截止到{{ last_updated_date_time }}
|
|
15
|
+
<!-- 截止到{{ last_updated_date_time }} -->
|
|
16
16
|
</span>
|
|
17
17
|
</div>
|
|
18
18
|
<div>
|
|
@@ -99,55 +99,26 @@
|
|
|
99
99
|
}}-可售商品-按折扣统计数量为
|
|
100
100
|
</div>
|
|
101
101
|
</div>
|
|
102
|
-
<
|
|
103
|
-
v-if="
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
ref="table"
|
|
108
|
-
border
|
|
109
|
-
header-align="center"
|
|
110
|
-
:data="dataList"
|
|
111
|
-
max-height="500"
|
|
102
|
+
<xd-stat-table-group
|
|
103
|
+
v-if="upNewParams"
|
|
104
|
+
:params="upNewParams"
|
|
105
|
+
:key="upNewkey"
|
|
106
|
+
:getList="getProductDiscount"
|
|
112
107
|
>
|
|
113
|
-
|
|
114
|
-
align="center"
|
|
115
|
-
v-for="(item, index) in rowTitle"
|
|
116
|
-
:label="item.label"
|
|
117
|
-
:key="index"
|
|
118
|
-
min-width="100"
|
|
119
|
-
:show-overflow-tooltip="true"
|
|
120
|
-
>
|
|
121
|
-
<template slot-scope="scope">
|
|
122
|
-
<!-- <div>
|
|
123
|
-
{{JSON.stringify(scope.row)}}
|
|
124
|
-
</div> -->
|
|
125
|
-
<div
|
|
126
|
-
:style="{
|
|
127
|
-
display: 'flex',
|
|
128
|
-
alignItems: 'center',
|
|
129
|
-
justifyContent: 'center',
|
|
130
|
-
width: '100%',
|
|
131
|
-
fontWeight: scope.row[0]==='商品总数'?'bold':'normal'
|
|
132
|
-
}
|
|
133
|
-
"
|
|
134
|
-
>
|
|
135
|
-
{{ scope.row[index] }}
|
|
136
|
-
</div>
|
|
137
|
-
</template>
|
|
138
|
-
</el-table-column>
|
|
139
|
-
</el-table>
|
|
140
|
-
<div class="empty_data" v-else>暂无数据</div>
|
|
108
|
+
</xd-stat-table-group>
|
|
141
109
|
<div style="margin-top: 20px">注:折扣=货源进货价/所选折扣类型</div>
|
|
110
|
+
<div style="margin-top: 20px">销量占比=筛选条件下 当前商品分类折扣对应商品销量➗全部商品销量</div>
|
|
142
111
|
</el-card>
|
|
143
112
|
</template>
|
|
144
113
|
<script>
|
|
145
114
|
import { getOptions } from "@/utils/options";
|
|
146
115
|
import { mapActions } from "vuex";
|
|
147
116
|
import XdStatTradeDate from "@/components/XdStatTradeDate";
|
|
117
|
+
import XdStatTableGroup from "@/components/XdStatTableGroup";
|
|
148
118
|
export default {
|
|
149
119
|
components: {
|
|
150
|
-
XdStatTradeDate
|
|
120
|
+
XdStatTradeDate,
|
|
121
|
+
XdStatTableGroup
|
|
151
122
|
},
|
|
152
123
|
data() {
|
|
153
124
|
return {
|
|
@@ -192,6 +163,8 @@ export default {
|
|
|
192
163
|
},
|
|
193
164
|
},
|
|
194
165
|
form:{},
|
|
166
|
+
upNewkey:'upNewkey',
|
|
167
|
+
upNewParams:null,
|
|
195
168
|
};
|
|
196
169
|
},
|
|
197
170
|
watch: {
|
|
@@ -246,26 +219,8 @@ export default {
|
|
|
246
219
|
if (this.category_id && this.category_id.length) {
|
|
247
220
|
params['category_id'] = this.category_id[this.category_id.length - 1]
|
|
248
221
|
}
|
|
249
|
-
|
|
250
|
-
this.
|
|
251
|
-
// 获取行标题列表
|
|
252
|
-
this.keyList = res.data.col_title_list;
|
|
253
|
-
|
|
254
|
-
// 获取数据列表
|
|
255
|
-
this.dataList = res.data.data;
|
|
256
|
-
// 获取列标题列表
|
|
257
|
-
this.rowTitle = res.data.row_title_list;
|
|
258
|
-
this.last_updated_date_time = res.data.last_updated_date_time;
|
|
259
|
-
// 遍历数据列表,将行标题和数据列表拼接
|
|
260
|
-
this.dataList = this.keyList.map((item, i) => {
|
|
261
|
-
return [
|
|
262
|
-
this.keyList[i].label,
|
|
263
|
-
...this.dataList.map((row) => {
|
|
264
|
-
return row[this.keyList[i].key];
|
|
265
|
-
}),
|
|
266
|
-
];
|
|
267
|
-
});
|
|
268
|
-
});
|
|
222
|
+
this.upNewParams = params;
|
|
223
|
+
this.upNewkey = Date.now();
|
|
269
224
|
},
|
|
270
225
|
doExport() {
|
|
271
226
|
this.$prompt("请输入导出文件名称", "提示", {
|