list.js
9.28 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
/**
* 桩数据
* @author h1bomb
*/
module.exports = {
'/supplier/create/list/ajax': function(req, res) {
res.json({
code: 200,
data: [{
id:1,
name: '芘芘國際有限公司',
updateTime: '2016-01-21 09:44:28',
status: 2
}, {
id:2,
name: '南京恒睿电子商务有限公司',
updateTime: '2016-01-14 16:38:03',
status: 0
}, {
id:3,
name: '广州市周子服饰有限公司',
updateTime: '2016-01-14 16:30:23',
status: 2
}]
})
},
'/supplier/create/filter/ajax': function(req, res) {
res.json({
code: 200,
data: [{
name: '芘芘國際有限公司',
updateTime: '2016-01-21 09:44:28',
status: 2
}]
})
},
'/supplier/index/submit/ajax': function(req, res) {
res.json({
code: 200,
message: '提交成功'
});
},
'/supplier/manage/list': function(req, res) {
res.json({
code: 200,
data: [{
id:1,
name: '心飞扬有限公司',
updateTime: '2016-01-21 11:05:14',
recentOperation: '编辑',
status: 0,
valid: 1
}, {
id:2,
name: '上海热力贸易有限公司',
updateTime: '2016-01-21 18:18:04',
recentOperation: '创建',
status: 1,
valid: 0
}, {
id:3,
name: '广州市烨德商贸有限公司',
updateTime: '2016-01-14 18:11:47',
recentOperation: '创建',
status: 1,
valid: 1
}]
})
},
'/supplier/index/freeze/ajax': function(req, res) {
res.json({
code: 200,
message: '提交审核成功'
});
},
'/supplier/index/recovery/ajax': function(req, res) {
res.json({
code: 200,
message: '提交审核成功'
});
},
'/supplier/audit/list': function(req, res) {
res.json({
code: 200,
data: [{
id:1,
name: '心飞扬有限公司',
updateTime: '2016-01-21 11:05:14',
recentOperation: '编辑'
}, {
id:2,
name: '上海热力贸易有限公司',
updateTime: '2016-01-21 18:18:04',
recentOperation: '创建'
}, {
id:3,
name: '广州市烨德商贸有限公司',
updateTime: '2016-01-14 18:11:47',
recentOperation: '创建'
}]
})
},
'/brand/create/list': function(req, res) {
res.json({
code: 200,
data: [{
logo: 'http://img10.static.yhbimg.com/brandLogo/2016/01/18/03/01f7e2adcbe8701d1b3f367157820ea59f.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
nameCn: '心飞扬',
nameEn: 'xinfeiyang',
level: 'KA',
score: '0',
time: '2016-01-18 11:18:20',
operate: 1
}, {
logo: 'http://img13.static.yhbimg.com/brandLogo/2016/01/14/08/02ba05d8de88846dd34787e9780afb408a.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
nameCn: 'A.A.SPECTRUM',
nameEn: 'A.A.SPECTRUM',
level: 'C',
score: '0',
time: '2016-01-14 16:34:42',
operate: 0
}]
})
},
'/brand/index/close/ajax': function(req, res) {
res.json({
code: 200,
message: '操作成功'
});
},
'/brand/index/open/ajax': function(req, res) {
res.json({
code: 200,
message: '操作成功'
});
},
'/pact/create/list': function(req, res) {
res.json({
code: 200,
data: [{
name: '网络代理销售合同PUCCA',
number: '16YH33',
supplier: '广州市动尚卡通产品有限公司',
brand: ['PUCCA', '111', '333'],
pattern: '代销入库',
attr: '主合同',
timeFrom: '2015-12-31',
timeTo: '2016-12-30',
operate: '创建',
status: 0
}, {
name: '网络代理销售合同自然元素&FairyFair&小淑女与约翰little fairy&john&淑女生活',
number: '15YHZ9',
supplier: '深圳市淑女屋时装股份有限公司',
brand: ['自然元素', '淑女屋'],
pattern: '代销入库',
attr: '主合同',
timeFrom: '2015-12-31',
timeTo: '2016-12-30',
operate: '创建',
status: 2
}, {
name: '网络代理销售合同uncommon&Power Support&RetinaGuard&HOMI',
number: '15YHZ9',
supplier: '深圳市淑女屋时装股份有限公司',
brand: ['Uncommon'],
pattern: '代销入库',
attr: '主合同',
timeFrom: '2015-12-31',
timeTo: '2016-12-30',
operate: '创建',
status: 3
}]
})
},
'/pact/add/list/ajax': function(req, res) {
res.json({
code: 200,
data: [{
name: '上海热力贸易有限公司',
pattern: '代销入库',
operate: true
}, {
name: '上海热力贸易有限公司',
pattern: '代销入库',
operate: false
}]
})
},
'/pact/manage/list/ajax': function(req, res) {
res.json({
code: 200,
data: [{
name: '网络代理销售合同PUCCA',
number: '16YH33',
supplier: '广州市动尚卡通产品有限公司',
brand: ['PUCCA'],
pattern: '代销入库',
attr: '主合同',
timeFrom: '2015-12-31',
timeTo: '2016-12-30',
operate: 1,
status: 0
}, {
name: '网络代理销售合同PUCCA',
number: '16YH33',
supplier: '广州市动尚卡通产品有限公司',
brand: ['PUCCA'],
pattern: '代销入库',
attr: '主合同',
timeFrom: '2015-12-31',
timeTo: '2016-12-30',
operate: 1,
status: 1
}, {
name: '心飞扬jit主合同',
number: 'xinfeiyang20160118',
supplier: '心飞扬有限公司',
brand: ['心飞扬', 'aa'],
pattern: '代销入库',
attr: '主合同',
timeFrom: '2015-12-31',
timeTo: '2016-12-30',
operate: 2,
status: 1
}, {
name: '网络代理销售合同MarcByMarcJacobs&Kenzo&BLOCCO5&B5BYBLOCCO5',
number: '15YHM55',
supplier: '埃科斯丹(上海)商贸股份有限公司 ',
brand: ['MARC BY MARC JACOBS', 'B5 BY BLOCCO5', 'BLOCCO5', 'KENZO'],
pattern: '代销入库',
attr: '主合同',
timeFrom: '2015-12-31',
timeTo: '2016-12-30',
operate: 0,
status: 1
}]
})
},
'/pact/manage/modify/ajax': function(req, res) {
res.json({
code: 200,
message: '操作成功'
});
},
'/pact/manage/renew/ajax': function(req, res) {
res.json({
code: 200,
message: '操作成功'
});
},
'/pact/manage/relieve/ajax': function(req, res) {
res.json({
code: 200,
message: '操作成功'
});
},
'/pact/audit/list/ajax': function(req, res) {
res.json({
code: 200,
data: [{
name: '网络代理销售合同PUCCA',
number: '16YH33',
supplier: '广州市动尚卡通产品有限公司',
brand: ['PUCCA'],
pattern: '代销入库',
attr: '主合同',
time: '2016-01-13',
timeFrom: '2015-12-31',
timeTo: '2016-12-30'
}, {
name: '心飞扬jit主合同',
number: 'xinfeiyang20160118',
supplier: '心飞扬有限公司',
brand: ['心飞扬', 'aa'],
pattern: '代销入库',
attr: '主合同',
time: '2016-01-12',
timeFrom: '2015-12-31',
timeTo: '2016-12-30'
}]
})
}
}