cod.js
4.88 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
/**
* Created by wangqianjun on 16/4/11.
* 【货到付款限制】路由
*/
exports.domain = require('../config/common.js').domain;
exports.res = [{
// ====================== 品牌货到付款限制页面路由 ===================
route: '/goods/cod/brand/index',
method: 'GET',
view: 'pages/goods/cod-brand',
src: '/goods/cod-brand'
}, {
route: '/payDelivery/queryTotalBrandPayDelivery',
method: 'POST',
url: '/payDelivery/queryTotalBrandPayDelivery',
params: [
{name: 'brandId', type: 'Number'},
{name: 'brandName', type: 'String'},
{name: 'isPayDelivery', type: 'Number'},
{name: 'checkStatus', type: 'Number'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
}, {
// 开启 & 关闭 货到付款
route: '/payDelivery/addPayDeliveryCheck',
method: 'POST',
url: '/payDelivery/addPayDeliveryCheck',
params: [
{name: 'isPayDelivery', type: 'Number'},
{name: 'brandName', type: 'String'},
{name: 'brandId', type: 'Number'}
]
},{
// 通过 & 驳回申请
route: '/payDelivery/reviewPayDeliveryCheck',
method: 'POST',
url: '/payDelivery/reviewPayDeliveryCheck',
params: [
{name: 'brandName', type: 'String'},
{name: 'brandId', type: 'Number'},
{name: 'rejectReason', type: 'String'},
{name: 'isPayDelivery', type: 'Number'},
{name: 'checkStatus', type: 'Number'},
{name: 'id', type: 'Number'}
]
},
// 获取tab上的数量
{
route: '/payDelivery/queryCountBrandPayDelivery',
method: 'POST',
url: '/payDelivery/queryCountBrandPayDelivery',
params: [
{name: 'brandId', type: 'Number'},
{name: 'isPayDelivery', type: 'Number'}
]
},
// ====================== 单品货到付款限制页面路由 ===================
{
route: '/goods/cod/goods/index',
method: 'GET',
view: 'pages/goods/cod-goods',
src: '/goods/cod-goods'
}, {
route: '/payDelivery/queryPayDeliveryList',
method: 'POST',
url: '/payDelivery/queryPayDeliveryList',
params: [
{name: 'brandId', type: 'Number'},
{name: 'brandName', type: 'String'},
{name: 'isPayDelivery', type: 'Number'},
{name: 'status', type:'Number'},
{name: 'productSkn', type:'Number'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
{
// 开启货到付款
route: '/payDelivery/openPayDelivery',
method: 'POST',
url: '/payDelivery/openPayDelivery',
params: [
{name: 'productSkn', type: 'String'},
{name: 'brandName', type: 'String'},
{name: 'brandId', type: 'Number'}
]
},{
// 关闭货到付款
route: '/payDelivery/closePayDelivery',
method: 'POST',
url: '/payDelivery/closePayDelivery',
params: [
{name: 'productSkn', type: 'String'},
{name: 'brandName', type: 'String'},
{name: 'brandId', type: 'Number'}
]
},{
// 通过申请
route: '/payDelivery/passPayDelivery',
method: 'POST',
url: '/payDelivery/passPayDelivery',
params: [
{name: 'productSkn', type: 'String'},
{name: 'brandName', type: 'String'},
{name: 'brandId', type: 'Number'},
{name: 'id', type: 'Number'}
]
},{
// 驳回申请
route: '/payDelivery/rejectPayDelivery',
method: 'POST',
url: '/payDelivery/rejectPayDelivery',
params: [
{name: 'productSkn', type: 'String'},
{name: 'brandName', type: 'String'},
{name: 'rejectReason', type: 'String'},
{name: 'brandId', type: 'Number'},
{name: 'id', type: 'Number'}
]
},
// 获取skn列表
{
route: '/payDelivery/queryPayDeliveryProductSkn',
method: 'POST',
url: '/payDelivery/queryPayDeliveryProductSkn',
params: [
{name: 'idName', type: 'String'}
]
}, // 获取tab上的数量
{
route: '/payDelivery/queryCountProductPayDelivery',
method: 'POST',
url: '/payDelivery/queryCountProductPayDelivery',
params: [
{name: 'productSkn', type: 'String'},
{name: 'brandId', type: 'Number'},
{name: 'isPayDelivery', type: 'Number'}
]
}, { // 获取品牌列表
route: '/payDelivery/queryPayDeliveryBrandName',
method: 'POST',
url: '/payDelivery/queryPayDeliveryBrandName',
params: [
{name: 'idName', type: 'String'}
]
}, { // 批量导入
route: '/goods/cod/upload',
method: 'GET',
view: 'pages/goods/cod-upload',
src: '/goods/cod-upload'
}
];