62 lines
1.3 KiB
JavaScript
62 lines
1.3 KiB
JavaScript
/*
|
|
* @Author: zwq
|
|
* @Date: 2023-11-15 09:24:30
|
|
* @LastEditors: zwq
|
|
* @LastEditTime: 2023-12-05 14:38:48
|
|
* @Description:
|
|
*/
|
|
import request from '@/utils/request'
|
|
|
|
// 创建原料价位配置
|
|
export function createCostMaterialSet(data) {
|
|
return request({
|
|
url: '/extend/cost-material-set/create',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 更新原料价位配置
|
|
export function updateCostMaterialSet(data) {
|
|
return request({
|
|
url: '/extend/cost-material-set/update',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除原料价位配置
|
|
export function deleteCostMaterialSet(id) {
|
|
return request({
|
|
url: '/extend/cost-material-set/delete?id=' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 获得原料价位配置
|
|
export function getCostMaterialSet(id) {
|
|
return request({
|
|
url: '/extend/cost-material-set/get?id=' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获得原料价位配置分页
|
|
export function getCostMaterialSetPage(data) {
|
|
return request({
|
|
url: '/extend/cost-material-set/page',
|
|
method: 'POST',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 导出原料价位配置 Excel
|
|
export function exportCostMaterialSetExcel(query) {
|
|
return request({
|
|
url: '/extend/cost-material-set/export-excel',
|
|
method: 'get',
|
|
params: query,
|
|
responseType: 'blob'
|
|
})
|
|
}
|