sortsize.js 3 KB
//"http://172.16.6.220:8080/yohobuy-platform-web";"http://localhost:30012";//
exports.domain =require('../config/common.js').domain;

//路由配置
exports.res = [{
    route: '/erpproduct/sortsize/index',   
    method: 'GET',
    view: 'pages/sortsize/index',
    url: '/product/queryAllProductSortList',
    isJsonRaw:true,
    data: {
        addTitle:"添加尺码",
        sortsize:true,
        gridurl:"/erpproduct/sortsize/ajax/index"
    },
    src:'/sortsize/index'
},{
    route: '/erpproduct/sortsize/ajax/index',   
    method: 'POST',
    url: '/product/querySizeListBySortId',
    isJsonRaw:true,
    params:[
        {name:"sortId",type:"number"}
    ]
},
{//添加尺码接口【验证通过】
    route: '/erpproduct/sortsize/ajax/add',   
    method: 'POST',
    url: '/product/addSortSize',
    isJsonRaw:true,
    params:[
        {name:"sortId",type:"number"},
        {name:"sizeId",type:"number"},
        {name:"orderBy",type:"number"}
    ]
},
{//尺码模糊查询【验证通过】
    route:'/erpproduct/sortsize/ajax/automatic',
    method:'POST',
    url: '/product/querySizeByNameForSelect',
    isJsonRaw: true,
    params:[
        {name:"idName",type:"String"}
    ]
},
{//删除单个品类尺码接口【待验证】
    route: '/erpproduct/sortsize/ajax/delete',   
    method: 'POST',
    url: '/product/deleteSortSize',
    isJsonRaw:true,
    params:[
        {name:"sortId",type:"number"},
        {name:"sizeId",type:"number"}
    ]
},
//************************品类尺码属性管理*****************************
{
    route: '/erpproduct/sortattribute/index',   
    method: 'GET',
    view: 'pages/sortsize/index',
    url: '/product/queryAllProductSortList',
    isJsonRaw:true,
    data: {
        addTitle:"添加尺码属性",
        sortattribute:true,
        gridurl:"/erpproduct/sortattribute/ajax/index"
    },
    src:'/sortsize/attri'
},{
    //获取品类关联尺码属性列表【验证通过】
    route: '/erpproduct/sortattribute/ajax/index',   
    method: 'POST',
    url: '/sortAttribute/queryList',
    isJsonRaw:true,
    params:[
        {name:"page",type:"number"},
        {name:"size",type:"number"}
    ]
},{//删除品类关联尺码属性接口【待验证,接口没有】
    route: '/erpproduct/sortattribute/ajax/delete',   
    method: 'POST',
    url: '/sortAttribute/delete',
    isJsonRaw:true,
    params:[
        {name:"sortId",type:"number"},
        {name:"attributeId",type:"number"}
    ]
},
{//添加品类关联尺码属性接口【待验证】
    route: '/erpproduct/sortattribute/ajax/add',   
    method: 'POST',
    url: '/sortAttribute/add',
    isJsonRaw:true,
    params:[
        {name:"sortId",type:"number"},
        {name:"attributeId",type:"number"},
        {name:"orderBy",type:"number"}
    ]
},{//添加品类关联尺码属性接口【验证成功】
    route: '/erpproduct/sortattribute/ajax/automatic',   
    method: 'POST',
    url: '/product/querySizeAttributesByName',
    isJsonRaw:true,
    params:[
        {name:"idName",type:"String"}
    ]
}]