productBrank.js 1.34 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
import request from '@/utils/request'

// 创建品牌
export function createProductBrank(data) {
  return request({
    url: '/ecw/product-brank/create',
    method: 'post',
    data: data
  })
}

// 更新品牌
我在何方's avatar
我在何方 committed
13
export function changeFeeModel(data) {
14
  return request({
我在何方's avatar
我在何方 committed
15
    url: '/ecw/product-brank/changeFeeMode',
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
    method: 'put',
    data: data
  })
}

// 删除品牌
export function deleteProductBrank(id) {
  return request({
    url: '/ecw/product-brank/delete?id=' + id,
    method: 'delete'
  })
}

// 获得品牌
export function getProductBrank(id) {
  return request({
    url: '/ecw/product-brank/get?id=' + id,
    method: 'get'
  })
}

// 获得品牌分页
export function getProductBrankPage(query) {
  return request({
    url: '/ecw/product-brank/page',
    method: 'get',
    params: query
  })
}

// 导出品牌 Excel
export function exportProductBrankExcel(query) {
  return request({
    url: '/ecw/product-brank/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
我在何方's avatar
我在何方 committed
55 56 57 58 59 60 61 62 63

// 更新品牌
export function setUnauthCustomerFeeType(data) {
  return request({
    url: '/ecw/product-brank/setUnauthCustomerFeeType',
    method: 'put',
    data: data
  })
}
黄卓's avatar
黄卓 committed
64 65 66 67 68 69 70 71 72

//
export function getFeeTypeByCustomerProduct(data){
  return request({
    url: '/ecw/product-brank/getFeeTypeByCustomerProduct',
    method: 'post',
    data
  })
}