jufubao-admin-library 1.1.65 → 1.1.66
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/viewStore/router/store_selection.js +96 -0
- package/library/viewModules/viewStore/schemas/store_selection.js +378 -0
- package/library/viewModules/viewStore/viewStore/components/StoreDetail.vue +121 -0
- package/library/viewModules/viewStore/viewStore/components/timeSet.vue +640 -0
- package/library/viewModules/viewStore/viewStore/market/list.vue +555 -0
- package/library/viewModules/viewStore/viewStore/rule/create.vue +573 -0
- package/library/viewModules/viewStore/viewStore/rule/list.vue +225 -0
- package/library/viewModules/viewStore/viewStore/rule/log.vue +154 -0
- package/library/viewModules/viewStore/viewStore/selected/list.vue +719 -0
- package/library/viewModules/viewStore/viewStore/task/list.vue +292 -0
- package/package.json +1 -1
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
import Layout from '@/layout'
|
|
4
|
+
import roles from '@/constant/permissions' //引用权限值
|
|
5
|
+
const store_selection = roles.store_selection
|
|
6
|
+
|
|
7
|
+
const storeRouter = {
|
|
8
|
+
path: '/store',
|
|
9
|
+
sort: 99,
|
|
10
|
+
component: Layout,
|
|
11
|
+
name: '门店管理',
|
|
12
|
+
meta: {
|
|
13
|
+
title: '门店管理',
|
|
14
|
+
icon: 'xdicon_shop',
|
|
15
|
+
roles: [
|
|
16
|
+
store_selection.selectShopRuleList, store_selection.selectShopMarketList, store_selection.selectShopTaskList, store_selection.selectShopList,
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
children: [
|
|
20
|
+
{
|
|
21
|
+
path: 'selectd-list',
|
|
22
|
+
name: 'SelectdList',
|
|
23
|
+
component: () => import('@/viewStore/selected/list'),
|
|
24
|
+
meta: {
|
|
25
|
+
title: '已选门店',
|
|
26
|
+
icon: 'xdicon_shop',
|
|
27
|
+
roles:[store_selection.selectShopList]
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
path: 'market-list',
|
|
32
|
+
name: 'MarketList',
|
|
33
|
+
component: () => import('@/viewStore/market/list'),
|
|
34
|
+
meta: {
|
|
35
|
+
title: '门店集市',
|
|
36
|
+
icon: 'el-icon-sell',
|
|
37
|
+
roles:[store_selection.selectShopMarketList]
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
path: 'rule-list',
|
|
42
|
+
name: 'StoreRuleList',
|
|
43
|
+
component: () => import('@/viewStore/rule/list'),
|
|
44
|
+
meta: {
|
|
45
|
+
title: '选店规则管理',
|
|
46
|
+
icon: 'xdicon_rizhiguanli',
|
|
47
|
+
roles:[store_selection.selectShopRuleList]
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
path: 'store_rule_create',
|
|
52
|
+
name: 'StoreRuleCreate',
|
|
53
|
+
hidden:true,
|
|
54
|
+
component: () => import('@/viewStore/rule/create'),
|
|
55
|
+
meta: {
|
|
56
|
+
title: '创建选店规则',
|
|
57
|
+
activeMenu: '/store/rule-list',
|
|
58
|
+
roles:[store_selection.selectShopRuleAdd]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
path: 'store_rule_edit/:id',
|
|
63
|
+
name: 'StoreRuleEdit',
|
|
64
|
+
hidden:true,
|
|
65
|
+
component: () => import('@/viewStore/rule/create'),
|
|
66
|
+
meta: {
|
|
67
|
+
title: '编辑选店规则',
|
|
68
|
+
activeMenu: '/store/rule-list',
|
|
69
|
+
roles:[store_selection.selectShopRuleUpdate]
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
path: 'store_rule_log/:id',
|
|
74
|
+
name: 'StoreRuleLog',
|
|
75
|
+
hidden:true,
|
|
76
|
+
component: () => import('@/viewStore/rule/log'),
|
|
77
|
+
meta: {
|
|
78
|
+
title: '修改记录',
|
|
79
|
+
activeMenu: '/store/rule-list',
|
|
80
|
+
roles:[store_selection.selectShopRuleEditlog]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
path: 'tasks',
|
|
85
|
+
name: 'TasksList',
|
|
86
|
+
component: () => import('@/viewStore/task/list'),
|
|
87
|
+
meta: {
|
|
88
|
+
title: '选店任务管理',
|
|
89
|
+
icon: 'xdicon_rizhi',
|
|
90
|
+
roles:[store_selection.selectShopTaskList]
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export default storeRouter
|
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
module.exports = {
|
|
4
|
+
name: 'store_selection',
|
|
5
|
+
title: '门店选品',
|
|
6
|
+
vuex: true,
|
|
7
|
+
model: [
|
|
8
|
+
{
|
|
9
|
+
title: "选店规则列表",
|
|
10
|
+
mapFn: "selectShopRuleList",
|
|
11
|
+
path: "/supplier-partner/v1/:xsiteid/:xnamespace/select-shop-rule/list",
|
|
12
|
+
isRule: false,
|
|
13
|
+
data: {
|
|
14
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
15
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
16
|
+
page_token: ['第几页', 'String', '选填'],
|
|
17
|
+
page_size: ['每页展示条数', 'Number', '选填'],
|
|
18
|
+
},
|
|
19
|
+
disabled: true,
|
|
20
|
+
role: '@@@@.@@@.SELECT_SHOP_RULE_LIST',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
title: "选店规则详情",
|
|
24
|
+
mapFn: "selectShopRuleGet",
|
|
25
|
+
path: "/supplier-partner/v1/:xsiteid/:xnamespace/select-shop-rule/get",
|
|
26
|
+
isRule: false,
|
|
27
|
+
params: {
|
|
28
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
29
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
30
|
+
rule_id: ['rule_id', 'String', '选填'],
|
|
31
|
+
},
|
|
32
|
+
disabled: true,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
title: "创建选店规则",
|
|
36
|
+
mapFn: "selectShopRuleAdd",
|
|
37
|
+
path: "/supplier-partner/v1/:xsiteid/:xnamespace/select-shop-rule/add",
|
|
38
|
+
isRule: false,
|
|
39
|
+
data: {
|
|
40
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
41
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
42
|
+
rule_name: ['规则名', 'String', '选填'],
|
|
43
|
+
rule_desc: ['规则描述', 'String', '选填'],
|
|
44
|
+
city_codes: ['城市集合', 'String', '选填'],
|
|
45
|
+
discount_type: ['折扣类型', 'String', '选填'],
|
|
46
|
+
start_discount: ['折扣范围开始', 'String', '选填'],
|
|
47
|
+
end_discount: ['折扣范围结束', 'String', '选填'],
|
|
48
|
+
consume_mode: ['门店服务类型', 'String', '选填'],
|
|
49
|
+
category_ids: ['公共分类ids集合', 'String', '选填'],
|
|
50
|
+
brand_type: ['品牌类型', 'String', '选填'],
|
|
51
|
+
brand_selected_method: ['品牌选择方式POS正选,INV反选', 'String', '选填'],
|
|
52
|
+
brand_ids: ['品牌ids 集合', 'String', '选填'],
|
|
53
|
+
supplier_ids: ['供应商ids集合', 'String', '选填'],
|
|
54
|
+
rule_channel_code: ['规则渠道code', 'String', '选填'],
|
|
55
|
+
sort: ['权重', 'String', '选填'],
|
|
56
|
+
status: ['状态', 'String', '选填'],
|
|
57
|
+
},
|
|
58
|
+
disabled: true,
|
|
59
|
+
role: '@@@@.@@@.SELECT_SHOP_RULE_ADD',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
title: "编辑选店规则",
|
|
63
|
+
mapFn: "selectShopRuleUpdate",
|
|
64
|
+
path: "/supplier-partner/v1/:xsiteid/:xnamespace/select-shop-rule/update",
|
|
65
|
+
isRule: false,
|
|
66
|
+
data: {
|
|
67
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
68
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
69
|
+
rule_id: ['rule_id', 'Number', '选填'],
|
|
70
|
+
rule_name: ['规则名', 'String', '选填'],
|
|
71
|
+
rule_desc: ['规则描述', 'String', '选填'],
|
|
72
|
+
city_codes: ['城市集合', 'String', '选填'],
|
|
73
|
+
discount_type: ['折扣类型', 'String', '选填'],
|
|
74
|
+
start_discount: ['折扣范围开始', 'String', '选填'],
|
|
75
|
+
end_discount: ['折扣范围结束', 'String', '选填'],
|
|
76
|
+
consume_mode: ['门店服务类型', 'String', '选填'],
|
|
77
|
+
category_ids: ['公共分类ids集合', 'String', '选填'],
|
|
78
|
+
brand_type: ['品牌类型', 'String', '选填'],
|
|
79
|
+
brand_selected_method: ['品牌选择方式POS正选,INV反选', 'String', '选填'],
|
|
80
|
+
brand_ids: ['品牌ids 集合', 'String', '选填'],
|
|
81
|
+
supplier_ids: ['供应商ids集合', 'String', '选填'],
|
|
82
|
+
rule_channel_code: ['规则渠道code', 'String', '选填'],
|
|
83
|
+
sort: ['权重', 'String', '选填'],
|
|
84
|
+
status: ['状态', 'String', '选填'],
|
|
85
|
+
},
|
|
86
|
+
disabled: true,
|
|
87
|
+
role: '@@@@.@@@.SELECT_SHOP_RULE_UPDATE',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
title: "选店规则条件",
|
|
91
|
+
mapFn: "selectShopRuleChannelRule",
|
|
92
|
+
path: "/supplier-partner/v1/:xsiteid/:xnamespace/select-shop-rule/channel-rule",
|
|
93
|
+
isRule: false,
|
|
94
|
+
params: {
|
|
95
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
96
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
97
|
+
channel_code: ['渠道code', 'String', '选填'],
|
|
98
|
+
brand_type: ['门店类型', 'String', '必填'],
|
|
99
|
+
},
|
|
100
|
+
disabled: true,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
title: "执行选品任务",
|
|
104
|
+
mapFn: "selectShopRuleExecTask",
|
|
105
|
+
path: "/supplier-partner/v1/:xsiteid/:xnamespace/select-shop-rule/exec-task",
|
|
106
|
+
isRule: false,
|
|
107
|
+
data: {
|
|
108
|
+
},
|
|
109
|
+
disabled: true,
|
|
110
|
+
role: '@@@@.@@@.SELECT_SHOP_RULE_EXEC_TASK',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
title: "选店规则记录列表",
|
|
114
|
+
mapFn: "selectShopRuleEditlog",
|
|
115
|
+
path: "/supplier-partner/v1/:xsiteid/:xnamespace/select-shop-rule/editlog",
|
|
116
|
+
isRule: false,
|
|
117
|
+
params: {
|
|
118
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
119
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
120
|
+
rule_id: ['rule_id', 'String', '选填'],
|
|
121
|
+
page_token: ['第几页', 'String', '选填'],
|
|
122
|
+
page_size: ['每页展示条数', 'Number', '选填'],
|
|
123
|
+
},
|
|
124
|
+
disabled: true,
|
|
125
|
+
role: '@@@@.@@@.SELECT_SHOP_RULE_EDIT_LOG',
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
title: "删除选店规则",
|
|
129
|
+
mapFn: "selectShopRuleDelete",
|
|
130
|
+
path: "/supplier-partner/v1/:xsiteid/:xnamespace/select-shop-rule/delete",
|
|
131
|
+
isRule: false,
|
|
132
|
+
data: {
|
|
133
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
134
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
135
|
+
rule_id: ['rule_id', 'String', '选填'],
|
|
136
|
+
},
|
|
137
|
+
disabled: true,
|
|
138
|
+
method:'delete',
|
|
139
|
+
role: '@@@@.@@@.SELECT_SHOP_RULE_DELETE',
|
|
140
|
+
},
|
|
141
|
+
|
|
142
|
+
{
|
|
143
|
+
title: "门店集市列表",
|
|
144
|
+
mapFn: "selectShopMarketList",
|
|
145
|
+
path: "/supplier-partner/v1/:xsiteid/:xnamespace/select-shop-market/list",
|
|
146
|
+
isRule: false,
|
|
147
|
+
data: {
|
|
148
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
149
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
150
|
+
fitler: ['fitler', 'String', '选填'],
|
|
151
|
+
page_token: ['第几页', 'String', '选填'],
|
|
152
|
+
page_size: ['每页展示条数', 'Number', '选填'],
|
|
153
|
+
},
|
|
154
|
+
disabled: true,
|
|
155
|
+
role: '@@@@.@@@.SELECT_SHOP_MARKET_LIST',
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
title: "门店集市选用",
|
|
159
|
+
mapFn: "selectShopMarketSelect",
|
|
160
|
+
path: "/supplier-partner/v1/:xsiteid/:xnamespace/select-shop-market/select",
|
|
161
|
+
isRule: false,
|
|
162
|
+
params: {
|
|
163
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
164
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
165
|
+
shop_id: ['shop_id', 'String', '选填'],
|
|
166
|
+
resource_shop_id: ['resource_shop_id', 'String', '选填'],
|
|
167
|
+
},
|
|
168
|
+
disabled: true,
|
|
169
|
+
role: '@@@@.@@@.SELECT_SHOP_MARKET_SELECT',
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
title: "门店集市聚合渠道过滤器",
|
|
173
|
+
mapFn: "selectShopMarketChannelFilters",
|
|
174
|
+
path: "/supplier-partner/v1/:xsiteid/:xnamespace/select-shop-market/channel-filters",
|
|
175
|
+
isRule: false,
|
|
176
|
+
params: {
|
|
177
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
178
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
179
|
+
channel_code: ['channel_code', 'String', '选填'],
|
|
180
|
+
},
|
|
181
|
+
disabled: true,
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
title: "选店任务列表",
|
|
185
|
+
mapFn: "selectShopTaskList",
|
|
186
|
+
path: '/supplier-partner/v1/:xsiteid/:xnamespace/select-shop-task/list',
|
|
187
|
+
isRule: false,
|
|
188
|
+
data: {
|
|
189
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
190
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
191
|
+
page_token: ['第几页', 'String', '选填'],
|
|
192
|
+
page_size: ['每页展示条数', 'Number', '选填'],
|
|
193
|
+
},
|
|
194
|
+
disabled: true,
|
|
195
|
+
role: '@@@@.@@@.SELECT_SHOP_TASK_LIST',
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
title: "选店任务详情",
|
|
199
|
+
mapFn: "selectShopTaskGet",
|
|
200
|
+
path: '/supplier-partner/v1/:xsiteid/:xnamespace/select-shop-task/get',
|
|
201
|
+
isRule: false,
|
|
202
|
+
params: {
|
|
203
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
204
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
205
|
+
task_id: ['task_id', 'String', '选填'],
|
|
206
|
+
},
|
|
207
|
+
disabled: true,
|
|
208
|
+
role: '@@@@.@@@.SELECT_SHOP_TASK_GET',
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
title: "选店任务停止",
|
|
212
|
+
mapFn: "selectShopTaskStop",
|
|
213
|
+
path: '/supplier-partner/v1/:xsiteid/:xnamespace/select-shop-task/stop',
|
|
214
|
+
isRule: false,
|
|
215
|
+
params: {
|
|
216
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
217
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
218
|
+
task_id: ['task_id', 'String', '选填'],
|
|
219
|
+
},
|
|
220
|
+
disabled: true,
|
|
221
|
+
role: '@@@@.@@@.SELECT_SHOP_TASK_STOP',
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
title: "已选门店列表",
|
|
225
|
+
mapFn: "selectShopList",
|
|
226
|
+
path: '/supplier-partner/v1/:xsiteid/:xnamespace/select-shop/list',
|
|
227
|
+
isRule: false,
|
|
228
|
+
data: {
|
|
229
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
230
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
231
|
+
page_token: ['第几页', 'String', '选填'],
|
|
232
|
+
page_size: ['每页展示条数', 'Number', '选填'],
|
|
233
|
+
filters:['filters', 'Array', '选填']
|
|
234
|
+
},
|
|
235
|
+
disabled: true,
|
|
236
|
+
role: '@@@@.@@@.SELECT_SHOP_LIST',
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
title: "已选门店列表导出",
|
|
240
|
+
mapFn: "selectShopListExport",
|
|
241
|
+
path: '/supplier-partner/v1/:xsiteid/:xnamespace/select-shop/list',
|
|
242
|
+
isRule: false,
|
|
243
|
+
data: {
|
|
244
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
245
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
246
|
+
page_token: ['第几页', 'String', '选填'],
|
|
247
|
+
page_size: ['每页展示条数', 'Number', '选填'],
|
|
248
|
+
filters:['filters', 'Array', '选填']
|
|
249
|
+
},
|
|
250
|
+
disabled: true,
|
|
251
|
+
role: '@@@@.@@@.SELECT_SHOP_LIST_EXPORT',
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
title: "已选门店上架",
|
|
255
|
+
mapFn: "selectShopUp",
|
|
256
|
+
path: '/supplier-partner/v1/:xsiteid/:xnamespace/select-shop/up',
|
|
257
|
+
isRule: false,
|
|
258
|
+
params: {
|
|
259
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
260
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
261
|
+
shop_id: ['shop_id', 'String', '选填'],
|
|
262
|
+
resource_shop_id: ['resource_shop_id', 'String', '选填'],
|
|
263
|
+
},
|
|
264
|
+
disabled: true,
|
|
265
|
+
role: '@@@@.@@@.SELECT_SHOP_UP',
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
title: "已选门店下架",
|
|
269
|
+
mapFn: "selectShopDown",
|
|
270
|
+
path: '/supplier-partner/v1/:xsiteid/:xnamespace/select-shop/down',
|
|
271
|
+
isRule: false,
|
|
272
|
+
params: {
|
|
273
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
274
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
275
|
+
shop_id: ['shop_id', 'String', '选填'],
|
|
276
|
+
resource_shop_id: ['resource_shop_id', 'String', '选填'],
|
|
277
|
+
},
|
|
278
|
+
disabled: true,
|
|
279
|
+
role: '@@@@.@@@.SELECT_SHOP_DOWN',
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
title: "已选门店移除",
|
|
283
|
+
mapFn: "selectShopDelete",
|
|
284
|
+
path: '/supplier-partner/v1/:xsiteid/:xnamespace/select-shop/delete',
|
|
285
|
+
isRule: false,
|
|
286
|
+
data: {
|
|
287
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
288
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
289
|
+
shop_id: ['shop_id', 'String', '选填'],
|
|
290
|
+
resource_shop_id: ['resource_shop_id', 'String', '选填'],
|
|
291
|
+
},
|
|
292
|
+
disabled: true,
|
|
293
|
+
method:'delete',
|
|
294
|
+
role: '@@@@.@@@.SELECT_SHOP_DELETE',
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
title: "已选门店选聚合渠道过滤器",
|
|
298
|
+
mapFn: "selectShopChannelFilters",
|
|
299
|
+
path: '/supplier-partner/v1/:xsiteid/:xnamespace/select-shop/channel-filters',
|
|
300
|
+
isRule: false,
|
|
301
|
+
params: {
|
|
302
|
+
xsiteid: ['站点Id', 'String', '必填'],
|
|
303
|
+
xnamespace: ['命名空间', 'String', '必填'],
|
|
304
|
+
channel_code: ['channel_code', 'String', '选填'],
|
|
305
|
+
},
|
|
306
|
+
disabled: true,
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
mapFn: 'shopGet',
|
|
310
|
+
isRule: false,
|
|
311
|
+
title: '获取门店详情',
|
|
312
|
+
path: '/supplier-partner/v1/shop/get',
|
|
313
|
+
params: {
|
|
314
|
+
shop_id: ['shop_id', 'String', '必填', ''],
|
|
315
|
+
},
|
|
316
|
+
disabled: true,
|
|
317
|
+
role: '@@@@.@@@.SELECT_SHOP_GET',
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
mapFn: 'selectShopGet',
|
|
321
|
+
isRule: false,
|
|
322
|
+
title: '已选门店详情',
|
|
323
|
+
path: '/supplier-partner/v1/:xsiteid/:xnamespace/select-shop/get',
|
|
324
|
+
params: {
|
|
325
|
+
shop_id: ['shop_id', 'String', '必填', ''],
|
|
326
|
+
},
|
|
327
|
+
disabled: true,
|
|
328
|
+
role: '@@@@.@@@.SELECT_SHOP_GET',
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
mapFn: 'selectShopMarketGet',
|
|
332
|
+
isRule: false,
|
|
333
|
+
title: '门店集市详情',
|
|
334
|
+
path: '/supplier-partner/v1/:xsiteid/:xnamespace/select-shop-market/get',
|
|
335
|
+
params: {
|
|
336
|
+
shop_id: ['shop_id', 'String', '必填', ''],
|
|
337
|
+
},
|
|
338
|
+
disabled: true,
|
|
339
|
+
role: '@@@@.@@@.SELECT_SHOP_MARKET_GET',
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
mapFn: 'getSubCity',
|
|
343
|
+
isRule: false,
|
|
344
|
+
title: '三级联动',
|
|
345
|
+
path: '/common-public/v1/region/city/getsub',
|
|
346
|
+
params: {
|
|
347
|
+
parent_code: ['父级code', 'String', '必填', ''],
|
|
348
|
+
},
|
|
349
|
+
disabled: true,
|
|
350
|
+
role: 'getSubCity',
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
mapFn: 'shopCategoryList',
|
|
354
|
+
isRule: false,
|
|
355
|
+
title: '门店分类',
|
|
356
|
+
path: '/supplier-partner/v1/shop-category/list',
|
|
357
|
+
params: {
|
|
358
|
+
parent_id: ['parent_id', 'Number', '必填', ''],
|
|
359
|
+
page_token: ['页数', 'String|Number', '必填', 1],
|
|
360
|
+
page_size: ['每页条数', 'String|Number', '必填', 20],
|
|
361
|
+
status: ['status', 'String', '必填', 'Y'],
|
|
362
|
+
},
|
|
363
|
+
disabled: true,
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
mapFn: 'editlogDetail',
|
|
367
|
+
isRule: false,
|
|
368
|
+
title: '编辑选店规则记录详情',
|
|
369
|
+
path: '/supplier-partner/v1/:xsiteid/:xnamespace/select-shop-rule/editlog-detail',
|
|
370
|
+
params: {
|
|
371
|
+
id: ['id', 'Number', '必填', ''],
|
|
372
|
+
},
|
|
373
|
+
disabled: true,
|
|
374
|
+
},
|
|
375
|
+
],
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="app-container">
|
|
3
|
+
<!-- <el-card class="app-container__content"> -->
|
|
4
|
+
<xd-detail v-if="status" :list="tables"></xd-detail>
|
|
5
|
+
<!-- </el-card> -->
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
|
|
11
|
+
import XdDetail from "@/components/XdDetail";
|
|
12
|
+
import XdTable from "@/components/XdTable.vue";
|
|
13
|
+
import XdDialog from "@/components/XdDialog"
|
|
14
|
+
import checkPermission from "@/utils/permission";
|
|
15
|
+
import { Loading } from "element-ui";
|
|
16
|
+
import {
|
|
17
|
+
mapActions,
|
|
18
|
+
mapState,
|
|
19
|
+
} from 'vuex'
|
|
20
|
+
|
|
21
|
+
export default {
|
|
22
|
+
name: "edit",
|
|
23
|
+
components: {
|
|
24
|
+
XdDetail,
|
|
25
|
+
XdTable,
|
|
26
|
+
XdDialog,
|
|
27
|
+
},
|
|
28
|
+
// mixins: [mixXdCascadeSelect],
|
|
29
|
+
props:{
|
|
30
|
+
id: {
|
|
31
|
+
type: Number,
|
|
32
|
+
},
|
|
33
|
+
type: {
|
|
34
|
+
type: String,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
data () {
|
|
38
|
+
return {
|
|
39
|
+
status: false,
|
|
40
|
+
tables: [],
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
async created () {
|
|
45
|
+
this.title = this.$route['meta']['title']
|
|
46
|
+
let id = this.id
|
|
47
|
+
let type = this.type
|
|
48
|
+
this.getDetail(id,type)
|
|
49
|
+
},
|
|
50
|
+
methods: {
|
|
51
|
+
...mapActions('store_selection', [
|
|
52
|
+
'shopGet',
|
|
53
|
+
'selectShopGet',
|
|
54
|
+
'selectShopMarketGet'
|
|
55
|
+
]),
|
|
56
|
+
|
|
57
|
+
getDetail(id,type) {
|
|
58
|
+
console.log(type,'ttt')
|
|
59
|
+
let loading = Loading.service({});
|
|
60
|
+
//正式数据调用模版
|
|
61
|
+
if(type==='select'){
|
|
62
|
+
this.selectShopGet({ shop_id: id }).then((info) => {
|
|
63
|
+
loading.close();
|
|
64
|
+
this.tables = info.data['containers'];
|
|
65
|
+
this.status = true;
|
|
66
|
+
}).catch(err=>{
|
|
67
|
+
loading.close();
|
|
68
|
+
});
|
|
69
|
+
}else{
|
|
70
|
+
this.selectShopMarketGet({ shop_id: id }).then((info) => {
|
|
71
|
+
loading.close();
|
|
72
|
+
this.tables = info.data['containers'];
|
|
73
|
+
this.status = true;
|
|
74
|
+
}).catch(err=>{
|
|
75
|
+
loading.close();
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
},
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
</script>
|
|
83
|
+
|
|
84
|
+
<style scoped lang="scss">
|
|
85
|
+
.app-container {
|
|
86
|
+
&__title {
|
|
87
|
+
font-size: 16px;
|
|
88
|
+
line-height: 24px;
|
|
89
|
+
padding: 0 0 20px;
|
|
90
|
+
font-weight: bold;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&__body {
|
|
94
|
+
& ::v-deep .el-tabs__content {
|
|
95
|
+
padding-top: 20px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.adjust-btn {
|
|
101
|
+
margin-left: 115px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@media screen and (max-width: 768px) {
|
|
105
|
+
.app-container {
|
|
106
|
+
&__title {
|
|
107
|
+
padding: 0 0 10px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
& ::v-deep .el-card__body {
|
|
111
|
+
padding: 10px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&__body {
|
|
115
|
+
& ::v-deep .el-tabs__content {
|
|
116
|
+
padding-top: 10px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
</style>
|