netsale.js 4.39 KB
/**
 * Created by ty on 2016/5/18.
 */
module.exports=function(app) {

    app.get("/product/content/index", "goods.netsale.Index", function (req, res){
        this.$extend={
            moduleName:'商品管理',
            pageName: '网销信息',
            shopId:req.session.user.auth.shopId
        };
    });

    app.get("/goods/netsale/batch", "goods.netsale.Batch", function (req, res){
        this.$extend={
            moduleName: '网销信息',
            pageName: '批量设置'
        };
    });

    app.get("/goods/netsale/info/:param", "goods.netsale.Edit","netsale_getNetSaleInfo", function (netsale,req, res){
        this.$extend={
            action: 'INFOR',
            moduleName: "网销信息",
            pageName: "查看商品信息",
            shopsId:req.session.user.auth.shopId
        };
        return netsale;
    });

    app.get("/goods/netsale/edit/:param", "goods.netsale.Edit","netsale_getNetSaleInfo", function (netsale,req, res){
        this.$extend={
            action: 'UPDATE',
            moduleName: "网销信息",
            maintitle: "编辑商品信息",
            type:"edit",
            shopsId:req.session.user.auth.shopId
        };
        return netsale;
    });

    /**************************网销列表页面****************************/
    /*网销信息列表数据*/
    app.post("/product/queryNetSaleInforList", "netsale_queryNetSaleInforList");

    /*网销信息tab页*/
    app.post("/product/queryTabProductNum", "netsale_queryTabProductNum");

    /*批量上架下架*/
    app.post("/product/updateProductSknTimingInfo", "netsale_updateProductSknTimingInfo");

    /*skc上下架*/
    app.post("/product/updateGoodsStatus", "netsale_updateGoodsStatus");

    /*sku上下架*/
    app.post("/product/updateProductSkuStatus", "netsale_updateProductSkuStatus");

    /*查看网销详情*/
    app.post("/product/getNetSaleInfo", "netsale_getNetSaleInfo");

    //网销编辑页增加试穿模特
    app.post("/meterManage/tryModel/addtryModelInfo", "netsale_addtryModelInfo");

    //网销编辑页删除商品模特卡
    app.post("/goods/product/delproductModelCard", "netsale_delproductModelCard");
    /*********************************编辑**********************************/

    /*保存完整数据*/
    app.post("/product/saveNetSaleAllInfo", "netsale_saveNetSaleAllInfo");

    /*保存基本信息*/
    app.post("/product/saveNetSaleBaseInfo", "netsale_saveNetSaleBaseInfo");

    /*保存商品描述*/
    app.post("/product/saveProductDesc", "netsale_saveProductDesc");

    /*小编推荐*/
    app.post("/guang/article/queryArticlesBySKN", "netsale_queryArticlesBySKN");

    /*小编推荐*/
    app.post("/product/saveNetSaleRecommend", "netsale_saveNetSaleRecommend");

    /*搭配模块*/
    app.post("/collocation/selectCollocationListBySkn", "netsale_selectCollocationListBySkn");

    app.post("/collocation/selectCollocationById", "netsale_selectCollocationById");

    app.post("/collocation/insertCollocation", "netsale_insertCollocation");

    app.post("/collocation/updateCollocation", "netsale_updateCollocation");

    app.post("/collocation/delCollocationById", "netsale_delCollocationById");


    /*封面*/
    app.post("/productPhoto/queryProductPhotoList", "netsale_queryProductPhotoList");

    /*单独维护封面信息*/
    app.post("/product/manageProductImg", "netsale_manageProductImg");

    /*搜索关键词*/
    app.post("/searchWords/queryHotSearchTerms", "netsale_queryHotSearchTerms");
    /*保存关键词*/
    app.post("/product/saveNetSaleSearchKeys", "netsale_saveNetSaleSearchKeys");

    app.post("/productSize/queryProdSizeList","netsale_queryProdSizeList")

    app.post("/productSize/saveProdSizeInfo","netsale_saveProdSizeInfo");

    app.post("/product/saveSearchSort", "netsale_saveSearchSort");

    /*保存上架后补全信息*/
    app.post("/product/saveAfterSaleInfo","netsale_saveAfterSaleInfo")
    /*查询补全信息*/
    app.post("/product/queryAttributesByConf","netsale_queryAttributesByConf");

    app.post("/standard/queryAllBySortId4Html","netsale_queryAllBySortId4Html");

    /*商品参数*/
    app.post("/product/queryAttributesByConfEx","netsale_queryAttributesByConfEx");

    app.post("/product/queryMaterialList","netsale_queryMaterialList");

    app.post("/product/saveProductParam","netsale_saveProductParam");

    app.post("/goods/product/addproductModelCard","netsale_addproductModelCard");
}