This commit is contained in:
2025-08-18 01:59:58 +08:00
parent 5508c72442
commit fd220a4038
3 changed files with 615 additions and 4 deletions

View File

@@ -8,3 +8,71 @@ export function generatePromotionContent(data) {
data: data
})
}
// 创建商品(基于转链生成的文案与图片)
export function createProductByPromotion(data) {
return request({
url: '/erp/product/createByPromotion',
method: 'post',
data: data
})
}
// 地区下拉
export function getProvinces() {
return request({
url: '/erp/region/provinces',
method: 'get'
})
}
export function getCities(provId) {
return request({
url: '/erp/region/cities',
method: 'get',
params: { provId }
})
}
export function getAreas(provId, cityId) {
return request({
url: '/erp/region/areas',
method: 'get',
params: { provId, cityId }
})
}
// 类目下拉
export function getCategories(params) {
return request({
url: '/erp/product/categories',
method: 'get',
params
})
}
// 会员名下拉
export function getUsernames(params) {
return request({
url: '/erp/product/usernames',
method: 'get',
params
})
}
// ERP 账号下拉(备用)
export function getERPAccounts() {
return request({
url: '/erp/product/ERPAccount',
method: 'get'
})
}
// 属性下拉
export function getProperties(params) {
return request({
url: '/erp/product/pv',
method: 'get',
params
})
}