productBatch.js
1.39 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
module.exports = function (app) {
//量贩
app.get("/product/batch/index", "product.productBatch.Index", function(req, res) {
this.$extend = {
moduleName: "营销管理",
pageName: "量贩管理"
}
});
app.get("/product/batch/edit", "product.productBatch.Edit", function(req, res) {
this.$extend = {
moduleName: "营销管理",
pageName: "量贩编辑",
action: "/product/batch/save"
}
});
app.get("/product/batch/import", "product.productBatch.Import", function(req, res) {
this.$extend = {
moduleName: "营销管理",
pageName: "量贩导入"
}
});
app.get("/product/batch/:id", "product.productBatch.Edit", "productBatch_findProductBatchByID", function(apiReq) {
this.$extend = {
moduleName: "营销管理",
pageName: "编辑量贩",
action: "/product/batch/save",
data: apiReq.data
}
});
app.post("/product/batch/list", "productBatch_productBatchList");
app.post("/product/batch/trigger", "productBatch_productBatchTrigger");
app.post("/product/batch/save", "productBatch_productBatchUpdate");
app.post("/product/batch/history", "productBatch_findBatchHistory");
app.post("/product/batch/sync", "productBatch_syncProductBatchToFront");
}