2023-11-23

This commit is contained in:
2023-11-23 18:20:22 +08:00
parent 601692966b
commit 2e7776f84e
17 changed files with 1871 additions and 186 deletions

View File

@@ -0,0 +1,41 @@
import request from '@/utils/request'
export default {
// 获取商品列表
goodsListPage: function(data) {
return request({
url: '/lpkgoods/goodsListPage',
method: 'post',
data: data
});
},
// 新增、保存商品
saveGoods: function(data) {
return request({
url: '/lpkgoods/saveGoods',
method: 'post',
data: data
});
},
// 初始化商品
goodsInit: function(data) {
return request({
url: '/lpkgoods/goodsInit/'+data,
method: 'get'
});
},
// 删除商品
deleteGoods: function(data) {
return request({
url: '/lpkgoods/deleteGoods/'+data,
method: 'delete'
});
},
}

View File

@@ -0,0 +1,58 @@
import request from '@/utils/request'
export default {
// 礼包设置
// 获取礼包列表
giftBagListPage: function(data) {
return request({
url: '/lpkgiftbag/giftBagListPage',
method: 'post',
data: data
});
},
// 礼包选择商品时,返回的商品列表
getGoods: function(data) {
return request({
url: '/lpkgoods/getGoods',
method: 'post',
data: data
});
},
// 新增、保存礼包
saveGiftBag: function(data) {
return request({
url: '/lpkgiftbag/saveGiftBag',
method: 'post',
data: data
});
},
// 初始化礼包
giftBagInit: function(data) {
return request({
url: '/lpkgiftbag/giftBagInit/'+data,
method: 'get'
});
},
// 提货卡设置
// 获取提货卡页面 礼包列表
giftBagList: function(data) {
return request({
url: '/lpkgiftbag/giftBagList',
method: 'get',
data: data
});
},
}

View File

@@ -0,0 +1,41 @@
import request from '@/utils/request'
export default {
// 获取提货点列表
storeListPage: function(data) {
return request({
url: '/lpkstore/storeListPage',
method: 'post',
data: data
});
},
// 新增、保存提货点
saveStore: function(data) {
return request({
url: '/lpkstore/saveStore',
method: 'post',
data: data
});
},
// 初始化提货点
storeInit: function(data) {
return request({
url: '/lpkstore/storeInit/'+data,
method: 'get'
});
},
// 删除提货点
deleteStore: function(data) {
return request({
url: '/lpkstore/deleteStore/'+data,
method: 'delete'
});
},
}

View File

@@ -4,7 +4,7 @@ import qs from 'qs'
const base = process.env.VUE_APP_URL
// 文件上传接口
export const uploadFile = '/api/file/upload'
export const uploadFile = process.env.VUE_APP_BASE_API + '/file/upload'
// export const uploadFile = process.env.VUE_APP_BASE_API + '/customer/file/upload'