meterSize.js
1.8 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
/**
* Created by JiangMin on 2016/3/22.
* 测量尺码管理
*/
exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.162:8088/platform'; //李建
//exports.domain = 'http://192.168.102.216:8180/platform'; //测试环境
exports.res = [
//主界面
{
route: '/meterManage/meterSize/index',//访问路由
method: 'GET',//方法
view: 'pages/meterManage/meterSize',//视图
src: '/meterManage/meterSize'//控制层
},
//api请求数据
{
route: '/meterManage/productSize/queryProdSizeList',
method: 'POST',
url: '/productSize/queryProdSizeList',
params: [
{name: "page", type: "number"},
{name: "productSkn", type: "number"},
{name: "brandId", type: "number"},
{name: "productSku", type: "number"},
{name: "maxSortId", type: "number"},
{name: "arriveStartTime", type: "number"},
{name: "arriveEndTime", type: "number"},
{name: "isMeasure", type: "string"}
]
},
{
route: '/meterManage/productSize/saveProdSizeInfo',
method: 'POST',
url: '/productSize/saveProdSizeInfo',
params: [
{name: "productSkn", type: "number"},
{name: "sizeInfoList", type: "string"},
{name: "productSizeReferList", type: "string"},
{name: "noMeasureIds", type: "string"}
]
},
{
route: '/meterManage/brand/getSelectItems',
method: 'POST',
url: '/brand/getSelectItems',
params: []
},
{//添加页面
route: '/meterManage/meterSize/add',//访问路由
method: 'GET',//方法
view: 'pages/meterManage/addSizeInfo',//视图
src: '/meterManage/addSizeInfo'//控制层
}
];