修改bug
This commit is contained in:
63
src/api/materials/purchaseDoc/index.ts
Normal file
63
src/api/materials/purchaseDoc/index.ts
Normal file
@ -0,0 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { PurchaseDocVO, PurchaseDocForm, PurchaseDocQuery } from '@/api/cailiaoshebei/purchaseDoc/types';
|
||||
|
||||
/**
|
||||
* 查询物资-采购联系单列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listPurchaseDoc = (query?: PurchaseDocQuery): AxiosPromise<PurchaseDocVO[]> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询物资-采购联系单详细
|
||||
* @param id
|
||||
*/
|
||||
export const getPurchaseDoc = (id: string | number): AxiosPromise<PurchaseDocVO> => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增物资-采购联系单
|
||||
* @param data
|
||||
*/
|
||||
export const addPurchaseDoc = (data: PurchaseDocForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改物资-采购联系单
|
||||
* @param data
|
||||
*/
|
||||
export const updatePurchaseDoc = (data: PurchaseDocForm) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除物资-采购联系单
|
||||
* @param id
|
||||
*/
|
||||
export const delPurchaseDoc = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/cailiaoshebei/purchaseDoc/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
296
src/api/materials/purchaseDoc/types.ts
Normal file
296
src/api/materials/purchaseDoc/types.ts
Normal file
@ -0,0 +1,296 @@
|
||||
export interface PurchaseDocVO {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId: string | number;
|
||||
|
||||
/**
|
||||
* 采购单编号
|
||||
*/
|
||||
docCode: string;
|
||||
|
||||
/**
|
||||
* 供应商
|
||||
*/
|
||||
supplier: string;
|
||||
|
||||
/**
|
||||
* 事由
|
||||
*/
|
||||
reason: string;
|
||||
|
||||
/**
|
||||
* 设备统称
|
||||
*/
|
||||
name: string;
|
||||
|
||||
/**
|
||||
* 到货日期
|
||||
*/
|
||||
arrivalDate: string;
|
||||
|
||||
/**
|
||||
* 设计负责人联系方式
|
||||
*/
|
||||
designDirectorTel: string;
|
||||
|
||||
/**
|
||||
* 现场技术负责人联系方式
|
||||
*/
|
||||
technicalDirectorTel: string;
|
||||
|
||||
/**
|
||||
* 收货地址
|
||||
*/
|
||||
receivingAddress: string;
|
||||
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
contacts: string;
|
||||
|
||||
/**
|
||||
* 项目负责人
|
||||
*/
|
||||
projectDirector: string;
|
||||
|
||||
/**
|
||||
* 采购经办人
|
||||
*/
|
||||
purchasingAgent: string;
|
||||
|
||||
/**
|
||||
* 日期
|
||||
*/
|
||||
preparedDate: string;
|
||||
|
||||
/**
|
||||
* 反馈文件地址
|
||||
*/
|
||||
feedbackUrl: string;
|
||||
|
||||
/**
|
||||
* 签收单位
|
||||
*/
|
||||
signingUnit: string;
|
||||
|
||||
/**
|
||||
* 签收人
|
||||
*/
|
||||
signingPerson: string;
|
||||
|
||||
/**
|
||||
* 签收日期
|
||||
*/
|
||||
signingDate: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status: string;
|
||||
|
||||
}
|
||||
|
||||
export interface PurchaseDocForm extends BaseEntity {
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 采购单编号
|
||||
*/
|
||||
docCode?: string;
|
||||
|
||||
/**
|
||||
* 供应商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 事由
|
||||
*/
|
||||
reason?: string;
|
||||
|
||||
/**
|
||||
* 设备统称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 到货日期
|
||||
*/
|
||||
arrivalDate?: string;
|
||||
|
||||
/**
|
||||
* 设计负责人联系方式
|
||||
*/
|
||||
designDirectorTel?: string;
|
||||
|
||||
/**
|
||||
* 现场技术负责人联系方式
|
||||
*/
|
||||
technicalDirectorTel?: string;
|
||||
|
||||
/**
|
||||
* 收货地址
|
||||
*/
|
||||
receivingAddress?: string;
|
||||
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
contacts?: string;
|
||||
|
||||
/**
|
||||
* 项目负责人
|
||||
*/
|
||||
projectDirector?: string;
|
||||
|
||||
/**
|
||||
* 采购经办人
|
||||
*/
|
||||
purchasingAgent?: string;
|
||||
|
||||
/**
|
||||
* 日期
|
||||
*/
|
||||
preparedDate?: string;
|
||||
|
||||
/**
|
||||
* 反馈文件地址
|
||||
*/
|
||||
feedbackUrl?: string;
|
||||
|
||||
/**
|
||||
* 签收单位
|
||||
*/
|
||||
signingUnit?: string;
|
||||
|
||||
/**
|
||||
* 签收人
|
||||
*/
|
||||
signingPerson?: string;
|
||||
|
||||
/**
|
||||
* 签收日期
|
||||
*/
|
||||
signingDate?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface PurchaseDocQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 项目ID
|
||||
*/
|
||||
projectId?: string | number;
|
||||
|
||||
/**
|
||||
* 采购单编号
|
||||
*/
|
||||
docCode?: string;
|
||||
|
||||
/**
|
||||
* 供应商
|
||||
*/
|
||||
supplier?: string;
|
||||
|
||||
/**
|
||||
* 事由
|
||||
*/
|
||||
reason?: string;
|
||||
|
||||
/**
|
||||
* 设备统称
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* 到货日期
|
||||
*/
|
||||
arrivalDate?: string;
|
||||
|
||||
/**
|
||||
* 设计负责人联系方式
|
||||
*/
|
||||
designDirectorTel?: string;
|
||||
|
||||
/**
|
||||
* 现场技术负责人联系方式
|
||||
*/
|
||||
technicalDirectorTel?: string;
|
||||
|
||||
/**
|
||||
* 收货地址
|
||||
*/
|
||||
receivingAddress?: string;
|
||||
|
||||
/**
|
||||
* 联系人
|
||||
*/
|
||||
contacts?: string;
|
||||
|
||||
/**
|
||||
* 项目负责人
|
||||
*/
|
||||
projectDirector?: string;
|
||||
|
||||
/**
|
||||
* 采购经办人
|
||||
*/
|
||||
purchasingAgent?: string;
|
||||
|
||||
/**
|
||||
* 日期
|
||||
*/
|
||||
preparedDate?: string;
|
||||
|
||||
/**
|
||||
* 反馈文件地址
|
||||
*/
|
||||
feedbackUrl?: string;
|
||||
|
||||
/**
|
||||
* 签收单位
|
||||
*/
|
||||
signingUnit?: string;
|
||||
|
||||
/**
|
||||
* 签收人
|
||||
*/
|
||||
signingPerson?: string;
|
||||
|
||||
/**
|
||||
* 签收日期
|
||||
*/
|
||||
signingDate?: string;
|
||||
|
||||
/**
|
||||
* 审核状态
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user