goods.priceManage.js
1.23 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
module.exports=function(app) {
/*变价管理列表页面*/
app.get("/goods/price/index","goods.priceManage.Index","price_queryAuditAuthority",function (authority,req,res) {
console.info(authority);
this.$extend={
moduleName:'商品管理',
pageName:'变价管理',
auditAuthority:authority.data
}
});
/*列表头部各个审核状态的数量*/
app.post("/goods/price/ajax/auditCount","price_getProductPriceCountByState");
/*列表数据*/
app.post("/goods/price/queryProductPriceManageList","price_queryProductPriceManageList");
/*通过*/
app.post("/goods/price/pass","price_auditPassProductPrice");
/*驳回*/
app.post("/goods/price/reject","price_auditRejectProductPrice");
/*批量修改学生价格*/
app.get("/supplier/baseproduct/batchUpdateStudentPrice","goods.batchUpdateStudentPrice.Batch",function(){
this.$extend={
moduleName:"基础商品",
pageName:"批量修改学生价",
isPL:true
}
});
/*学生价格列表页*/
app.get("/goods/studentPrice/index","goods.studentPrice.Index",function(){
this.$extend={
moduleName:"基础商品",
pageName:"学生价管理",
isPL:true
}
});
/*学生价列表数据*/
app.post("/goods/studentPrice/list","price_queryStudentPriceList");
}