supplier.js
8.18 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
exports.domain =require('../config/common.js').domain;
// exports.domain ="http://172.16.9.8:8080/yohobuy-platform-web";//葛超
//路由配置
exports.res = [
{
//创建供应商页面渲染
route: '/supplier/supplier/index',
method: 'GET',
view: 'pages/supplier/index',
data: {
iscreate:true,
bottons:'{"columnsHidOper":true,"columnsHidisFr":true}',
gridurl:'/supplier/create/getCreateSupplierList',
searchStatus:[
{name:"暂存",value:"100"},
{name:"审核中",value:"200"},
{name:"审核驳回",value:"900"}
],
searchSort:true,
pageTitle:"创建供应商"
},
src:'/supplier/index'
},
{
//供应商列表页列表
route: '/supplier/supplier/managelist',
method: 'GET',
view: 'pages/supplier/index',
data: {
bottons:'{"resetlock":true,"updatecheck":true}',
gridurl:'/supplier/create/getManageSupplierList',
searchStatus:[
{name:"审核通过",value:"300"},
{name:"审核驳回",value:"900"},
{name:"审核中",value:"200"}
],
searchIsfreez:true,
pageTitle:"供应商列表"
},
src:'/supplier/index'
},
{
//供应商审核页列表
route: '/supplier/supplier/auditlist',
method: 'GET',
view: 'pages/supplier/index',
data: {
bottons:'{"edit":true,"columnsHidisFr":true}',
gridurl:'/supplier/create/getAuditSupplierList',
pageTitle:"供应商审核"
},
src:'/supplier/index'
}
//**********************************************
, {
//创建供应商列表 -> 筛选ajax
route: '/supplier/create/getCreateSupplierList',
method: 'POST',
url: '/supplier/supplier/getCreateSupplierList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
{name: 'id', type: 'String'},
{name: 'status', type: 'String'},
{name: 'timeSort', type: 'String'}
]
},{
//供应商列表 -> 筛选ajax
route: '/supplier/create/getManageSupplierList',
method: 'POST',
url: '/supplier/supplier/getManageSupplierList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
{name: 'status', type: 'String'},
{name: 'id', type: 'String'},
{name:'isFreeze',type:'String'}
]
},{
//创建供应商列表 -> 筛选ajax
route: '/supplier/create/getAuditSupplierList',
method: 'POST',
url: '/supplier/supplier/getAuditSupplierList',
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'},
{name: 'id', type: 'String'}
]
},
{//修改供应商
route: '/supplier/index/status',
method: 'POST',
url: '/supplier/supplier/updateSupplier',
params: [
{name:"id",type:"String"},
{name: 'isFreeze', type: 'String'},
{name:"operations",type:"String"},
{name:"status",type:"String"}
]
},
{
route: '/supplier/add',
method: 'GET',
view: 'pages/supplier/edit',
src:'/supplier/edit',
data:{
action:'/brand/supplier/add',
data:{},
pageTitle:"添加供应商",
add:true,
update:true
}
},
{
route: '/supplier/update/:id',
method: 'GET',
view:'pages/supplier/edit',
src:'/supplier/edit',
url: '/supplier/supplier/getSupplier',
data:{
action:'/brand/action/update',
pageTitle:"修改供应商",
update:true
},
params:[
{
name: 'id',
type: 'String'
}
]
},
{
route: '/supplier/updatecheck/:id',
method: 'GET',
view:'pages/supplier/edit',
src:'/supplier/edit',
url: '/supplier/supplier/getSupplierCheck',
data:{
action:'/brand/action/update',
pageTitle:"修改供应商",
updatecheck:true
},
params:[
{
name: 'id',
type: 'String'
}
]
},
{// 新增供应商
route: '/brand/supplier/add',
method: 'POST',
url: '/supplier/supplier/addSupplier',
params:[
{name:"supplierName",type:"String"},
{name:"supplierCode",type:"String"},
{name:"foundTime",type:"String"},
{name:"beginOperateTime",type:"String"},
{name:"endOperateTime",type:"String"},
{name:"registeredAddress",type:"String"},
{name:"legalPerson",type:"String"},
{name:"legalIdentityCard",type:"String"},
{name:"registeredCapital",type:"String"},
{name:"businessLicense",type:"String"},
{name:"businessLicensePic",type:"String"},
{name:"taxCertificate",type:"String"},
{name:"accountOpeningLicense",type:"String"},
{name:"taxpayerQualificationCertificate",type:"String"},
{name:"industryLicense",type:"String"},
{name:"businessRange",type:"String"},
{name:"contactPhone",type:"String"},
{name:"contactAddress",type:"String"},
{name:"linkman",type:"String"},
{name:"phone",type:"String"},
{name:"fax",type:"String"},
{name:"email",type:"String"},
{name:"url",type:"String"},
{name:"bankName",type:"String"},
{name:"bankAccount",type:"String"},
{name:"operations",type:"String",def: 1},
{name:"status",type:"String"}
]
},
{//修改供应商
route: '/brand/action/update',
method: 'POST',
url: '/supplier/supplier/updateSupplier',
params:[
{name:"supplierName",type:"String"},
{name:"supplierCode",type:"String"},
{name:"foundTime",type:"String"},
{name:"beginOperateTime",type:"String"},
{name:"endOperateTime",type:"String"},
{name:"registeredAddress",type:"String"},
{name:"legalPerson",type:"String"},
{name:"legalIdentityCard",type:"String"},
{name:"registeredCapital",type:"String"},
{name:"businessLicense",type:"String"},
{name:"businessLicensePic",type:"String"},
{name:"taxCertificate",type:"String"},
{name:"accountOpeningLicense",type:"String"},
{name:"taxpayerQualificationCertificate",type:"String"},
{name:"industryLicense",type:"String"},
{name:"businessRange",type:"String"},
{name:"contactPhone",type:"String"},
{name:"contactAddress",type:"String"},
{name:"linkman",type:"String"},
{name:"phone",type:"String"},
{name:"fax",type:"String"},
{name:"email",type:"String"},
{name:"url",type:"String"},
{name:"bankName",type:"String"},
{name:"bankAccount",type:"String"},
{name:"operations",type:"String",def: 1},
{name:"status",type:"String"},
{name:"id",type:"String"}
]
},
{// 供应商详情
route: '/supplier/info/:id',
method: 'GET',
view: 'pages/supplier/info',
url:"/supplier/supplier/getSupplier",
src:'supplier/info',
params:[
{
name: 'id',
type: 'String'
}
]
},
//infoopt
{// 供应商详情
route: '/supplier/infoopt/:id',
method: 'GET',
view: 'pages/supplier/info',
url:"/supplier/supplier/getSupplierCheck",
src:'supplier/info',
data:{
edit:true
},
params:[
{
name: 'id',
type: 'String'
}
]
}
]