init:first commit of plus-ui

This commit is contained in:
Teo
2025-05-21 11:24:53 +08:00
commit 95e38df6a5
2219 changed files with 2478311 additions and 0 deletions

View File

@ -0,0 +1,63 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { MaterialsInventoryForm, MaterialsInventoryQuery, MaterialsInventoryVO } from '@/api/materials/materialsInventory/types';
/**
* 查询材料出/入库列表
* @param query
* @returns {*}
*/
export const listMaterialsInventory = (query?: MaterialsInventoryQuery): AxiosPromise<MaterialsInventoryVO[]> => {
return request({
url: '/materials/materialsInventory/list',
method: 'get',
params: query
});
};
/**
* 查询材料出/入库详细
* @param id
*/
export const getMaterialsInventory = (id: string | number): AxiosPromise<MaterialsInventoryVO> => {
return request({
url: '/materials/materialsInventory/' + id,
method: 'get'
});
};
/**
* 新增材料出/入库
* @param data
*/
export const addMaterialsInventory = (data: MaterialsInventoryForm): AxiosPromise<string | number> => {
return request({
url: '/materials/materialsInventory',
method: 'post',
data: data
});
};
/**
* 修改材料出/入库
* @param data
*/
export const updateMaterialsInventory = (data: MaterialsInventoryForm) => {
return request({
url: '/materials/materialsInventory',
method: 'put',
data: data
});
};
/**
* 删除材料出/入库
* @param id
*/
export const delMaterialsInventory = (id: string | number | Array<string | number>) => {
return request({
url: '/materials/materialsInventory/' + id,
method: 'delete'
});
};

View File

@ -0,0 +1,212 @@
import { MaterialsVO } from '@/api/materials/materials/types';
export interface MaterialsInventoryVO {
/**
* 主键id
*/
id: string | number;
/**
* 材料id
*/
materialsId: string | number;
/**
* 材料信息
*/
materialsVo: MaterialsVO;
/**
* 项目id
*/
projectId: string | number;
/**
* 出入库状态
*/
outPut: string;
/**
* 出/入库的数量
*/
number: number;
/**
* 出/入库操作时间
*/
outPutTime: string;
/**
* 剩余库存数量(记录最后一次操作留下的库存数)
*/
residue: string | number;
/**
* 操作人(入库人、领料人)
*/
operator: string;
/**
* 材料出入证明
*/
path: string;
/**
* 处理方式
*/
disposition: string;
/**
* 交接单位(班组)
*/
recipient: string;
/**
* 领用人
*/
shipper: string;
/**
* 备注
*/
remark: string;
/**
* 创建时间
*/
createTime: string;
}
export interface MaterialsInventoryForm extends BaseEntity {
/**
* 主键id
*/
id?: string | number;
/**
* 材料id
*/
materialsId?: string | number;
/**
* 项目id
*/
projectId?: string | number;
/**
* 出入库状态
*/
outPut?: string;
/**
* 出/入库的数量
*/
number?: number;
/**
* 出/入库操作时间
*/
outPutTime?: string;
/**
* 剩余库存数量(记录最后一次操作留下的库存数)
*/
residue?: string | number;
/**
* 操作人(入库人、领料人)
*/
operator?: string;
/**
* 材料出入证明
*/
path?: string;
/**
* 处理方式
*/
disposition?: string;
/**
* 交接单位(班组)
*/
recipient?: string;
/**
* 领用人
*/
shipper?: string;
/**
* 备注
*/
remark?: string;
}
export interface MaterialsInventoryQuery extends PageQuery {
/**
* 材料id
*/
materialsId?: string | number;
/**
* 材料名称
*/
materialsName?: string;
/**
* 项目id
*/
projectId?: string | number;
/**
* 出入库状态
*/
outPut?: string;
/**
* 出/入库的数量
*/
number?: number;
/**
* 出/入库操作时间
*/
outPutTime?: string;
/**
* 剩余库存数量(记录最后一次操作留下的库存数)
*/
residue?: string | number;
/**
* 操作人(入库人、领料人)
*/
operator?: string;
/**
* 材料出入证明
*/
path?: string;
/**
* 处理方式
*/
disposition?: string;
/**
* 交接单位(班组)
*/
recipient?: string;
/**
* 领用人
*/
shipper?: string;
/**
* 日期范围参数
*/
params?: any;
}