supplierList.js
1.23 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
module.exports = function (app){
app.get("/supplier/supplier/managelist", "supplier.Index", function (req,res){
this.$extend={
bottons:'{"resetlock":true,"updatecheck":true}',
gridurl:'/supplier/create/getManageSupplierList',
searchStatus:[
{name:"通过",value:"300"},
{name:"驳回",value:"900"},
{name:"审核中",value:"200"}
],
searchIsfreez:true,
pageTitle:"供应商列表"
}
});
app.get("/supplier/update/:id", "supplier.Edit", function (req,res){
this.$extend={
action:'/brand/action/update',
pageTitle:"修改供应商",
update:true
}
});
app.get("/supplier/updatecheck/:id", "supplier.Edit", function (req,res){
this.$extend={
action:'/brand/action/update',
pageTitle:"修改供应商",
updatecheck:true
}
});
app.get("/supplier/info/:id", "shop.Info");
//供应商列表列表
app.post("/supplier/create/getManageSupplierList","supplierList_getManageSupplierList");
//修改保存供应商2
app.post("/brand/action/update","supplierList_updateSupplier");
}