// 产品维护页面接口
|
import request from '@/utils/request'
|
|
// 产品树查询
|
export function productTreeList(query) {
|
return request({
|
url: '/basic/product/list',
|
method: 'get',
|
params: query
|
})
|
}
|
// 产品树新增修改
|
export function addOrEditProduct(query) {
|
return request({
|
url: '/basic/product/addOrEditProduct',
|
method: 'post',
|
data: query
|
})
|
}
|
// 规格型号新增修改
|
export function addOrEditProductModel(query) {
|
return request({
|
url: '/basic/product/addOrEditProductModel',
|
method: 'post',
|
data: query
|
})
|
}
|
// 产品树删除
|
export function delProduct(query) {
|
return request({
|
url: '/basic/product/delProduct',
|
method: 'delete',
|
data: query
|
})
|
}
|
// 规格型号删除
|
export function delProductModel(query) {
|
return request({
|
url: '/basic/product/delProductModel',
|
method: 'delete',
|
data: query
|
})
|
}
|
// 规格型号查询
|
export function modelList(query) {
|
return request({
|
url: '/basic/product/modelList',
|
method: 'get',
|
params: query
|
})
|
}
|
export function modelListPage(query) {
|
return request({
|
url: '/basic/product/modelListPage',
|
method: 'get',
|
params: query
|
})
|
}
|
// 条码精确查询规格(扫码回填)
|
export function modelByBarcode(query) {
|
return request({
|
url: '/basic/product/model/byBarcode',
|
method: 'get',
|
params: query
|
})
|
}
|
// 规格分页查询(支持条码模糊)
|
export function pageModel(query) {
|
return request({
|
url: '/basic/product/pageModel',
|
method: 'get',
|
params: query
|
})
|
}
|