进度管理产值管理
This commit is contained in:
88
src/api/materials/cailiaoshebei/index.ts
Normal file
88
src/api/materials/cailiaoshebei/index.ts
Normal file
@ -0,0 +1,88 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { CailiaoshebeiVO, CailiaoshebeiForm, CailiaoshebeiQuery } from '@/api/materials/cailiaoshebei/types';
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listCailiaoshebei = (query?: CailiaoshebeiQuery): AxiosPromise<CailiaoshebeiVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备详细
|
||||
* @param id
|
||||
*/
|
||||
export const getCailiaoshebei = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const addCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改物资-材料设备
|
||||
* @param data
|
||||
*/
|
||||
export const updateCailiaoshebei = (data: CailiaoshebeiForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-材料设备
|
||||
* @param id
|
||||
*/
|
||||
export const delCailiaoshebei = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-材料设备批次列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
export const listBatch = (query?: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/pcList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-材料设备批次
|
||||
* @param data
|
||||
*/
|
||||
export const getBatch = (data: any) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/cailiaoshebei/pcAdd',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
225
src/api/materials/cailiaoshebei/types.ts
Normal file
225
src/api/materials/cailiaoshebei/types.ts
Normal file
@ -0,0 +1,225 @@
|
||||
export interface CailiaoshebeiVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId: string | number;
|
||||
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark: string;
|
||||
}
|
||||
|
||||
export interface CailiaoshebeiForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
projectId?: string | number;
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment?: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan?: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remark?: string;
|
||||
}
|
||||
|
||||
export interface CailiaoshebeiQuery extends PageQuery {
|
||||
/**
|
||||
* 批次ID
|
||||
*/
|
||||
batchId?: string | number;
|
||||
projectId?: string | number;
|
||||
/**
|
||||
* 供货商ID
|
||||
*/
|
||||
supplierId?: string | number;
|
||||
|
||||
/**
|
||||
* 供货商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 设备材料名称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 供货来源(字典)
|
||||
*/
|
||||
supply?: string;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
specification?: string;
|
||||
|
||||
/**
|
||||
* 特征描述
|
||||
*/
|
||||
signalment?: string;
|
||||
|
||||
/**
|
||||
* 物料编码
|
||||
*/
|
||||
materialCode?: string;
|
||||
|
||||
/**
|
||||
* 计划到场时间
|
||||
*/
|
||||
arrivalTime?: string;
|
||||
|
||||
/**
|
||||
* 计划完成时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 计量单位
|
||||
*/
|
||||
unit?: string;
|
||||
|
||||
/**
|
||||
* 计划数量
|
||||
*/
|
||||
plan?: number;
|
||||
|
||||
/**
|
||||
* 实际数量
|
||||
*/
|
||||
realQuantity?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user