材料管理 变更清单

This commit is contained in:
Teo
2025-08-08 20:03:00 +08:00
parent f37ca487f6
commit 93a3ea764e
28 changed files with 1973 additions and 432 deletions

View File

@ -97,3 +97,14 @@ export const delBatch = (ids: string | number | Array<string | number>) => {
method: 'delete'
});
};
/**
* 查询物资-材料设备批次详情
* @param id
*/
export const getPcDetail = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
return request({
url: '/cailiaoshebei/materialbatchdemandplan/spQuery/' + id,
method: 'get'
});
};

View File

@ -97,3 +97,14 @@ export const delBatch = (ids: string | number | Array<string | number>) => {
method: 'delete'
});
};
/**
* 查询物资-材料设备批次详情
* @param id
*/
export const getPcDetail = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
return request({
url: '/cailiaoshebei/cailiaoshebei/spQuery/' + id,
method: 'get'
});
};

View File

@ -83,6 +83,9 @@ export interface CailiaoshebeiForm extends BaseEntity {
projectId?: string | number;
batchNumber?: string | number;
approvalDesign?: string;
bo: any;
file: string;
/**
* 批次ID
*/

View File

@ -97,3 +97,14 @@ export const delBatch = (ids: string | number | Array<string | number>) => {
method: 'delete'
});
};
/**
* 查询物资-材料设备批次详情
* @param id
*/
export const getPcDetail = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
return request({
url: '/cailiaoshebei/materialsorder/spQuery/' + id,
method: 'get'
});
};

View File

@ -45,7 +45,7 @@ export const addCailiaoshebei = (data: CailiaoshebeiForm) => {
*/
export const updateCailiaoshebei = (data: CailiaoshebeiForm) => {
return request({
url: '/cailiaoshebei/cailiaoshebei',
url: '/cailiaoshebei/materialsorder/changeTheStatusOfTheMaterials',
method: 'put',
data: data
});

View 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'
});
};

View File

@ -0,0 +1,81 @@
export interface RepertoryVO {
/**
* ID
*/
id: string | number;
/**
* 项目ID
*/
projectId: string | number;
/**
* 设备材料名称
*/
name: string;
/**
* 规格型号
*/
specification: string;
/**
* 备注
*/
remark: string;
}
export interface RepertoryForm extends BaseEntity {
/**
* ID
*/
id?: string | number;
/**
* 项目ID
*/
projectId?: string | number;
/**
* 设备材料名称
*/
name?: string;
/**
* 规格型号
*/
specification?: string;
/**
* 备注
*/
remark?: string;
}
export interface RepertoryQuery extends PageQuery {
/**
* 项目ID
*/
projectId?: string | number;
/**
* 设备材料名称
*/
name?: string;
/**
* 规格型号
*/
specification?: string;
/**
* 日期范围参数
*/
params?: any;
}

View File

@ -0,0 +1,63 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { RepertoryDetailsVO, RepertoryDetailsForm, RepertoryDetailsQuery } from '@/api/materials/repertoryDetails/types';
/**
* 查询物资-库存列表
* @param query
* @returns {*}
*/
export const listRepertoryDetails = (query?: RepertoryDetailsQuery): AxiosPromise<RepertoryDetailsVO[]> => {
return request({
url: '/cailiaoshebei/repertoryDetails/list',
method: 'get',
params: query
});
};
/**
* 查询物资-库存详细
* @param id
*/
export const getRepertoryDetails = (id: string | number): AxiosPromise<RepertoryDetailsVO> => {
return request({
url: '/cailiaoshebei/repertoryDetails/' + id,
method: 'get'
});
};
/**
* 新增物资-库存
* @param data
*/
export const addRepertoryDetails = (data: RepertoryDetailsForm) => {
return request({
url: '/cailiaoshebei/repertoryDetails',
method: 'post',
data: data
});
};
/**
* 修改物资-库存
* @param data
*/
export const updateRepertoryDetails = (data: RepertoryDetailsForm) => {
return request({
url: '/cailiaoshebei/repertoryDetails',
method: 'put',
data: data
});
};
/**
* 删除物资-库存
* @param id
*/
export const delRepertoryDetails = (id: string | number | Array<string | number>) => {
return request({
url: '/cailiaoshebei/repertoryDetails/' + id,
method: 'delete'
});
};

View File

@ -0,0 +1,187 @@
export interface RepertoryDetailsVO {
/**
* ID
*/
id: string | number;
/**
* 项目ID
*/
projectId: string | number;
/**
* 库存ID
*/
repertoryId: string | number;
/**
* 数据来源ID
*/
materialsorderId: string | number;
/**
* 物料编码
*/
materialCode: string;
/**
* 原始数量
*/
originalQuantity: number;
/**
* 变更原因
*/
changeReasons: string;
/**
* 变更数量
*/
changeQuantity: number;
/**
* 最终数量
*/
finalNumber: number;
/**
* 操作状态(字典)
*/
operationStatus: string;
/**
* 操作人
*/
operationName: string;
/**
* 操作人联系电话
*/
operationPhone: string;
}
export interface RepertoryDetailsForm extends BaseEntity {
/**
* ID
*/
id?: string | number;
/**
* 项目ID
*/
projectId?: string | number;
/**
* 库存ID
*/
repertoryId?: string | number;
/**
* 数据来源ID
*/
materialsorderId?: string | number;
/**
* 物料编码
*/
materialCode?: string;
/**
* 原始数量
*/
originalQuantity?: number;
/**
* 变更原因
*/
changeReasons?: string;
/**
* 变更数量
*/
changeQuantity?: number;
/**
* 最终数量
*/
finalNumber?: number;
/**
* 操作状态(字典)
*/
operationStatus?: string;
/**
* 操作人
*/
operationName?: string;
/**
* 操作人联系电话
*/
operationPhone?: string;
}
export interface RepertoryDetailsQuery extends PageQuery {
/**
* 项目ID
*/
projectId?: string | number;
id?: string | number;
name?: string;
/**
* 库存ID
*/
repertoryId?: string | number;
/**
* 数据来源ID
*/
materialsorderId?: string | number;
/**
* 物料编码
*/
materialCode?: string;
/**
* 原始数量
*/
originalQuantity?: number;
/**
* 变更原因
*/
changeReasons?: string;
/**
* 变更数量
*/
changeQuantity?: number;
/**
* 最终数量
*/
finalNumber?: number;
/**
* 操作状态(字典)
*/
operationStatus?: string;
/**
* 操作人
*/
operationName?: string;
/**
* 操作人联系电话
*/
operationPhone?: string;
/**
* 日期范围参数
*/
params?: any;
}

View File

@ -97,3 +97,14 @@ export const delBatch = (ids: string | number | Array<string | number>) => {
method: 'delete'
});
};
/**
* 查询物资-材料设备批次详情
* @param id
*/
export const getPcDetail = (id: string | number): AxiosPromise<CailiaoshebeiVO> => {
return request({
url: '/cailiaoshebei/cailiaoshebei/spQueryPlan/' + id,
method: 'get'
});
};

View File

@ -140,7 +140,10 @@ export interface SafetyInspectionForm extends BaseEntity {
* 主键ID
*/
id?: string | number;
/**
* 整改单位类型
*/
rectificationUnit?: string;
/**
* 父id默认为0
*/