category.category.js
1.29 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("/erpproduct/sort/index","category.Index",function(plist,req,res){
this.$extend={
moduleName:'物理类目管理',
pageName:'物理类目管理列表',
gridurl: '/erpproduct/sorter/getlist'
}
});
/*添加物理类目管理*/
app.get("/product/class/new","category.Edit",function(){
this.$extend={
moduleName:'物理类目管理',
pageName:'添加物理类目',
action:'/product/sort/addProductSort'
}
});
/*修改物理类目管理*/
app.get("/product/class/edit/:param","category.Edit","category_getProductSort",function(sort){
this.$extend={
moduleName:'物理类目管理',
pageName:'修改物理类目',
action:'/product/sort/update'
}
return sort;
});
/*列表*/
app.post("/erpproduct/sorter/getlist","category_queryAllProductSortList");
/*【添加品类】ajax请求接口*/
app.post("/product/sort/addProductSort","category_addProductSort");
/*【修改品类】ajax请求接口*/
app.post("/product/sort/update","category_updateProductSort");
/*打开*/
app.post("/erpproduct/sorter/open","category_publishProductSort");
/*关闭*/
app.post("/erpproduct/sorter/close","category_closeProductSort");
/*删除*/
app.post("/erpproduct/sorter/del","category_delProductSort");
}