price.js
1.81 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
/**
* Created by ty on 2016/5/19.
*/
module.exports=function(app) {
app.get("/product/price/index", "goods.price.Change", function (req, res){
this.$extend={
headerTab: {
changePrice: true
},
moduleName: '商品管理',
pageName: '代销变价',
bottons: '{"edit":true,"columnsHidisFr":true}',
gridurl: '/product/queryProductPriceList',
domain: exports.domain,
download: '/ajax/link/batchUpdatePrice'
};
});
app.get("/goods/brandCooperation/index", "goods.price.Brand-cooperation", function (req, res){
this.$extend={
headerTab: {
brandCooperation: true
},
secondTitle: '价格管理',
pageTitle: '品牌合作模式设置',
filter: {
brandInput: true,
brandCooperation: true,
brandCooperationSet: true
},
bulkImport: true,
bottons: '{"edit":true,"columnsHidisFr":true}',
gridurl: '/goods/brandCooperation/list',
domain: exports.domain,
download: '/common/brandCooperation.xlsx'
};
});
app.post("/product/queryProductPriceList", "price_queryProductPriceList");
app.post("/product/getProductPrice", "price_getProductPrice");
app.post("/product/updateProductPrice", "price_updateProductPrice");
app.post("/product/batchUpdateProductPrice", "price_batchUpdateProductPrice");
app.post("/goods/brandCooperation/list", "price_queryBrandCooperationList");
app.post("/goods/brandCooperation/update", "price_saveBrandCooperation");
app.post("/ShopsRest/getShopsByName", "price_selectCheckPassShopsByName");
app.post("/brand/getBrandNames", "price_getBrandNames");
};