supplier.supplierList.js 1.35 KB
module.exports = function (app){
    app.get("/supplier/supplier/managelist", "supplier.Index", function (req,res){
        this.$extend={
            moduleName:"供应商管理",
            pageName:"供应商列表",
            bottons:'{"resetlock":true,"updatecheck":true}',
            gridurl:'/supplier/create/getManageSupplierList',
            searchStatus:[
                {name:"通过",value:"300"},
                {name:"驳回",value:"900"},
                {name:"审核中",value:"200"}
            ],
            searchIsfreez:true
        }
    });


    app.get("/supplier/updatecheck/:id", "supplier.Edit", "supplierList_getSupplier", function (rs,req,res){
        this.$extend={
            moduleName:"供应商管理",
            pageName:"修改供应商",
            action:'/brand/action/update',
            updatecheck:true,
            data:rs.data
        }
    });

    app.get("/supplier/info/:id", "supplier.Info", "supplierList_getSupplier", function (rs,req,res){
        this.$extend={
            moduleName:"供应商管理",
            pageName:"供应商详情",
            data:rs.data
        }
    });

    //供应商列表列表
    app.post("/supplier/create/getManageSupplierList","supplierList_getManageSupplierList");

    //修改保存供应商2
    app.post("/brand/action/update","supplierList_updateSupplier");
}