sortsize.js 2.87 KB
exports.domain =require('../config/common.js').domain;

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