33 lines
721 B
TypeScript
33 lines
721 B
TypeScript
import request from '/@/utils/request';
|
|
enum Api {
|
|
PageProductManagement = '/api/productManagement/page',
|
|
BomTypeProductManagement = '/api/productManagement/bomType',
|
|
SyncToSAPProductManagement = '/api/productManagement/SyncToSAP',
|
|
}
|
|
|
|
// 分页查询产品管理
|
|
export const PageProductManagement = (params?: any) =>
|
|
request({
|
|
url: Api.PageProductManagement,
|
|
method: 'post',
|
|
data: params,
|
|
});
|
|
|
|
// BOM类型
|
|
export const BomTypeProductManagement = () =>
|
|
request({
|
|
url: Api.BomTypeProductManagement,
|
|
method: 'get',
|
|
data: {},
|
|
});
|
|
// 同步到SAP
|
|
export const SyncToSAPProductManagement = (params?: any) =>
|
|
request({
|
|
url: Api.SyncToSAPProductManagement,
|
|
method: 'post',
|
|
data: params,
|
|
});
|
|
|
|
|
|
|