netsale.js
4.42 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/**
* Created by ty on 2016/5/18.
*/
module.exports=function(app) {
app.get("/product/content/index", "goods.netsale.Index", function (req, res){
this.$extend={
moduleName:'商品管理',
pageName: '网销信息',
shopId:req.session.user.auth.shopId
};
});
app.get("/goods/netsale/batch", "goods.netsale.Batch", function (req, res){
this.$extend={
moduleName: '网销信息',
pageName: '批量设置'
};
});
app.get("/goods/netsale/info/:param", "goods.netsale.Edit","netsale_getNetSaleInfo", function (netsale,req, res){
this.$extend={
action: 'INFOR',
moduleName: "网销信息",
pageName: "查看商品信息",
shopsId:req.session.user.auth.shopId,
type:"info"
};
return netsale;
});
app.get("/goods/netsale/edit/:param", "goods.netsale.Edit","netsale_getNetSaleInfo", function (netsale,req, res){
this.$extend={
action: 'UPDATE',
moduleName: "网销信息",
maintitle: "编辑商品信息",
type:"edit",
shopsId:req.session.user.auth.shopId
};
return netsale;
});
/**************************网销列表页面****************************/
/*网销信息列表数据*/
app.post("/product/queryNetSaleInforList", "netsale_queryNetSaleInforList");
/*网销信息tab页*/
app.post("/product/queryTabProductNum", "netsale_queryTabProductNum");
/*批量上架下架*/
app.post("/product/updateProductSknTimingInfo", "netsale_updateProductSknTimingInfo");
/*skc上下架*/
app.post("/product/updateGoodsStatus", "netsale_updateGoodsStatus");
/*sku上下架*/
app.post("/product/updateProductSkuStatus", "netsale_updateProductSkuStatus");
/*查看网销详情*/
app.post("/product/getNetSaleInfo", "netsale_getNetSaleInfo");
//网销编辑页增加试穿模特
app.post("/meterManage/tryModel/addtryModelInfo", "netsale_addtryModelInfo");
//网销编辑页删除商品模特卡
app.post("/goods/product/delproductModelCard", "netsale_delproductModelCard");
/*********************************编辑**********************************/
/*保存完整数据*/
app.post("/product/saveNetSaleAllInfo", "netsale_saveNetSaleAllInfo");
/*保存基本信息*/
app.post("/product/saveNetSaleBaseInfo", "netsale_saveNetSaleBaseInfo");
/*保存商品描述*/
app.post("/product/saveProductDesc", "netsale_saveProductDesc");
/*小编推荐*/
app.post("/guang/article/queryArticlesBySKN", "netsale_queryArticlesBySKN");
/*小编推荐*/
app.post("/product/saveNetSaleRecommend", "netsale_saveNetSaleRecommend");
/*搭配模块*/
app.post("/collocation/selectCollocationListBySkn", "netsale_selectCollocationListBySkn");
app.post("/collocation/selectCollocationById", "netsale_selectCollocationById");
app.post("/collocation/insertCollocation", "netsale_insertCollocation");
app.post("/collocation/updateCollocation", "netsale_updateCollocation");
app.post("/collocation/delCollocationById", "netsale_delCollocationById");
/*封面*/
app.post("/productPhoto/queryProductPhotoList", "netsale_queryProductPhotoList");
/*单独维护封面信息*/
app.post("/product/manageProductImg", "netsale_manageProductImg");
/*搜索关键词*/
app.post("/searchWords/queryHotSearchTerms", "netsale_queryHotSearchTerms");
/*保存关键词*/
app.post("/product/saveNetSaleSearchKeys", "netsale_saveNetSaleSearchKeys");
app.post("/productSize/queryProdSizeList","netsale_queryProdSizeList")
app.post("/productSize/saveProdSizeInfo","netsale_saveProdSizeInfo");
app.post("/product/saveSearchSort", "netsale_saveSearchSort");
/*保存上架后补全信息*/
app.post("/product/saveAfterSaleInfo","netsale_saveAfterSaleInfo")
/*查询补全信息*/
app.post("/product/queryAttributesByConf","netsale_queryAttributesByConf");
app.post("/standard/queryAllBySortId4Html","netsale_queryAllBySortId4Html");
/*商品参数*/
app.post("/product/queryAttributesByConfEx","netsale_queryAttributesByConfEx");
app.post("/product/queryMaterialList","netsale_queryMaterialList");
app.post("/product/saveProductParam","netsale_saveProductParam");
app.post("/goods/product/addproductModelCard","netsale_addproductModelCard");
}