offer.js 2.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
import request from '@/utils/request'

// 创建报价单管理
export function createOffer(data) {
  return request({
    url: '/ecw/offer/create',
    method: 'post',
    data: data
  })
}

// 更新报价单管理
export function updateOffer(data) {
  return request({
    url: '/ecw/offer/update',
    method: 'put',
    data: data
  })
}

// 删除报价单管理
export function deleteOffer(id) {
  return request({
    url: '/ecw/offer/delete?id=' + id,
    method: 'delete'
  })
}

// 获得报价单管理
export function getOffer(id) {
  return request({
32
    url: '/ecw/offer/get?offerId=' + id,
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
    method: 'get'
  })
}

// 获得报价单管理分页
export function getOfferPage(query) {
  return request({
    url: '/ecw/offer/page',
    method: 'get',
    params: query
  })
}

// 导出报价单管理 Excel
export function exportOfferExcel(query) {
  return request({
    url: '/ecw/offer/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
ylpmty's avatar
ylpmty committed
55 56 57 58 59 60 61 62

// 更新报价单结果
export function updateOfferResult(data) {
  return request({
    url: '/ecw/offer/update/result',
    method: 'put',
    data: data
  })
63 64 65 66 67 68 69 70
}

// 获取费用清单列表
export function getProductFeeList(prodCreateReqVO){
  return request({
    url: '/ecw/offer/calculation/prod-fee-List',
    method: 'post',
    data: prodCreateReqVO
Marcus's avatar
Marcus committed
71
  })
72 73 74 75 76 77 78 79
}

// 获取费用清单
export function getProductFee(calculationFeeParamVO){
  return request({
    url: '/ecw/offer/calculation/fee-List',
    method: 'post',
    data: calculationFeeParamVO
Marcus's avatar
Marcus committed
80 81 82 83 84 85 86 87 88 89 90
  })
}

// 特价申请
export function createOfferSpecial(data) {
  return request({
    url: '/ecw/offer/special/apply',
    method: 'put',
    data: data
  })
}
Marcus's avatar
Marcus committed
91 92

// 特价详情
dragondean@qq.com's avatar
dragondean@qq.com committed
93
export function getOfferSpecial(offerProdId, params) {
Marcus's avatar
Marcus committed
94
  return request({
Marcus's avatar
Marcus committed
95
    url: '/ecw/offer/special/info/' + offerProdId,
dragondean@qq.com's avatar
dragondean@qq.com committed
96 97
    method: 'get',
    params
Marcus's avatar
Marcus committed
98 99 100
  })
}

101 102 103 104 105 106 107 108
// 特价详情
export function getOfferSpecialByApproveId(approveId) {
  return request({
    url: '/ecw/offer/special/info?approveId=' + approveId,
    method: 'get'
  })
}

109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125

// 取消报价管理
export function cancel(id) {
  return request({
    url: '/ecw/offer/cancel',
    method: 'delete',
    params: {id}
  })
}

// 恢复取消的报价管理
export function recovery(id) {
  return request({
    url: '/ecw/offer/recovery',
    method: 'delete',
    params: {id}
  })
126 127 128 129 130 131 132 133 134 135
}

// 获取部门报价单列表
export function offerDeptPage(params) {
  return request({
    url: '/ecw/offer/dept/page',
    method: 'get',
    params
  })
}
136 137 138 139 140 141 142 143 144 145

// 导出部分报价单 exportDeptOfferExcel
export function exportDeptOfferExcel(query) {
  return request({
    url: '/ecw/offer/dept/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}