2026-04-27 10:40:56 +08:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
export function listProductLabor(query) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/api/mat/productLabor/list',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: query
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function addProductLabor(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/api/mat/productLabor',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function updateProductLabor(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/api/mat/productLabor',
|
|
|
|
|
method: 'put',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function delProductLabor(laborId) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/api/mat/productLabor/' + laborId,
|
|
|
|
|
method: 'delete'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-28 16:53:35 +08:00
|
|
|
export function batchSaveProductLabor(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/api/mat/productLabor/batchSave',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data
|
|
|
|
|
})
|
|
|
|
|
}
|