category.js 1.29 KB
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");
}