74 lines
1.7 KiB
JavaScript
74 lines
1.7 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 创建原料成本自动统计报
|
|
export function createCostMaterialAutoReport(data) {
|
|
return request({
|
|
url: '/extend/cost-material-auto-report/create',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 更新原料成本自动统计报
|
|
export function updateCostMaterialAutoReport(data) {
|
|
return request({
|
|
url: '/extend/cost-material-auto-report/update',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除原料成本自动统计报
|
|
export function deleteCostMaterialAutoReport(id) {
|
|
return request({
|
|
url: '/extend/cost-material-auto-report/delete?id=' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 获得原料成本自动统计报
|
|
export function getCostMaterialAutoReport(id) {
|
|
return request({
|
|
url: '/extend/cost-material-auto-report/get?id=' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获得原料成本自动统计报分页历史
|
|
export function getCostMaterialAutoReportPage(data) {
|
|
return request({
|
|
url: '/extend/cost-material-auto-report/page',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 获得原料成本查询
|
|
export function getCostMaterialSearchPage(data) {
|
|
return request({
|
|
url: '/extend/cost-material-search/getData',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 导出原料成本自动统计报 Excel
|
|
export function exportCostMaterialAutoReportExcel(data) {
|
|
return request({
|
|
url: '/extend/cost-material-auto-report/export-excel',
|
|
method: 'post',
|
|
data: data,
|
|
responseType: 'blob'
|
|
})
|
|
}
|
|
|
|
// 导出原料成本自动统计报 Excel查询
|
|
export function exportCostMaterialSearch(data) {
|
|
return request({
|
|
url: '/extend/cost-material-search/export-excel',
|
|
method: 'post',
|
|
data: data,
|
|
responseType: 'blob'
|
|
})
|
|
}
|