采购管理: 新增采购计划相关功能及组件
文件上传: 增加拖拽上传功能并优化组件逻辑 库存管理: 移除表格固定高度以改善显示效果 采购计划: 添加类型定义文件及接口文档
This commit is contained in:
56
src/api/wuziguanli/caigouPlan/index.ts
Normal file
56
src/api/wuziguanli/caigouPlan/index.ts
Normal file
@ -0,0 +1,56 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { CaigouPlanVO, CaigouPlanForm, CaigouPlanQuery } from '@/api/wuziguanli/caigouPlan/types';
|
||||
|
||||
/**
|
||||
* 查询运维-物资-采购计划单列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listCaigouPlan = (query?: CaigouPlanQuery): AxiosPromise<CaigouPlanVO[]> => {
|
||||
return request({
|
||||
url: '/ops/caigouPlan/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询采购商列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const getSupplierList = (data:any): AxiosPromise<any> => {
|
||||
return request({
|
||||
url: '/ops/tenderSupplierInput/getList',
|
||||
method: 'get',
|
||||
params: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增运维-物资-采购计划单
|
||||
* @param data
|
||||
* @returns {*}
|
||||
*/
|
||||
export const addCaigouPlan = (data: CaigouPlanForm): AxiosPromise<CaigouPlanVO> => {
|
||||
return request({
|
||||
url: '/ops/caigouPlan',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询运维-物资-采购计划单详情
|
||||
* @param id
|
||||
* @returns {*}
|
||||
*/
|
||||
export const caigouPlanDetail = (id: string | number): AxiosPromise<CaigouPlanVO> => {
|
||||
return request({
|
||||
url: `/ops/caigouPlan/`+id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user