材料管理 变更清单
This commit is contained in:
63
src/api/materials/repertory/index.ts
Normal file
63
src/api/materials/repertory/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { RepertoryVO, RepertoryForm, RepertoryQuery } from '@/api/materials/repertory/types';
|
||||
|
||||
/**
|
||||
* 查询物资-库存详情列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listRepertory = (query?: RepertoryQuery): AxiosPromise<RepertoryVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertory/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-库存详情详细
|
||||
* @param id
|
||||
*/
|
||||
export const getRepertory = (id: string | number): AxiosPromise<RepertoryVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertory/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-库存详情
|
||||
* @param data
|
||||
*/
|
||||
export const addRepertory = (data: RepertoryForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertory',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改物资-库存详情
|
||||
* @param data
|
||||
*/
|
||||
export const updateRepertory = (data: RepertoryForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertory',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-库存详情
|
||||
* @param id
|
||||
*/
|
||||
export const delRepertory = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/repertory/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
Reference in New Issue
Block a user