productBrank.js 1.52 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
  })
}

// 更新品牌
13 14 15 16 17 18 19 20 21
export function updateProductBrank(data) {
  return request({
    url: '/ecw/product-brank/update',
    method: 'put',
    data: data
  })
}

// 修改品牌默认收费模式
我在何方's avatar
我在何方 committed
22
export function changeFeeModel(data) {
23
  return request({
我在何方's avatar
我在何方 committed
24
    url: '/ecw/product-brank/changeFeeMode',
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 55 56 57 58 59 60 61 62 63
    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
64 65 66 67 68 69 70 71 72

// 更新品牌
export function setUnauthCustomerFeeType(data) {
  return request({
    url: '/ecw/product-brank/setUnauthCustomerFeeType',
    method: 'put',
    data: data
  })
}
黄卓's avatar
黄卓 committed
73 74 75 76 77 78 79 80 81

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