|
|
@ -5,15 +5,19 @@ export default { |
|
|
|
// 品牌品类 分类列表
|
|
|
|
brandListPage: function(params) { |
|
|
|
return request({ |
|
|
|
baseURL: '/api', |
|
|
|
url: '/customer/v1/restrictedbrand/listPage', |
|
|
|
method: 'post', |
|
|
|
data: params, |
|
|
|
headers: { 'Content-Type': 'application/json' } |
|
|
|
headers: { |
|
|
|
'Content-Type': 'application/json' |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 品牌品类 通过sid删除一条或多条记录
|
|
|
|
brandDelBySids: function(sid) { |
|
|
|
return request({ |
|
|
|
baseURL: '/api', |
|
|
|
url: '/customer/v1/restrictedbrand/delBySid/' + sid, |
|
|
|
method: 'delete' |
|
|
|
}) |
|
|
@ -21,15 +25,19 @@ export default { |
|
|
|
// 品牌品类 保存品牌品类
|
|
|
|
saveBrand: function(params) { |
|
|
|
return request({ |
|
|
|
baseURL: '/api', |
|
|
|
url: '/customer/v1/restrictedbrand/save', |
|
|
|
method: 'post', |
|
|
|
data: params, |
|
|
|
headers: { 'Content-Type': 'application/json' } |
|
|
|
headers: { |
|
|
|
'Content-Type': 'application/json' |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 品牌品类 通过sid查询一条记录
|
|
|
|
brandFetchBySid: function(sid) { |
|
|
|
return request({ |
|
|
|
baseURL: '/api', |
|
|
|
url: '/customer/v1/restrictedbrand/fetchDetailsBySid/' + sid |
|
|
|
}) |
|
|
|
}, |
|
|
@ -39,15 +47,19 @@ export default { |
|
|
|
// 类别维护 类别列表
|
|
|
|
classListPage: function(params) { |
|
|
|
return request({ |
|
|
|
baseURL: '/api', |
|
|
|
url: '/customer/v1/restrictedcategory/listPage', |
|
|
|
method: 'post', |
|
|
|
data: params, |
|
|
|
headers: { 'Content-Type': 'application/json' } |
|
|
|
headers: { |
|
|
|
'Content-Type': 'application/json' |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 类别维护 通过sid删除一条或多条记录
|
|
|
|
classDelBySids: function(sid) { |
|
|
|
return request({ |
|
|
|
baseURL: '/api', |
|
|
|
url: '/customer/v1/restrictedcategory/delBySid/' + sid, |
|
|
|
method: 'delete' |
|
|
|
}) |
|
|
@ -55,15 +67,19 @@ export default { |
|
|
|
// 类别维护 保存品牌品类
|
|
|
|
saveClass: function(params) { |
|
|
|
return request({ |
|
|
|
baseURL: '/api', |
|
|
|
url: '/customer/v1/restrictedcategory/save', |
|
|
|
method: 'post', |
|
|
|
data: params, |
|
|
|
headers: { 'Content-Type': 'application/json' } |
|
|
|
headers: { |
|
|
|
'Content-Type': 'application/json' |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 类别维护 通过sid查询一条记录
|
|
|
|
classFetchBySid: function(sid) { |
|
|
|
return request({ |
|
|
|
baseURL: '/api', |
|
|
|
url: '/customer/v1/restrictedcategory/fetchDetailsBySid/' + sid |
|
|
|
}) |
|
|
|
}, |
|
|
@ -72,10 +88,13 @@ export default { |
|
|
|
// 商品档案 分页列表
|
|
|
|
commodityListPage: function(params) { |
|
|
|
return request({ |
|
|
|
baseURL: '/api', |
|
|
|
url: '/customer/v1/productinformation/listPage', |
|
|
|
method: 'post', |
|
|
|
data: params, |
|
|
|
headers: { 'Content-Type': 'application/json' } |
|
|
|
headers: { |
|
|
|
'Content-Type': 'application/json' |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
@ -85,12 +104,15 @@ export default { |
|
|
|
url: '/customer/v1/productinformation/save', |
|
|
|
method: 'post', |
|
|
|
data: params, |
|
|
|
headers: { 'Content-Type': 'application/json' } |
|
|
|
headers: { |
|
|
|
'Content-Type': 'application/json' |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 商品档案 通过sid删除一条或多条记录
|
|
|
|
CommoditydelBySids: function(sid) { |
|
|
|
return request({ |
|
|
|
baseURL: '/api', |
|
|
|
url: '/customer/v1/productinformation/delBySid/' + sid, |
|
|
|
method: 'delete' |
|
|
|
}) |
|
|
@ -98,6 +120,7 @@ export default { |
|
|
|
// 商品档案 通过sid查询一条记录
|
|
|
|
CommodityFetchBySid: function(sid) { |
|
|
|
return request({ |
|
|
|
baseURL: '/api', |
|
|
|
url: '/customer/v1/productinformation/fetchDetailsBySid/' + sid |
|
|
|
}) |
|
|
|
}, |
|
|
|