11 lines
820 B
JavaScript
11 lines
820 B
JavaScript
|
|
import request from '@/utils/request'
|
||
|
|
const baseUrl = '/bid/quotation'
|
||
|
|
export const listQuotation = (params) => request({ url: baseUrl + '/list', method: 'get', params })
|
||
|
|
export const getQuotation = (id) => request({ url: baseUrl + '/' + id, method: 'get' })
|
||
|
|
export const addQuotation = (data) => request({ url: baseUrl, method: 'post', data })
|
||
|
|
export const updateQuotation = (data) => request({ url: baseUrl, method: 'put', data })
|
||
|
|
export const submitQuotation = (id) => request({ url: baseUrl + '/submit/' + id, method: 'put' })
|
||
|
|
export const acceptQuotation = (id) => request({ url: baseUrl + '/accept/' + id, method: 'put' })
|
||
|
|
export const rejectQuotation = (id) => request({ url: baseUrl + '/reject/' + id, method: 'put' })
|
||
|
|
export const delQuotation = (ids) => request({ url: baseUrl + '/' + ids, method: 'delete' })
|