supplierAdd.js
939 Bytes
module.exports = function (app){
app.get("/supplier/supplier/index", "supplier.Index", function (req,res){
this.$extend={
iscreate:true,
bottons:'{"columnsHidOper":true,"columnsHidisFr":true}',
gridurl:'/supplier/create/getCreateSupplierList',
searchStatus:[
{name:"暂存",value:"100"},
{name:"审核中",value:"200"},
{name:"驳回",value:"900"}
],
searchSort:true,
pageTitle:"创建供应商"
}
});
app.get("/supplier/add", "supplier.Edit", function (req,res){
this.$extend={
action:'/brand/supplier/add',
data:{},
pageTitle:"添加供应商",
add:true,
update:true
}
});
//创建供应商列表
app.post("/supplier/create/getCreateSupplierList","supplierAdd_getCreateSupplierList");
}