sortsize.js
2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
exports.domain =require('../config/common.js').domain;
//路由配置
exports.res = [
{
route: '/erpproduct/sortsize/index',
method: 'GET',
view: 'pages/sortsize/index',
url: '/product/queryProductSortListByConf',
data: {
addTitle:"添加尺码",
title1:"品类关联尺码",
title2:"品类关联尺码列表",
model:'{"name":"尺码"}',
gridurl:"/erpproduct/sortsize/ajax/index"
},
params:[{
name: 'status',
type: 'String',
def:1
}],
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/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/queryProductSortListByConf',
data: {
addTitle:"添加尺码属性",
title1:"品类关联实物测量属性",
title2:"品类关联实物测量属性列表",
model:'{"name":"尺码属性"}',
gridurl:"/erpproduct/sortattribute/ajax/index"
},
params:[{
name: 'status',
type: 'String',
def:1
}],
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"}
]
}
]