supplier.js 8.19 KB
// exports.domain =require('../config/common.js').domain;
//172.16.9.8
exports.domain ="http://172.16.9.8:8080/yohobuy-platform-web";
//路由配置
exports.res = [
{
        //创建供应商页面渲染
        route: '/supplier/supplier/index',   
        method: 'GET',
        view: 'pages/supplier/index',
        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',
        data: {
            bottons:'{"resetlock":true,"updatecheck":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',
        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',
        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',
        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',
        params: [
            {name: 'page', type: 'Number'},
            {name: 'size', type: 'Number'},
            {name: 'id', type: 'String'}
        ]
    },
    {//修改供应商
        route: '/supplier/index/status',
        method: 'POST',
        url: '/supplier/supplier/updateSupplier',
        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',
        data:{
            action:'/brand/supplier/add',
            data:{},
            pageTitle:"添加供应商",
            add:true,
            update:true
        }
    },
    {
        route: '/supplier/update/:id',
        method: 'GET',
        view:'pages/supplier/edit',
        src:'/supplier/edit',
        url: '/supplier/supplier/getSupplier',
        data:{
            action:'/brand/action/update',
            pageTitle:"修改供应商",
            update:true
        },
        params:[
            {
                name: 'id',
                type: 'String'
            }
        ]
    },
    {
        route: '/supplier/updatecheck/:id',
        method: 'GET',
        view:'pages/supplier/edit',
        src:'/supplier/edit',
        url: '/supplier/supplier/getSupplierCheck',
        data:{
            action:'/brand/action/update',
            pageTitle:"修改供应商",
            updatecheck:true
        },
        params:[
            {
                name: 'id',
                type: 'String'
            }
        ]
    },
    {// 新增供应商
        route: '/brand/supplier/add',
        method: 'POST',
        url: '/supplier/supplier/addSupplier',
        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',
        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",
        src:'supplier/info',
        params:[
            {
                name: 'id',
                type: 'String'
            }
        ]
    },
    //infoopt
    {// 供应商详情
        route: '/supplier/infoopt/:id',
        method: 'GET',
        view: 'pages/supplier/info',
        url:"/supplier/supplier/getSupplierCheck",
        src:'supplier/info',
        data:{
            edit:true
        },
        params:[
            {
                name: 'id',
                type: 'String'
            }
        ]
    }
    
]