|
|
@@ -3,7 +3,7 @@ import request from '@/utils/request'
|
|
|
// 查询商品列表
|
|
|
export function listStoreProduct(query) {
|
|
|
return request({
|
|
|
- url: '/store/storeProduct/list',
|
|
|
+ url: '/store/store/storeProduct/list',
|
|
|
method: 'get',
|
|
|
params: query
|
|
|
})
|
|
|
@@ -11,7 +11,7 @@ export function listStoreProduct(query) {
|
|
|
|
|
|
export function batchModify(param) {
|
|
|
return request({
|
|
|
- url: '/store/storeProduct/batchModify',
|
|
|
+ url: '/store/store/storeProduct/batchModify',
|
|
|
method: 'post',
|
|
|
data: param
|
|
|
})
|
|
|
@@ -19,7 +19,7 @@ export function batchModify(param) {
|
|
|
|
|
|
export function batchAudit(param) {
|
|
|
return request({
|
|
|
- url: '/store/storeProduct/batchAudit',
|
|
|
+ url: '/store/store/storeProduct/batchAudit',
|
|
|
method: 'post',
|
|
|
data: param
|
|
|
})
|
|
|
@@ -28,7 +28,7 @@ export function batchAudit(param) {
|
|
|
// 查询商品详细
|
|
|
export function getStoreProduct(productId) {
|
|
|
return request({
|
|
|
- url: '/store/storeProduct/' + productId,
|
|
|
+ url: '/store/store/storeProduct/' + productId,
|
|
|
method: 'get'
|
|
|
})
|
|
|
}
|
|
|
@@ -36,7 +36,7 @@ export function getStoreProduct(productId) {
|
|
|
|
|
|
export function addOrEdit(data) {
|
|
|
return request({
|
|
|
- url: '/store/storeProduct/addOrEdit',
|
|
|
+ url: '/store/store/storeProduct/addOrEdit',
|
|
|
method: 'post',
|
|
|
data: data
|
|
|
})
|
|
|
@@ -44,7 +44,7 @@ export function addOrEdit(data) {
|
|
|
|
|
|
export function importTemplate() {
|
|
|
return request({
|
|
|
- url: '/store/storeProduct/importTemplate',
|
|
|
+ url: '/store/store/storeProduct/importTemplate',
|
|
|
method: 'get'
|
|
|
})
|
|
|
}
|
|
|
@@ -53,14 +53,14 @@ export function importTemplate() {
|
|
|
// 删除商品
|
|
|
export function delStoreProduct(productId) {
|
|
|
return request({
|
|
|
- url: '/store/storeProduct/' + productId,
|
|
|
+ url: '/store/store/storeProduct/' + productId,
|
|
|
method: 'delete'
|
|
|
})
|
|
|
}
|
|
|
// 复制商品
|
|
|
export function copyStoreProduct(productId) {
|
|
|
return request({
|
|
|
- url: '/store/storeProduct/copyStoreProduct?productId=' + productId,
|
|
|
+ url: '/store/store/storeProduct/copyStoreProduct?productId=' + productId,
|
|
|
method: 'get'
|
|
|
})
|
|
|
}
|
|
|
@@ -68,7 +68,7 @@ export function copyStoreProduct(productId) {
|
|
|
// 批量复制商品
|
|
|
export function bulkCopy(productId) {
|
|
|
return request({
|
|
|
- url: '/store/storeProduct/bulkCopy/' + productId,
|
|
|
+ url: '/store/store/storeProduct/bulkCopy/' + productId,
|
|
|
method: 'get'
|
|
|
})
|
|
|
}
|
|
|
@@ -76,7 +76,7 @@ export function bulkCopy(productId) {
|
|
|
// 导出商品
|
|
|
export function exportStoreProduct(query) {
|
|
|
return request({
|
|
|
- url: '/store/storeProduct/export',
|
|
|
+ url: '/store/store/storeProduct/export',
|
|
|
method: 'get',
|
|
|
params: query
|
|
|
})
|
|
|
@@ -84,7 +84,7 @@ export function exportStoreProduct(query) {
|
|
|
|
|
|
export function genFormatAttr(productId,json) {
|
|
|
return request({
|
|
|
- url: '/store/storeProduct/genFormatAttr/'+productId,
|
|
|
+ url: '/store/store/storeProduct/genFormatAttr/'+productId,
|
|
|
method: 'post',
|
|
|
data: json
|
|
|
})
|
|
|
@@ -93,7 +93,7 @@ export function genFormatAttr(productId,json) {
|
|
|
|
|
|
export function getStoreProductAttrValueList(query) {
|
|
|
return request({
|
|
|
- url: '/store/storeProduct/getStoreProductAttrValueList',
|
|
|
+ url: '/store/store/storeProduct/getStoreProductAttrValueList',
|
|
|
method: 'get',
|
|
|
params: query
|
|
|
})
|
|
|
@@ -102,7 +102,7 @@ export function getStoreProductAttrValueList(query) {
|
|
|
|
|
|
export function getStoreTuiProductAttrValueList(query) {
|
|
|
return request({
|
|
|
- url: '/store/storeProduct/getStoreTuiProductAttrValueList',
|
|
|
+ url: '/store/store/storeProduct/getStoreTuiProductAttrValueList',
|
|
|
method: 'get',
|
|
|
params: query
|
|
|
})
|
|
|
@@ -110,7 +110,7 @@ export function getStoreTuiProductAttrValueList(query) {
|
|
|
|
|
|
export function productBySearCh(query) {
|
|
|
return request({
|
|
|
- url: '/store/storeProduct/listBySearch',
|
|
|
+ url: '/store/store/storeProduct/listBySearch',
|
|
|
method: 'get',
|
|
|
params: query
|
|
|
})
|