96 lines
2.3 KiB
JavaScript
96 lines
2.3 KiB
JavaScript
import { param } from '@/utils'
|
|
import request from '@/utils/request'
|
|
// const suffix = '.dspy'// 匹配所有url后缀
|
|
//* *********分销商产品配置信息接口**************
|
|
// 获取产品配置
|
|
export function resellerDiscountOldSearchAPI(params) {
|
|
return request({
|
|
url: `product/productSearch.dspy`,
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
// 获取折扣
|
|
export function resellerDiscountSearchAPI(params) {
|
|
return request({
|
|
url: `/reseller/resellerDiscountOldSearch.dspy`,
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
// 添加分销商折扣
|
|
export function addDiscountAPI(data) {
|
|
return request({
|
|
url: `/reseller/resellerDiscountAdd.dspy`,
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
// 分销商折扣修改
|
|
export function discountUpdateAPI(data) {
|
|
console.log(data);
|
|
return request({
|
|
url: `/reseller/resellerDiscountUpdate.dspy`,
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 分销商折扣删除
|
|
export function discountDeleteAPI(id) {
|
|
return request({
|
|
url: `/reseller/resellerDiscountDelete.dspy?id=${id}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
////////////////////////////回佣////////////////////////////
|
|
// 添加分销商回佣
|
|
export function addRebateAPI(data) {
|
|
return request({
|
|
url: `/product/RebateAdd.dspy`,
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
// 查找分销商回佣
|
|
export function resellerRebateSearchAPI(data) {
|
|
return request({
|
|
url: `/product/RebateSearch.dspy`,
|
|
method: 'post',
|
|
params: data
|
|
})
|
|
}
|
|
// 删除分销商回佣
|
|
export function rebateDeleteAPI(id) {
|
|
return request({
|
|
url: `/product/RebateDelete.dspy`,
|
|
method: 'get',
|
|
params: id
|
|
})
|
|
}
|
|
////////////////////////////售价////////////////////////////
|
|
//添加底价//设置售价
|
|
export function price_guanli_jiaAPI(params) {
|
|
return request({
|
|
url: `/product/price_guanli_jia.dspy`,
|
|
method: 'post',
|
|
params
|
|
})
|
|
}
|
|
//查询售价
|
|
export function shoujia_guanli_chaAPI(params) {
|
|
return request({
|
|
url: `/product/shoujia_guanli_cha.dspy`,
|
|
method: 'post',
|
|
params
|
|
})
|
|
}
|
|
//删除底价
|
|
export function floorPriceDeleteAPI(params) {
|
|
return request({
|
|
url: `/reseller/floorPriceDelete.dspy`,
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|