price.js
4.93 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
exports.domain = require('../config/common.js').domain;
exports.res = [
{
//价格管理 -> 代销变价页面渲染
route: '/goods/pricechange/index',
method: 'GET',
view: 'pages/goods/price-mgmt',
src: '/goods/price-change',
data: {
headerTab: {
changePrice: true
},
secondTitle: '价格管理',
pageTitle: '代销变价',
filter: {
skn: true,
store: true,
brand: true,
supplier: true,
jit: true,
onStatus: true,
stock: true,
gender: true,
aCate: true
},
bulkImport: true, //批量导入
bottons: '{"edit":true,"columnsHidisFr":true}',
gridurl: '/goods/price/list',
domain: exports.domain,
download: 'batchUpdatePrice'
}
}, {
//代销变价 -> 列表数据
route: '/goods/price/list',
method: 'POST',
url: '/product/queryProductPriceList',
params: [{
name: 'product_skn',
type: 'Number'
}, {
name: 'shop_id',
type: 'Number'
}, {
name: 'brand_id',
type: 'Number'
}, {
name: 'supplier_id',
type: 'Number'
}, {
name: 'is_jit',
type: 'String'
}, {
name: 'is_auditing',
type: 'Number'
}, {
name: 'stock',
type: 'Number'
}, {
name: 'gender',
type: 'Number'
}, {
name: 'max_sort_id',
type: 'Number'
}, {
name: 'middle_sort_id',
type: 'Number'
}, {
name: 'small_sort_id',
type: 'Number'
}, {
name: 'page',
type: 'Number'
}, {
name: 'size',
type: 'Number'
}]
}, {
//代销变价 -> 获得单个变价详情
route: '/goods/getPrice',
method: 'POST',
url: '/product/getProductPrice',
params: [{
name: 'param',
type: 'Number'
}]
}, {
//单个变价接口
route: '/goods/updatePrice',
method: 'POST',
url: '/product/updateProductPrice',
params: [{
name: 'product_skn',
type: 'number'
}, {
name: 'sales_price',
type: 'number'
}, {
name: 'vip_discount_type',
type: 'number'
}, {
name: 'return_coin',
type: 'number'
}, {
name: 'vip_price',
type: 'number'
}, {
name: 'vip1_price',
type: 'number'
}, {
name: 'vip2_price',
type: 'number'
}, {
name: 'vip3_price',
type: 'number'
}]
}, {
//批量变价接口
route: '/goods/batchUpdatePrice',
method: 'POST',
url: '/product/batchUpdateProductPrice',
params: [{
name: 'batchList',
type: 'String'
}]
}, {
//价格管理 -> 品牌合作模式页面渲染
route: '/goods/brandCooperation/index',
method: 'GET',
view: 'pages/goods/price-mgmt',
src: '/goods/brand-cooperation',
data: {
headerTab: {
brandCooperation: true
},
secondTitle: '价格管理',
pageTitle: '品牌合作模式设置',
filter: {
brand: true,
brandCooperation: true,
brandCooperationSet: true
},
bulkImport: true,
bottons: '{"edit":true,"columnsHidisFr":true}',
gridurl: '/goods/brandCooperation/list',
domain: exports.domain,
download: 'brandCooperation'
}
}, {
//品牌合作模式 -> 列表数据
route: '/goods/brandCooperation/list',
method: 'POST',
url: '/brandCooperation/queryBrandCooperationList',
params: [{
name: 'cooperateTypeId',
type: 'Number'
}, {
name: 'brandId',
type: 'number'
}, {
name: 'setFlag',
type: 'Number'
}, {
name: 'page',
type: 'Number'
}, {
name: 'size',
type: 'Number'
}]
}, {
//品牌合作模式 -> 修改合作模式
route: '/goods/brandCooperation/update',
method: 'POST',
url: '/brandCooperation/saveBrandCooperation',
params: [{
name: 'id',
type: 'Number'
}, {
name: 'cooperateTypeId',
type: 'String'
}, {
name: 'brandId',
type: 'Number'
}]
}
]