You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LanJu_UI/src/api/wms/factory.js

45 lines
756 B
JavaScript

import request from '@/utils/request'
// 查询工厂模型列表
export function listFactory(query) {
return request({
url: '/wms/factory/list',
method: 'get',
params: query
});
}
// 查询工厂模型详细
export function getFactory(factoryId) {
return request({
url: '/wms/factory/' + factoryId,
method: 'get'
});
}
// 新增工厂模型
export function addFactory(data) {
return request({
url: '/wms/factory',
method: 'post',
data: data
});
}
// 修改工厂模型
export function updateFactory(data) {
return request({
url: '/wms/factory',
method: 'put',
data: data
});
}
// 删除工厂模型
export function delFactory(factoryId) {
return request({
url: '/wms/factory/' + factoryId,
method: 'delete'
});
}