customService.promotion.js 2.65 KB
module.exports = function (app){

    app.get("/promotionInfo/index", "customService.promotion.Index", function (req,res){
        this.$extend={
            moduleName:"营销管理",
            pageName:"促销管理"
        }
    });
    //新增促销基本信息
    app.get("/promotionInfo/addNew", "customService.promotion.Add", function (req,res){
        this.$extend={
            moduleName:"营销管理",
            pageName:"促销编辑"
        }
    });
    //促销编辑页
    app.get("/promotionInfo/edit/:param", "customService.promotion.Edit","promotion_getPromotionInfo", function (rs,req,res){
        this.$extend={
            moduleName:"营销管理",
            pageName:"促销编辑",
            action: '/promotion/update',
            data:rs.data
        };        
        return rs;
    });

    //
    app.post("/promotionInfo/detail","promotion_getPromotionInfo");
    //促销列表
    app.post("/promotionInfo/list","promotion_getPromotionInfoList");
    //新增促销信息
    app.post("/promotionInfo/add","promotion_addPromotionInfo");
    //编辑促销信息    
    app.post("/promotionInfo/update","promotion_updatePromotionInfo");
    //删除促销信息    
    app.post("/promotionInfo/delete","promotion_deletePromotionInfo");
    //开启促销预告
    app.post("/promotionInfo/updatePromotionNoticeStatus","promotion_updatePromotionNoticeStatus");
    //开启促销
    app.post("/promotionInfo/updatePromotionStatus","promotion_updatePromotionStatus");

    //参数-促销条件    
    app.post("/promotion/setCondition","promotion_setCondition");
    //参数-促销操作
    app.post("/promotion/setOperation","promotion_setOperation");
    //参数- 促销限制    
    app.post("/promotion/setLimit","promotion_setLimit");
    //参数-互斥促销    
    app.post("/promotion/setReject","promotion_setReject");
    //参数-促销显示    
    app.post("/promotion/setDisplay","promotion_setDisplay");
    //所有促销标记
    app.post("/promotion/getpromotionProductFlags","promotion_getpromotionProductFlags");
    //在有效期的促销
    app.post("/promotionInfo/getActivePromotionInfoList","promotion_getActivePromotionInfoList");
    //日志列表
    app.get("/promotionInfo/log/index", "customService.promotion.LogIndex", function (req,res){
        
        this.$extend={
            moduleName:"营销管理",
            pageName:"促销日志"
        }
    });
    //促销列表
    app.post("/promotionInfo/log/list","promotion_getPromotionLogList");
    //促销多档
    app.post("/promotion/setMulti","promotion_setMulti");

    app.post("/promotion/getMultiPromotionPage","promotion_getMultiPromotionPage");
}