|
|
module.exports = function (app){
|
|
|
app.get("/supplier/store/index", "shop.Index", function (req,res){
|
|
|
app.get("/supplier/shop/index", "shop.Index", function (req,res){
|
|
|
this.$extend={
|
|
|
gridurl:'/supplier/store/indexPage',
|
|
|
moduleName:"店铺管理",
|
|
|
pageName:"创建店铺",
|
|
|
gridurl:'/supplier/shop/indexPage',
|
|
|
authority:'{"btn":false,"info":"info","create":true,"operationStatus":1,"checkStatusArr":"100,200,900"}',
|
|
|
add:true,
|
|
|
pagetitle:{
|
|
|
level1title:"店铺管理",
|
|
|
level2title:"创建店铺管理",
|
|
|
level3title:"创建店铺列表"
|
|
|
},
|
|
|
searchStatus:[
|
|
|
{value:"100",name:"暂存"},
|
|
|
{value:"200",name:"待审核"},
|
...
|
...
|
@@ -17,25 +14,25 @@ module.exports = function (app){ |
|
|
};
|
|
|
});
|
|
|
|
|
|
app.get("/supplier/store/update/:shopsId", "shop.Edit", function (req,res){
|
|
|
app.get("/supplier/shop/update/:shopsId", "shop.Edit", function (req,res){
|
|
|
this.$extend={
|
|
|
pageTitel:"修改店铺",
|
|
|
action:'/store/update'
|
|
|
action:'/shop/update'
|
|
|
}
|
|
|
});
|
|
|
|
|
|
app.get("/supplier/store/info/:shopsId", "shop.Edit", function (req,res){
|
|
|
app.get("/supplier/shop/info/:shopsId", "shop.Edit", function (req,res){
|
|
|
this.$extend={
|
|
|
pageTitel:"创建店铺",
|
|
|
action:'/store/add',
|
|
|
action:'/shop/add',
|
|
|
data:{
|
|
|
shopId:0
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
|
|
|
app.get("/supplier/store/add", "shop.Info");
|
|
|
app.get("/supplier/shop/add", "shop.Info");
|
|
|
|
|
|
//添加店铺
|
|
|
app.post("/store/add","shopAdd_addShops");
|
|
|
app.post("/shop/add","shopAdd_addShops");
|
|
|
} |
...
|
...
|
|