import request from '@/utils/request' // 查询单价列表 export function listPrice(query) { return request({ url: '/yh/price/list', method: 'get', params: query }) } // 查询单价详细 export function getPrice(priceId) { return request({ url: '/yh/price/' + priceId, method: 'get' }) } // 新增单价 export function addPrice(data) { return request({ url: '/yh/price', method: 'post', data: data }) } // 修改单价 export function updatePrice(data) { return request({ url: '/yh/price', method: 'put', data: data }) } // 删除单价 export function delPrice(priceId) { return request({ url: '/yh/price/' + priceId, method: 'delete' }) } // 提交单价 export function submitPrice(priceId) { return request({ url: `/yh/price/${priceId}/submit`, method: 'put' }) } // 取消提交单价 export function cancelPrice(priceId) { return request({ url: `/yh/price/${priceId}/cancel`, method: 'put' }) } // 审核单价 export function verifyPrice(priceId, pass) { return request({ url: `/yh/price/verify`, method: 'put', data: { priceId, pass } }) } // 单价禁用 export function disablePrice(priceId) { return request({ url: `/yh/price/${priceId}/disable`, method: 'put' }) }