pact.js
10.9 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
module.exports = {
'/pact/create/list': function (req, res) {
res.json({
code: 200,
message:'请求成功',
data: {
list: [
{
agreementId:'1',
agreementName: '网络代理销售合同PUCCA',
agreementCode: '16YH33',
supplierName: '广州市动尚卡通产品有限公司',
brand: ['PUCCA', '111', '333'],
businessModelName: '代销入库',
agreementTypeName: '主合同',
agreementStartTime: '2015-12-31',
agreementEndTime: '2016-12-30',
operationsName: '创建',
status: 200
}
],
page: 1,
totalpage: 142,
size: 50,
total:1000
}
})
},
'/pact/add/list/ajax': function(req, res) {
res.json({
code: 200,
message: '请求成功',
data: {
list: [{
agreementName: '上海热力贸易有限公司',
businessModelName: '代销入库',
operateName: "添加补充合同"
}, {
agreementName: '上海热力贸易有限公司',
businessModelName: '代销入库',
operateName: "添加主合同"
}],
page: 1,
totalpage: 142,
size: 50,
total: 1000
}
})
},
'/interface/pact/info':function(req, res){
var JSON = {
contractsDatas: '[{"operation_service":{"type":"1","name":"代运营-YOHO运营","value":"0.00"},"photographic_service":{"type":"1","name":"使用摄影服务","value":"0.00"},"size_service":{"type":"1","name":"使用尺码测量","value":"0.00"},"storage_service_koudian":"0.00","ruledatas":[{"maxSort":{"name":"所有一级目录","value":"0"},"middleSort":{"name":"所有二级目录","value":"0"},"smallSort":{"name":"所有三级目录","value":"0"},"sort":{"name":"所有四级目录","value":"0"},"commissions":[{"zhe":"0","kou":"0.00"}],"discount":"0","key":"0-0-0-0"}],"supplier_name":{"name":"上海热力贸易有限公司","value":"1120"}},{"operation_service":{"type":"1","name":"代运营-YOHO运营","value":"0.00"},"photographic_service":{"type":"1","name":"使用摄影服务","value":"0.00"},"size_service":{"type":"1","name":"使用尺码测量","value":"0.00"},"storage_service_koudian":"0.00","ruledatas":[{"maxSort":{"name":"所有一级目录","value":"0"},"middleSort":{"name":"所有二级目录","value":"0"},"smallSort":{"name":"所有三级目录","value":"0"},"sort":{"name":"所有四级目录","value":"0"},"commissions":[{"zhe":"0","kou":"0.00"}],"discount":"0","key":"0-0-0-0"}],"supplier_name":{"name":"广州市烨德商贸有限公司","value":"1205"}}]',
agreementEndTime: "2016-01-29",
agreementName: "111",
agreementStartTime: "2016-01-05",
settlementPeriod: '2',
invoiceType: '3',
agreementCode: '111',
agreementFile: "http://img01.yohoboys.com/o_1a9mt81m1to11hg0d5t13de1idj7.png?imageMogr2/auto-orient/thumbnail/x100/gravity/Center/quality/100/crop/625x794/format/png",
agreementId: "1"
}
res.json(JSON);
},
'/interface/supplier/agreement/save':function(req,res){
res.json({
code: 200,
message: '添加成功!'
});
},
'/interface/sort/type/ajax':function(req,res){
var JSON=[{name:"男装",value:"0"},{name:"男装",value:"0"},{name:"男装",value:"0"}];
res.json(JSON);
},
'/interface/supplier/update':function(req,res){
var JSON={
contractsDatas: '[{"operation_service":{"type":"1","name":"代运营-YOHO运营","value":"0.00"},"photographic_service":{"type":"1","name":"使用摄影服务","value":"0.00"},"size_service":{"type":"1","name":"使用尺码测量","value":"0.00"},"storage_service_koudian":"0.00","ruledatas":[{"maxSort":{"name":"所有一级目录","value":"0"},"middleSort":{"name":"所有二级目录","value":"0"},"smallSort":{"name":"所有三级目录","value":"0"},"sort":{"name":"所有四级目录","value":"0"},"commissions":[{"zhe":"0","kou":"0.00"}],"discount":"0","key":"0-0-0-0"}],"supplier_name":{"name":"上海热力贸易有限公司","value":"1120"}},{"operation_service":{"type":"1","name":"代运营-YOHO运营","value":"0.00"},"photographic_service":{"type":"1","name":"使用摄影服务","value":"0.00"},"size_service":{"type":"1","name":"使用尺码测量","value":"0.00"},"storage_service_koudian":"0.00","ruledatas":[{"maxSort":{"name":"所有一级目录","value":"0"},"middleSort":{"name":"所有二级目录","value":"0"},"smallSort":{"name":"所有三级目录","value":"0"},"sort":{"name":"所有四级目录","value":"0"},"commissions":[{"zhe":"0","kou":"0.00"}],"discount":"0","key":"0-0-0-0"}],"supplier_name":{"name":"广州市烨德商贸有限公司","value":"1205"}}]',
agreementEndTime: "2016-01-29",
agreementName: "111",
agreementStartTime: "2016-01-05",
settlementPeriod: '2',
invoiceType: '3',
agreementCode: '111',
agreementFile: "http://img01.yohoboys.com/o_1a9mt81m1to11hg0d5t13de1idj7.png?imageMogr2/auto-orient/thumbnail/x100/gravity/Center/quality/100/crop/625x794/format/png",
agreementId: "1"
}
res.json(JSON);
}
}
//'/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'
// }]
// })
//},