basegoods.js
2.16 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
module.exports=function(app) {
/*基础商品列表*/
app.get("/supplier/baseproduct/index","goods.basegoods.Index",function(){
this.$extend={
moduleName:"基础商品",
pageName:"商品列表"
}
});
/*列表头部各个审核状态的数量*/
app.post("/base/goods/ajax/auditCount","basegoods_getbaseProductCountByStatus");
/*ajax列表数据*/
app.post("/product/getBaseProductList","basegoods_getBaseProductList");
/*添加页面*/
app.get("/base/goods/add","goods.basegoods.Edit","basegoods_queryProductColors",function(){
this.$extend={
moduleName:"基础商品",
pageName:"添加商品"
}
});
/*添加数据接口*/
app.post("/base/goods/ajax/add","basegoods_addBaseProduct");
/*修改页面*/
app.get("/base/goods/update/:productSkn/:isAuditing","goods.basegoods.Edit","basegoods_queryProductColors",function(){
this.$extend={
moduleName:"基础商品",
pageName:"修改商品"
}
});
/*删除*/
app.post("/base/goods/ajax/delete","basegoods_deleteBaseProduct");
/*修改接口*/
app.post("/base/goods/ajax/update","basegoods_updateBaseProduct");
/*基础商品详情空页面*/
app.get("/base/goods/info/:productSkn/:isAuditing","goods.basegoods.Info");
/*获取商品详情数据*/
app.post("/base/goods/getData","goods_getBaseProduct");
/*获取颜色*/
app.post("/base/goods/queryProductColors","goods_queryProductColors");
/*通过*/
app.post("/base/goods/pass","goods_batchAuditPassBaseProduct");
/*驳回*/
app.post("/base/goods/reject","goods_batchAuditRejectBaseProduct");
/*商品属性*/
app.post("/base/goods/queryAllProductAttr","goods_queryAllBySortId4Html");
/*尺码列表*/
app.post("/base/goods/queryMaterialList","goods_queryMaterialList");
/*类目*/
app.post("/goods/query/querySortBySmallSort","goods_querySortBySmallSort");
/*批量*/
app.get("/goods/piliang/batch","goods.basegoods.Index");
/*基础商品录入*/
app.get("/goods/base/batch","goods.basebatch.Index");
/*检查SKU*/
app.post("/goods/base/checkSkuBarCodeExist","goods_checkSkuBarCodeExist");
/*通过任务ID查看任务是否被执行完*/
app.post("/product/queryBatchImportResult","goods_queryBatchImportResult");
}