netsale.js 3.62 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: '网销信息',
            gridurl: '/product/queryNetSaleInforList',
            shopId:req.session.user.auth.shopId
        };
    });

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

    app.get("/goods/netsale/info/:param", "goods.netsale.Edit", function (req, res){
        this.$extend={
            type: 'info',
            moduleName: "网销信息",
            pageName: "查看商品信息"
        };
    });

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

    app.get("/goods/audit/info/:param", "goods.netsale.Edit", function (req, res){
        this.$extend={
            type: 'info',
            action: 'audit'
        };
    });

    app.post("/product/queryNetSaleInforList", "netsale_queryNetSaleInforList");

    app.post("/product/queryTabProductNum", "netsale_queryTabProductNum");

    app.post("/product/updateProductSknTimingInfo", "netsale_updateProductSknTimingInfo");

    app.post("/product/updateGoodsStatus", "netsale_updateGoodsStatus");

    app.post("/product/updateProductSkuStatus", "netsale_updateProductSkuStatus");

    app.post("/goods/netsale/getdata", "netsale_getNetSaleInfo");

    app.post("/product/saveNetSaleAllInfo", "netsale_saveNetSaleAllInfo");

    app.post("/product/saveNetSaleBaseInfo", "netsale_saveNetSaleBaseInfo");

    app.post("/product/saveAfterSaleInfo", "netsale_saveAfterSaleInfo");

    app.post("/product/queryAttributesByConf", "netsale_queryAttributesByConf");

    app.post("/ShopsRest/queryShopsByBrandId", "netsale_queryShopsByBrandId");

    app.post("/product/queryMakingProcess", "netsale_queryMakingProcess");

    app.post("/brandSeries/queryAll4Select", "netsale_queryAll4Select");

    app.post("/product/saveBrandRelation", "netsale_saveBrandRelation");

    app.post("/product/saveNetSaleVideo", "netsale_saveNetSaleVideo");

    app.post("/article/queryArticlesBySKN", "netsale_queryArticlesBySKN");

    app.post("/erpproduct/brands/queryBrandsByStatus", "netsale_queryBrandsByStatus");

    app.post("/product/queryAttributesByConfEx", "netsale_queryAttributesByConfEx");

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

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

    app.post("/searchWords/queryHotSearchTerms", "netsale_queryHotSearchTerms");

    app.post("/product/saveNetSaleSearchKeys", "netsale_saveNetSaleSearchKeys");

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

    app.post("/product/saveProductDesc", "netsale_saveProductDesc");

    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("/product/manageProductImg", "netsale_manageProductImg");

}