|
@@ -3,7 +3,7 @@ import request from '@/utils/request'
|
|
|
// 查询商品列表
|
|
// 查询商品列表
|
|
|
export function listStoreProduct(query) {
|
|
export function listStoreProduct(query) {
|
|
|
return request({
|
|
return request({
|
|
|
- url: '/store/store/storeProduct/list',
|
|
|
|
|
|
|
+ url: '/store/storeProduct/list',
|
|
|
method: 'get',
|
|
method: 'get',
|
|
|
params: query
|
|
params: query
|
|
|
})
|
|
})
|
|
@@ -11,7 +11,7 @@ export function listStoreProduct(query) {
|
|
|
|
|
|
|
|
export function batchModify(param) {
|
|
export function batchModify(param) {
|
|
|
return request({
|
|
return request({
|
|
|
- url: '/store/store/storeProduct/batchModify',
|
|
|
|
|
|
|
+ url: '/store/storeProduct/batchModify',
|
|
|
method: 'post',
|
|
method: 'post',
|
|
|
data: param
|
|
data: param
|
|
|
})
|
|
})
|
|
@@ -20,7 +20,7 @@ export function batchModify(param) {
|
|
|
// 查询商品详细
|
|
// 查询商品详细
|
|
|
export function getStoreProduct(productId) {
|
|
export function getStoreProduct(productId) {
|
|
|
return request({
|
|
return request({
|
|
|
- url: '/store/store/storeProduct/' + productId,
|
|
|
|
|
|
|
+ url: '/store/storeProduct/' + productId,
|
|
|
method: 'get'
|
|
method: 'get'
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -28,7 +28,7 @@ export function getStoreProduct(productId) {
|
|
|
|
|
|
|
|
export function addOrEdit(data) {
|
|
export function addOrEdit(data) {
|
|
|
return request({
|
|
return request({
|
|
|
- url: '/store/store/storeProduct/addOrEdit',
|
|
|
|
|
|
|
+ url: '/store/storeProduct/addOrEdit',
|
|
|
method: 'post',
|
|
method: 'post',
|
|
|
data: data
|
|
data: data
|
|
|
})
|
|
})
|
|
@@ -36,7 +36,7 @@ export function addOrEdit(data) {
|
|
|
|
|
|
|
|
export function importTemplate() {
|
|
export function importTemplate() {
|
|
|
return request({
|
|
return request({
|
|
|
- url: '/store/store/storeProduct/importTemplate',
|
|
|
|
|
|
|
+ url: '/store/storeProduct/importTemplate',
|
|
|
method: 'get'
|
|
method: 'get'
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -45,7 +45,7 @@ export function importTemplate() {
|
|
|
// 删除商品
|
|
// 删除商品
|
|
|
export function delStoreProduct(productId) {
|
|
export function delStoreProduct(productId) {
|
|
|
return request({
|
|
return request({
|
|
|
- url: '/store/store/storeProduct/' + productId,
|
|
|
|
|
|
|
+ url: '/store/storeProduct/' + productId,
|
|
|
method: 'delete'
|
|
method: 'delete'
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
@@ -53,7 +53,7 @@ export function delStoreProduct(productId) {
|
|
|
// 导出商品
|
|
// 导出商品
|
|
|
export function exportStoreProduct(query) {
|
|
export function exportStoreProduct(query) {
|
|
|
return request({
|
|
return request({
|
|
|
- url: '/store/store/storeProduct/export',
|
|
|
|
|
|
|
+ url: '/store/storeProduct/export',
|
|
|
method: 'get',
|
|
method: 'get',
|
|
|
params: query
|
|
params: query
|
|
|
})
|
|
})
|
|
@@ -61,7 +61,7 @@ export function exportStoreProduct(query) {
|
|
|
|
|
|
|
|
export function genFormatAttr(productId,json) {
|
|
export function genFormatAttr(productId,json) {
|
|
|
return request({
|
|
return request({
|
|
|
- url: '/store/store/storeProduct/genFormatAttr/'+productId,
|
|
|
|
|
|
|
+ url: '/store/storeProduct/genFormatAttr/'+productId,
|
|
|
method: 'post',
|
|
method: 'post',
|
|
|
data: json
|
|
data: json
|
|
|
})
|
|
})
|
|
@@ -70,7 +70,7 @@ export function genFormatAttr(productId,json) {
|
|
|
|
|
|
|
|
export function getStoreProductAttrValueList(query) {
|
|
export function getStoreProductAttrValueList(query) {
|
|
|
return request({
|
|
return request({
|
|
|
- url: '/store/store/storeProduct/getStoreProductAttrValueList',
|
|
|
|
|
|
|
+ url: '/store/storeProduct/getStoreProductAttrValueList',
|
|
|
method: 'get',
|
|
method: 'get',
|
|
|
params: query
|
|
params: query
|
|
|
})
|
|
})
|
|
@@ -79,7 +79,7 @@ export function getStoreProductAttrValueList(query) {
|
|
|
|
|
|
|
|
export function getStoreTuiProductAttrValueList(query) {
|
|
export function getStoreTuiProductAttrValueList(query) {
|
|
|
return request({
|
|
return request({
|
|
|
- url: '/store/store/storeProduct/getStoreTuiProductAttrValueList',
|
|
|
|
|
|
|
+ url: '/store/storeProduct/getStoreTuiProductAttrValueList',
|
|
|
method: 'get',
|
|
method: 'get',
|
|
|
params: query
|
|
params: query
|
|
|
})
|
|
})
|
|
@@ -87,7 +87,7 @@ export function getStoreTuiProductAttrValueList(query) {
|
|
|
|
|
|
|
|
export function productBySearCh(query) {
|
|
export function productBySearCh(query) {
|
|
|
return request({
|
|
return request({
|
|
|
- url: '/store/store/storeProduct/listBySearch',
|
|
|
|
|
|
|
+ url: '/store/storeProduct/listBySearch',
|
|
|
method: 'get',
|
|
method: 'get',
|
|
|
params: query
|
|
params: query
|
|
|
})
|
|
})
|