This commit is contained in:
2025-07-04 19:56:28 +08:00
parent 7f5300b4f4
commit 96216b0a21
20 changed files with 3697 additions and 9 deletions

View File

@ -0,0 +1,63 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { MaterialIssueVO, MaterialIssueForm, MaterialIssueQuery } from '@/api/materials/materialIssue/types';
/**
* 查询物料领料单列表
* @param query
* @returns {*}
*/
export const listMaterialIssue = (query?: MaterialIssueQuery): AxiosPromise<MaterialIssueVO[]> => {
return request({
url: '/materials/materialIssue/list',
method: 'get',
params: query
});
};
/**
* 查询物料领料单详细
* @param id
*/
export const getMaterialIssue = (id: string | number): AxiosPromise<MaterialIssueVO> => {
return request({
url: '/materials/materialIssue/' + id,
method: 'get'
});
};
/**
* 新增物料领料单
* @param data
*/
export const addMaterialIssue = (data: MaterialIssueForm) => {
return request({
url: '/materials/materialIssue',
method: 'post',
data: data
});
};
/**
* 修改物料领料单
* @param data
*/
export const updateMaterialIssue = (data: MaterialIssueForm) => {
return request({
url: '/materials/materialIssue',
method: 'put',
data: data
});
};
/**
* 删除物料领料单
* @param id
*/
export const delMaterialIssue = (id: string | number | Array<string | number>) => {
return request({
url: '/materials/materialIssue/' + id,
method: 'delete'
});
};

View File

@ -0,0 +1,226 @@
export interface MaterialIssueVO {
/**
* 主键id
*/
id: string | number;
/**
* 项目id
*/
projectId: string | number;
/**
* 材料来源(1甲供 2乙供)
*/
materialSource: string;
/**
* 表单编号
*/
formCode: string;
/**
* 工程名称
*/
projectName: string;
/**
* 设备材料名称
*/
materialName: string;
/**
* 订货单位
*/
orderingUnit: string;
/**
* 供货单位
*/
supplierUnit: string;
/**
* 领料单位
*/
issueUnit: string;
/**
* 保管单位
*/
storageUnit: string;
/**
* 缺陷情况(承包单位填写)
*/
defectDescription: string;
/**
* 备注
*/
remark: string;
}
export interface MaterialIssueForm extends BaseEntity {
/**
* 主键id
*/
id?: string | number;
/**
* 项目id
*/
projectId?: string | number;
/**
* 材料来源(1甲供 2乙供)
*/
materialSource?: string;
/**
* 表单编号
*/
formCode?: string;
/**
* 工程名称
*/
projectName?: string;
/**
* 设备材料名称
*/
materialName?: string;
/**
* 订货单位
*/
orderingUnit?: string;
/**
* 供货单位
*/
supplierUnit?: string;
/**
* 领料单位
*/
issueUnit?: string;
/**
* 保管单位
*/
storageUnit?: string;
/**
* 缺陷情况(承包单位填写)
*/
defectDescription?: string;
/**
* 合格证份数
*/
certCount?: number;
/**
* 合格证文件
*/
certCountFileId?: string | number;
/**
* 出厂报告份数
*/
reportCount?: number;
/**
* 出厂报告文件
*/
reportCountFileId?: string | number;
/**
* 技术资料份数
*/
techDocCount?: number;
/**
* 技术资料文件
*/
techDocCountFileId?: string | number;
/**
* 厂家资质文件份数
*/
licenseCount?: number;
/**
* 厂家资质文件
*/
licenseCountFileId?: string | number;
/**
* 备注
*/
remark?: string;
}
export interface MaterialIssueQuery extends PageQuery {
/**
* 项目id
*/
projectId?: string | number;
/**
* 材料来源(1甲供 2乙供)
*/
materialSource?: string;
/**
* 表单编号
*/
formCode?: string;
/**
* 工程名称
*/
projectName?: string;
/**
* 设备材料名称
*/
materialName?: string;
/**
* 订货单位
*/
orderingUnit?: string;
/**
* 供货单位
*/
supplierUnit?: string;
/**
* 领料单位
*/
issueUnit?: string;
/**
* 保管单位
*/
storageUnit?: string;
/**
* 缺陷情况(承包单位填写)
*/
defectDescription?: string;
/**
* 日期范围参数
*/
params?: any;
}

View File

@ -0,0 +1,63 @@
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { MaterialReceiveVO, MaterialReceiveForm, MaterialReceiveQuery } from '@/api/materials/materialReceive/types';
/**
* 查询物料接收单列表
* @param query
* @returns {*}
*/
export const listMaterialReceive = (query?: MaterialReceiveQuery): AxiosPromise<MaterialReceiveVO[]> => {
return request({
url: '/materials/materialReceive/list',
method: 'get',
params: query
});
};
/**
* 查询物料接收单详细
* @param id
*/
export const getMaterialReceive = (id: string | number): AxiosPromise<MaterialReceiveVO> => {
return request({
url: '/materials/materialReceive/' + id,
method: 'get'
});
};
/**
* 新增物料接收单
* @param data
*/
export const addMaterialReceive = (data: MaterialReceiveForm) => {
return request({
url: '/materials/materialReceive',
method: 'post',
data: data
});
};
/**
* 修改物料接收单
* @param data
*/
export const updateMaterialReceive = (data: MaterialReceiveForm) => {
return request({
url: '/materials/materialReceive',
method: 'put',
data: data
});
};
/**
* 删除物料接收单
* @param id
*/
export const delMaterialReceive = (id: string | number | Array<string | number>) => {
return request({
url: '/materials/materialReceive/' + id,
method: 'delete'
});
};

View File

@ -0,0 +1,211 @@
export interface MaterialReceiveVO {
/**
* 主键id
*/
id: string | number;
/**
* 项目id
*/
projectId: string | number;
/**
* 材料来源(1甲供 2乙供)
*/
materialSource: string;
/**
* 表单编号
*/
formCode: string;
/**
* 工程名称
*/
projectName: string;
/**
* 设备材料名称
*/
materialName: string;
/**
* 合同名称
*/
contractName: string;
/**
* 订货单位
*/
orderingUnit: string;
/**
* 供货单位
*/
supplierUnit: string;
/**
* 设备材料入库/移交
*/
storageType: string;
/**
* 备注
*/
remark: string;
}
export interface MaterialReceiveForm extends BaseEntity {
/**
* 主键id
*/
id?: string | number;
/**
* 项目id
*/
projectId?: string | number;
/**
* 材料来源(1甲供 2乙供)
*/
materialSource?: string;
/**
* 表单编号
*/
formCode?: string;
/**
* 工程名称
*/
projectName?: string;
/**
* 设备材料名称
*/
materialName?: string;
/**
* 合同名称
*/
contractName?: string;
/**
* 订货单位
*/
orderingUnit?: string;
/**
* 供货单位
*/
supplierUnit?: string;
/**
* 缺陷情况(承包单位填写)
*/
defectDescription?: string;
/**
* 合格证份数
*/
certCount?: number;
/**
* 合格证文件
*/
certCountFileId?: string | number;
/**
* 出厂报告份数
*/
reportCount?: number;
/**
* 出厂报告文件
*/
reportCountFileId?: string | number;
/**
* 技术资料份数
*/
techDocCount?: number;
/**
* 技术资料文件
*/
techDocCountFileId?: string | number;
/**
* 厂家资质文件份数
*/
licenseCount?: number;
/**
* 厂家资质文件
*/
licenseCountFileId?: string | number;
/**
* 设备材料入库/移交
*/
storageType?: string;
/**
* 备注
*/
remark?: string;
}
export interface MaterialReceiveQuery extends PageQuery {
/**
* 项目id
*/
projectId?: string | number;
/**
* 材料来源(1甲供 2乙供)
*/
materialSource?: string;
/**
* 表单编号
*/
formCode?: string;
/**
* 工程名称
*/
projectName?: string;
/**
* 设备材料名称
*/
materialName?: string;
/**
* 合同名称
*/
contractName?: string;
/**
* 订货单位
*/
orderingUnit?: string;
/**
* 供货单位
*/
supplierUnit?: string;
/**
* 日期范围参数
*/
params?: any;
}