63 lines
1.4 KiB
JavaScript
63 lines
1.4 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 创建货物规格成品库
|
|
export function createFinishGoodSpecification(data) {
|
|
return request({
|
|
url: '/fpw/finish-good-specification/create',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 更新货物规格成品库
|
|
export function updateFinishGoodSpecification(data) {
|
|
return request({
|
|
url: '/fpw/finish-good-specification/update',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除货物规格成品库
|
|
export function deleteFinishGoodSpecification(id) {
|
|
return request({
|
|
url: '/fpw/finish-good-specification/delete?id=' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 获得货物规格成品库
|
|
export function getFinishGoodSpecification(id) {
|
|
return request({
|
|
url: '/fpw/finish-good-specification/get?id=' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获得货物规格成品库分页
|
|
export function getFinishGoodSpecificationPage(query) {
|
|
return request({
|
|
url: '/fpw/finish-good-specification/page',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 导出货物规格成品库 Excel
|
|
export function exportFinishGoodSpecificationExcel(query) {
|
|
return request({
|
|
url: '/fpw/finish-good-specification/export-excel',
|
|
method: 'get',
|
|
params: query,
|
|
responseType: 'blob'
|
|
})
|
|
}
|
|
|
|
// 获得产品信息管理code
|
|
export function getCode() {
|
|
return request({
|
|
url: '/fpw/finish-good-specification/getCode',
|
|
method: 'post'
|
|
})
|
|
}
|