spring
2026-05-25 0c4429a719f5c95a7690fae51efaaa799ef4e77d
src/api/basicData/product.js
@@ -8,4 +8,78 @@
        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 downloadProductModelImportTemplate() {
    return request({
        url: '/basic/product/export',
        method: 'get',
        responseType: 'blob'
    })
}
// 成品库存列表(用于销售台账产品选择)
export function finishedProductList(query) {
    return request({
        url: '/stockInventory/finishedProductList',
        method: 'get',
        params: query
    })
}
// 向下复制规格型号
export function downCopyProductModel(data) {
    return request({
        url: '/basic/product/downCopy',
        method: 'post',
        data
    })
}