goods.price.js 2 KB
/**
 * Created by ty on 2016/5/19.
 */
module.exports=function(app) {
    app.get("/product/price/index", "goods.price.Change", function (req, res){
        this.$extend={
            headerTab: {
                changePrice: true
            },
            moduleName: '商品管理',
            pageName: '代销变价',
            bottons: '{"edit":true,"columnsHidisFr":true}',
            gridurl: '/product/queryProductPriceList',
            domain: exports.domain,
            download: '/ajax/link/batchUpdatePrice'
        }; 
    });

    app.get("/goods/brandCooperation/index", "goods.price.Brand-cooperation", function (req, res){
        this.$extend={
            headerTab: {
                brandCooperation: true
            },
            secondTitle: '价格管理',
            pageTitle: '品牌合作模式设置',
            filter: {
                brandInput: true,
                brandCooperation: true,
                brandCooperationSet: true
            },
            bulkImport: true,
            bottons: '{"edit":true,"columnsHidisFr":true}',
            gridurl: '/goods/brandCooperation/list',
            domain: exports.domain,
            download: '/common/brandCooperation.xlsx'
        };
    });

    app.post("/product/queryProductPriceList", "price_queryProductPriceList");

    app.post("/product/getProductPrice", "price_getProductPrice");

    app.post("/product/updateProductPrice", "price_updateProductPrice");
    
    app.post("/product/queryProductPriceListBySkn","price_queryProductPriceListBySkn");

    /*删除变价记录*/
    app.post("/product/deletePricePlan","price_deletePricePlan");

    app.post("/product/batchUpdateProductPrice", "price_batchUpdateProductPrice");

    app.post("/goods/brandCooperation/list", "price_queryBrandCooperationList");

    app.post("/goods/brandCooperation/update", "price_saveBrandCooperation");

    app.post("/ShopsRest/getShopsByName", "price_selectCheckPassShopsByName");

    app.post("/brand/getBrandNames", "price_getBrandNames");
};