积分商城后台管理
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

234 lines
5.3 KiB

import request from '@/utils/request'
var service_name = 'oil-mall'
export default {
productAddGetSites(productId) {
return request({
url: `/${service_name}/mallProductSiteRelation/get/${productId}`,
method: 'GET',
})
},
productAddGetEdit(productId) {
return request({
url: `/${service_name}/mallProductInfo/getEdit/${productId}`,
method: 'GET',
})
},
productListAuditingDetailgetByPage(productId) {
return request({
url: `/${service_name}/mallProductAuditHistory/getListByProductId/${productId}`,
method: 'GET',
})
},
productListDelete(data) {
return request({
url: `/${service_name}/mallProductInfo/delete`,
method: 'post',
data
})
},
productListAuditProduct(data) {
return request({
url: `/${service_name}/mallProductInfo/auditProduct`,
method: 'post',
data
})
},
productListUpdateBatchList(data) {
return request({
url: `/${service_name}/mallProductStock/updateBatchList`,
method: 'post',
data
})
},
productListGetByPage(data) {
return request({
url: `/${service_name}/mallProductInfo/getByPage`,
method: 'post',
data
})
},
addUpdate(data) {
return request({
url: `/${service_name}/mallProductInfo/update`,
method: 'post',
data
})
},
addSave(data) {
return request({
url: `/${service_name}/mallProductInfo/save`,
method: 'post',
data
})
},
batchShelves(data) {
return request({
url: `/${service_name}/mallProductInfo/upOrDownShelves`,
method: 'post',
data
})
},
getAllSites(data) {
return request({
url: `/${service_name}/mallProductSiteRelation/getAllSites`,
method: 'post',
data
})
},
getChannels() {
return request({
url: `/${service_name}/mallProductSiteRelation/getAllChannels`,
method: 'get',
})
},
getCheckedSites(productId) {
return request({
url: `/${service_name}/mallProductSiteRelation/getCheckedSites/${productId}`,
method: 'get',
})
},
brandGetAll(data) {
return request({
url: `/${service_name}/mallProductBrands/getAll`,
method: 'post',
data
})
},
brandUpdate(data) {
return request({
url: `/${service_name}/mallProductBrands/update`,
method: 'post',
data
})
},
brandDelete(data) {
return request({
url: `/${service_name}/mallProductBrands/delete`,
method: 'post',
data
})
},
brandSave(data) {
return request({
url: `/${service_name}/mallProductBrands/save`,
method: 'post',
data
})
},
brandGetByPage(data) {
return request({
url: `/${service_name}/mallProductBrands/getByPage`,
method: 'post',
data
})
},
getAllAttributesType() {
return request({
url: `/${service_name}/mallProductAttributesType/getAllAttributesType`,
method: 'get',
})
},
getClassificationTree() {
return request({
url: `/${service_name}/mallProductClassification/getClassificationTree`,
method: 'get',
})
},
classifySave(page) {
return request({
url: `/${service_name}/mallProductClassification/save`,
method: 'post',
data: page
})
},
classifyUpdate(page) {
return request({
url: `/${service_name}/mallProductClassification/update`,
method: 'post',
data: page
})
},
classifyGetByPage(page) { // 分页查询
return request({
url: `/${service_name}/mallProductClassification/getByPage`,
method: 'post',
data: page
})
},
typeFindByPage(page) { // 分页查询
return request({
url: `/${service_name}/mallProductAttributesType/getByPage`,
method: 'post',
data: page
})
},
getByPage(page) { // 分页查询
return request({
url: `/${service_name}/mallProductAttributes/getByPage`,
method: 'post',
data: page
})
},
getAttrList(id) { // 分页查询
return request({
url: `/${service_name}/mallProductAttributes/get/${id}`,
method: 'GET',
})
},
delete(page) {
return request({
url: `/${service_name}/mallProductAttributes/delete`,
method: 'post',
data: page
})
},
classifyDelete(page) {
return request({
url: `/${service_name}/mallProductClassification/delete`,
method: 'post',
data: page
})
},
typeSave(page) {
return request({
url: `/${service_name}/mallProductAttributesType/save`,
method: 'post',
data: page
})
},
save(page) {
return request({
url: `/${service_name}/mallProductAttributes/save`,
method: 'post',
data: page
})
},
typeUpdate(page) {
return request({
url: `/${service_name}/mallProductAttributes/update`,
method: 'post',
data: page
})
},
update(page) {
return request({
url: `/${service_name}/mallProductAttributesType/update`,
method: 'post',
data: page
})
},
typeDelete(page) {
return request({
url: `/${service_name}/mallProductAttributesType/delete`,
method: 'post',
data: page
})
},
getInventoryRecords(page) {
return request({
url: `/oil-mongo-log/updateStock/getRecords`,
method: 'post',
data: page
})
},
}