store.js
9.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
exports.domain = require('../config/common.js').domain;
//路由配置
exports.res = [{
// 店铺创建列表页面
route: '/supplier/store/index',
method: 'GET',
view: 'pages/store/index',
noApi:true,
data: {
gridurl:'/supplier/store/indexPage',
authority:'{"btn":false,"info":false,"create":true,"operationStatus":1,"checkStatusArr":"100,200,900"}',
add:true,
pagetitle:{
level1title:"店铺管理",
level2title:"创建店铺管理",
level3title:"创建店铺列表"
},
dropCheckStatus:true
},
src:'/store/index'
},{
// 店铺信息管理页面
route: '/supplier/store/examine',
method: 'GET',
view: 'pages/store/index',
noApi:true,
data: {
gridurl:'/supplier/store/indexPage',
authority:'{"btn":true,"operationStatus":2,"checkStatusArr":"200,300,900"}', //300,200,900
dropCheckStatus:true,
pagetitle:{
level1title:"店铺管理",
level2title:"店铺信息管理",
level3title:"店铺信息列表"
}
},
src:'/store/index',
},{
// 店铺审核管理页面
route: '/supplier/check/index',
method: 'GET',
view: 'pages/store/index',
noApi:true,
data: {
gridurl:'/supplier/store/indexPage',
authority:'{"btn":false,"info":true,"operationStatus":0,"checkStatusArr":"200"}',
pagetitle:{
level1title:"店铺管理",
level2title:"店铺审核管理",
level3title:"店铺审核列表"
}
},
src:'/store/index',
},{
//获取列表数据
route: '/supplier/store/indexPage',
method: 'POST',
url:"/ShopsRest/getShopList",
isJsonRaw:true,
params:[
{name: 'supplierId', type: 'Number'},
{name: 'brandId', type: 'Number'},
{name: 'operationStatus', type: 'Number'},
{name: 'checkStatus', type: 'Number'},
{name: 'checkStatusArr', type: 'String'},
{name: 'size', type: 'Number'},
{name: 'page', type: 'Number'}
]
},{
// 关店
route: '/supplier/store/closeShops',
method: 'POST',
url:"/ShopsRest/closeShops",
isJsonRaw:true,
params:[
{name:"shopsId",type:"Number"}
]
},{
// 开店
route: '/supplier/store/openShops',
method: 'POST',
url:"/ShopsRest/openShops",
isJsonRaw:true,
params:[
{name:"shopsId",type:"Number"}
]
}
,{
// 店铺详细信息页面渲染
route: '/supplier/store/info/:shopsId',
method: 'GET',
view: 'pages/store/info',
url:"/ShopsRest/getShopDetailById",
isJsonRaw:true,
params:[{
name:'shopsId',
type:'String'
}],
src:'/store/info'
}
,{
// 店铺详细信息页面渲染
route: '/supplier/store/infocmd/:shopsId',
method: 'GET',
view: 'pages/store/info',
url:"/ShopsRest/getShopDetailById",
isJsonRaw:true,
params:[{
name:'shopsId',
type:'String'
}],
data:{
data:{
btn:true
}
},
src:'/store/info'
},
{//审核通过
route: '/Shops/ShopsRest/checkShopPass',
method:"POST",
url:"/ShopsRest/checkShopPass",
isJsonRaw:true,
params:[
{name:"shopsId",type:"Number"}
]
},
{//驳回
route: '/Shops/ShopsRest/checkReject',
method:"POST",
url:"/ShopsRest/checkReject",
isJsonRaw:true,
params:[
{name:"shopsId",type:"Number"}
]
}
//*******************************
,{
// 修改店铺页面渲染
route: '/supplier/store/update/:shopsId',
method: 'GET',
view: 'pages/store/edit',
url:"/ShopsRest/getShopDetailById",
isJsonRaw:true,
params:[{
name:'shopsId',
type:'String'
}],
data:{
pageTitel:"修改店铺",
action:'/store/update',
},
src:'/store/edit'
},{
// 修改店铺页面提交
route: '/store/update',
method: 'POST',
url: '/ShopsRest/updateShops',
isJsonRaw: true,
params:[
{name:"shopsId",type:"Number"},
{name:"shopName",type:"String"},
{name:"shopDomain",type:"String"},
{name:"shopNature",type:"Number"},
{name:"websiteUrl",type:"String"},
{name:"otherUrl",type:"String"},
{name:"shopAddress",type:"String"},
{name:"createPid",type:"Number"},
{name:"shopsType",type:"Number"},
{name:"shopLogo",type:"String"},
{name:"shopIntro",type:"String"},
{name:"onCheck",type:"Number"},
{name:"shopRelation",type:"String"}
]
},{
// 新增店铺页面渲染
route: '/supplier/store/add',
method: 'GET',
view: 'pages/store/edit',
src:'/store/edit',
noApi:true,
data:{
pageTitel:"创建店铺",
action:'/store/add',
data:{
shopId:0
}
}
}, {// 新增店铺数据
route: '/store/add',
method: 'POST',
url: '/ShopsRest/addShops',
isJsonRaw: true,
params:[
{name:"shopId",type:"Number",def:0},
{name:"shopName",type:"String"},
{name:"shopDomain",type:"String"},
{name:"shopNature",type:"Number"},
{name:"createPid",type:"Number"},
{name:"shopsType",type:"Number"},
{name:"shopLogo",type:"String"},
{name:"shopIntro",type:"String"},
{name:"websiteUrl",type:"String"},
{name:"otherUrl",type:"String"},
{name:"shopAddress",type:"String"},
{name:"onCheck",type:"Number"},
{name:"shopRelation",type:"String"}
]
}
//***********************************
,{
// 店铺管理员关系列表
route: '/supplier/storeadmin/index',
method: 'GET',
view: 'pages/store/adminindex',
noApi:true,
data: {
gridurl:'/supplier/storeadmin/indexPage'
},
src:'/store/adminindex'
},{
// 店铺管理员关系列表
route: '/supplier/storeadmin/indexPage',
method: 'POST',
url:"/ShopsAdminRest/getShopsAdminList",
isJsonRaw:true,
params:[
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},{
// 移除店铺管理员关系列表
route: '/supplier/storeadmin/delete',
method: 'POST',
url:"/ShopsAdminRest/delAdminRelation",
isJsonRaw:true,
params:[
{name:"id",type:"Number"}
]
}
,{
// 店铺管理员关系新增
route: '/supplier/storeadmin/adminAdd',
method: 'GET',
view: 'pages/store/adminedit',
src:'/store/adminedit'
},{
// 店铺管理员关系新增
route: '/supplier/storeadmin/addguanxi',
method: 'POST',
url:"/ShopsAdminRest/addAdminRelation",
isJsonRaw:true,
params:[
{name:"shopsId",type:"Number"},
{name:"adminPid",type:"Number"},
{name:"identity",type:"Number"}
]
},{
// 修改店铺页面渲染
route: '/supplier/store/adminupdate/:id',
method: 'GET',
view: 'pages/store/adminedit',
url:"/ShopsAdminRest/getAdminRelationDetailById",
isJsonRaw:true,
params:[{
name:'id',
type:'String'
}],
src:'/store/adminedit'
},{
// 修改店铺管理员关系
route: '/supplier/storeadmin/updateguanxi',
method: 'POST',
url:"/ShopsAdminRest/updateAdminRalation",
isJsonRaw:true,
params:[
{name:"id",type:"Number"},
{name:"shopsId",type:"Number"},
{name:"adminPid",type:"Number"},
{name:"identity",type:"Number"}
]
},{
// 根据身份选择管理员
route: '/supplier/storeadmin/managerName',
method: 'POST',
url:"/ShopsAdminRest/getUsersByIdentity",
isJsonRaw:true,
src:'/store/adminedit',
params:[
{name:"identity",type:"Number"}
]
},{
// 根据品牌选择供应商
route: '/supplier/storeadmin/supplierlist',
method: 'POST',
url:"/supplier/supplier/selectSupplierByBrandId",
isJsonRaw:true,
params:[
{name:"brandId",type:"Number"}
]
},{
// 店铺列表
route: '/ShopsRest/getShopsByName',
method: 'POST',
url:"/ShopsRest/selectCheckPassShopsByName",
isJsonRaw:true,
params:[
{name:"idName",type:"String"}
]
}
]