jufubao-admin-library 1.1.38 → 1.1.39
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/pageComponents/modules/JfbProductSku.vue +10 -0
- package/library/viewModules/viewCardsGift/router/greeting_card.js +16 -6
- package/library/viewModules/viewCardsGift/schemas/greeting_card.js +53 -11
- package/library/viewModules/viewCardsGift/viewCardsGift/config.vue +594 -103
- package/library/viewModules/viewCardsGift/viewCardsGift/list.vue +65 -21
- package/library/viewModules/viewTask/router/tasks.js +4 -4
- package/library/viewModules/viewTask/schemas/tasks.js +2 -2
- package/library/viewModules/viewsAccounts/router/mAccounts.js +9 -8
- package/library/viewModules/viewsAccounts/schemas/mAccounts.js +2 -3
- package/library/viewModules/viewsAccounts/viewsAccounts/list.vue +38 -6
- package/library/viewModules/viewsCompany/router/mCompany.js +4 -3
- package/library/viewModules/viewsCompany/schemas/mCompany.js +13 -0
- package/library/viewModules/viewsCompany/viewsCompany/list.vue +44 -6
- package/library/viewModules/viewsFlashSale/router/flashsalem.js +34 -0
- package/library/viewModules/viewsFlashSale/schemas/product.js +63 -0
- package/library/viewModules/viewsFlashSale/viewsFlashSale/product.vue +834 -0
- package/package.json +1 -1
|
@@ -23,6 +23,14 @@
|
|
|
23
23
|
<template slot="volume" slot-scope="inScope">
|
|
24
24
|
{{$xdHelper.divisionFloatNumber(inScope.row.volume, 100)}}m³
|
|
25
25
|
</template>
|
|
26
|
+
<template slot="jfb_price_ratio" slot-scope="inScope">
|
|
27
|
+
<div>货源:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.purchase_div_jfb_discount_ratio, 1000)}}</span>折</div>
|
|
28
|
+
<div v-if="inScope.row.dist_div_jfb_discount_ratio">平台:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.dist_div_jfb_discount_ratio, 1000)}}</span>折</div>
|
|
29
|
+
</template>
|
|
30
|
+
<template slot="market_price_ratio" slot-scope="inScope">
|
|
31
|
+
<div>货源:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.purchase_div_market_discount_ratio, 1000)}}</span>折</div>
|
|
32
|
+
<div v-if="inScope.row.dist_div_market_discount_ratio">平台:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.dist_div_market_discount_ratio, 1000)}}</span>折</div>
|
|
33
|
+
</template>
|
|
26
34
|
</xd-table>
|
|
27
35
|
<xd-dialog
|
|
28
36
|
v-if="dialogSetPrices"
|
|
@@ -65,7 +73,9 @@
|
|
|
65
73
|
{"type": "normal", "prop": "stands", "align": "left", "min-width": 200, "label": "规格"},
|
|
66
74
|
{"type": "price", "prop": "purchase_price", "align": "center", "min-width": 80, "label": purchase_price_name},
|
|
67
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": "建议售价折扣"},
|
|
68
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": "市场价折扣"},
|
|
69
79
|
{"type": "normal", "prop": "init_num", "align": "left", "min-width": 80, "label": "库存"},
|
|
70
80
|
{"type": "normal", "prop": "weight", "align": "left", "min-width": 80, "label": "重量"},
|
|
71
81
|
{"type": "normal", "prop": "volume", "align": "left", "min-width": 80, "label": "体积"},
|
|
@@ -2,23 +2,27 @@ import Layout from '@/layout'
|
|
|
2
2
|
|
|
3
3
|
import {setModuleName} from "@/utils/xd.base";
|
|
4
4
|
import roles from '@/constant/permissions';
|
|
5
|
-
|
|
5
|
+
const greetingCard = roles.greetingCard
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
const greetingCardRouter = {
|
|
9
9
|
path: '/greeting_card',
|
|
10
10
|
component: Layout,
|
|
11
|
-
sort:
|
|
11
|
+
sort: 90,
|
|
12
12
|
name: '贺卡管理',
|
|
13
13
|
alwaysShow: true,
|
|
14
|
+
// #ifdef saas-admin
|
|
15
|
+
hidden: true,
|
|
16
|
+
// #endif
|
|
14
17
|
redirect: '/greeting_card/list',
|
|
15
18
|
meta: {
|
|
16
19
|
title: '贺卡管理',
|
|
17
20
|
icon: 'el-icon-collection',
|
|
18
21
|
iconSize: 20,
|
|
19
|
-
|
|
22
|
+
roles: [greetingCard.getGreetingCardList, greetingCard.setGreetingCardBaseConfig]
|
|
20
23
|
},
|
|
21
24
|
children: [
|
|
25
|
+
// #ifdef admin
|
|
22
26
|
{
|
|
23
27
|
path: 'list',
|
|
24
28
|
name: 'GreetingCardList',
|
|
@@ -26,9 +30,10 @@ const greetingCardRouter = {
|
|
|
26
30
|
meta: {
|
|
27
31
|
title: '贺卡管理',
|
|
28
32
|
icon: 'el-icon-document',
|
|
29
|
-
|
|
33
|
+
roles: [greetingCard.getGreetingCardList]
|
|
30
34
|
}
|
|
31
35
|
},
|
|
36
|
+
// #endif
|
|
32
37
|
{
|
|
33
38
|
path: 'config/:material_id?/:group_id?',
|
|
34
39
|
name: 'GreetingCardConfig',
|
|
@@ -37,8 +42,13 @@ const greetingCardRouter = {
|
|
|
37
42
|
meta: {
|
|
38
43
|
title: '贺卡配置',
|
|
39
44
|
icon: 'el-icon-s-platform',
|
|
40
|
-
|
|
41
|
-
|
|
45
|
+
//roles: [greetingCard.setGreetingCardBaseConfig],
|
|
46
|
+
// #ifdef admin
|
|
47
|
+
activeMenu: "/greeting_card/list",
|
|
48
|
+
// #endif
|
|
49
|
+
// #ifdef saas-admin
|
|
50
|
+
activeMenu: '/cards/list'
|
|
51
|
+
// #endif
|
|
42
52
|
}
|
|
43
53
|
}
|
|
44
54
|
]
|
|
@@ -8,7 +8,6 @@ module.exports = {
|
|
|
8
8
|
{
|
|
9
9
|
title: '贺卡管理 - 组列表',
|
|
10
10
|
mapFn: "getGreetingCardGroupList",
|
|
11
|
-
isPublic: true,
|
|
12
11
|
path: '/saas-admin/v1/bless_material_group/options',
|
|
13
12
|
isRule: false,
|
|
14
13
|
data: {},
|
|
@@ -18,7 +17,6 @@ module.exports = {
|
|
|
18
17
|
{
|
|
19
18
|
title: '贺卡管理 - 创建',
|
|
20
19
|
mapFn: "AddGreetingCardGroup",
|
|
21
|
-
isPublic: true,
|
|
22
20
|
path: '/saas-admin/v1/bless_material_group',
|
|
23
21
|
isRule: false,
|
|
24
22
|
data: {
|
|
@@ -30,7 +28,6 @@ module.exports = {
|
|
|
30
28
|
{
|
|
31
29
|
title: '贺卡管理 - 删除',
|
|
32
30
|
mapFn: "delGreetingCardGroup",
|
|
33
|
-
isPublic: true,
|
|
34
31
|
path: '/saas-admin/v1/bless_material_group/:group_id',
|
|
35
32
|
isRule: false,
|
|
36
33
|
data: {
|
|
@@ -43,7 +40,6 @@ module.exports = {
|
|
|
43
40
|
{
|
|
44
41
|
title: '贺卡管理 - 贺卡列表',
|
|
45
42
|
mapFn: "getGreetingCardList",
|
|
46
|
-
isPublic: true,
|
|
47
43
|
path: '/saas-admin/v1/bless_material/items',
|
|
48
44
|
isRule: false,
|
|
49
45
|
data: {
|
|
@@ -52,12 +48,11 @@ module.exports = {
|
|
|
52
48
|
page_size: ['页长', 'number', '必选'],
|
|
53
49
|
},
|
|
54
50
|
disabled: true,
|
|
55
|
-
role: '',
|
|
51
|
+
role: '@@@.CARD.TEMPLATE_LIST',
|
|
56
52
|
},
|
|
57
53
|
{
|
|
58
54
|
title: '贺卡管理 - 创建贺卡',
|
|
59
55
|
mapFn: "addGreetingCard",
|
|
60
|
-
isPublic: true,
|
|
61
56
|
path: '/saas-admin/v1/bless_material',
|
|
62
57
|
isRule: false,
|
|
63
58
|
data: {
|
|
@@ -69,7 +64,6 @@ module.exports = {
|
|
|
69
64
|
{
|
|
70
65
|
title: '贺卡管理 - 编辑贺卡',
|
|
71
66
|
mapFn: "updateGreetingCard",
|
|
72
|
-
isPublic: true,
|
|
73
67
|
path: '/saas-admin/v1/bless_material/:material_id',
|
|
74
68
|
isRule: false,
|
|
75
69
|
data: {
|
|
@@ -77,13 +71,12 @@ module.exports = {
|
|
|
77
71
|
item:['贺卡记录对象', 'Object', '必填'],
|
|
78
72
|
},
|
|
79
73
|
disabled: true,
|
|
80
|
-
role: '',
|
|
74
|
+
role: '@@@.CARD.TEMPLATE_EDIT',
|
|
81
75
|
method: 'put'
|
|
82
76
|
},
|
|
83
77
|
{
|
|
84
78
|
title: '贺卡管理 - 复制贺卡',
|
|
85
79
|
mapFn: "copyGreetingCard",
|
|
86
|
-
isPublic: true,
|
|
87
80
|
path: '/saas-admin/v1/bless_material/copy/:copy_material_id',
|
|
88
81
|
isRule: false,
|
|
89
82
|
data: {
|
|
@@ -91,12 +84,11 @@ module.exports = {
|
|
|
91
84
|
group_id:['复制到分组ID', 'Object', '必填'],
|
|
92
85
|
},
|
|
93
86
|
disabled: true,
|
|
94
|
-
role: '',
|
|
87
|
+
role: '@@@.CARD.TEMPLATE_COPY',
|
|
95
88
|
},
|
|
96
89
|
{
|
|
97
90
|
title: '贺卡管理 - 获取贺卡信息',
|
|
98
91
|
mapFn: "getGreetingCardById",
|
|
99
|
-
isPublic: true,
|
|
100
92
|
path: '/saas-admin/v1/bless_material/item/:material_id',
|
|
101
93
|
isRule: false,
|
|
102
94
|
data: {
|
|
@@ -105,5 +97,55 @@ module.exports = {
|
|
|
105
97
|
disabled: true,
|
|
106
98
|
role: '',
|
|
107
99
|
},
|
|
100
|
+
{
|
|
101
|
+
title: '贺卡管理 - 素材配置数据',
|
|
102
|
+
mapFn: "setGreetingCardBaseConfig",
|
|
103
|
+
path: '/saas-admin/v1/bless_material/config/:material_id',
|
|
104
|
+
isRule: false,
|
|
105
|
+
data: {
|
|
106
|
+
material_id:['素材ID', 'string|number', '必填'],
|
|
107
|
+
item: ['素材配置对象', 'string|number', '必填']
|
|
108
|
+
},
|
|
109
|
+
disabled: true,
|
|
110
|
+
role: '@@@.CARD.TEMPLATE_CONFIG',
|
|
111
|
+
method: 'put'
|
|
112
|
+
},
|
|
113
|
+
|
|
114
|
+
//custom
|
|
115
|
+
{
|
|
116
|
+
title: '贺卡管理 - 获取自定义素材信息',
|
|
117
|
+
mapFn: "getCustomMaterialInfo",
|
|
118
|
+
path: '/saas-company/v1/bless_x_material/item/:x_material_id',
|
|
119
|
+
isRule: false,
|
|
120
|
+
params: {
|
|
121
|
+
x_material_id:['素材ID', 'string|number', '必填'],
|
|
122
|
+
},
|
|
123
|
+
disabled: true,
|
|
124
|
+
role: '@@@.CARD.TEMPLATE_CUSTOM_CONFIG',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
title: '贺卡管理 - 创建自定义素材',
|
|
128
|
+
mapFn: "createCustomMaterial",
|
|
129
|
+
path: '/saas-company/v1/bless_x_material',
|
|
130
|
+
isRule: false,
|
|
131
|
+
data: {
|
|
132
|
+
item: ['素材配置对象', 'string|number', '必填']
|
|
133
|
+
},
|
|
134
|
+
disabled: true,
|
|
135
|
+
role: '',
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
title: '贺卡管理 - 编辑自定义素材',
|
|
139
|
+
mapFn: "updateCustomMaterial",
|
|
140
|
+
path: '/saas-company/v1/bless_x_material/:x_material_id',
|
|
141
|
+
isRule: false,
|
|
142
|
+
data: {
|
|
143
|
+
x_material_id:['素材ID', 'string|number', '必填'],
|
|
144
|
+
item: ['素材配置对象', 'string|number', '必填']
|
|
145
|
+
},
|
|
146
|
+
disabled: true,
|
|
147
|
+
role: '',
|
|
148
|
+
method: 'put'
|
|
149
|
+
},
|
|
108
150
|
],
|
|
109
151
|
}
|