2024-12-08 18:25:26 +08:00

274 lines
4.9 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

declare namespace material {
/**
* ApplyDTO
*/
export interface ApplyDTO {
/** 申请人 */
applicant?: string;
/** 申请日期 */
applyDate?: string;
/** 申请数量 */
applyNum?: string;
/** 申请类型 */
applyType?: 'PURCHASE_RECEIPT' | 'RETURN_RECEIPT' | 'LOAN_OUT' | 'AUDIT';
/** 物料编码 */
code?: string;
/** 确认数量 */
confirmNum?: string;
/** 物料名称 */
name?: string;
/** 备注 */
remark?: string;
/** 物料规格 */
spec?: string;
/** 物料类型 */
type?: string;
}
/**
* 申请单明细
*/
export interface ApplyDetail {
/** 申请单ID */
applyId?: number;
/** assignRule */
assignRule?: 'LOW_VALUE' | 'HIGH_VALUE';
/** 确认数量 */
confirmQuantity?: number;
/** createdTime */
createdTime?: string;
/** 异常情况说明 */
exceptionRemark?: string;
/** id */
id?: number;
/** 物料Id */
materialId?: number;
/** 申请数量 */
quantity?: number;
/** updatedTime */
updatedTime?: string;
}
/**
* 入库/出库/盘点 申请单
*/
export interface ApplyForm {
/** 申请人 */
applicant?: string;
/** 申请日期 */
applyDate?: string;
/** 盘点类型1: 全盘 2: 部分盘点) */
auditType?: 'ALL' | 'PARTIAL';
/** createdTime */
createdTime?: string;
/** 异常原因 */
exception?: string;
/** 处理摘要 */
handle?: string;
/** id */
id?: number;
/** 是否确认0: 未确认 1: 已确认) */
isConfirm?: boolean;
/** 结果(系统自动生成) */
result?: string;
/** 审核结果(1-待扫码 2-待提交 3-待审核 4-审核通过 5退回) */
reviewResult?:
| 'WAIT_SCAN'
| 'WAIT_SUBMIT'
| 'WAIT_REVIEW'
| 'PASS'
| 'REJECT';
/** 盘点审核人 */
reviewer?: string;
/** 盘点人 */
taker?: string;
/** 类型1: 采购入库申请 2: 归还入库申请 3: 出库外借申请 4: 盘点申请) */
type?: 'PURCHASE_RECEIPT' | 'RETURN_RECEIPT' | 'LOAN_OUT' | 'AUDIT';
/** updatedTime */
updatedTime?: string;
}
/**
* 申请单
*/
export interface ApplyInfo {
/** 申请单明细 */
applyDetails?: Array<material.ApplyDetail>;
/** applyForm */
applyForm?: material.ApplyForm;
/** 扫码的条码集合 */
detailList?: Array<material.MaterialStockDetail>;
}
/**
* 申请单
*/
export interface AuditApplyInfo {
/** 申请人 */
applicant?: string;
/** 申请日期 */
applyDate?: string;
/** 盘点类型1: 全盘 2: 部分盘点) */
auditType?: 'ALL' | 'PARTIAL';
/** createdTime */
createdTime?: string;
/** 异常原因 */
exception?: string;
/** 处理摘要 */
handle?: string;
/** id */
id?: number;
/** 物料ids */
ids?: Array<string>;
/** 是否确认0: 未确认 1: 已确认) */
isConfirm?: boolean;
/** 结果(系统自动生成) */
result?: string;
/** 审核结果(1-待扫码 2-待提交 3-待审核 4-审核通过 5退回) */
reviewResult?:
| 'WAIT_SCAN'
| 'WAIT_SUBMIT'
| 'WAIT_REVIEW'
| 'PASS'
| 'REJECT';
/** 盘点审核人 */
reviewer?: string;
/** 盘点人 */
taker?: string;
/** 类型1: 采购入库申请 2: 归还入库申请 3: 出库外借申请 4: 盘点申请) */
type?: 'PURCHASE_RECEIPT' | 'RETURN_RECEIPT' | 'LOAN_OUT' | 'AUDIT';
/** updatedTime */
updatedTime?: string;
}
/**
* 物料信息
*/
export interface Material {
/** 赋码规则(2-低值易耗品(不参与赋码) 1-高价值工具类(参与唯一赋码) */
assignRule?: 'LOW_VALUE' | 'HIGH_VALUE';
/** 编码 */
code?: string;
/** createdTime */
createdTime?: string;
/** 备注 */
description?: string;
/** id */
id?: number;
/** 名称 */
name?: string;
/** 规格 */
spec?: string;
/** 库存数量 */
stock?: number;
/** 类型 */
type?: string;
/** updatedTime */
updatedTime?: string;
}
/**
* 物料明细数据表
*/
export interface MaterialStockDetail {
/** 入库申请单 */
applyId?: number;
/** 条码 */
barcode?: string;
/** createdTime */
createdTime?: string;
/** id */
id?: number;
/** 物料ID */
materialId?: number;
/** 状态 */
status?: 'IN' | 'OUT' | 'OFF' | 'LOST';
/** updatedTime */
updatedTime?: string;
}
/**
* 扫码盘点明细表(记录历次盘点扫码的数据)
*/
export interface StocktakingScanDetail {
/** 申请单id */
applyId?: number;
/** 条码 */
barcode?: string;
/** createdTime */
createdTime?: string;
/** id */
id?: number;
/** 物料ID */
materialId?: number;
/** updatedTime */
updatedTime?: string;
}
}