64 lines
1.8 KiB
TypeScript
64 lines
1.8 KiB
TypeScript
|
||
/**
|
||
* Namespace Api
|
||
*
|
||
* All backend api type
|
||
*/
|
||
declare namespace Api {
|
||
|
||
/**
|
||
* namespace Mps
|
||
*
|
||
* backend api module: "Mps"
|
||
*/
|
||
namespace Mps {
|
||
/** batch */
|
||
type Batch = Common.CommonRecord<{
|
||
/** 批次月份 */
|
||
batchMonth: string;
|
||
/** 预批量时间 */
|
||
preBatchDate: string;
|
||
/** 预批量状态(0初始 1成功 9失败) */
|
||
preBatchStatus: string;
|
||
/** 正式批量时间 */
|
||
afterBatchDate: string;
|
||
/** 正式批量状态(0初始 1成功 9失败) */
|
||
afterBatchStatus: string;
|
||
/** 核对状态(0未核对 1已核对) */
|
||
checkStatus: string;
|
||
/** 核对人 */
|
||
checkBy: number;
|
||
/** 核对备注 */
|
||
checkRemark: string;
|
||
}>;
|
||
|
||
/** batch search params */
|
||
type BatchSearchParams = CommonType.RecordNullable<
|
||
Pick<
|
||
Api.Mps.Batch,
|
||
| 'batchMonth'
|
||
| 'checkRemark'
|
||
> &
|
||
Api.Common.CommonSearchParams
|
||
>;
|
||
|
||
/** batch operate params */
|
||
type BatchOperateParams = CommonType.RecordNullable<
|
||
Pick<
|
||
Api.Mps.Batch,
|
||
| 'batchMonth'
|
||
| 'preBatchDate'
|
||
| 'preBatchStatus'
|
||
| 'afterBatchDate'
|
||
| 'afterBatchStatus'
|
||
| 'checkStatus'
|
||
| 'checkBy'
|
||
| 'checkRemark'
|
||
>
|
||
>;
|
||
|
||
/** batch list */
|
||
type BatchList = Api.Common.PaginatingQueryRecord<Batch>;
|
||
}
|
||
}
|