promotion.js
2.43 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
module.exports = function (app){
app.get("/promotionInfo/index", "customService.promotion.Index", function (req,res){
this.$extend={
moduleName:"营销管理",
pageName:"促销管理"
}
});
//新增促销基本信息
app.get("/promotionInfo/addNew", "customService.promotion.Add", function (req,res){
this.$extend={
moduleName:"营销管理",
pageName:"促销编辑"
}
});
//促销编辑页
app.get("/promotionInfo/edit/:param", "customService.promotion.Edit","promotion_getPromotionInfo", function (rs,req,res){
this.$extend={
moduleName:"营销管理",
pageName:"促销编辑",
action: '/promotion/update',
data:rs.data
};
return rs;
});
//
app.post("/promotionInfo/detail","promotion_getPromotionInfo");
//促销列表
app.post("/promotionInfo/list","promotion_getPromotionInfoList");
//新增促销信息
app.post("/promotionInfo/add","promotion_addPromotionInfo");
//编辑促销信息
app.post("/promotionInfo/update","promotion_updatePromotionInfo");
//删除促销信息
app.post("/promotionInfo/delete","promotion_deletePromotionInfo");
//参数-促销条件
app.post("/promotion/setCondition","promotion_setCondition");
//参数-促销操作
app.post("/promotion/setOperation","promotion_setOperation");
//参数- 促销限制
app.post("/promotion/setLimit","promotion_setLimit");
//参数-互斥促销
app.post("/promotion/setReject","promotion_setReject");
//参数-促销显示
app.post("/promotion/setDisplay","promotion_setDisplay");
//所有促销标记
app.post("/promotion/getpromotionProductFlags","promotion_getpromotionProductFlags");
//在有效期的促销
app.post("/promotionInfo/getActivePromotionInfoList","promotion_getActivePromotionInfoList");
//日志列表
app.get("/promotionInfo/log/index", "customService.promotion.LogIndex", function (req,res){
this.$extend={
moduleName:"营销管理",
pageName:"促销日志"
}
});
//促销列表
app.post("/promotionInfo/log/list","promotion_getPromotionLogList");
//促销多档
app.post("/promotion/setMulti","promotion_setMulti");
app.post("/promotion/getMultiPromotionPage","promotion_getMultiPromotionPage");
}