jufubao-admin-library 1.1.32 → 1.1.33
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/JfbProductSearch.vue +13 -0
- package/library/pageComponents/modules/JfbProductSku.vue +120 -12
- package/library/pageComponents/modules/lib/JfbRuleCreate.js +1 -1
- package/library/viewModules/viewCardsGift/router/greeting_card.js +7 -17
- package/library/viewModules/viewCardsGift/schemas/greeting_card.js +11 -53
- package/library/viewModules/viewCardsGift/viewCardsGift/config.vue +86 -413
- package/library/viewModules/viewCardsGift/viewCardsGift/list.vue +14 -49
- package/library/viewModules/viewTask/schemas/tasks.js +2 -2
- package/library/viewModules/viewsAccounts/router/mAccounts.js +7 -8
- package/library/viewModules/viewsAccounts/schemas/mAccounts.js +3 -2
- package/library/viewModules/viewsAccounts/viewsAccounts/list.vue +6 -37
- package/library/viewModules/viewsCompany/router/mCompany.js +3 -4
- package/library/viewModules/viewsCompany/schemas/mCompany.js +0 -13
- package/library/viewModules/viewsCompany/viewsCompany/list.vue +3 -39
- package/package.json +2 -4
- package/.env.settings.saas +0 -230
|
@@ -335,6 +335,18 @@ export default {
|
|
|
335
335
|
multiple: false, //多选
|
|
336
336
|
list: this.productTypeList,
|
|
337
337
|
},
|
|
338
|
+
this.$setting.system!=='partner-wholesale'&&{
|
|
339
|
+
label: "选品来源:", //label
|
|
340
|
+
ele: "xd-select-list", //package 名称
|
|
341
|
+
valueKey: "select_source", //form[valueKey]
|
|
342
|
+
value: [], //v-model
|
|
343
|
+
placeholder: "请选择类型",
|
|
344
|
+
multiple: false, //多选
|
|
345
|
+
list: [
|
|
346
|
+
{label:'人工选品',value:'manual'},
|
|
347
|
+
{label:'选品规则',value:'policy'}
|
|
348
|
+
],
|
|
349
|
+
},
|
|
338
350
|
{
|
|
339
351
|
label: "按公共类目:", //label
|
|
340
352
|
ele: "slot", //package 名称
|
|
@@ -413,6 +425,7 @@ export default {
|
|
|
413
425
|
valueKey: "discount_ratio", //form[valueKey]
|
|
414
426
|
value: {},
|
|
415
427
|
disabled: false,
|
|
428
|
+
labelSlot:'按大于等于最低折扣,小于最高折扣(不含)进行搜索',
|
|
416
429
|
setting: {
|
|
417
430
|
/**单位显示**/
|
|
418
431
|
//图标优先于文字单位
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
:headers="uiSkusHeaders"
|
|
5
5
|
:list="getTableDataFromResponseData(productSkuList)"
|
|
6
6
|
style="width: 100%"
|
|
7
|
+
@onClick="handleTableClick"
|
|
7
8
|
>
|
|
8
9
|
<template slot="stands" slot-scope="inScope">
|
|
9
10
|
{{inScope.row.standards.map((ss) => `${ss.name}=${ss.value}`).join(" | ") }}
|
|
@@ -22,24 +23,40 @@
|
|
|
22
23
|
<template slot="volume" slot-scope="inScope">
|
|
23
24
|
{{$xdHelper.divisionFloatNumber(inScope.row.volume, 100)}}m³
|
|
24
25
|
</template>
|
|
25
|
-
<template slot="jfb_price_ratio" slot-scope="inScope">
|
|
26
|
-
<div>货源:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.purchase_div_jfb_discount_ratio, 1000)}}</span>折</div>
|
|
27
|
-
<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>
|
|
28
|
-
</template>
|
|
29
|
-
<template slot="market_price_ratio" slot-scope="inScope">
|
|
30
|
-
<div>货源:<span class="red">{{$xdHelper.divisionFloatNumber(inScope.row.purchase_div_market_discount_ratio, 1000)}}</span>折</div>
|
|
31
|
-
<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>
|
|
32
|
-
</template>
|
|
33
26
|
</xd-table>
|
|
27
|
+
<xd-dialog
|
|
28
|
+
v-if="dialogSetPrices"
|
|
29
|
+
:show.sync="dialogSetPrices"
|
|
30
|
+
:z-index='9999'
|
|
31
|
+
title="查看价格日历"
|
|
32
|
+
width="50%"
|
|
33
|
+
>
|
|
34
|
+
<div v-if="datePricesRow&&datePricesRow.sku_uniq_id">商品规格:{{ sku_name }}</div>
|
|
35
|
+
<div class="app-container__list-table">
|
|
36
|
+
<xd-table
|
|
37
|
+
:headers="setPricesHeaders"
|
|
38
|
+
:list="setPricesTables"
|
|
39
|
+
ref="myTable"
|
|
40
|
+
:key="setPricesTablesKey"
|
|
41
|
+
is-border
|
|
42
|
+
>
|
|
43
|
+
</xd-table>
|
|
44
|
+
</div>
|
|
45
|
+
<div slot="btn">
|
|
46
|
+
<el-button type="primary" @click="dialogSetPrices = false">好的</el-button>
|
|
47
|
+
</div>
|
|
48
|
+
</xd-dialog>
|
|
34
49
|
</div>
|
|
35
50
|
</template>
|
|
36
51
|
|
|
37
52
|
<script>
|
|
38
53
|
import XdTable from "@/components/XdTable";
|
|
54
|
+
import XdDialog from "@/components/XdDialog"
|
|
39
55
|
export default {
|
|
40
56
|
name: "JfbProductSku",
|
|
41
57
|
components:{
|
|
42
|
-
XdTable
|
|
58
|
+
XdTable,
|
|
59
|
+
XdDialog
|
|
43
60
|
},
|
|
44
61
|
data(){
|
|
45
62
|
let purchase_price_name = this.$setting['system'] === 'supplier' ? '供货商' : '进货价';
|
|
@@ -48,17 +65,93 @@
|
|
|
48
65
|
{"type": "normal", "prop": "stands", "align": "left", "min-width": 200, "label": "规格"},
|
|
49
66
|
{"type": "price", "prop": "purchase_price", "align": "center", "min-width": 80, "label": purchase_price_name},
|
|
50
67
|
{"type": "price", "prop": "jfb_price", "align": "center", "min-width": 80, "label": "建议零售价"},
|
|
51
|
-
{"type": "price", "prop": "jfb_price_ratio", "align": "left", "min-width": 120, "label": "建议售价折扣"},
|
|
52
68
|
{"type": "price", "prop": "market_price", "align": "center", "min-width": 80, "label": "市场价"},
|
|
53
|
-
{"type": "price", "prop": "market_price_ratio", "align": "left", "min-width": 120, "label": "市场价折扣"},
|
|
54
69
|
{"type": "normal", "prop": "init_num", "align": "left", "min-width": 80, "label": "库存"},
|
|
55
70
|
{"type": "normal", "prop": "weight", "align": "left", "min-width": 80, "label": "重量"},
|
|
56
71
|
{"type": "normal", "prop": "volume", "align": "left", "min-width": 80, "label": "体积"},
|
|
57
72
|
{"type": "normal", "prop": "product_code", "align": "left", "min-width": 80, "label": "商品编码"},
|
|
58
73
|
{"type": "normal", "prop": "product_bar_code", "align": "left", "min-width": 80, "label": "商品条码"},
|
|
59
|
-
|
|
74
|
+
{
|
|
75
|
+
type: "operate",
|
|
76
|
+
align: "center",
|
|
77
|
+
width: 100,
|
|
78
|
+
label: "价格日历",
|
|
79
|
+
values: [
|
|
80
|
+
{
|
|
81
|
+
ui: "text-button",
|
|
82
|
+
target: "_blank",
|
|
83
|
+
name: "查看",
|
|
84
|
+
type: "text",
|
|
85
|
+
event: "look",
|
|
86
|
+
},]
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
//价格日历
|
|
90
|
+
dialogSetPrices:false,
|
|
91
|
+
setPricesTables:[],
|
|
92
|
+
setPricesTablesKey:'setPricesTablesKey',
|
|
93
|
+
datePricesRow:null,
|
|
94
|
+
sku_name:'',
|
|
60
95
|
}
|
|
61
96
|
},
|
|
97
|
+
computed:{
|
|
98
|
+
setPricesHeaders(){
|
|
99
|
+
return [
|
|
100
|
+
{
|
|
101
|
+
type: "normal",
|
|
102
|
+
prop: "date",
|
|
103
|
+
align: "center",
|
|
104
|
+
minWidth: 140,
|
|
105
|
+
label: "日期",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
type: "price",
|
|
109
|
+
prop: "purchase_price",
|
|
110
|
+
align: "center",
|
|
111
|
+
minWidth: 100,
|
|
112
|
+
label: "货源进货价",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
type: "price",
|
|
116
|
+
prop: "dist_price",
|
|
117
|
+
align: "center",
|
|
118
|
+
minWidth: 100,
|
|
119
|
+
label: "平台进货价",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
type: "price",
|
|
123
|
+
prop: "market_price",
|
|
124
|
+
align: "center",
|
|
125
|
+
minWidth: 100,
|
|
126
|
+
label: "市场价",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
type: "price",
|
|
130
|
+
prop: "jfb_price",
|
|
131
|
+
align: "center",
|
|
132
|
+
minWidth: 100,
|
|
133
|
+
label: "建议零售价",
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
type: "price",
|
|
137
|
+
prop: "min_sale_price",
|
|
138
|
+
align: "center",
|
|
139
|
+
minWidth: 100,
|
|
140
|
+
label: "最低售价",
|
|
141
|
+
},
|
|
142
|
+
this.$setting['system'] !== 'partner'&&{
|
|
143
|
+
type: "price",
|
|
144
|
+
prop: "sale_price",
|
|
145
|
+
align: "center",
|
|
146
|
+
minWidth: 100,
|
|
147
|
+
label: "售价",
|
|
148
|
+
},
|
|
149
|
+
].filter(i=>i)
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
created(){
|
|
153
|
+
console.log(this.uiSkusHeaders,'this.uiSkusHeaders')
|
|
154
|
+
},
|
|
62
155
|
methods: {
|
|
63
156
|
getTableDataFromResponseData(data = []) {
|
|
64
157
|
let list = this.$xdHelper.cloneDeep(data);
|
|
@@ -100,6 +193,21 @@
|
|
|
100
193
|
standards,
|
|
101
194
|
};
|
|
102
195
|
});
|
|
196
|
+
},
|
|
197
|
+
|
|
198
|
+
handleTableClick ({ value, row }) {
|
|
199
|
+
console.log(value,row,'oooo')
|
|
200
|
+
if (value.event == "look") {
|
|
201
|
+
let sku_name = row.standards.find(item=>item.value!=="event_upload")
|
|
202
|
+
this.sku_name = sku_name.name+'='+sku_name.value
|
|
203
|
+
console.log(sku_name,'sku_name')
|
|
204
|
+
//价格日历查看
|
|
205
|
+
this.datePricesRow = row;
|
|
206
|
+
this.setPricesTables = row.date_prices;
|
|
207
|
+
this.setPricesTablesKey = Date.now();
|
|
208
|
+
this.dialogSetPrices = true;
|
|
209
|
+
}
|
|
210
|
+
|
|
103
211
|
},
|
|
104
212
|
}
|
|
105
213
|
}
|
|
@@ -21,7 +21,6 @@ export default {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
-
|
|
25
24
|
'listValue.price_type' (n, o) {
|
|
26
25
|
if (n && n !== o) {
|
|
27
26
|
this.initForm(this.listValue)
|
|
@@ -400,6 +399,7 @@ export default {
|
|
|
400
399
|
SPlaceholder: '最低折扣值',
|
|
401
400
|
EPlaceholder: '最高折扣值',
|
|
402
401
|
},
|
|
402
|
+
notice:'系统将按大于等于最低折扣,小于最高折扣(不含)进行选品',
|
|
403
403
|
},
|
|
404
404
|
this.checkConfig('sale_num')&&{
|
|
405
405
|
label: '按销量:',
|
|
@@ -2,27 +2,23 @@ import Layout from '@/layout'
|
|
|
2
2
|
|
|
3
3
|
import {setModuleName} from "@/utils/xd.base";
|
|
4
4
|
import roles from '@/constant/permissions';
|
|
5
|
-
const
|
|
5
|
+
//const enterprise_buy = roles.enterprise_buy
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
const greetingCardRouter = {
|
|
9
9
|
path: '/greeting_card',
|
|
10
10
|
component: Layout,
|
|
11
|
-
sort:
|
|
11
|
+
sort: 80,
|
|
12
12
|
name: '贺卡管理',
|
|
13
|
-
alwaysShow:
|
|
14
|
-
// #ifdef saas-admin
|
|
15
|
-
hidden: true,
|
|
16
|
-
// #endif
|
|
13
|
+
alwaysShow: true,
|
|
17
14
|
redirect: '/greeting_card/list',
|
|
18
15
|
meta: {
|
|
19
16
|
title: '贺卡管理',
|
|
20
17
|
icon: 'el-icon-collection',
|
|
21
18
|
iconSize: 20,
|
|
22
|
-
roles: [
|
|
19
|
+
//roles: []
|
|
23
20
|
},
|
|
24
21
|
children: [
|
|
25
|
-
// #ifdef admin
|
|
26
22
|
{
|
|
27
23
|
path: 'list',
|
|
28
24
|
name: 'GreetingCardList',
|
|
@@ -30,10 +26,9 @@ const greetingCardRouter = {
|
|
|
30
26
|
meta: {
|
|
31
27
|
title: '贺卡管理',
|
|
32
28
|
icon: 'el-icon-document',
|
|
33
|
-
roles: [
|
|
29
|
+
//roles: []
|
|
34
30
|
}
|
|
35
31
|
},
|
|
36
|
-
// #endif
|
|
37
32
|
{
|
|
38
33
|
path: 'config/:material_id?/:group_id?',
|
|
39
34
|
name: 'GreetingCardConfig',
|
|
@@ -42,13 +37,8 @@ const greetingCardRouter = {
|
|
|
42
37
|
meta: {
|
|
43
38
|
title: '贺卡配置',
|
|
44
39
|
icon: 'el-icon-s-platform',
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
activeMenu: "/greeting_card/list",
|
|
48
|
-
// #endif
|
|
49
|
-
// #ifdef saas-admin
|
|
50
|
-
activeMenu: '/cards/list'
|
|
51
|
-
// #endif
|
|
40
|
+
// roles: [],
|
|
41
|
+
activeMenu: "/greeting_card/list"
|
|
52
42
|
}
|
|
53
43
|
}
|
|
54
44
|
]
|
|
@@ -8,6 +8,7 @@ module.exports = {
|
|
|
8
8
|
{
|
|
9
9
|
title: '贺卡管理 - 组列表',
|
|
10
10
|
mapFn: "getGreetingCardGroupList",
|
|
11
|
+
isPublic: true,
|
|
11
12
|
path: '/saas-admin/v1/bless_material_group/options',
|
|
12
13
|
isRule: false,
|
|
13
14
|
data: {},
|
|
@@ -17,6 +18,7 @@ module.exports = {
|
|
|
17
18
|
{
|
|
18
19
|
title: '贺卡管理 - 创建',
|
|
19
20
|
mapFn: "AddGreetingCardGroup",
|
|
21
|
+
isPublic: true,
|
|
20
22
|
path: '/saas-admin/v1/bless_material_group',
|
|
21
23
|
isRule: false,
|
|
22
24
|
data: {
|
|
@@ -28,6 +30,7 @@ module.exports = {
|
|
|
28
30
|
{
|
|
29
31
|
title: '贺卡管理 - 删除',
|
|
30
32
|
mapFn: "delGreetingCardGroup",
|
|
33
|
+
isPublic: true,
|
|
31
34
|
path: '/saas-admin/v1/bless_material_group/:group_id',
|
|
32
35
|
isRule: false,
|
|
33
36
|
data: {
|
|
@@ -40,6 +43,7 @@ module.exports = {
|
|
|
40
43
|
{
|
|
41
44
|
title: '贺卡管理 - 贺卡列表',
|
|
42
45
|
mapFn: "getGreetingCardList",
|
|
46
|
+
isPublic: true,
|
|
43
47
|
path: '/saas-admin/v1/bless_material/items',
|
|
44
48
|
isRule: false,
|
|
45
49
|
data: {
|
|
@@ -48,11 +52,12 @@ module.exports = {
|
|
|
48
52
|
page_size: ['页长', 'number', '必选'],
|
|
49
53
|
},
|
|
50
54
|
disabled: true,
|
|
51
|
-
role: '
|
|
55
|
+
role: '',
|
|
52
56
|
},
|
|
53
57
|
{
|
|
54
58
|
title: '贺卡管理 - 创建贺卡',
|
|
55
59
|
mapFn: "addGreetingCard",
|
|
60
|
+
isPublic: true,
|
|
56
61
|
path: '/saas-admin/v1/bless_material',
|
|
57
62
|
isRule: false,
|
|
58
63
|
data: {
|
|
@@ -64,6 +69,7 @@ module.exports = {
|
|
|
64
69
|
{
|
|
65
70
|
title: '贺卡管理 - 编辑贺卡',
|
|
66
71
|
mapFn: "updateGreetingCard",
|
|
72
|
+
isPublic: true,
|
|
67
73
|
path: '/saas-admin/v1/bless_material/:material_id',
|
|
68
74
|
isRule: false,
|
|
69
75
|
data: {
|
|
@@ -71,12 +77,13 @@ module.exports = {
|
|
|
71
77
|
item:['贺卡记录对象', 'Object', '必填'],
|
|
72
78
|
},
|
|
73
79
|
disabled: true,
|
|
74
|
-
role: '
|
|
80
|
+
role: '',
|
|
75
81
|
method: 'put'
|
|
76
82
|
},
|
|
77
83
|
{
|
|
78
84
|
title: '贺卡管理 - 复制贺卡',
|
|
79
85
|
mapFn: "copyGreetingCard",
|
|
86
|
+
isPublic: true,
|
|
80
87
|
path: '/saas-admin/v1/bless_material/copy/:copy_material_id',
|
|
81
88
|
isRule: false,
|
|
82
89
|
data: {
|
|
@@ -84,11 +91,12 @@ module.exports = {
|
|
|
84
91
|
group_id:['复制到分组ID', 'Object', '必填'],
|
|
85
92
|
},
|
|
86
93
|
disabled: true,
|
|
87
|
-
role: '
|
|
94
|
+
role: '',
|
|
88
95
|
},
|
|
89
96
|
{
|
|
90
97
|
title: '贺卡管理 - 获取贺卡信息',
|
|
91
98
|
mapFn: "getGreetingCardById",
|
|
99
|
+
isPublic: true,
|
|
92
100
|
path: '/saas-admin/v1/bless_material/item/:material_id',
|
|
93
101
|
isRule: false,
|
|
94
102
|
data: {
|
|
@@ -97,55 +105,5 @@ module.exports = {
|
|
|
97
105
|
disabled: true,
|
|
98
106
|
role: '',
|
|
99
107
|
},
|
|
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
|
-
},
|
|
150
108
|
],
|
|
151
109
|
}
|