yohoCoin.js
4.94 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
exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.214:8088/platform';
exports.res = [
/*************************yoho币管理页面接口*******************************/
{//yoho币管理页面渲染
route: '/goods/yohoCoin/index',
method: 'GET',
view: 'pages/goods/yohoCoin',
src:'/goods/yohoCoin',
'data': {
pagetitle: {
level1title: '商品管理',
level2title: '价格管理',
level3title: 'YOHO币管理'
},
filter: {
skn: true,
store: true,
brand: true,
supplier: true,
gender: true,
sortTree: true,
returnCoinTime: false,
bulkImport: true,
bulkExport: true
},
gridurl: '/good/yohoCoin/queryPageList'
}
},
{//yoho币管理列表查询
route: "/good/yohoCoin/queryPageList",
method: "POST",
url: "/yohoCoin/queryPageList",
params:[
{name: 'productSkn', type: 'Number'},
{name: 'shopId', type: 'Number'},
{name: 'brandId', type: 'Number'},
{name: 'supplierId', type: 'Number'},
{name: 'gender', type: 'String'},
{name: 'auditStatus', type: 'Number'},
{name: 'maxSortId', type: 'Number'},
{name: 'middleSortId', type: 'Number'},
{name: 'smallSortId', type: 'Number'},
{name: 'sortId', type: 'Number'},
{name: 'page', type: 'Number'}
]
},
{//编辑保存yoho币
route: "/good/yohoCoin/set",
method: "POST",
url: "/yohoCoin/set",
params:[
{name: 'productSkn', type: 'Number'},
{name: 'returnCoinMoney', type: 'Number'},
{name: 'salesPrice', type: 'Number'},
{name: 'auditorId', type: 'Number'}
]
},
{//批量上传TaskId查询
route: "/yohoCoin/importResult/queryBatchImportResult",
method: "POST",
url: "/importResult/queryBatchImportResult",
params:[
{name: 'param', type: 'String'},
]
},
{//批量确认提交
route: "/good/yohoCoin/insertBatch",
method: "POST",
url: "/yohoCoin/insertBatch",
params:[
{name: 'auditorId', type: 'Number'},
{name: 'productPrices', type: 'String'}
]
},
/*************************yoho币审核页面接口*******************************/
{//yoho币审核页面渲染
route: '/goods/yohoCoin/Audit',
method: 'GET',
view: 'pages/goods/yohoCoinAudit',
src:'/goods/yohoCoinAudit',
'data': {
pagetitle: {
level1title: '商品管理',
level2title: '价格管理',
level3title: 'YOHO币审核'
},
filter: {
skn: true,
store: true,
brand: true,
supplier: true,
gender: true,
auditor: true,
sortTree: true,
returnCoinTime: false
},
gridurl: '/good/yohoCoin/queryPageList4Audit'
}
},
{//yoho币审核列表查询
route: "/good/yohoCoin/queryPageList4Audit",
method: "POST",
url: "/yohoCoin/queryPageList4Audit ",
params:[
{name: 'auditStatus', type: 'Number'},
{name: 'productSkn', type: 'Number'},
{name: 'shopId', type: 'Number'},
{name: 'brandId', type: 'Number'},
{name: 'supplierId', type: 'Number'},
{name: 'gender', type: 'String'},
{name: 'auditorId', type: 'Number'},
{name: 'maxSortId', type: 'Number'},
{name: 'middleSortId', type: 'Number'},
{name: 'smallSortId', type: 'Number'},
{name: 'sortId', type: 'Number'},
{name: 'page', type: 'Number'}
]
},
{//审核通过
route: "/good/yohoCoin/pass",
method: "POST",
url: "/yohoCoin/pass",
params:[
{name: 'productSkn', type: 'Number'},
]
},
{//批量审核通过
route: "/good/yohoCoin/passBatch",
method: "POST",
url: "/yohoCoin/passBatch",
params:[
{name: 'productSkns', type: 'String'},
]
},
{//驳回
route: "/good/yohoCoin/reject",
method: "POST",
url: "/yohoCoin/reject",
params:[
{name: 'productSkn', type: 'Number'},
{name: 'comment', type: 'String'},
]
},
{//批量驳回
route: "/good/yohoCoin/rejectBatch",
method: "POST",
url: "/yohoCoin/rejectBatch",
params:[
{name: 'productSkns', type: 'String'},
{name: 'comment', type: 'String'},
]
}
]