supplier.js 8.2 KB
exports.domain =require('../config/common.js').domain;

//路由配置
exports.res = [{
        //创建供应商页面渲染
        route: '/supplier/supplier/index',   
        method: 'GET',
        view: 'pages/supplier/index',
        noApi:true,
        data: {
            iscreate:true,
            bottons:'{"columnsHidOper":true,"columnsHidisFr":true}',
            gridurl:'/supplier/create/getCreateSupplierList',
            searchStatus:[
                {name:"暂存",value:"100"},
                {name:"审核中",value:"200"},
                {name:"审核驳回",value:"900"}
            ],
            searchSort:true,
            pageTitle:"创建供应商"
        },
        src:'/supplier/index'
    },
    {
        //供应商列表页列表
        route: '/supplier/supplier/managelist',   
        method: 'GET',
        view: 'pages/supplier/index',
        noApi:true,
        data: {
            bottons:'{"resetlock":true}',
            gridurl:'/supplier/create/getManageSupplierList',
            searchStatus:[
                {name:"审核通过",value:"300"},
                {name:"审核驳回",value:"900"},
                {name:"审核中",value:"200"}
            ],
            searchIsfreez:true,
            pageTitle:"供应商列表"
        },
        src:'/supplier/index'
    },
    {
        //供应商审核页列表
        route: '/supplier/supplier/auditlist',   
        method: 'GET',
        view: 'pages/supplier/index',
        noApi:true,
        data: {
            bottons:'{"edit":true,"columnsHidisFr":true}',
            gridurl:'/supplier/create/getAuditSupplierList',
            pageTitle:"供应商审核"
        },
        src:'/supplier/index'
    }
    //**********************************************
    , {
        //创建供应商列表 -> 筛选ajax
        route: '/supplier/create/getCreateSupplierList',
        method: 'POST',
        url: '/supplier/supplier/getCreateSupplierList',
        isJsonRaw:true,
        params: [
            {name: 'page', type: 'Number'},
            {name: 'size', type: 'Number'},
            {name: 'id', type: 'String'},
            {name: 'status', type: 'String'},
            {name: 'timeSort', type: 'String'}
        ]
    },{
        //供应商列表 -> 筛选ajax
        route: '/supplier/create/getManageSupplierList',
        method: 'POST',
        url: '/supplier/supplier/getManageSupplierList',
        isJsonRaw:true,
        params: [
            {name: 'page', type: 'Number'},
            {name: 'size', type: 'Number'},
            {name: 'status', type: 'String'},
            {name: 'id', type: 'String'},
            {name:'isFreeze',type:'String'}
        ]
    },{
        //创建供应商列表 -> 筛选ajax
        route: '/supplier/create/getAuditSupplierList',
        method: 'POST',
        url: '/supplier/supplier/getAuditSupplierList',
        isJsonRaw:true,
        params: [
            {name: 'page', type: 'Number'},
            {name: 'size', type: 'Number'},
            {name: 'id', type: 'String'}
        ]
    },
    {//修改供应商
        route: '/supplier/index/status',
        method: 'POST',
        url: '/supplier/supplier/updateSupplier',
        isJsonRaw:true,
        params: [
            {name:"id",type:"String"},
            {name: 'isFreeze', type: 'String'},
            {name:"operations",type:"String"},
            {name:"status",type:"String"}
        ]
    },
    {
        route: '/supplier/add',
        method: 'GET',
        view: 'pages/supplier/edit',
        src:'/supplier/edit',
        noApi:true,
        data:{
            action:'/brand/supplier/add',
            data:{},
            pageTitle:"添加供应商",
            add:true
        }
    },
    {
        route: '/supplier/update/:id',
        method: 'GET',
        view:'pages/supplier/edit',
        src:'/supplier/edit',
        url: '/supplier/supplier/getSupplier',
        isJsonRaw: true,
        data:{
            action:'/brand/action/update',
            pageTitle:"修改供应商",
            update:true
        },
        params:[
            {
                name: 'id',
                type: 'String'
            }
        ]
    },
    {// 新增供应商
        route: '/brand/supplier/add',
        method: 'POST',
        url: '/supplier/supplier/addSupplier',
        isJsonRaw: true,
        params:[
            {name:"supplierName",type:"String"},
            {name:"supplierCode",type:"String"},
            {name:"foundTime",type:"String"},
            {name:"beginOperateTime",type:"String"},
            {name:"endOperateTime",type:"String"},
            {name:"registeredAddress",type:"String"},
            {name:"legalPerson",type:"String"},
            {name:"legalIdentityCard",type:"String"},
            {name:"registeredCapital",type:"String"},
            {name:"businessLicense",type:"String"},
            {name:"businessLicensePic",type:"String"},

            {name:"taxCertificate",type:"String"},
            {name:"accountOpeningLicense",type:"String"},
            {name:"taxpayerQualificationCertificate",type:"String"},
            {name:"industryLicense",type:"String"},

            {name:"businessRange",type:"String"},
            {name:"contactPhone",type:"String"},
            {name:"contactAddress",type:"String"},
            {name:"linkman",type:"String"},
            {name:"phone",type:"String"},
            {name:"fax",type:"String"},
            {name:"email",type:"String"},
            {name:"url",type:"String"},
            {name:"bankName",type:"String"},
            {name:"bankAccount",type:"String"},
            {name:"operations",type:"String",def: 1},
            {name:"status",type:"String"}
            
        ]
    },
    {//修改供应商
        route: '/brand/action/update',
        method: 'POST',
        url: '/supplier/supplier/updateSupplier',
        isJsonRaw: true,
        params:[
             {name:"supplierName",type:"String"},
            {name:"supplierCode",type:"String"},
            {name:"foundTime",type:"String"},
            {name:"beginOperateTime",type:"String"},
            {name:"endOperateTime",type:"String"},
            {name:"registeredAddress",type:"String"},
            {name:"legalPerson",type:"String"},
            {name:"legalIdentityCard",type:"String"},
            {name:"registeredCapital",type:"String"},
            {name:"businessLicense",type:"String"},
            {name:"businessLicensePic",type:"String"},

            {name:"taxCertificate",type:"String"},
            {name:"accountOpeningLicense",type:"String"},
            {name:"taxpayerQualificationCertificate",type:"String"},
            {name:"industryLicense",type:"String"},

            {name:"businessRange",type:"String"},
            {name:"contactPhone",type:"String"},
            {name:"contactAddress",type:"String"},
            {name:"linkman",type:"String"},
            {name:"phone",type:"String"},
            {name:"fax",type:"String"},
            {name:"email",type:"String"},
            {name:"url",type:"String"},
            {name:"bankName",type:"String"},
            {name:"bankAccount",type:"String"},
            {name:"operations",type:"String",def: 1},
            {name:"status",type:"String"},
            {name:"id",type:"String"}
        ]
    },
    {// 供应商详情
        route: '/supplier/info/:id',
        method: 'GET',
        view: 'pages/supplier/info',
        url:"/supplier/supplier/getSupplier",
        isJsonRaw: true,
        src:'supplier/info',
        params:[
            {
                name: 'id',
                type: 'String'
            }
        ]
    },
    //infoopt
    {// 供应商详情
        route: '/supplier/infoopt/:id',
        method: 'GET',
        view: 'pages/supplier/info',
        url:"/supplier/supplier/getSupplier",
        isJsonRaw: true,
        src:'supplier/info',
        data:{
            edit:true
        },
        params:[
            {
                name: 'id',
                type: 'String'
            }
        ]
    },
    //*************************************
    {
        route:'/supplier/supplier/getSupplierListByIdName',
        method:'POST',
        url: '/supplier/supplier/getSupplierListByIdName',
        isJsonRaw: true,
        params:[
            {name:"idName",type:"String",def: 1}
        ]
    }
]