productBatch.js 1.39 KB
module.exports = function (app) {
    //量贩
    app.get("/product/batch/index", "product.productBatch.Index", function(req, res) {
        this.$extend = {
            moduleName: "营销管理",
            pageName: "量贩管理"
        }
    });

    app.get("/product/batch/edit", "product.productBatch.Edit", function(req, res) {
        this.$extend = {
            moduleName: "营销管理",
            pageName: "量贩编辑",
            action: "/product/batch/save"
        }
    });

    app.get("/product/batch/import", "product.productBatch.Import", function(req, res) {
        this.$extend = {
            moduleName: "营销管理",
            pageName: "量贩导入"
        }
        
    });

    app.get("/product/batch/:id", "product.productBatch.Edit", "productBatch_findProductBatchByID", function(apiReq) {
        this.$extend = {
            moduleName: "营销管理",
            pageName: "编辑量贩",
            action: "/product/batch/save",
            data: apiReq.data
        }
    });

    app.post("/product/batch/list", "productBatch_productBatchList");

    app.post("/product/batch/trigger", "productBatch_productBatchTrigger");

    app.post("/product/batch/save", "productBatch_productBatchUpdate");

    app.post("/product/batch/history", "productBatch_findBatchHistory");

    app.post("/product/batch/sync", "productBatch_syncProductBatchToFront");
    
    
}